Chacha20.chacha20: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend as Chacha20 Lines 150-153 of bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend&start_line=150&end_line=153 import Base # chacha20_encrypt(key, counter, nonce, plaintext) (encryption and decryption # are the same operation). def chacha20(+key_bytes: List<&2, U32>, counter: U32, +nonce_bytes: List<&2, U32>, +plaintext: List<&2, U32>) -> Maybe<&2, List<&2, U32>>: when(valid(key_bytes, nonce_bytes, 12n), encrypt_rounds(10n, key_bytes, counter, nonce_bytes, plaintext)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend&name=encrypt_rounds https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend&name=valid https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/chacha/chacha20.bend&name=when