type CmError

bend-osdev-cipher-modes@0.1.0.0 · cipher_modes.bend:24

import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as CipherModes
import Base

24# Every failure a mode can report
25type CmError is Data:
26  CmBadKeyLength{got: Nat}
27  CmBadIvLength{got: Nat}
28  CmBadTweakLength{got: Nat}
29  CmBadNonceLength{got: Nat}
30  CmBadTagLength{got: Nat}
31  CmBadBlockSize{got: Nat}
32  CmNotBlockMultiple{len: Nat}
33  CmTooShort{len: Nat}
34  CmTooLong{len: Nat}
35  CmBadPadding{}
36  CmTagMismatch{}

Uses (1)

Used by (129)