Documentation

Cryptlib.Primitives.NIKE.X25519Common

X25519 primitives shared by both implementations #

The field prime, RFC 7748 byte decoding and clamping, the basepoint, and the private key type.

The Curve25519 prime, 2^255 - 19.

Equations
Instances For

    The x-coordinate of the standard basepoint.

    Equations
    Instances For

      Little-endian byte decoding, with bit 255 masked per RFC 7748.

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

        RFC 7748 clamping: clear the low three bits, clear bit 255, set bit 254.

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

          A private key: a 32-byte scalar seed, clamped on use.

          Instances For