OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Typedefs | Functions
modes.h File Reference
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef void(* block128_f )(const unsigned char in[16], unsigned char out[16], const void *key)
 
typedef void(* cbc128_f )(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], int enc)
 
typedef void(* ctr128_f )(const unsigned char *in, unsigned char *out, size_t blocks, const void *key, const unsigned char ivec[16])
 
typedef void(* ccm128_f )(const unsigned char *in, unsigned char *out, size_t blocks, const void *key, const unsigned char ivec[16], unsigned char cmac[16])
 
typedef struct gcm128_context GCM128_CONTEXT
 
typedef struct ccm128_context CCM128_CONTEXT
 
typedef struct xts128_context XTS128_CONTEXT
 

Functions

void CRYPTO_cbc128_encrypt (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], block128_f block)
 
void CRYPTO_cbc128_decrypt (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], block128_f block)
 
void CRYPTO_ctr128_encrypt (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], unsigned char ecount_buf[16], unsigned int *num, block128_f block)
 
void CRYPTO_ctr128_encrypt_ctr32 (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], unsigned char ecount_buf[16], unsigned int *num, ctr128_f ctr)
 
void CRYPTO_ofb128_encrypt (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], int *num, block128_f block)
 
void CRYPTO_cfb128_encrypt (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], int *num, int enc, block128_f block)
 
void CRYPTO_cfb128_8_encrypt (const unsigned char *in, unsigned char *out, size_t length, const void *key, unsigned char ivec[16], int *num, int enc, block128_f block)
 
void CRYPTO_cfb128_1_encrypt (const unsigned char *in, unsigned char *out, size_t bits, const void *key, unsigned char ivec[16], int *num, int enc, block128_f block)
 
size_t CRYPTO_cts128_encrypt_block (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], block128_f block)
 
size_t CRYPTO_cts128_encrypt (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], cbc128_f cbc)
 
size_t CRYPTO_cts128_decrypt_block (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], block128_f block)
 
size_t CRYPTO_cts128_decrypt (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], cbc128_f cbc)
 
size_t CRYPTO_nistcts128_encrypt_block (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], block128_f block)
 
size_t CRYPTO_nistcts128_encrypt (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], cbc128_f cbc)
 
size_t CRYPTO_nistcts128_decrypt_block (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], block128_f block)
 
size_t CRYPTO_nistcts128_decrypt (const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], cbc128_f cbc)
 
GCM128_CONTEXTCRYPTO_gcm128_new (void *key, block128_f block)
 
void CRYPTO_gcm128_init (GCM128_CONTEXT *ctx, void *key, block128_f block)
 
void CRYPTO_gcm128_setiv (GCM128_CONTEXT *ctx, const unsigned char *iv, size_t len)
 
int CRYPTO_gcm128_aad (GCM128_CONTEXT *ctx, const unsigned char *aad, size_t len)
 
int CRYPTO_gcm128_encrypt (GCM128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len)
 
int CRYPTO_gcm128_decrypt (GCM128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len)
 
int CRYPTO_gcm128_encrypt_ctr32 (GCM128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len, ctr128_f stream)
 
int CRYPTO_gcm128_decrypt_ctr32 (GCM128_CONTEXT *ctx, const unsigned char *in, unsigned char *out, size_t len, ctr128_f stream)
 
int CRYPTO_gcm128_finish (GCM128_CONTEXT *ctx, const unsigned char *tag, size_t len)
 
void CRYPTO_gcm128_tag (GCM128_CONTEXT *ctx, unsigned char *tag, size_t len)
 
void CRYPTO_gcm128_release (GCM128_CONTEXT *ctx)
 
void CRYPTO_ccm128_init (CCM128_CONTEXT *ctx, unsigned int M, unsigned int L, void *key, block128_f block)
 
int CRYPTO_ccm128_setiv (CCM128_CONTEXT *ctx, const unsigned char *nonce, size_t nlen, size_t mlen)
 
void CRYPTO_ccm128_aad (CCM128_CONTEXT *ctx, const unsigned char *aad, size_t alen)
 
int CRYPTO_ccm128_encrypt (CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len)
 
int CRYPTO_ccm128_decrypt (CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len)
 
int CRYPTO_ccm128_encrypt_ccm64 (CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len, ccm128_f stream)
 
int CRYPTO_ccm128_decrypt_ccm64 (CCM128_CONTEXT *ctx, const unsigned char *inp, unsigned char *out, size_t len, ccm128_f stream)
 
size_t CRYPTO_ccm128_tag (CCM128_CONTEXT *ctx, unsigned char *tag, size_t len)
 
int CRYPTO_xts128_encrypt (const XTS128_CONTEXT *ctx, const unsigned char iv[16], const unsigned char *inp, unsigned char *out, size_t len, int enc)
 

Typedef Documentation

typedef void(* block128_f)(const unsigned char in[16], unsigned char out[16], const void *key)

Definition at line 10 of file modes.h.

typedef void(* cbc128_f)(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], int enc)

Definition at line 14 of file modes.h.

Definition at line 112 of file modes.h.

typedef void(* ccm128_f)(const unsigned char *in, unsigned char *out, size_t blocks, const void *key, const unsigned char ivec[16], unsigned char cmac[16])

Definition at line 22 of file modes.h.

typedef void(* ctr128_f)(const unsigned char *in, unsigned char *out, size_t blocks, const void *key, const unsigned char ivec[16])

Definition at line 18 of file modes.h.

Definition at line 87 of file modes.h.

Definition at line 132 of file modes.h.

Function Documentation

void CRYPTO_cbc128_decrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
block128_f  block 
)

Definition at line 115 of file cbc128.c.

void CRYPTO_cbc128_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
block128_f  block 
)

Definition at line 66 of file cbc128.c.

void CRYPTO_ccm128_aad ( CCM128_CONTEXT ctx,
const unsigned char *  aad,
size_t  alen 
)

Definition at line 104 of file ccm128.c.

int CRYPTO_ccm128_decrypt ( CCM128_CONTEXT ctx,
const unsigned char *  inp,
unsigned char *  out,
size_t  len 
)

Definition at line 245 of file ccm128.c.

int CRYPTO_ccm128_decrypt_ccm64 ( CCM128_CONTEXT ctx,
const unsigned char *  inp,
unsigned char *  out,
size_t  len,
ccm128_f  stream 
)

Definition at line 381 of file ccm128.c.

int CRYPTO_ccm128_encrypt ( CCM128_CONTEXT ctx,
const unsigned char *  inp,
unsigned char *  out,
size_t  len 
)

Definition at line 170 of file ccm128.c.

int CRYPTO_ccm128_encrypt_ccm64 ( CCM128_CONTEXT ctx,
const unsigned char *  inp,
unsigned char *  out,
size_t  len,
ccm128_f  stream 
)

Definition at line 324 of file ccm128.c.

void CRYPTO_ccm128_init ( CCM128_CONTEXT ctx,
unsigned int  M,
unsigned int  L,
void key,
block128_f  block 
)

Definition at line 63 of file ccm128.c.

int CRYPTO_ccm128_setiv ( CCM128_CONTEXT ctx,
const unsigned char *  nonce,
size_t  nlen,
size_t  mlen 
)

Definition at line 76 of file ccm128.c.

size_t CRYPTO_ccm128_tag ( CCM128_CONTEXT ctx,
unsigned char *  tag,
size_t  len 
)

Definition at line 434 of file ccm128.c.

void CRYPTO_cfb128_1_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  bits,
const void key,
unsigned char  ivec[16],
int *  num,
int  enc,
block128_f  block 
)

Definition at line 209 of file cfb128.c.

void CRYPTO_cfb128_8_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  length,
const void key,
unsigned char  ivec[16],
int *  num,
int  enc,
block128_f  block 
)

Definition at line 229 of file cfb128.c.

void CRYPTO_cfb128_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
int *  num,
int  enc,
block128_f  block 
)

Definition at line 66 of file cfb128.c.

void CRYPTO_ctr128_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
unsigned char  ecount_buf[16],
unsigned int *  num,
block128_f  block 
)

Definition at line 114 of file ctr128.c.

void CRYPTO_ctr128_encrypt_ctr32 ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
unsigned char  ecount_buf[16],
unsigned int *  num,
ctr128_f  ctr 
)

Definition at line 190 of file ctr128.c.

size_t CRYPTO_cts128_decrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
cbc128_f  cbc 
)

Definition at line 240 of file cts128.c.

size_t CRYPTO_cts128_decrypt_block ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
block128_f  block 
)

Definition at line 158 of file cts128.c.

size_t CRYPTO_cts128_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
cbc128_f  cbc 
)

Definition at line 87 of file cts128.c.

size_t CRYPTO_cts128_encrypt_block ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
block128_f  block 
)

Definition at line 32 of file cts128.c.

int CRYPTO_gcm128_aad ( GCM128_CONTEXT ctx,
const unsigned char *  aad,
size_t  len 
)

Definition at line 826 of file gcm128.c.

int CRYPTO_gcm128_decrypt ( GCM128_CONTEXT ctx,
const unsigned char *  in,
unsigned char *  out,
size_t  len 
)

Definition at line 1033 of file gcm128.c.

int CRYPTO_gcm128_decrypt_ctr32 ( GCM128_CONTEXT ctx,
const unsigned char *  in,
unsigned char *  out,
size_t  len,
ctr128_f  stream 
)

Definition at line 1285 of file gcm128.c.

int CRYPTO_gcm128_encrypt ( GCM128_CONTEXT ctx,
const unsigned char *  in,
unsigned char *  out,
size_t  len 
)

Definition at line 883 of file gcm128.c.

int CRYPTO_gcm128_encrypt_ctr32 ( GCM128_CONTEXT ctx,
const unsigned char *  in,
unsigned char *  out,
size_t  len,
ctr128_f  stream 
)

Definition at line 1186 of file gcm128.c.

int CRYPTO_gcm128_finish ( GCM128_CONTEXT ctx,
const unsigned char *  tag,
size_t  len 
)

Definition at line 1391 of file gcm128.c.

void CRYPTO_gcm128_init ( GCM128_CONTEXT ctx,
void key,
block128_f  block 
)

Definition at line 686 of file gcm128.c.

GCM128_CONTEXT* CRYPTO_gcm128_new ( void key,
block128_f  block 
)

Definition at line 1438 of file gcm128.c.

void CRYPTO_gcm128_release ( GCM128_CONTEXT ctx)

Definition at line 1448 of file gcm128.c.

void CRYPTO_gcm128_setiv ( GCM128_CONTEXT ctx,
const unsigned char *  iv,
size_t  len 
)

Definition at line 756 of file gcm128.c.

void CRYPTO_gcm128_tag ( GCM128_CONTEXT ctx,
unsigned char *  tag,
size_t  len 
)

Definition at line 1432 of file gcm128.c.

size_t CRYPTO_nistcts128_decrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
cbc128_f  cbc 
)

Definition at line 275 of file cts128.c.

size_t CRYPTO_nistcts128_decrypt_block ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
block128_f  block 
)

Definition at line 196 of file cts128.c.

size_t CRYPTO_nistcts128_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
cbc128_f  cbc 
)

Definition at line 123 of file cts128.c.

size_t CRYPTO_nistcts128_encrypt_block ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
block128_f  block 
)

Definition at line 59 of file cts128.c.

void CRYPTO_ofb128_encrypt ( const unsigned char *  in,
unsigned char *  out,
size_t  len,
const void key,
unsigned char  ivec[16],
int *  num,
block128_f  block 
)

Definition at line 66 of file ofb128.c.

int CRYPTO_xts128_encrypt ( const XTS128_CONTEXT ctx,
const unsigned char  iv[16],
const unsigned char *  inp,
unsigned char *  out,
size_t  len,
int  enc 
)

Definition at line 61 of file xts128.c.