#include <cipher_internal.h>
Public Attributes | |
| mbedtls_cipher_id_t | cipher |
| int(* | ecb_func )(void *ctx, mbedtls_operation_t mode, const unsigned char *input, unsigned char *output) |
| int(* | setkey_enc_func )(void *ctx, const unsigned char *key, unsigned int key_bitlen) |
| int(* | setkey_dec_func )(void *ctx, const unsigned char *key, unsigned int key_bitlen) |
| void *(* | ctx_alloc_func )(void) |
| void(* | ctx_free_func )(void *ctx) |
Base cipher information. The non-mode specific functions and values.
| mbedtls_cipher_id_t mbedtls_cipher_base_t::cipher |
Base Cipher type (e.g. MBEDTLS_CIPHER_ID_AES)
| void*(* mbedtls_cipher_base_t::ctx_alloc_func) (void) |
Allocate a new context
| void(* mbedtls_cipher_base_t::ctx_free_func) (void *ctx) |
Free the given context
| int(* mbedtls_cipher_base_t::ecb_func) (void *ctx, mbedtls_operation_t mode, const unsigned char *input, unsigned char *output) |
Encrypt using ECB
| int(* mbedtls_cipher_base_t::setkey_dec_func) (void *ctx, const unsigned char *key, unsigned int key_bitlen) |
Set key for decryption purposes
| int(* mbedtls_cipher_base_t::setkey_enc_func) (void *ctx, const unsigned char *key, unsigned int key_bitlen) |
Set key for encryption purposes