def ciph
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/gcm.bend as Gcmimport Base
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/aes.bend as AES
88# CIPH_K on a 16-byte block.
89def ciph(+nk: Nat, +nr: Nat, +key: List<&2, U32>, +x: List<&2, U32>) -> List<&2, U32>:
90 AES.bytes_of(AES.encrypt(nk, nr, key, AES.state_of(x)))
Uses (6)
Used by (5)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/gcm:gctr
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/aead:kb
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/gcm:hash_key
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gcm:gctr_ok
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gcm:keystream_ok