Module mpi

Source
Expand description

Multiprecision Integers.

Cryptographic objects like public keys, secret keys, ciphertexts, and signatures are scalar numbers of arbitrary precision. OpenPGP specifies that these are stored encoded as big-endian integers with leading zeros stripped (See Section 3.2 of RFC 9580). Multiprecision integers in OpenPGP are extended by Section 3.2.1 of RFC 9580 to store curves and coordinates used in elliptic curve cryptography (ECC).

Structs§

MPI
A Multiprecision Integer.
ProtectedMPI
Holds a single MPI containing secrets.

Enums§

Ciphertext
An encrypted session key.
PublicKey
A public key.
SecretKeyChecksum
Checksum method for secret key material.
SecretKeyMaterial
A secret key.
Signature
A cryptographic signature.