law chacha20.invalid

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/chacha/laws.bend:77

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/laws.bend as Laws
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/chacha/chacha20.bend as I

77law chacha20.invalid:
78  for +key: List<&2, U32>
79  for +counter: U32
80  for +nonce: List<&2, U32>
81  for +plaintext: List<&2, U32>
82  for +h: {Bool.and(Nat.is_eq(List.length(&2, U32, key), 32n), Nat.is_eq(List.length(&2, U32, nonce), 12n)) == False{} : Bool}
83  {I.chacha20(key, counter, nonce, plaintext) == None{} : Maybe<&2, List<&2, U32>>}

Uses (11)

Used by (0)

No other definition uses this definition.