#include <openssl/opensslconf.h>
#include <openssl/evp.h>
#include <openssl/err.h>
#include <string.h>
#include <assert.h>
#include <openssl/aes.h>
#include "evp_locl.h"
#include "modes_lcl.h"
#include <openssl/rand.h>
Go to the source code of this file.
Classes | |
struct | EVP_AES_KEY |
struct | EVP_AES_GCM_CTX |
struct | EVP_AES_XTS_CTX |
struct | EVP_AES_CCM_CTX |
Macros | |
#define | MAXBITCHUNK ((size_t)1<<(sizeof(size_t)*8-4)) |
#define | BLOCK_CIPHER_generic(nid, keylen, blocksize, ivlen, nmode, mode, MODE, flags) |
#define | BLOCK_CIPHER_custom(nid, keylen, blocksize, ivlen, mode, MODE, flags) |
#define | BLOCK_CIPHER_generic_pack(nid, keylen, flags) |
#define | CUSTOM_FLAGS |
#define | aes_xts_cleanup NULL |
#define | XTS_FLAGS |
#define | aes_ccm_cleanup NULL |
Functions | |
BLOCK_CIPHER_generic_pack (BLOCK_CIPHER_generic_pack(NID_aes, 128, EVP_CIPH_FLAG_FIPS) | |
BLOCK_CIPHER_custom (NID_aes, 128, 1, 12, gcm, GCM, EVP_CIPH_FLAG_FIPS|EVP_CIPH_FLAG_AEAD_CIPHER|CUSTOM_FLAGS) BLOCK_CIPHER_custom(NID_aes | |
EVP_CIPH_FLAG_FIPS EVP_CIPH_FLAG_AEAD_CIPHER CUSTOM_FLAGS | BLOCK_CIPHER_custom (NID_aes, 256, 1, 12, gcm, GCM, EVP_CIPH_FLAG_FIPS|EVP_CIPH_FLAG_AEAD_CIPHER|CUSTOM_FLAGS) static int aes_xts_ctrl(EVP_CIPHER_CTX *c |
if (type!=EVP_CTRL_INIT) | |
BLOCK_CIPHER_custom (NID_aes, 128, 1, 16, xts, XTS, EVP_CIPH_FLAG_FIPS|XTS_FLAGS) BLOCK_CIPHER_custom(NID_aes | |
BLOCK_CIPHER_custom (NID_aes, 128, 1, 12, ccm, CCM, EVP_CIPH_FLAG_FIPS|CUSTOM_FLAGS) BLOCK_CIPHER_custom(NID_aes | |
Variables | |
gcm | |
GCM | |
EVP_CIPH_FLAG_FIPS EVP_CIPH_FLAG_AEAD_CIPHER CUSTOM_FLAGS int | type |
EVP_CIPH_FLAG_FIPS EVP_CIPH_FLAG_AEAD_CIPHER CUSTOM_FLAGS int int | arg |
EVP_CIPH_FLAG_FIPS EVP_CIPH_FLAG_AEAD_CIPHER CUSTOM_FLAGS int int void * | ptr |
xts | |
XTS | |
ccm | |
CCM | |
#define CUSTOM_FLAGS |
#define XTS_FLAGS |
BLOCK_CIPHER_custom | ( | NID_aes | , |
128 | , | ||
1 | , | ||
12 | , | ||
gcm | , | ||
GCM | , | ||
EVP_CIPH_FLAG_FIPS|EVP_CIPH_FLAG_AEAD_CIPHER| | CUSTOM_FLAGS | ||
) |
EVP_CIPH_FLAG_FIPS EVP_CIPH_FLAG_AEAD_CIPHER CUSTOM_FLAGS BLOCK_CIPHER_custom | ( | NID_aes | , |
256 | , | ||
1 | , | ||
12 | , | ||
gcm | , | ||
GCM | , | ||
EVP_CIPH_FLAG_FIPS|EVP_CIPH_FLAG_AEAD_CIPHER| | CUSTOM_FLAGS | ||
) |
BLOCK_CIPHER_custom | ( | NID_aes | , |
128 | , | ||
1 | , | ||
16 | , | ||
xts | , | ||
XTS | , | ||
EVP_CIPH_FLAG_FIPS| | XTS_FLAGS | ||
) |
BLOCK_CIPHER_custom | ( | NID_aes | , |
128 | , | ||
1 | , | ||
12 | , | ||
ccm | , | ||
CCM | , | ||
EVP_CIPH_FLAG_FIPS| | CUSTOM_FLAGS | ||
) |
BLOCK_CIPHER_generic_pack | ( | BLOCK_CIPHER_generic_pack( | NID_aes, |
128 | , | ||
EVP_CIPH_FLAG_FIPS | |||
) |
if | ( | type! | = EVP_CTRL_INIT | ) |
EVP_CIPH_FLAG_FIPS EVP_CIPH_FLAG_AEAD_CIPHER CUSTOM_FLAGS int int arg |
EVP_CIPH_FLAG_FIPS EVP_CIPH_FLAG_AEAD_CIPHER CUSTOM_FLAGS int int void* ptr |