Module sequoia_openpgp::crypto::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 4880). Multiprecision integers in OpenPGP are extended by RFC 6637 to store curves and coordinates used in elliptic curve cryptography (ECC).

Structs§

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

Enums§