Searched refs:ccm_ctx (Results 1 – 1 of 1) sorted by relevance
/external/boringssl/src/crypto/cipher_extra/ |
D | e_aesccm.c | 66 struct aead_aes_ccm_ctx *ccm_ctx = (struct aead_aes_ccm_ctx *)&ctx->state; in aead_aes_ccm_init() local 69 ctr128_f ctr = aes_ctr_set_key(&ccm_ctx->ks.ks, NULL, &block, key, key_len); in aead_aes_ccm_init() 71 if (!CRYPTO_ccm128_init(&ccm_ctx->ccm, &ccm_ctx->ks.ks, block, ctr, M, L)) { in aead_aes_ccm_init() 86 const struct aead_aes_ccm_ctx *ccm_ctx = in aead_aes_ccm_seal_scatter() local 89 if (in_len > CRYPTO_ccm128_max_input(&ccm_ctx->ccm)) { in aead_aes_ccm_seal_scatter() 104 if (!CRYPTO_ccm128_encrypt(&ccm_ctx->ccm, &ccm_ctx->ks.ks, out, out_tag, in aead_aes_ccm_seal_scatter() 120 const struct aead_aes_ccm_ctx *ccm_ctx = in aead_aes_ccm_open_gather() local 123 if (in_len > CRYPTO_ccm128_max_input(&ccm_ctx->ccm)) { in aead_aes_ccm_open_gather() 140 if (!CRYPTO_ccm128_decrypt(&ccm_ctx->ccm, &ccm_ctx->ks.ks, out, tag, in aead_aes_ccm_open_gather()
|