Documentation

Cryptlib.Primitives.KEM.Schemes

Big-endian u32.

Equations
Instances For

    A field under a big-endian 32-bit length prefix.

    Equations
    Instances For

      Domain-separation tag for sha256-v1.

      Equations
      Instances For
        def Cryptlib.Primitives.KEM.sha256v1Derive (ss pkStatic pkEph : ByteArray) (outLen : ℕ) :
        Vector UInt8 outLen

        The sha256-v1 PRF:

        SHA256(label || u32be(len(ss))       || ss
                     || u32be(len(pkStatic)) || pkStatic
                     || u32be(len(pkEph))    || pkEph)
        

        Only meaningful at outLen = 32; other widths are zero-padded or truncated.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Cryptlib.Primitives.KEM.blake2bXOFDerive (ss pkStatic pkEph : ByteArray) (outLen : ℕ) :
          Vector UInt8 outLen

          The blake2b-xof PRF: a BLAKE2b XOF keyed by ss, or by BLAKE2b-256 of ss if it is not 32 bytes.

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

            The KEM registry #

            Names use only [A-Za-z0-9/], as in Noise protocol names. X25519 KEMs carry a KEM suffix to stay distinct from the X25519 NIKEs. ML-KEM private keys are in the seed form ek ‖ d ‖ z.

            Instances For

              Combiner.PRF with unkeyed and keyed BLAKE2b-256.

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

                X25519 combined with a post-quantum KEM via the split-PRF combiner (not X-Wing). IND-CCA2 if either component is (https://eprint.iacr.org/2018/024.pdf, Theorem 1).

                Equations
                Instances For

                  kemMLKEM768X25519 over kemX25519Blake2b. Not registered.

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

                    Every registered KEM. The hedged schemes restore round-3 Kyber's m ← H(m) and are not FIPS 203.

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

                      Case-insensitive lookup by registry name.

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