Expand description
Structs§
Constants§
- ECDH_
SHARED_ SECRET_ SIZE - Size of the raw ECDH shared secret in bytes (32 bytes). Must not be used directly as an encryption key; apply a KDF first.
- PUBLIC_
KEY_ COMPRESSED_ SIZE - Size of a compressed P-256 public key in bytes (33 bytes, includes 0x02/0x03 prefix).
- PUBLIC_
KEY_ UNCOMPRESSED_ SIZE - Size of an uncompressed P-256 public key in bytes (65 bytes, includes 0x04 prefix).
- SECRET_
KEY_ SIZE - Size of a P-256 secret key in bytes (32 bytes).
- SIGNATURE_
SIZE - Size of a P-256 ECDSA signature in bytes (64 bytes, r || s).
Functions§
- is_
valid_ public_ key - Returns
truewhenpublic_keyis a valid SEC1 encoding of a point on the P-256 curve.