Home | History | Annotate | Download | only in cipher

Lines Matching defs:gcm

89   GCM128_CONTEXT gcm;
268 (gctx->ctr == aesni_ctr32_encrypt_blocks && gctx->gcm.ghash == gcm_ghash_avx)
477 gcm, NULL, key, ctx->key_len);
483 CRYPTO_gcm128_setiv(&gctx->gcm, &gctx->ks.ks, iv, gctx->ivlen);
490 CRYPTO_gcm128_setiv(&gctx->gcm, &gctx->ks.ks, iv, gctx->ivlen);
502 OPENSSL_cleanse(&gctx->gcm, sizeof(gctx->gcm));
594 CRYPTO_gcm128_setiv(&gctx->gcm, &gctx->ks.ks, gctx->iv, gctx->ivlen);
611 CRYPTO_gcm128_setiv(&gctx->gcm, &gctx->ks.ks, gctx->iv, gctx->ivlen);
649 if (!CRYPTO_gcm128_aad(&gctx->gcm, in, len)) {
657 size_t res = (16 - gctx->gcm.mres) % 16;
659 if (!CRYPTO_gcm128_encrypt(&gctx->gcm, &gctx->ks.ks, in, out, res)) {
664 gctx->gcm.Yi.c, gctx->gcm.Xi.u);
665 gctx->gcm.len.u[1] += bulk;
669 if (!CRYPTO_gcm128_encrypt_ctr32(&gctx->gcm, &gctx->ks.ks, in + bulk,
675 if (!CRYPTO_gcm128_encrypt(&gctx->gcm, &gctx->ks.ks, in + bulk,
685 size_t res = (16 - gctx->gcm.mres) % 16;
687 if (!CRYPTO_gcm128_decrypt(&gctx->gcm, &gctx->ks.ks, in, out, res)) {
692 gctx->gcm.Yi.c, gctx->gcm.Xi.u);
693 gctx->gcm.len.u[1] += bulk;
697 if (!CRYPTO_gcm128_decrypt_ctr32(&gctx->gcm, &gctx->ks.ks, in + bulk,
703 if (!CRYPTO_gcm128_decrypt(&gctx->gcm, &gctx->ks.ks, in + bulk,
713 !CRYPTO_gcm128_finish(&gctx->gcm, ctx->buf, gctx->taglen)) {
719 CRYPTO_gcm128_tag(&gctx->gcm, ctx->buf, 16);
890 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, (block128_f)aesni_encrypt);
898 CRYPTO_gcm128_setiv(&gctx->gcm, &gctx->ks.ks, iv, gctx->ivlen);
905 CRYPTO_gcm128_setiv(&gctx->gcm, &gctx->ks.ks, iv, gctx->ivlen);
1036 EVP_CIPHER_FUNCTION(128, gcm)
1041 EVP_CIPHER_FUNCTION(192, gcm)
1047 EVP_CIPHER_FUNCTION(256, gcm)
1057 GCM128_CONTEXT gcm;
1087 aes_ctr_set_key(&gcm_ctx->ks.ks, &gcm_ctx->gcm, NULL, key, key_len);
1106 GCM128_CONTEXT gcm;
1120 memcpy(&gcm, &gcm_ctx->gcm, sizeof(gcm));
1121 CRYPTO_gcm128_setiv(&gcm, key, nonce, nonce_len);
1123 if (ad_len > 0 && !CRYPTO_gcm128_aad(&gcm, ad, ad_len)) {
1128 if (!CRYPTO_gcm128_encrypt_ctr32(&gcm, key, in, out, in_len,
1133 if (!CRYPTO_gcm128_encrypt(&gcm, key, in, out, in_len)) {
1138 CRYPTO_gcm128_tag(&gcm, out + in_len, gcm_ctx->tag_len);
1151 GCM128_CONTEXT gcm;
1167 memcpy(&gcm, &gcm_ctx->gcm, sizeof(gcm));
1168 CRYPTO_gcm128_setiv(&gcm, key, nonce, nonce_len);
1170 if (!CRYPTO_gcm128_aad(&gcm, ad, ad_len)) {
1175 if (!CRYPTO_gcm128_decrypt_ctr32(&gcm, key, in, out,
1180 if (!CRYPTO_gcm128_decrypt(&gcm, key, in, out, in_len - gcm_ctx->tag_len)) {
1185 CRYPTO_gcm128_tag(&gcm, tag, gcm_ctx->tag_len);