law hchacha20.invalid

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

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

92law hchacha20.invalid:
93  for +key: List<&2, U32>
94  for +nonce: List<&2, U32>
95  for +h: {Bool.and(Nat.is_eq(List.length(&2, U32, key), 32n), Nat.is_eq(List.length(&2, U32, nonce), 16n)) == False{} : Bool}
96  {I.hchacha20(key, nonce) == None{} : Maybe<&2, List<&2, U32>>}

Uses (11)

Used by (0)

No other definition uses this definition.