cipher_wrap.c File Reference

Generic cipher wrapper for PolarSSL. More...

#include "polarssl/config.h"
#include "polarssl/cipher_wrap.h"
#include "polarssl/aes.h"
#include "polarssl/arc4.h"
#include "polarssl/camellia.h"
#include "polarssl/des.h"
#include "polarssl/blowfish.h"
#include "polarssl/gcm.h"
#include <stdlib.h>
Include dependency graph for cipher_wrap.c:

Go to the source code of this file.

Defines

#define polarssl_malloc   malloc
#define polarssl_free   free
#define NUM_CIPHERS   sizeof cipher_definitions / sizeof cipher_definitions[0]

Functions

static void * gcm_ctx_alloc (void)
static void gcm_ctx_free (void *ctx)
static int aes_crypt_ecb_wrap (void *ctx, operation_t operation, const unsigned char *input, unsigned char *output)
static int aes_crypt_cbc_wrap (void *ctx, operation_t operation, size_t length, unsigned char *iv, const unsigned char *input, unsigned char *output)
static int aes_crypt_cfb128_wrap (void *ctx, operation_t operation, size_t length, size_t *iv_off, unsigned char *iv, const unsigned char *input, unsigned char *output)
static int aes_crypt_ctr_wrap (void *ctx, size_t length, size_t *nc_off, unsigned char *nonce_counter, unsigned char *stream_block, const unsigned char *input, unsigned char *output)
static int aes_setkey_dec_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static int aes_setkey_enc_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static void * aes_ctx_alloc (void)
static void aes_ctx_free (void *ctx)
static int gcm_aes_setkey_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static int camellia_crypt_ecb_wrap (void *ctx, operation_t operation, const unsigned char *input, unsigned char *output)
static int camellia_crypt_cbc_wrap (void *ctx, operation_t operation, size_t length, unsigned char *iv, const unsigned char *input, unsigned char *output)
static int camellia_crypt_cfb128_wrap (void *ctx, operation_t operation, size_t length, size_t *iv_off, unsigned char *iv, const unsigned char *input, unsigned char *output)
static int camellia_crypt_ctr_wrap (void *ctx, size_t length, size_t *nc_off, unsigned char *nonce_counter, unsigned char *stream_block, const unsigned char *input, unsigned char *output)
static int camellia_setkey_dec_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static int camellia_setkey_enc_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static void * camellia_ctx_alloc (void)
static void camellia_ctx_free (void *ctx)
static int gcm_camellia_setkey_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static int des_crypt_ecb_wrap (void *ctx, operation_t operation, const unsigned char *input, unsigned char *output)
static int des3_crypt_ecb_wrap (void *ctx, operation_t operation, const unsigned char *input, unsigned char *output)
static int des_crypt_cbc_wrap (void *ctx, operation_t operation, size_t length, unsigned char *iv, const unsigned char *input, unsigned char *output)
static int des3_crypt_cbc_wrap (void *ctx, operation_t operation, size_t length, unsigned char *iv, const unsigned char *input, unsigned char *output)
static int des_crypt_cfb128_wrap (void *ctx, operation_t operation, size_t length, size_t *iv_off, unsigned char *iv, const unsigned char *input, unsigned char *output)
static int des_crypt_ctr_wrap (void *ctx, size_t length, size_t *nc_off, unsigned char *nonce_counter, unsigned char *stream_block, const unsigned char *input, unsigned char *output)
static int des_setkey_dec_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static int des_setkey_enc_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static int des3_set2key_dec_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static int des3_set2key_enc_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static int des3_set3key_dec_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static int des3_set3key_enc_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static void * des_ctx_alloc (void)
static void * des3_ctx_alloc (void)
static void des_ctx_free (void *ctx)
static int blowfish_crypt_ecb_wrap (void *ctx, operation_t operation, const unsigned char *input, unsigned char *output)
static int blowfish_crypt_cbc_wrap (void *ctx, operation_t operation, size_t length, unsigned char *iv, const unsigned char *input, unsigned char *output)
static int blowfish_crypt_cfb64_wrap (void *ctx, operation_t operation, size_t length, size_t *iv_off, unsigned char *iv, const unsigned char *input, unsigned char *output)
static int blowfish_crypt_ctr_wrap (void *ctx, size_t length, size_t *nc_off, unsigned char *nonce_counter, unsigned char *stream_block, const unsigned char *input, unsigned char *output)
static int blowfish_setkey_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static void * blowfish_ctx_alloc (void)
static void blowfish_ctx_free (void *ctx)
static int arc4_crypt_stream_wrap (void *ctx, size_t length, const unsigned char *input, unsigned char *output)
static int arc4_setkey_wrap (void *ctx, const unsigned char *key, unsigned int key_length)
static void * arc4_ctx_alloc (void)
static void arc4_ctx_free (void *ctx)

Variables

const cipher_base_t aes_info
const cipher_info_t aes_128_ecb_info
const cipher_info_t aes_192_ecb_info
const cipher_info_t aes_256_ecb_info
const cipher_info_t aes_128_cbc_info
const cipher_info_t aes_192_cbc_info
const cipher_info_t aes_256_cbc_info
const cipher_info_t aes_128_cfb128_info
const cipher_info_t aes_192_cfb128_info
const cipher_info_t aes_256_cfb128_info
const cipher_info_t aes_128_ctr_info
const cipher_info_t aes_192_ctr_info
const cipher_info_t aes_256_ctr_info
const cipher_base_t gcm_aes_info
const cipher_info_t aes_128_gcm_info
const cipher_info_t aes_192_gcm_info
const cipher_info_t aes_256_gcm_info
const cipher_base_t camellia_info
const cipher_info_t camellia_128_ecb_info
const cipher_info_t camellia_192_ecb_info
const cipher_info_t camellia_256_ecb_info
const cipher_info_t camellia_128_cbc_info
const cipher_info_t camellia_192_cbc_info
const cipher_info_t camellia_256_cbc_info
const cipher_info_t camellia_128_cfb128_info
const cipher_info_t camellia_192_cfb128_info
const cipher_info_t camellia_256_cfb128_info
const cipher_info_t camellia_128_ctr_info
const cipher_info_t camellia_192_ctr_info
const cipher_info_t camellia_256_ctr_info
const cipher_base_t gcm_camellia_info
const cipher_info_t camellia_128_gcm_info
const cipher_info_t camellia_192_gcm_info
const cipher_info_t camellia_256_gcm_info
const cipher_base_t des_info
const cipher_info_t des_ecb_info
const cipher_info_t des_cbc_info
const cipher_base_t des_ede_info
const cipher_info_t des_ede_ecb_info
const cipher_info_t des_ede_cbc_info
const cipher_base_t des_ede3_info
const cipher_info_t des_ede3_ecb_info
const cipher_info_t des_ede3_cbc_info
const cipher_base_t blowfish_info
const cipher_info_t blowfish_ecb_info
const cipher_info_t blowfish_cbc_info
const cipher_info_t blowfish_cfb64_info
const cipher_info_t blowfish_ctr_info
const cipher_base_t arc4_base_info
const cipher_info_t arc4_128_info
const cipher_definition_t cipher_definitions []
int supported_ciphers [NUM_CIPHERS]

Detailed Description

Generic cipher wrapper for PolarSSL.

Author:
Adriaan de Jong <dejong@fox-it.com>

Copyright (C) 2006-2013, Brainspark B.V.

This file is part of PolarSSL (http://www.polarssl.org) Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>

All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Definition in file cipher_wrap.c.


Define Documentation

#define NUM_CIPHERS   sizeof cipher_definitions / sizeof cipher_definitions[0]

Definition at line 1250 of file cipher_wrap.c.

#define polarssl_free   free

Definition at line 64 of file cipher_wrap.c.

#define polarssl_malloc   malloc

Definition at line 63 of file cipher_wrap.c.


Function Documentation

static int aes_crypt_cbc_wrap ( void *  ctx,
operation_t  operation,
size_t  length,
unsigned char *  iv,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 91 of file cipher_wrap.c.

References aes_crypt_cbc(), and POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE.

static int aes_crypt_cfb128_wrap ( void *  ctx,
operation_t  operation,
size_t  length,
size_t *  iv_off,
unsigned char *  iv,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 108 of file cipher_wrap.c.

References aes_crypt_cfb128(), and POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE.

static int aes_crypt_ctr_wrap ( void *  ctx,
size_t  length,
size_t *  nc_off,
unsigned char *  nonce_counter,
unsigned char *  stream_block,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 126 of file cipher_wrap.c.

References aes_crypt_ctr(), and POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE.

static int aes_crypt_ecb_wrap ( void *  ctx,
operation_t  operation,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 85 of file cipher_wrap.c.

References aes_crypt_ecb().

static void* aes_ctx_alloc ( void   )  [static]

Definition at line 156 of file cipher_wrap.c.

References polarssl_malloc.

static void aes_ctx_free ( void *  ctx  )  [static]

Definition at line 161 of file cipher_wrap.c.

References polarssl_free.

static int aes_setkey_dec_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 146 of file cipher_wrap.c.

References aes_setkey_dec().

static int aes_setkey_enc_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 151 of file cipher_wrap.c.

References aes_setkey_enc().

static int arc4_crypt_stream_wrap ( void *  ctx,
size_t  length,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 1053 of file cipher_wrap.c.

References arc4_crypt().

static void* arc4_ctx_alloc ( void   )  [static]

Definition at line 1071 of file cipher_wrap.c.

References polarssl_malloc.

static void arc4_ctx_free ( void *  ctx  )  [static]

Definition at line 1076 of file cipher_wrap.c.

References polarssl_free.

static int arc4_setkey_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 1060 of file cipher_wrap.c.

References arc4_setup(), and POLARSSL_ERR_CIPHER_BAD_INPUT_DATA.

static int blowfish_crypt_cbc_wrap ( void *  ctx,
operation_t  operation,
size_t  length,
unsigned char *  iv,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 918 of file cipher_wrap.c.

References blowfish_crypt_cbc(), and POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE.

static int blowfish_crypt_cfb64_wrap ( void *  ctx,
operation_t  operation,
size_t  length,
size_t *  iv_off,
unsigned char *  iv,
const unsigned char *  input,
unsigned char *  output 
) [static]
static int blowfish_crypt_ctr_wrap ( void *  ctx,
size_t  length,
size_t *  nc_off,
unsigned char *  nonce_counter,
unsigned char *  stream_block,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 953 of file cipher_wrap.c.

References blowfish_crypt_ctr(), and POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE.

static int blowfish_crypt_ecb_wrap ( void *  ctx,
operation_t  operation,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 912 of file cipher_wrap.c.

References blowfish_crypt_ecb().

static void* blowfish_ctx_alloc ( void   )  [static]

Definition at line 978 of file cipher_wrap.c.

References polarssl_malloc.

static void blowfish_ctx_free ( void *  ctx  )  [static]

Definition at line 983 of file cipher_wrap.c.

References polarssl_free.

static int blowfish_setkey_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 973 of file cipher_wrap.c.

References blowfish_setkey().

static int camellia_crypt_cbc_wrap ( void *  ctx,
operation_t  operation,
size_t  length,
unsigned char *  iv,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 381 of file cipher_wrap.c.

References camellia_crypt_cbc(), and POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE.

static int camellia_crypt_cfb128_wrap ( void *  ctx,
operation_t  operation,
size_t  length,
size_t *  iv_off,
unsigned char *  iv,
const unsigned char *  input,
unsigned char *  output 
) [static]
static int camellia_crypt_ctr_wrap ( void *  ctx,
size_t  length,
size_t *  nc_off,
unsigned char *  nonce_counter,
unsigned char *  stream_block,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 416 of file cipher_wrap.c.

References camellia_crypt_ctr(), and POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE.

static int camellia_crypt_ecb_wrap ( void *  ctx,
operation_t  operation,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 375 of file cipher_wrap.c.

References camellia_crypt_ecb().

static void* camellia_ctx_alloc ( void   )  [static]

Definition at line 446 of file cipher_wrap.c.

References polarssl_malloc.

static void camellia_ctx_free ( void *  ctx  )  [static]

Definition at line 451 of file cipher_wrap.c.

References polarssl_free.

static int camellia_setkey_dec_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 436 of file cipher_wrap.c.

References camellia_setkey_dec().

static int camellia_setkey_enc_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 441 of file cipher_wrap.c.

References camellia_setkey_enc().

static int des3_crypt_cbc_wrap ( void *  ctx,
operation_t  operation,
size_t  length,
unsigned char *  iv,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 696 of file cipher_wrap.c.

References des3_crypt_cbc(), and POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE.

static int des3_crypt_ecb_wrap ( void *  ctx,
operation_t  operation,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 672 of file cipher_wrap.c.

References des3_crypt_ecb().

static void* des3_ctx_alloc ( void   )  [static]

Definition at line 789 of file cipher_wrap.c.

References polarssl_malloc.

static int des3_set2key_dec_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 756 of file cipher_wrap.c.

References des3_set2key_dec().

static int des3_set2key_enc_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 763 of file cipher_wrap.c.

References des3_set2key_enc().

static int des3_set3key_dec_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 770 of file cipher_wrap.c.

References des3_set3key_dec().

static int des3_set3key_enc_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 777 of file cipher_wrap.c.

References des3_set3key_enc().

static int des_crypt_cbc_wrap ( void *  ctx,
operation_t  operation,
size_t  length,
unsigned char *  iv,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 679 of file cipher_wrap.c.

References des_crypt_cbc(), and POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE.

static int des_crypt_cfb128_wrap ( void *  ctx,
operation_t  operation,
size_t  length,
size_t *  iv_off,
unsigned char *  iv,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 713 of file cipher_wrap.c.

References POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE.

static int des_crypt_ctr_wrap ( void *  ctx,
size_t  length,
size_t *  nc_off,
unsigned char *  nonce_counter,
unsigned char *  stream_block,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 727 of file cipher_wrap.c.

References POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE.

static int des_crypt_ecb_wrap ( void *  ctx,
operation_t  operation,
const unsigned char *  input,
unsigned char *  output 
) [static]

Definition at line 665 of file cipher_wrap.c.

References des_crypt_ecb().

static void* des_ctx_alloc ( void   )  [static]

Definition at line 784 of file cipher_wrap.c.

References polarssl_malloc.

static void des_ctx_free ( void *  ctx  )  [static]

Definition at line 794 of file cipher_wrap.c.

References polarssl_free.

static int des_setkey_dec_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 742 of file cipher_wrap.c.

References des_setkey_dec().

static int des_setkey_enc_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 749 of file cipher_wrap.c.

References des_setkey_enc().

static int gcm_aes_setkey_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 318 of file cipher_wrap.c.

References gcm_init(), and POLARSSL_CIPHER_ID_AES.

static int gcm_camellia_setkey_wrap ( void *  ctx,
const unsigned char *  key,
unsigned int  key_length 
) [static]

Definition at line 608 of file cipher_wrap.c.

References gcm_init(), and POLARSSL_CIPHER_ID_CAMELLIA.

static void* gcm_ctx_alloc ( void   )  [static]

Definition at line 71 of file cipher_wrap.c.

References polarssl_malloc.

static void gcm_ctx_free ( void *  ctx  )  [static]

Definition at line 76 of file cipher_wrap.c.

References gcm_free(), and polarssl_free.


Variable Documentation

Initial value:
 {
    POLARSSL_CIPHER_AES_128_CBC,
    POLARSSL_MODE_CBC,
    128,
    "AES-128-CBC",
    16,
    0,
    16,
    &aes_info
}

Definition at line 213 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_128_CFB128,
    POLARSSL_MODE_CFB,
    128,
    "AES-128-CFB128",
    16,
    0,
    16,
    &aes_info
}

Definition at line 248 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_128_CTR,
    POLARSSL_MODE_CTR,
    128,
    "AES-128-CTR",
    16,
    0,
    16,
    &aes_info
}

Definition at line 283 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_128_ECB,
    POLARSSL_MODE_ECB,
    128,
    "AES-128-ECB",
    16,
    0,
    16,
    &aes_info
}

Definition at line 179 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_128_GCM,
    POLARSSL_MODE_GCM,
    128,
    "AES-128-GCM",
    12,
    1,
    16,
    &gcm_aes_info
}

Definition at line 337 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_192_CBC,
    POLARSSL_MODE_CBC,
    192,
    "AES-192-CBC",
    16,
    0,
    16,
    &aes_info
}

Definition at line 224 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_192_CFB128,
    POLARSSL_MODE_CFB,
    192,
    "AES-192-CFB128",
    16,
    0,
    16,
    &aes_info
}

Definition at line 259 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_192_CTR,
    POLARSSL_MODE_CTR,
    192,
    "AES-192-CTR",
    16,
    0,
    16,
    &aes_info
}

Definition at line 294 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_192_ECB,
    POLARSSL_MODE_ECB,
    192,
    "AES-192-ECB",
    16,
    0,
    16,
    &aes_info
}

Definition at line 190 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_192_GCM,
    POLARSSL_MODE_GCM,
    192,
    "AES-192-GCM",
    12,
    1,
    16,
    &gcm_aes_info
}

Definition at line 348 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_256_CBC,
    POLARSSL_MODE_CBC,
    256,
    "AES-256-CBC",
    16,
    0,
    16,
    &aes_info
}

Definition at line 235 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_256_CFB128,
    POLARSSL_MODE_CFB,
    256,
    "AES-256-CFB128",
    16,
    0,
    16,
    &aes_info
}

Definition at line 270 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_256_CTR,
    POLARSSL_MODE_CTR,
    256,
    "AES-256-CTR",
    16,
    0,
    16,
    &aes_info
}

Definition at line 305 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_256_ECB,
    POLARSSL_MODE_ECB,
    256,
    "AES-256-ECB",
    16,
    0,
    16,
    &aes_info
}

Definition at line 201 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_AES_256_GCM,
    POLARSSL_MODE_GCM,
    256,
    "AES-256-GCM",
    12,
    1,
    16,
    &gcm_aes_info
}

Definition at line 359 of file cipher_wrap.c.

Initial value:

Definition at line 1094 of file cipher_wrap.c.

Initial value:

Definition at line 1081 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_BLOWFISH_CBC,
    POLARSSL_MODE_CBC,
    128,
    "BLOWFISH-CBC",
    8,
    0,
    8,
    &blowfish_info
}

Definition at line 1013 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_BLOWFISH_CFB64,
    POLARSSL_MODE_CFB,
    128,
    "BLOWFISH-CFB64",
    8,
    0,
    8,
    &blowfish_info
}

Definition at line 1026 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_BLOWFISH_CTR,
    POLARSSL_MODE_CTR,
    128,
    "BLOWFISH-CTR",
    8,
    0,
    8,
    &blowfish_info
}

Definition at line 1039 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_BLOWFISH_ECB,
    POLARSSL_MODE_ECB,
    128,
    "BLOWFISH-ECB",
    8,
    0,
    8,
    &blowfish_info
}

Definition at line 1001 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_128_CBC,
    POLARSSL_MODE_CBC,
    128,
    "CAMELLIA-128-CBC",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 503 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_128_CFB128,
    POLARSSL_MODE_CFB,
    128,
    "CAMELLIA-128-CFB128",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 538 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_128_CTR,
    POLARSSL_MODE_CTR,
    128,
    "CAMELLIA-128-CTR",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 573 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_128_ECB,
    POLARSSL_MODE_ECB,
    128,
    "CAMELLIA-128-ECB",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 469 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_128_GCM,
    POLARSSL_MODE_GCM,
    128,
    "CAMELLIA-128-GCM",
    12,
    1,
    16,
    &gcm_camellia_info
}

Definition at line 627 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_192_CBC,
    POLARSSL_MODE_CBC,
    192,
    "CAMELLIA-192-CBC",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 514 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_192_CFB128,
    POLARSSL_MODE_CFB,
    192,
    "CAMELLIA-192-CFB128",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 549 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_192_CTR,
    POLARSSL_MODE_CTR,
    192,
    "CAMELLIA-192-CTR",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 584 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_192_ECB,
    POLARSSL_MODE_ECB,
    192,
    "CAMELLIA-192-ECB",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 480 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_192_GCM,
    POLARSSL_MODE_GCM,
    192,
    "CAMELLIA-192-GCM",
    12,
    1,
    16,
    &gcm_camellia_info
}

Definition at line 638 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_256_CBC,
    POLARSSL_MODE_CBC,
    256,
    "CAMELLIA-256-CBC",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 525 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_256_CFB128,
    POLARSSL_MODE_CFB,
    256,
    "CAMELLIA-256-CFB128",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 560 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_256_CTR,
    POLARSSL_MODE_CTR,
    256,
    "CAMELLIA-256-CTR",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 595 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_256_ECB,
    POLARSSL_MODE_ECB,
    256,
    "CAMELLIA-256-ECB",
    16,
    0,
    16,
    &camellia_info
}

Definition at line 491 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_CAMELLIA_256_GCM,
    POLARSSL_MODE_GCM,
    256,
    "CAMELLIA-256-GCM",
    12,
    1,
    16,
    &gcm_camellia_info
}

Definition at line 649 of file cipher_wrap.c.

Initial value:

Definition at line 824 of file cipher_wrap.c.

Initial value:

Definition at line 812 of file cipher_wrap.c.

Initial value:

Definition at line 897 of file cipher_wrap.c.

Initial value:

Definition at line 886 of file cipher_wrap.c.

Initial value:

Definition at line 861 of file cipher_wrap.c.

Initial value:

Definition at line 849 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_ID_AES,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    gcm_aes_setkey_wrap,
    gcm_aes_setkey_wrap,
    gcm_ctx_alloc,
    gcm_ctx_free,
}

Definition at line 324 of file cipher_wrap.c.

Initial value:
 {
    POLARSSL_CIPHER_ID_CAMELLIA,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    gcm_camellia_setkey_wrap,
    gcm_camellia_setkey_wrap,
    gcm_ctx_alloc,
    gcm_ctx_free,
}

Definition at line 614 of file cipher_wrap.c.

int supported_ciphers[NUM_CIPHERS]

Definition at line 1251 of file cipher_wrap.c.

Referenced by cipher_list().


Generated on 9 Apr 2014 for PolarSSL v1.3.2 by  doxygen 1.6.1