Data Fields
AESECB_Operation Struct Reference

Struct containing the parameters required for encrypting/decrypting and a message. More...

#include <AESECB.h>

Collaboration diagram for AESECB_Operation:
Collaboration graph
[legend]

Data Fields

CryptoKeykey
 
uint8_t * input
 
uint8_t * output
 
size_t inputLength
 

Detailed Description

Struct containing the parameters required for encrypting/decrypting and a message.

Field Documentation

§ key

CryptoKey* AESECB_Operation::key

A previously initialized CryptoKey.

Note
: Required for one-step operations only. For segmented operations, this pointer is not used and may be left uninitialized or set to NULL.

§ input

uint8_t* AESECB_Operation::input
  • Encryption: A pointer to the plaintext buffer.
  • Decryption: A pointer to the ciphertext buffer.

Both input and output buffers should be of the size inputLength in bytes each.

§ output

uint8_t* AESECB_Operation::output
  • Encryption: A pointer to the buffer to store the resulting ciphertext.
  • Decryption: A pointer to the buffer to store the resulting plaintext.

Both input and output buffers should be of the size inputLength in bytes each.

§ inputLength

size_t AESECB_Operation::inputLength
  • One-step operation: Total length of the input in bytes.
  • Multi-step / Segmented operation: Length of the input in bytes for that AESECB_addData() or AESECB_finalize() call.

The output will be the same length as the input. Max length supported may be limited depending on the return behavior.

Must be a non-zero multiple of AES block size (16 bytes). May be 0 only when calling AESECB_finalize() to finalize a multi-step operation without additional data. The user or application should take care of any necessary padding.


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