law xchacha20.invalid

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

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

107law xchacha20.invalid:
108  for +key: List<&2, U32>
109  for +counter: U32
110  for +nonce: List<&2, U32>
111  for +plaintext: List<&2, U32>
112  for +h: {Bool.and(Nat.is_eq(List.length(&2, U32, key), 32n), Nat.is_eq(List.length(&2, U32, nonce), 24n)) == False{} : Bool}
113  {I.xchacha20(key, counter, nonce, plaintext) == None{} : Maybe<&2, List<&2, U32>>}

Uses (11)

Used by (0)

No other definition uses this definition.