law aes256gcm_rejects_wrong_nonce_length

qasim-bend-kit@0.1.0.2 · LAWS.bend:307

import qasim-bend-kit@0.1.0.2/LAWS.bend as LAWS
import Base
import qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend as AES

307law aes256gcm_rejects_wrong_nonce_length:
308    for +bytes: List<&2, U32>
309    for size: {List.length(&2, U32, bytes) != 12n : Nat}
310    {AES.nonce(bytes) == Fail{AES.InvalidNonce{}} :
311        Result<&2, &2, AES.Error, AES.Nonce>}

Uses (18)

Used by (0)

No other definition uses this definition.