Home
last modified time | relevance | path

Searched refs:aes_ctx (Results 1 – 5 of 5) sorted by relevance

/external/boringssl/src/crypto/cipher_extra/
De_aesctrhmac.c73 struct aead_aes_ctr_hmac_sha256_ctx *aes_ctx = in aead_aes_ctr_hmac_sha256_init() local
97 aes_ctx->ctr = in aead_aes_ctr_hmac_sha256_init()
98 aes_ctr_set_key(&aes_ctx->ks.ks, NULL, &aes_ctx->block, key, aes_key_len); in aead_aes_ctr_hmac_sha256_init()
100 hmac_init(&aes_ctx->inner_init_state, &aes_ctx->outer_init_state, in aead_aes_ctr_hmac_sha256_init()
153 const struct aead_aes_ctr_hmac_sha256_ctx *aes_ctx, uint8_t *out, in aead_aes_ctr_hmac_sha256_crypt() argument
165 if (aes_ctx->ctr) { in aead_aes_ctr_hmac_sha256_crypt()
166 CRYPTO_ctr128_encrypt_ctr32(in, out, len, &aes_ctx->ks.ks, counter, in aead_aes_ctr_hmac_sha256_crypt()
168 aes_ctx->ctr); in aead_aes_ctr_hmac_sha256_crypt()
170 CRYPTO_ctr128_encrypt(in, out, len, &aes_ctx->ks.ks, counter, in aead_aes_ctr_hmac_sha256_crypt()
172 aes_ctx->block); in aead_aes_ctr_hmac_sha256_crypt()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/cipher_extra/
De_aesctrhmac.c73 struct aead_aes_ctr_hmac_sha256_ctx *aes_ctx = in aead_aes_ctr_hmac_sha256_init() local
97 aes_ctx->ctr = in aead_aes_ctr_hmac_sha256_init()
98 aes_ctr_set_key(&aes_ctx->ks.ks, NULL, &aes_ctx->block, key, aes_key_len); in aead_aes_ctr_hmac_sha256_init()
100 hmac_init(&aes_ctx->inner_init_state, &aes_ctx->outer_init_state, in aead_aes_ctr_hmac_sha256_init()
153 const struct aead_aes_ctr_hmac_sha256_ctx *aes_ctx, uint8_t *out, in aead_aes_ctr_hmac_sha256_crypt() argument
165 if (aes_ctx->ctr) { in aead_aes_ctr_hmac_sha256_crypt()
166 CRYPTO_ctr128_encrypt_ctr32(in, out, len, &aes_ctx->ks.ks, counter, in aead_aes_ctr_hmac_sha256_crypt()
168 aes_ctx->ctr); in aead_aes_ctr_hmac_sha256_crypt()
170 CRYPTO_ctr128_encrypt(in, out, len, &aes_ctx->ks.ks, counter, in aead_aes_ctr_hmac_sha256_crypt()
172 aes_ctx->block); in aead_aes_ctr_hmac_sha256_crypt()
[all …]
/external/openssh/
Dcipher-ctr.c39 AES_KEY aes_ctx; member
73 AES_encrypt(c->aes_counter, buf, &c->aes_ctx); in ssh_aes_ctr()
94 &c->aes_ctx); in ssh_aes_ctr_init()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_nettle.c247 struct aes_ctx *ctx; in aes_encrypt_init()
263 struct aes_ctx *actx = ctx; in aes_encrypt()
271 struct aes_ctx *actx = ctx; in aes_encrypt_deinit()
278 struct aes_ctx *ctx; in aes_decrypt_init()
294 struct aes_ctx *actx = ctx; in aes_decrypt()
302 struct aes_ctx *actx = ctx; in aes_decrypt_deinit()
/external/arm-trusted-firmware/tools/marvell/doimage/
Ddoimage.c430 mbedtls_aes_context aes_ctx; in image_encrypt() local
440 mbedtls_aes_init(&aes_ctx); in image_encrypt()
463 mbedtls_aes_setkey_enc(&aes_ctx, opts.sec_opts->aes_key, in image_encrypt()
486 rval = mbedtls_aes_crypt_cbc(&aes_ctx, MBEDTLS_AES_ENCRYPT, in image_encrypt()
495 mbedtls_aes_free(&aes_ctx); in image_encrypt()
498 mbedtls_aes_init(&aes_ctx); in image_encrypt()
499 mbedtls_aes_setkey_dec(&aes_ctx, opts.sec_opts->aes_key, in image_encrypt()
512 rval = mbedtls_aes_crypt_cbc(&aes_ctx, MBEDTLS_AES_DECRYPT, in image_encrypt()
532 mbedtls_aes_free(&aes_ctx); in image_encrypt()