Module hacl::p256

source ·

Structs§

Enums§

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 Aliases§

  • 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.