51#ifndef MBEDTLS_CIPHER_WRAP_H
52#define MBEDTLS_CIPHER_WRAP_H
54#if !defined(MBEDTLS_CONFIG_FILE)
57#include MBEDTLS_CONFIG_FILE
76 const unsigned char *
input,
unsigned char *output );
78#if defined(MBEDTLS_CIPHER_MODE_CBC)
81 unsigned char *iv,
const unsigned char *
input,
82 unsigned char *output );
85#if defined(MBEDTLS_CIPHER_MODE_CFB)
88 unsigned char *iv,
const unsigned char *
input,
89 unsigned char *output );
92#if defined(MBEDTLS_CIPHER_MODE_OFB)
96 const unsigned char *
input,
97 unsigned char *output );
100#if defined(MBEDTLS_CIPHER_MODE_CTR)
103 unsigned char *nonce_counter,
unsigned char *stream_block,
104 const unsigned char *
input,
unsigned char *output );
107#if defined(MBEDTLS_CIPHER_MODE_XTS)
110 const unsigned char data_unit[16],
111 const unsigned char *
input,
unsigned char *output );
114#if defined(MBEDTLS_CIPHER_MODE_STREAM)
117 const unsigned char *
input,
unsigned char *output );
122 unsigned int key_bitlen );
126 unsigned int key_bitlen);
129 void * (*ctx_alloc_func)(
void );
This file contains an abstraction interface for use with the cipher primitives provided by the librar...
mbedtls_cipher_type_t
Supported {cipher type, cipher mode} pairs.
mbedtls_cipher_id_t
Supported cipher types.
const mbedtls_cipher_definition_t mbedtls_cipher_definitions[]
int mbedtls_cipher_supported[]
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLuint GLsizei GLsizei * length
GLenum GLenum GLenum input
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)
mbedtls_cipher_id_t cipher
int(* cbc_func)(void *ctx, mbedtls_operation_t mode, size_t length, 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(* 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(* 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(* setkey_dec_func)(void *ctx, const unsigned char *key, unsigned int key_bitlen)
int(* ecb_func)(void *ctx, mbedtls_operation_t mode, const unsigned char *input, unsigned char *output)
void(* ctx_free_func)(void *ctx)
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)
mbedtls_cipher_type_t type
const mbedtls_cipher_info_t * info