Data Fields
AESCTR_SegmentedOperation Struct Reference

Struct containing the parameters required for encrypting/decrypting a message using a segmented operation. This struct must be updated for each "add data" and "finalize" step. Modifying the structure and any buffers that it points to while an operation is in progress is prohibited. More...

#include <AESCTR.h>

Data Fields

const uint8_t * input
 
uint8_t * output
 
size_t inputLength
 

Detailed Description

Struct containing the parameters required for encrypting/decrypting a message using a segmented operation. This struct must be updated for each "add data" and "finalize" step. Modifying the structure and any buffers that it points to while an operation is in progress is prohibited.

The driver may access it at any point during the operation. It must remain in scope for the entire duration of the operation.

Field Documentation

§ input

const uint8_t* AESCTR_SegmentedOperation::input
  • Encryption: The plaintext buffer to be encrypted in the CTR operation.
  • Decryption: The ciphertext to be decrypted.

§ output

uint8_t* AESCTR_SegmentedOperation::output
  • Encryption: The output ciphertext buffer that the encrypted plaintext is copied to.
  • Decryption: The plaintext derived from the decrypted ciphertext is copied here. Size of the output buffer must be greater than or equal to the inputLength.

§ inputLength

size_t AESCTR_SegmentedOperation::inputLength

Length of the input in bytes. An equal number of bytes will be output by the operation. Must be a non-zero multiple of block size (16-bytes) when calling AESCTR_addData(). May be zero when calling AESCTR_finalize() to finalize a segmented operation without additional data.


The documentation for this struct was generated from the following file:
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale