Lines Matching refs:gcm
35 GCM128_CONTEXT gcm; member
218 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, in aria_gcm_init_key()
231 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aria_gcm_init_key()
238 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aria_gcm_init_key()
319 CRYPTO_gcm128_setiv(&gctx->gcm, gctx->iv, gctx->ivlen); in aria_gcm_ctrl()
336 CRYPTO_gcm128_setiv(&gctx->gcm, gctx->iv, gctx->ivlen); in aria_gcm_ctrl()
370 if (gctx->gcm.key) { in aria_gcm_ctrl()
371 if (gctx->gcm.key != &gctx->ks) in aria_gcm_ctrl()
373 gctx_out->gcm.key = &gctx_out->ks; in aria_gcm_ctrl()
412 if (CRYPTO_gcm128_aad(&gctx->gcm, EVP_CIPHER_CTX_buf_noconst(ctx), in aria_gcm_tls_cipher()
421 if (CRYPTO_gcm128_encrypt(&gctx->gcm, in, out, len)) in aria_gcm_tls_cipher()
425 CRYPTO_gcm128_tag(&gctx->gcm, out, EVP_GCM_TLS_TAG_LEN); in aria_gcm_tls_cipher()
429 if (CRYPTO_gcm128_decrypt(&gctx->gcm, in, out, len)) in aria_gcm_tls_cipher()
432 CRYPTO_gcm128_tag(&gctx->gcm, EVP_CIPHER_CTX_buf_noconst(ctx), in aria_gcm_tls_cipher()
465 if (CRYPTO_gcm128_aad(&gctx->gcm, in, len)) in aria_gcm_cipher()
468 if (CRYPTO_gcm128_encrypt(&gctx->gcm, in, out, len)) in aria_gcm_cipher()
471 if (CRYPTO_gcm128_decrypt(&gctx->gcm, in, out, len)) in aria_gcm_cipher()
479 if (CRYPTO_gcm128_finish(&gctx->gcm, in aria_gcm_cipher()
486 CRYPTO_gcm128_tag(&gctx->gcm, EVP_CIPHER_CTX_buf_noconst(ctx), 16); in aria_gcm_cipher()
772 BLOCK_CIPHER_aead(NID_aria, 128, 1, 12, gcm, gcm, GCM, 0)
773 BLOCK_CIPHER_aead(NID_aria, 192, 1, 12, gcm, gcm, GCM, 0)
774 BLOCK_CIPHER_aead(NID_aria, 256, 1, 12, gcm, gcm, GCM, 0)