nn::crypto::CcmDecryptor Classclass CcmDecryptor : public nn::crypto::AuthenticatedDecryptor
Class for decrypting and verifying in CCM mode.
CCM uses the cipher mode with verification stipulated by NIST SP 800-38C. When implementing this class, use the methods described in Appendix A of the above documentation for the input value format and counter value generation function.
CCM mode only supports block ciphers with block lengths of 128 bits.
| S |
BLOCK_SIZE
|
const size_t | Constant representing the block size. |
|---|---|---|---|
| S |
IV_SIZE
|
const size_t | Constant representing the maximum IV size. |
| S |
UNIT_SIZE
|
const size_t | Constant representing the processing unit size. |
| S |
MAC_SIZE
|
const size_t | Constant representing the maximum MAC size. |
Initialize
|
Initializes decryption in CCM mode. | |
|---|---|---|
| V |
Finalize
|
Finalizes decryption in CCM mode. |
| V |
GetIvSize
|
Gets the IV size. |
| V |
GetUnitSize
|
Gets the processing unit size. |
| V |
GetMacSize
|
Gets the MAC size. |
| V |
UpdateAdata
|
Specifies the Adata. |
| V |
UpdateAdataFinal
|
Finalizes Adata specification. |
| V |
UpdateCdata
|
Specifies the Cdata and gets the decryption result. |
| V |
UpdateCdataFinal
|
Finalizes Cdata specification. |
| V |
GenerateMac
|
Generates an MAC. |
| S |
DecryptAndVerify
|
Handles batch decryption and verification when in CTR mode. |
nn::crypto::CipherMode
nn::crypto::AuthenticatedDecryptor
nn::crypto::CcmDecryptor
CONFIDENTIAL