Module evercrypt::p256[][src]

Structs

An ECDSA signature holding r and s.

Enums

P256 errors

Functions

Return p * s

Return base * s

Sign msg with sk and nonce using hash with EcDSA on P256.

Verify EcDSA signature over P256 on msg with pk using hash. Note that the public key pk must be a compressed or uncompressed point.

Generate a new P256 scalar (private key).

Generate a random nonce for ECDSA.

Validate a P256 secret key.

Type Definitions

Nonces are 32 byte arrays.

P256 public keys are 64-byte arrays containing the 32-byte X and 32-byte Y coordinate.

Scalars are 32 byte arrays.