Documentation

Cryptlib.Primitives.Cipher.ChaCha20

ChaCha20 (original/Bernstein construction, 64-bit nonce) #

Single-block function; ChaChaPoly builds the RFC 8439 variant on top of it.

def Cryptlib.Primitives.Cipher.ChaCha20.block (key nonce : Array UInt8) (counterLo counterHi : UInt32) :

One 64-byte ChaCha20 block: 32-byte key, 8-byte nonce, 64-bit counter (as two 32-bit little-endian words).

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

    The first 32 bytes of the ChaCha20 keystream for key, with zero nonce and counter.

    Equations
    Instances For