Documentation ¶
Index ¶
Constants ¶
View Source
const CbcMacBlockSize = 16
CbcMacBlockSize is the block size of the CBC-MAC implementation.
Variables ¶
View Source
var ( // ErrInvalidBlockSize indicates that the cipher blockCipher passed in NewCCMWithNonceAndTagSizes // is not CbcMacBlockSize. ErrInvalidBlockSize = errors.New("cipher: CCM mode requires 128-bit block") // ErrInvalidNonceSize indicates that the nonce size is invalid. ErrInvalidNonceSize = errors.New("cipher: invalid nonce size for CCM mode") // ErrInvalidTagSize indicates that the tag size is invalid. ErrInvalidTagSize = errors.New("cipher: invalid tag size for CCM mode") // ErrMaxPayloadSizeReached indicates that the max payload size has been reached. ErrMaxPayloadSizeReached = errors.New("cipher: max payload size reached for CCM mode") // ErrAuthenticationFailed indicates that verifying the integrity of the decrypted message failed. ErrAuthenticationFailed = errors.New("cipher: authentication failed for CCM mode") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.