def chacha20_block

bend-collections@1.0.0.0 · src/crypto/chacha/chacha20.bend:145

import bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend as Chacha20
import Base

145# chacha20_block(key, counter, nonce): 64 bytes, or None unless the key has 32
146# bytes and the nonce 12.
147def chacha20_block(+key_bytes: List<&2, U32>, counter: U32, +nonce_bytes: List<&2, U32>) -> Maybe<&2, List<&2, U32>>:
148  when(valid(key_bytes, nonce_bytes, 12n), block_rounds(10n, key_bytes, counter, nonce_bytes))

Uses (6)

Used by (0)

No other definition uses this definition.