def encrypt_ct

bend-collections@1.0.0.0 · src/crypto/aead/chacha20poly1305.bend:41

import bend-collections@1.0.0.0/src/crypto/aead/chacha20poly1305.bend as Chacha20poly1305
import Base
import bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend as CH

41# chacha20_encrypt(key, 1, nonce, plaintext).
42def encrypt_ct(key: List<&2, U32>, nonce: List<&2, U32>, +pt: List<&2, U32>) -> List<&2, U32>:
43  CH.encrypt_rounds(10n, key, 1, nonce, pt)

Uses (3)

Used by (1)