microZEUS
The whole stack, hand-drawn.

◄ Wiki / Crypto

modular exponentiation

Raising a number to a large power and taking the remainder — the core arithmetic behind RSA.

Modular exponentiation computes (base raised to exponent) modulo some number, kept feasible by squaring and reducing at each step rather than forming the astronomically large full power. RSA encryption and signing are essentially one big modular exponentiation with a secret exponent. Because the secret is the exponent, the operation must run in constant time — its duration must not leak which bits the key contains.

See also

  • OpenSSLA widely used open-source library for encryption and secure network connections.
  • nonceA number used exactly once, to keep repeated encryptions from looking identical.

Referenced by

nonce · OpenSSL