OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
ccm128.c File Reference
#include <openssl/crypto.h>
#include "modes_lcl.h"
#include <string.h>
#include <assert.h>

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

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)
 

Macro Definition Documentation

#define NDEBUG

Definition at line 56 of file ccm128.c.

Function Documentation

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.