![]() |
nRF5 SDK for Thread and Zigbee v1.0.0
|
Choose documentation: | nRF5 SDK | S112 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API |
#include <cipher.h>
Data Fields | |
const mbedtls_cipher_info_t * | cipher_info |
int | key_bitlen |
mbedtls_operation_t | operation |
void(* | add_padding )(unsigned char *output, size_t olen, size_t data_len) |
int(* | get_padding )(unsigned char *input, size_t ilen, size_t *data_len) |
unsigned char | unprocessed_data [MBEDTLS_MAX_BLOCK_LENGTH] |
size_t | unprocessed_len |
unsigned char | iv [MBEDTLS_MAX_IV_LENGTH] |
size_t | iv_size |
void * | cipher_ctx |
Generic cipher context.
void(* mbedtls_cipher_context_t::add_padding)(unsigned char *output, size_t olen, size_t data_len) |
Padding functions to use, if relevant for the specific cipher mode.
void* mbedtls_cipher_context_t::cipher_ctx |
The cipher-specific context.
const mbedtls_cipher_info_t* mbedtls_cipher_context_t::cipher_info |
Information about the associated cipher.
unsigned char mbedtls_cipher_context_t::iv[MBEDTLS_MAX_IV_LENGTH] |
Current IV or NONCE_COUNTER for CTR-mode.
size_t mbedtls_cipher_context_t::iv_size |
IV size in Bytes, for ciphers with variable-length IVs.
int mbedtls_cipher_context_t::key_bitlen |
Key length to use.
mbedtls_operation_t mbedtls_cipher_context_t::operation |
Operation that the key of the context has been initialized for.
unsigned char mbedtls_cipher_context_t::unprocessed_data[MBEDTLS_MAX_BLOCK_LENGTH] |
Buffer for input that has not been processed yet.
size_t mbedtls_cipher_context_t::unprocessed_len |
Number of Bytes that have not been processed yet.