32 #if defined(POLARSSL_CIPHER_C)
41 #if defined(POLARSSL_AES_C)
43 int aes_crypt_cbc_wrap(
void *ctx,
operation_t operation,
size_t length,
44 unsigned char *iv,
const unsigned char *input,
unsigned char *output )
49 int aes_crypt_cfb128_wrap(
void *ctx,
operation_t operation,
size_t length,
50 size_t *iv_off,
unsigned char *iv,
const unsigned char *input,
unsigned char *output )
52 #if defined(POLARSSL_CIPHER_MODE_CFB)
67 int aes_crypt_ctr_wrap(
void *ctx,
size_t length,
68 size_t *nc_off,
unsigned char *nonce_counter,
unsigned char *stream_block,
69 const unsigned char *input,
unsigned char *output )
71 #if defined(POLARSSL_CIPHER_MODE_CTR)
73 stream_block, input, output );
78 ((void) nonce_counter);
79 ((void) stream_block);
87 int aes_setkey_dec_wrap(
void *ctx,
const unsigned char *key,
unsigned int key_length )
92 int aes_setkey_enc_wrap(
void *ctx,
const unsigned char *key,
unsigned int key_length )
97 static void * aes_ctx_alloc(
void )
102 static void aes_ctx_free(
void *ctx )
110 aes_crypt_cfb128_wrap,
148 #if defined(POLARSSL_CIPHER_MODE_CFB)
180 #if defined(POLARSSL_CIPHER_MODE_CTR)
214 #if defined(POLARSSL_CAMELLIA_C)
216 int camellia_crypt_cbc_wrap(
void *ctx,
operation_t operation,
size_t length,
217 unsigned char *iv,
const unsigned char *input,
unsigned char *output )
222 int camellia_crypt_cfb128_wrap(
void *ctx,
operation_t operation,
size_t length,
223 size_t *iv_off,
unsigned char *iv,
const unsigned char *input,
unsigned char *output )
225 #if defined(POLARSSL_CIPHER_MODE_CFB)
240 int camellia_crypt_ctr_wrap(
void *ctx,
size_t length,
241 size_t *nc_off,
unsigned char *nonce_counter,
unsigned char *stream_block,
242 const unsigned char *input,
unsigned char *output )
244 #if defined(POLARSSL_CIPHER_MODE_CTR)
246 stream_block, input, output );
251 ((void) nonce_counter);
252 ((void) stream_block);
260 int camellia_setkey_dec_wrap(
void *ctx,
const unsigned char *key,
unsigned int key_length )
265 int camellia_setkey_enc_wrap(
void *ctx,
const unsigned char *key,
unsigned int key_length )
270 static void * camellia_ctx_alloc(
void )
275 static void camellia_ctx_free(
void *ctx )
282 camellia_crypt_cbc_wrap,
283 camellia_crypt_cfb128_wrap,
284 camellia_crypt_ctr_wrap,
285 camellia_setkey_enc_wrap,
286 camellia_setkey_dec_wrap,
321 #if defined(POLARSSL_CIPHER_MODE_CFB)
326 "CAMELLIA-128-CFB128",
336 "CAMELLIA-192-CFB128",
346 "CAMELLIA-256-CFB128",
353 #if defined(POLARSSL_CIPHER_MODE_CTR)
387 #if defined(POLARSSL_DES_C)
389 int des_crypt_cbc_wrap(
void *ctx,
operation_t operation,
size_t length,
390 unsigned char *iv,
const unsigned char *input,
unsigned char *output )
395 int des3_crypt_cbc_wrap(
void *ctx,
operation_t operation,
size_t length,
396 unsigned char *iv,
const unsigned char *input,
unsigned char *output )
401 int des_crypt_cfb128_wrap(
void *ctx,
operation_t operation,
size_t length,
402 size_t *iv_off,
unsigned char *iv,
const unsigned char *input,
unsigned char *output )
415 int des_crypt_ctr_wrap(
void *ctx,
size_t length,
416 size_t *nc_off,
unsigned char *nonce_counter,
unsigned char *stream_block,
417 const unsigned char *input,
unsigned char *output )
422 ((void) nonce_counter);
423 ((void) stream_block);
431 int des_setkey_dec_wrap(
void *ctx,
const unsigned char *key,
unsigned int key_length )
438 int des_setkey_enc_wrap(
void *ctx,
const unsigned char *key,
unsigned int key_length )
445 int des3_set2key_dec_wrap(
void *ctx,
const unsigned char *key,
unsigned int key_length )
452 int des3_set2key_enc_wrap(
void *ctx,
const unsigned char *key,
unsigned int key_length )
459 int des3_set3key_dec_wrap(
void *ctx,
const unsigned char *key,
unsigned int key_length )
466 int des3_set3key_enc_wrap(
void *ctx,
const unsigned char *key,
unsigned int key_length )
473 static void * des_ctx_alloc(
void )
478 static void * des3_ctx_alloc(
void )
483 static void des_ctx_free(
void *ctx )
491 des_crypt_cfb128_wrap,
512 des_crypt_cfb128_wrap,
514 des3_set2key_enc_wrap,
515 des3_set2key_dec_wrap,
533 des_crypt_cfb128_wrap,
535 des3_set3key_enc_wrap,
536 des3_set3key_dec_wrap,