law Api256.bad_key
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/laws.bend as Lawsimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aesgcm.bend as GCM
416# A key of another length is rejected.
417law Api256.bad_key:
418 for +key: List<&2, U32>
419 for +h: {Nat.is_eq(List.length(&2, U32, key), 32n) == False{} : Bool}
420 for +nonce: List<&2, U32>
421 for +aad: List<&2, U32>
422 for +pt: List<&2, U32>
423 {GCM.aes256_gcm_encrypt(key, nonce, aad, pt) == None{} : Maybe<&2, List<&2, U32>>}
Uses (10)
Used by (0)
No other definition uses this definition.