Lines Matching refs:ccm
56 CCM128_CONTEXT ccm; member
521 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aria_ccm_init_key()
613 if (!CRYPTO_ccm128_tag(&cctx->ccm, ptr, (size_t)arg)) in aria_ccm_ctrl()
624 if (cctx->ccm.key) { in aria_ccm_ctrl()
625 if (cctx->ccm.key != &cctx->ks) in aria_ccm_ctrl()
627 cctx_out->ccm.key = &cctx_out->ks; in aria_ccm_ctrl()
641 CCM128_CONTEXT *ccm = &cctx->ccm; in aria_ccm_tls_cipher() local
655 if (CRYPTO_ccm128_setiv(ccm, ctx->iv, 15 - cctx->L, in aria_ccm_tls_cipher()
659 CRYPTO_ccm128_aad(ccm, EVP_CIPHER_CTX_buf_noconst(ctx), in aria_ccm_tls_cipher()
665 if (cctx->str ? CRYPTO_ccm128_encrypt_ccm64(ccm, in, out, len, cctx->str) in aria_ccm_tls_cipher()
666 : CRYPTO_ccm128_encrypt(ccm, in, out, len)) in aria_ccm_tls_cipher()
668 if (!CRYPTO_ccm128_tag(ccm, out + len, cctx->M)) in aria_ccm_tls_cipher()
672 if (cctx->str ? !CRYPTO_ccm128_decrypt_ccm64(ccm, in, out, len, cctx->str) in aria_ccm_tls_cipher()
673 : !CRYPTO_ccm128_decrypt(ccm, in, out, len)) { in aria_ccm_tls_cipher()
675 if (CRYPTO_ccm128_tag(ccm, tag, cctx->M)) { in aria_ccm_tls_cipher()
689 CCM128_CONTEXT *ccm = &cctx->ccm; in aria_ccm_cipher() local
707 if (CRYPTO_ccm128_setiv(ccm, ctx->iv, 15 - cctx->L, len)) in aria_ccm_cipher()
715 CRYPTO_ccm128_aad(ccm, in, len); in aria_ccm_cipher()
725 if (CRYPTO_ccm128_setiv(ccm, ctx->iv, 15 - cctx->L, len)) in aria_ccm_cipher()
730 if (cctx->str ? CRYPTO_ccm128_encrypt_ccm64(ccm, in, out, len, cctx->str) in aria_ccm_cipher()
731 : CRYPTO_ccm128_encrypt(ccm, in, out, len)) in aria_ccm_cipher()
737 if (cctx->str ? !CRYPTO_ccm128_decrypt_ccm64(ccm, in, out, len, in aria_ccm_cipher()
739 !CRYPTO_ccm128_decrypt(ccm, in, out, len)) { in aria_ccm_cipher()
741 if (CRYPTO_ccm128_tag(ccm, tag, cctx->M)) { in aria_ccm_cipher()
782 BLOCK_CIPHER_aead(128, ccm, CCM)
783 BLOCK_CIPHER_aead(192, ccm, CCM)
784 BLOCK_CIPHER_aead(256, ccm, CCM)