Base cipher information. More...
#include <cipher.h>
Data Fields | |
| cipher_id_t | cipher |
| Base Cipher type (e.g. | |
| int(* | ecb_func )(void *ctx, operation_t mode, const unsigned char *input, unsigned char *output) |
| Encrypt using ECB. | |
| int(* | cbc_func )(void *ctx, operation_t mode, size_t length, unsigned char *iv, const unsigned char *input, unsigned char *output) |
| Encrypt using CBC. | |
| int(* | cfb_func )(void *ctx, operation_t mode, size_t length, size_t *iv_off, unsigned char *iv, const unsigned char *input, unsigned char *output) |
| Encrypt using CFB (Full length). | |
| int(* | ctr_func )(void *ctx, size_t length, size_t *nc_off, unsigned char *nonce_counter, unsigned char *stream_block, const unsigned char *input, unsigned char *output) |
| Encrypt using CTR. | |
| int(* | stream_func )(void *ctx, size_t length, const unsigned char *input, unsigned char *output) |
| Encrypt using STREAM. | |
| int(* | setkey_enc_func )(void *ctx, const unsigned char *key, unsigned int key_length) |
| Set key for encryption purposes. | |
| int(* | setkey_dec_func )(void *ctx, const unsigned char *key, unsigned int key_length) |
| Set key for decryption purposes. | |
| void *(* | ctx_alloc_func )(void) |
| Allocate a new context. | |
| void(* | ctx_free_func )(void *ctx) |
| Free the given context. | |
Base cipher information.
The non-mode specific functions and values.
Definition at line 165 of file cipher.h.
| int(* cipher_base_t::cbc_func)(void *ctx, operation_t mode, size_t length, unsigned char *iv, const unsigned char *input, unsigned char *output) |
Encrypt using CBC.
Referenced by cipher_finish(), and cipher_update().
| int(* cipher_base_t::cfb_func)(void *ctx, operation_t mode, size_t length, size_t *iv_off, unsigned char *iv, const unsigned char *input, unsigned char *output) |
Encrypt using CFB (Full length).
Referenced by cipher_update().
Base Cipher type (e.g.
POLARSSL_CIPHER_ID_AES)
Definition at line 168 of file cipher.h.
Referenced by cipher_info_from_values().
| int(* cipher_base_t::ctr_func)(void *ctx, size_t length, size_t *nc_off, unsigned char *nonce_counter, unsigned char *stream_block, const unsigned char *input, unsigned char *output) |
Encrypt using CTR.
Referenced by cipher_update().
| void*(* cipher_base_t::ctx_alloc_func)(void) |
Allocate a new context.
Referenced by cipher_init_ctx().
| void(* cipher_base_t::ctx_free_func)(void *ctx) |
Free the given context.
Referenced by cipher_free_ctx().
| int(* cipher_base_t::ecb_func)(void *ctx, operation_t mode, const unsigned char *input, unsigned char *output) |
Encrypt using ECB.
Referenced by cipher_update().
| int(* cipher_base_t::setkey_dec_func)(void *ctx, const unsigned char *key, unsigned int key_length) |
Set key for decryption purposes.
Referenced by cipher_setkey().
| int(* cipher_base_t::setkey_enc_func)(void *ctx, const unsigned char *key, unsigned int key_length) |
Set key for encryption purposes.
Referenced by cipher_setkey().
| int(* cipher_base_t::stream_func)(void *ctx, size_t length, const unsigned char *input, unsigned char *output) |
Encrypt using STREAM.
Referenced by cipher_update().
1.6.1