Skip to main content

Module p384

Module p384 

Source
Expand description

P-384 (secp384r1) ECDSA and ECDH.

See SecretKey and PublicKey for the signing, verification and key agreement APIs.

Structs§

PublicKey
P-384 (secp384r1) ECDSA public key.
SecretKey
P-384 (secp384r1) ECDSA secret key.

Constants§

ECDH_SHARED_SECRET_SIZE
Size of the raw ECDH shared secret in bytes (48 bytes). Must not be used directly as an encryption key; apply a KDF first.
PUBLIC_KEY_COMPRESSED_SIZE
Size of a compressed P-384 public key in bytes (49 bytes, includes 0x02/0x03 prefix).
PUBLIC_KEY_UNCOMPRESSED_SIZE
Size of an uncompressed P-384 public key in bytes (97 bytes, includes 0x04 prefix).
SECRET_KEY_SIZE
Size of a P-384 secret key in bytes (48 bytes).
SIGNATURE_SIZE
Size of a P-384 ECDSA signature in bytes (96 bytes, r || s).

Functions§

is_valid_public_key
Returns true when public_key is a valid SEC1 encoding of a point on the P-384 curve.