ReactOS  0.4.15-dev-3723-g8d70159
mbedtls_cipher_base_t Struct Reference

#include <cipher_internal.h>

Collaboration diagram for mbedtls_cipher_base_t:

Public Attributes

mbedtls_cipher_id_t cipher
 
int(* ecb_func )(void *ctx, mbedtls_operation_t mode, const unsigned char *input, unsigned char *output)
 
int(* cbc_func )(void *ctx, mbedtls_operation_t mode, size_t length, unsigned char *iv, const unsigned char *input, unsigned char *output)
 
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)
 
int(* ofb_func )(void *ctx, size_t length, size_t *iv_off, unsigned char *iv, const unsigned char *input, unsigned char *output)
 
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)
 
int(* xts_func )(void *ctx, mbedtls_operation_t mode, size_t length, const unsigned char data_unit[16], const unsigned char *input, unsigned char *output)
 
int(* stream_func )(void *ctx, size_t length, 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)
 

Detailed Description

Base cipher information. The non-mode specific functions and values.

Definition at line 69 of file cipher_internal.h.

Member Data Documentation

◆ cbc_func

int(* mbedtls_cipher_base_t::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 80 of file cipher_internal.h.

◆ cfb_func

int(* mbedtls_cipher_base_t::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 87 of file cipher_internal.h.

◆ cipher

mbedtls_cipher_id_t mbedtls_cipher_base_t::cipher

Base Cipher type (e.g. MBEDTLS_CIPHER_ID_AES)

Definition at line 72 of file cipher_internal.h.

◆ ctr_func

int(* mbedtls_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

Definition at line 102 of file cipher_internal.h.

◆ ctx_alloc_func

void*(* mbedtls_cipher_base_t::ctx_alloc_func) (void)

Allocate a new context

Definition at line 129 of file cipher_internal.h.

◆ ctx_free_func

void(* mbedtls_cipher_base_t::ctx_free_func) (void *ctx)

Free the given context

Definition at line 132 of file cipher_internal.h.

◆ ecb_func

int(* mbedtls_cipher_base_t::ecb_func) (void *ctx, mbedtls_operation_t mode, const unsigned char *input, unsigned char *output)

Encrypt using ECB

Definition at line 75 of file cipher_internal.h.

◆ ofb_func

int(* mbedtls_cipher_base_t::ofb_func) (void *ctx, size_t length, size_t *iv_off, unsigned char *iv, const unsigned char *input, unsigned char *output)

Encrypt using OFB (Full length)

Definition at line 94 of file cipher_internal.h.

◆ setkey_dec_func

int(* mbedtls_cipher_base_t::setkey_dec_func) (void *ctx, const unsigned char *key, unsigned int key_bitlen)

Set key for decryption purposes

Definition at line 125 of file cipher_internal.h.

◆ setkey_enc_func

int(* mbedtls_cipher_base_t::setkey_enc_func) (void *ctx, const unsigned char *key, unsigned int key_bitlen)

Set key for encryption purposes

Definition at line 121 of file cipher_internal.h.

◆ stream_func

int(* mbedtls_cipher_base_t::stream_func) (void *ctx, size_t length, const unsigned char *input, unsigned char *output)

Encrypt using STREAM

Definition at line 116 of file cipher_internal.h.

◆ xts_func

int(* mbedtls_cipher_base_t::xts_func) (void *ctx, mbedtls_operation_t mode, size_t length, const unsigned char data_unit[16], const unsigned char *input, unsigned char *output)

Encrypt or decrypt using XTS.

Definition at line 109 of file cipher_internal.h.


The documentation for this struct was generated from the following file: