NCBI C++ ToolKit
Public Attributes | List of all members
mbedtls_cipher_base_t Struct Reference

Search Toolkit Book for mbedtls_cipher_base_t

Base cipher information. More...

#include "cipher_internal.h"
(Private to src/connect/mbedtls/mbedtls.)

Public Attributes

mbedtls_cipher_id_t cipher
 Base Cipher type (e.g. More...
 
int(* ecb_func )(void *ctx, mbedtls_operation_t mode, const unsigned char *input, unsigned char *output)
 Encrypt using ECB. More...
 
int(* setkey_enc_func )(void *ctx, const unsigned char *key, unsigned int key_bitlen)
 Set key for encryption purposes. More...
 
int(* setkey_dec_func )(void *ctx, const unsigned char *key, unsigned int key_bitlen)
 Set key for decryption purposes. More...
 
void *(* ctx_alloc_func )(void)
 Allocate a new context. More...
 
void(* ctx_free_func )(void *ctx)
 Free the given context. More...
 

Detailed Description

Base cipher information.

The non-mode specific functions and values.

Definition at line 34 of file cipher_internal.h.

Member Data Documentation

◆ cipher

mbedtls_cipher_id_t mbedtls_cipher_base_t::cipher

Base Cipher type (e.g.

MBEDTLS_CIPHER_ID_AES)

Definition at line 36 of file cipher_internal.h.

Referenced by mbedtls_cipher_info_from_values_ncbicxx_2_28_8().

◆ ctx_alloc_func

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

Allocate a new context.

Definition at line 93 of file cipher_internal.h.

Referenced by mbedtls_cipher_setup_ncbicxx_2_28_8().

◆ ctx_free_func

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

Free the given context.

Definition at line 96 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 39 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 89 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 85 of file cipher_internal.h.


The documentation for this struct was generated from the following file:
Modified on Wed Apr 17 13:10:30 2024 by modify_doxy.py rev. 669887