Go to the source code of this file.
|
static void | aead_aes_ctr_hmac_sha256_cleanup (EVP_AEAD_CTX *ctx) |
|
static void | aead_aes_ctr_hmac_sha256_crypt (const struct aead_aes_ctr_hmac_sha256_ctx *aes_ctx, uint8_t *out, const uint8_t *in, size_t len, const uint8_t *nonce) |
|
static int | aead_aes_ctr_hmac_sha256_init (EVP_AEAD_CTX *ctx, const uint8_t *key, size_t key_len, size_t tag_len) |
|
static int | aead_aes_ctr_hmac_sha256_open_gather (const EVP_AEAD_CTX *ctx, uint8_t *out, const uint8_t *nonce, size_t nonce_len, const uint8_t *in, size_t in_len, const uint8_t *in_tag, size_t in_tag_len, const uint8_t *ad, size_t ad_len) |
|
static int | aead_aes_ctr_hmac_sha256_seal_scatter (const EVP_AEAD_CTX *ctx, uint8_t *out, uint8_t *out_tag, size_t *out_tag_len, size_t max_out_tag_len, const uint8_t *nonce, size_t nonce_len, const uint8_t *in, size_t in_len, const uint8_t *extra_in, size_t extra_in_len, const uint8_t *ad, size_t ad_len) |
|
const EVP_AEAD * | EVP_aead_aes_128_ctr_hmac_sha256 (void) |
|
const EVP_AEAD * | EVP_aead_aes_256_ctr_hmac_sha256 (void) |
|
static void | hmac_calculate (uint8_t out[SHA256_DIGEST_LENGTH], const SHA256_CTX *inner_init_state, const SHA256_CTX *outer_init_state, const uint8_t *ad, size_t ad_len, const uint8_t *nonce, const uint8_t *ciphertext, size_t ciphertext_len) |
|
static void | hmac_init (SHA256_CTX *out_inner, SHA256_CTX *out_outer, const uint8_t hmac_key[32]) |
|
static void | hmac_update_uint64 (SHA256_CTX *sha256, uint64_t value) |
|
| OPENSSL_STATIC_ASSERT (sizeof(((EVP_AEAD_CTX *) NULL) ->state) >=sizeof(struct aead_aes_ctr_hmac_sha256_ctx), "AEAD state is too small") |
|
◆ EVP_AEAD_AES_CTR_HMAC_SHA256_NONCE_LEN
#define EVP_AEAD_AES_CTR_HMAC_SHA256_NONCE_LEN 12 |
◆ EVP_AEAD_AES_CTR_HMAC_SHA256_TAG_LEN
◆ aead_aes_ctr_hmac_sha256_cleanup()
static void aead_aes_ctr_hmac_sha256_cleanup |
( |
EVP_AEAD_CTX * |
ctx | ) |
|
|
static |
◆ aead_aes_ctr_hmac_sha256_crypt()
◆ aead_aes_ctr_hmac_sha256_init()
◆ aead_aes_ctr_hmac_sha256_open_gather()
◆ aead_aes_ctr_hmac_sha256_seal_scatter()
static int aead_aes_ctr_hmac_sha256_seal_scatter |
( |
const EVP_AEAD_CTX * |
ctx, |
|
|
uint8_t * |
out, |
|
|
uint8_t * |
out_tag, |
|
|
size_t * |
out_tag_len, |
|
|
size_t |
max_out_tag_len, |
|
|
const uint8_t * |
nonce, |
|
|
size_t |
nonce_len, |
|
|
const uint8_t * |
in, |
|
|
size_t |
in_len, |
|
|
const uint8_t * |
extra_in, |
|
|
size_t |
extra_in_len, |
|
|
const uint8_t * |
ad, |
|
|
size_t |
ad_len |
|
) |
| |
|
static |
◆ EVP_aead_aes_128_ctr_hmac_sha256()
◆ EVP_aead_aes_256_ctr_hmac_sha256()
◆ hmac_calculate()
◆ hmac_init()
◆ hmac_update_uint64()
◆ OPENSSL_STATIC_ASSERT()
◆ aead_aes_128_ctr_hmac_sha256
Initial value:= {
16 + 32 ,
12,
0,
NULL ,
NULL ,
NULL ,
NULL ,
}
Definition at line 243 of file e_aesctrhmac.c.
◆ aead_aes_256_ctr_hmac_sha256
Initial value:= {
32 + 32 ,
12,
0,
NULL ,
NULL ,
NULL ,
NULL ,
}
Definition at line 260 of file e_aesctrhmac.c.
static int aead_aes_ctr_hmac_sha256_seal_scatter(const EVP_AEAD_CTX *ctx, uint8_t *out, uint8_t *out_tag, size_t *out_tag_len, size_t max_out_tag_len, const uint8_t *nonce, size_t nonce_len, const uint8_t *in, size_t in_len, const uint8_t *extra_in, size_t extra_in_len, const uint8_t *ad, size_t ad_len)
static int aead_aes_ctr_hmac_sha256_open_gather(const EVP_AEAD_CTX *ctx, uint8_t *out, const uint8_t *nonce, size_t nonce_len, const uint8_t *in, size_t in_len, const uint8_t *in_tag, size_t in_tag_len, const uint8_t *ad, size_t ad_len)