Expand description
NIST P-384 (secp384r1).
Three groups of types, each served by its own driver:
ScalarandPoint: arithmetic, viadriver::P384Arith.SecretKey,PublicKeyandSharedSecret: ECDH, viadriver::P384Ecdh.SigningKey,VerifyingKeyandSignature: ECDSA over SHA-384 digests, viadriver::P384Ecdsa.
See p256 for an example; the API is identical.
Structs§
- Point
- A point on the curve, the point at infinity included.
- Public
Key - An ECDH public key: a point on the curve.
- Scalar
- A scalar: an integer modulo the curve order
n. - Secret
Key - An ECDH private key: a nonzero scalar.
- Shared
Secret - An ECDH shared secret: the X coordinate of the shared point.
- Signature
- An ECDSA signature
(r, s). - Signing
Key - An ECDSA signing key: a nonzero scalar.
- Verifying
Key - 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.