Skip to main content

Module p384

Module p384 

Source

Structs§

PrivateKey
P-384 (secp384r1) ECDSA private key.
PublicKey
P-384 (secp384r1) ECDSA public 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.
PRIVATE_KEY_SIZE
Size of a P-384 private key in bytes (48 bytes).
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).
SIGNATURE_SIZE
Size of a P-384 ECDSA signature in bytes (96 bytes, r || s).

Functions§

ecdh
is_valid_public_key