def poly_key

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/chacha20poly1305.bend:14

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha20poly1305.bend as Chacha20poly1305
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha.bend as CH

14# 2.6 poly1305_key_gen: the first 32 bytes of the block with counter 0.
15def poly_key(+key: List<&2, U32>, +nonce: List<&2, U32>) -> List<&2, U32>:
16  CH.prefix(32n, CH.block(key, 0, nonce))

Uses (4)

Used by (4)