Searched refs:aes_ctx (Results 1 – 2 of 2) sorted by relevance
/external/srtp/crypto/ae_xfm/ |
D | xfm.c | 30 aes_cbc_ctx_t aes_ctx; in aes_128_cbc_hmac_sha1_96_func() local 66 status = aes_cbc_context_init(&aes_ctx, key, direction_encrypt); in aes_128_cbc_hmac_sha1_96_func() 72 status = aes_cbc_set_iv(&aes_ctx, iv); in aes_128_cbc_hmac_sha1_96_func() 75 status = aes_cbc_nist_encrypt(&aes_ctx, opaque, opaque_len); in aes_128_cbc_hmac_sha1_96_func() 104 aes_cbc_ctx_t aes_ctx; in aes_128_cbc_hmac_sha1_96_inv() local 142 status = aes_cbc_context_init(&aes_ctx, key, direction_decrypt); in aes_128_cbc_hmac_sha1_96_inv() 148 status = aes_cbc_set_iv(&aes_ctx, iv); in aes_128_cbc_hmac_sha1_96_inv() 151 status = aes_cbc_nist_decrypt(&aes_ctx, opaque, opaque_len); in aes_128_cbc_hmac_sha1_96_inv() 190 aes_cbc_ctx_t aes_ctx; in aes_128_cbc_hmac_sha1_96_enc() local 231 status = aes_cbc_context_init(&aes_ctx, key, direction_encrypt); in aes_128_cbc_hmac_sha1_96_enc() [all …]
|
/external/boringssl/src/crypto/cipher/ |
D | e_aes.c | 1531 struct aead_aes_ctr_hmac_sha256_ctx *aes_ctx; in aead_aes_ctr_hmac_sha256_init() local 1554 aes_ctx = OPENSSL_malloc(sizeof(struct aead_aes_ctr_hmac_sha256_ctx)); in aead_aes_ctr_hmac_sha256_init() 1555 if (aes_ctx == NULL) { in aead_aes_ctr_hmac_sha256_init() 1560 aes_ctx->ctr = in aead_aes_ctr_hmac_sha256_init() 1561 aes_ctr_set_key(&aes_ctx->ks.ks, NULL, &aes_ctx->block, key, aes_key_len); in aead_aes_ctr_hmac_sha256_init() 1562 aes_ctx->tag_len = tag_len; in aead_aes_ctr_hmac_sha256_init() 1563 hmac_init(&aes_ctx->inner_init_state, &aes_ctx->outer_init_state, in aead_aes_ctr_hmac_sha256_init() 1566 ctx->aead_state = aes_ctx; in aead_aes_ctr_hmac_sha256_init() 1572 struct aead_aes_ctr_hmac_sha256_ctx *aes_ctx = ctx->aead_state; in aead_aes_ctr_hmac_sha256_cleanup() local 1573 OPENSSL_cleanse(aes_ctx, sizeof(struct aead_aes_ctr_hmac_sha256_ctx)); in aead_aes_ctr_hmac_sha256_cleanup() [all …]
|