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.
Fork of OmniWheels by
mbedtls_cipher_base_t Struct Reference
Base cipher information. More...
#include <cipher_internal.h>
Data Fields | |
mbedtls_cipher_id_t | cipher |
Base Cipher type (e.g. | |
int(* | ecb_func )(void *ctx, mbedtls_operation_t mode, const unsigned char *input, unsigned char *output) |
Encrypt using ECB. | |
int(* | cbc_func )(void *ctx, mbedtls_operation_t mode, size_t length, unsigned char *iv, const unsigned char *input, unsigned char *output) |
Encrypt using CBC. | |
int(* | cfb_func )(void *ctx, mbedtls_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_bitlen) |
Set key for encryption purposes. | |
int(* | setkey_dec_func )(void *ctx, const unsigned char *key, unsigned int key_bitlen) |
Set key for decryption purposes. | |
void *(* | ctx_alloc_func )(void) |
Allocate a new context. | |
void(* | ctx_free_func )(void *ctx) |
Free the given context. |
Detailed Description
Base cipher information.
The non-mode specific functions and values.
Definition at line 44 of file cipher_internal.h.
Field Documentation
int(* cbc_func)(void *ctx, mbedtls_operation_t mode, size_t length, unsigned char *iv, const unsigned char *input, unsigned char *output) |
Encrypt using CBC.
Definition at line 55 of file cipher_internal.h.
int(* cfb_func)(void *ctx, mbedtls_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)
Definition at line 62 of file cipher_internal.h.
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.
Definition at line 69 of file cipher_internal.h.
void*(* ctx_alloc_func)(void) |
Allocate a new context.
Definition at line 89 of file cipher_internal.h.
void(* ctx_free_func)(void *ctx) |
Free the given context.
Definition at line 92 of file cipher_internal.h.
int(* ecb_func)(void *ctx, mbedtls_operation_t mode, const unsigned char *input, unsigned char *output) |
Encrypt using ECB.
Definition at line 50 of file cipher_internal.h.
int(* setkey_dec_func)(void *ctx, const unsigned char *key, unsigned int key_bitlen) |
Set key for decryption purposes.
Definition at line 85 of file cipher_internal.h.
int(* setkey_enc_func)(void *ctx, const unsigned char *key, unsigned int key_bitlen) |
Set key for encryption purposes.
Definition at line 81 of file cipher_internal.h.
int(* stream_func)(void *ctx, size_t length, const unsigned char *input, unsigned char *output) |
Encrypt using STREAM.
Definition at line 76 of file cipher_internal.h.
Generated on Fri Jul 22 2022 04:54:13 by
