law chacha20poly1305.encrypt

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/aead/laws.bend:93

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aead/laws.bend as Laws
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aead.bend as A
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aead/chacha20poly1305.bend as CP

93# The per-algorithm checked ChaCha20-Poly1305 API agrees with the facade.
94law chacha20poly1305.encrypt:
95  for +key: List<&2, U32>
96  for +nonce: List<&2, U32>
97  for +aad: List<&2, U32>
98  for +pt: List<&2, U32>
99  {CP.encrypt(key, nonce, aad, pt) == A.encrypt(A.CHACHA20_POLY1305{}, key, nonce, aad, pt) : Maybe<&2, List<&2, U32>>}

Uses (9)

Used by (0)

No other definition uses this definition.