Struct containing the parameters required for encrypting/decrypting and authenticating/verifying a message.
More...
#include <AESCCM.h>
Struct containing the parameters required for encrypting/decrypting and authenticating/verifying a message.
§ key
A previously initialized CryptoKey
§ aad
| uint8_t* AESCCM_Operation_::aad |
A buffer of length aadLength containing additional authentication data to be authenticated/verified but not encrypted/decrypted.
§ input
| uint8_t* AESCCM_Operation_::input |
- Encryption: The plaintext buffer to be encrypted and authenticated in the CCM operation.
- Decryption: The ciphertext to be decrypted and verified.
§ output
| uint8_t* AESCCM_Operation_::output |
- Encryption: The output ciphertext buffer that the encrypted plaintext is copied to.
- Decryption: The plaintext derived from the decrypted and verified ciphertext is copied here.
§ nonce
| uint8_t* AESCCM_Operation_::nonce |
A buffer containing a nonce. Nonces must be unique to each CCM operation and may not be reused. If nonceInternallyGenerated is set the nonce will be generated by this function call and copied to this buffer.
§ mac
| uint8_t* AESCCM_Operation_::mac |
- Encryption: The buffer where the message authentication code is copied.
- Decryption: The buffer containing the received message authentication code.
§ aadLength
| size_t AESCCM_Operation_::aadLength |
Length of aad in bytes. Either aadLength or plaintextLength must benon-zero. encrypted.
§ inputLength
| size_t AESCCM_Operation_::inputLength |
Length of the input and output in bytes. Either aadLength or inputLength must be non-zero.
§ nonceLength
| uint8_t AESCCM_Operation_::nonceLength |
Length of nonce in bytes. Valid nonce lengths are [7, 8, ... 13].
§ macLength
| uint8_t AESCCM_Operation_::macLength |
Length of mac in bytes. Valid MAC lengths are [0, 1, ... 16].
§ nonceInternallyGenerated
| bool AESCCM_Operation_::nonceInternallyGenerated |
When true, the nonce buffer passed into the AESCCM_setupEncrypt() and AESCCM_oneStepEncrypt() functions will be overwritten with a randomly generated nonce.
The documentation for this struct was generated from the following file: