Lines Matching refs:gcm
78 GCM128_CONTEXT gcm; member
314 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, in aesni_gcm_init_key()
324 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aesni_gcm_init_key()
333 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aesni_gcm_init_key()
680 OPENSSL_cleanse(&gctx->gcm, sizeof(gctx->gcm)); in aes_gcm_cleanup()
772 CRYPTO_gcm128_setiv(&gctx->gcm, gctx->iv, gctx->ivlen); in aes_gcm_ctrl()
788 CRYPTO_gcm128_setiv(&gctx->gcm, gctx->iv, gctx->ivlen); in aes_gcm_ctrl()
829 CRYPTO_gcm128_init(&gctx->gcm,&gctx->ks, in aes_gcm_init_key()
840 CRYPTO_gcm128_init(&gctx->gcm,&gctx->ks, in aes_gcm_init_key()
847 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, (block128_f)AES_encrypt); in aes_gcm_init_key()
862 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aes_gcm_init_key()
871 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aes_gcm_init_key()
902 if (CRYPTO_gcm128_aad(&gctx->gcm, ctx->buf, gctx->tls_aad_len)) in aes_gcm_tls_cipher()
913 if (CRYPTO_gcm128_encrypt_ctr32(&gctx->gcm, in aes_gcm_tls_cipher()
919 if (CRYPTO_gcm128_encrypt(&gctx->gcm, in, out, len)) in aes_gcm_tls_cipher()
924 CRYPTO_gcm128_tag(&gctx->gcm, out, EVP_GCM_TLS_TAG_LEN); in aes_gcm_tls_cipher()
932 if (CRYPTO_gcm128_decrypt_ctr32(&gctx->gcm, in aes_gcm_tls_cipher()
938 if (CRYPTO_gcm128_decrypt(&gctx->gcm, in, out, len)) in aes_gcm_tls_cipher()
942 CRYPTO_gcm128_tag(&gctx->gcm, ctx->buf, in aes_gcm_tls_cipher()
978 if (CRYPTO_gcm128_aad(&gctx->gcm, in, len)) in aes_gcm_cipher()
985 if (CRYPTO_gcm128_encrypt_ctr32(&gctx->gcm, in aes_gcm_cipher()
991 if (CRYPTO_gcm128_encrypt(&gctx->gcm, in, out, len)) in aes_gcm_cipher()
999 if (CRYPTO_gcm128_decrypt_ctr32(&gctx->gcm, in aes_gcm_cipher()
1005 if (CRYPTO_gcm128_decrypt(&gctx->gcm, in, out, len)) in aes_gcm_cipher()
1015 if (CRYPTO_gcm128_finish(&gctx->gcm, in aes_gcm_cipher()
1021 CRYPTO_gcm128_tag(&gctx->gcm, ctx->buf, 16); in aes_gcm_cipher()
1034 BLOCK_CIPHER_custom(NID_aes,128,1,12,gcm,GCM,
1036 BLOCK_CIPHER_custom(NID_aes,192,1,12,gcm,GCM,
1038 BLOCK_CIPHER_custom(NID_aes,256,1,12,gcm,GCM,