embassy-crypto

Crates

git

Versions

default

Flavors

Skip to main content

Module p384

Module p384 

Source
Expand description

NIST P-384 (secp384r1).

Three groups of types, each served by its own driver:

See p256 for an example; the API is identical.

Structs§

Point
A point on the curve, the point at infinity included.
PublicKey
An ECDH public key: a point on the curve.
Scalar
A scalar: an integer modulo the curve order n.
SecretKey
An ECDH private key: a nonzero scalar.
SharedSecret
An ECDH shared secret: the X coordinate of the shared point.
Signature
An ECDSA signature (r, s).
SigningKey
An ECDSA signing key: a nonzero scalar.
VerifyingKey
An ECDSA verifying key: a point on the curve.

Constants§

FIELD_SIZE
Size of a field element, scalar and coordinate, in bytes.
ORDER
The curve order n, big-endian.