Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
mbedtls_cipher_context_t Struct Reference
Generic cipher context. More...
#include <cipher.h>
| Data Fields | |
| const mbedtls_cipher_info_t * | cipher_info | 
| Information about the associated cipher. | |
| int | key_bitlen | 
| Key length to use. | |
| mbedtls_operation_t | operation | 
| Operation that the key of the context has been initialized for. | |
| void(* | add_padding )(unsigned char *output, size_t olen, size_t data_len) | 
| Padding functions to use, if relevant for the specific cipher mode. | |
| unsigned char | unprocessed_data [MBEDTLS_MAX_BLOCK_LENGTH] | 
| Buffer for input that has not been processed yet. | |
| size_t | unprocessed_len | 
| Number of Bytes that have not been processed yet. | |
| unsigned char | iv [MBEDTLS_MAX_IV_LENGTH] | 
| Current IV or NONCE_COUNTER for CTR-mode, data unit (or sector) number for XTS-mode. | |
| size_t | iv_size | 
| IV size in Bytes, for ciphers with variable-length IVs. | |
| void * | cipher_ctx | 
| The cipher-specific context. | |
| mbedtls_cmac_context_t * | cmac_ctx | 
| CMAC-specific context. | |
| unsigned char | psa_enabled | 
| Indicates whether the cipher operations should be performed by Mbed TLS' own crypto library or an external implementation of the PSA Crypto API. | |
Detailed Description
Generic cipher context.
Definition at line 292 of file cipher.h.
Field Documentation
| void(* add_padding)(unsigned char *output, size_t olen, size_t data_len) | 
| void* cipher_ctx | 
| const mbedtls_cipher_info_t* cipher_info | 
| unsigned char iv[MBEDTLS_MAX_IV_LENGTH] | 
| size_t iv_size | 
| int key_bitlen | 
| unsigned char psa_enabled | 
Indicates whether the cipher operations should be performed by Mbed TLS' own crypto library or an external implementation of the PSA Crypto API.
This is unset if the cipher context was established through mbedtls_cipher_setup(), and set if it was established through mbedtls_cipher_setup_psa().
| unsigned char unprocessed_data[MBEDTLS_MAX_BLOCK_LENGTH] | 
| size_t unprocessed_len | 
Generated on Tue Jul 12 2022 13:55:33 by
 1.7.2
 1.7.2