Documentation

Cryptlib.Primitives.Cipher.AESGCM

AES-256-GCM (NIST SP 800-38D), 96-bit nonces and 128-bit tags #

Nonces must not repeat under one key.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    E(K, J₀) ⊕ GHASH_H(pad(A) ‖ pad(C) ‖ BE64(|A| bits) ‖ BE64(|C| bits)), H = E(K, 0¹²⁸).

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Structural equality on the tag; a deployed implementation must compare in constant time.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem Cryptlib.Primitives.Cipher.AESGCM.decrypt_sound (key : Key) (n : Nonce) (ad ct pt : ByteArray) (h : decrypt key n ad ct = some pt) :
          encrypt key n ad pt = ct
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For