Lines Matching refs:dg
62 asmlinkage void pmull_ghash_update_p64(int blocks, u64 dg[], const char *src,
65 asmlinkage void pmull_ghash_update_p8(int blocks, u64 dg[], const char *src,
78 static void ghash_do_update(int blocks, u64 dg[], const char *src,
84 pmull_ghash_update_p64(blocks, dg, src, key->h, head);
86 pmull_ghash_update_p8(blocks, dg, src, key->h, head);
89 be128 dst = { cpu_to_be64(dg[1]), cpu_to_be64(dg[0]) };
106 dg[0] = be64_to_cpu(dst.b);
107 dg[1] = be64_to_cpu(dst.a);
365 void pmull_gcm_encrypt(int blocks, u64 dg[], const char *src,
369 void pmull_gcm_enc_final(int blocks, u64 dg[], char *tag,
373 void pmull_gcm_decrypt(int bytes, u64 dg[], const char *src,
377 int pmull_gcm_dec_final(int bytes, u64 dg[], char *tag,
421 static void gcm_update_mac(u64 dg[], const u8 *src, int count, u8 buf[],
437 pmull_ghash_update_p64(blocks, dg, src, ctx->h,
451 static void gcm_calculate_auth_mac(struct aead_request *req, u64 dg[], u32 len)
471 gcm_update_mac(dg, p, n, buf, &buf_count, ctx);
486 pmull_ghash_update_p64(1, dg, buf, ctx->h, NULL);
497 u64 dg[2] = {};
511 gcm_calculate_auth_mac(req, dg, assoclen);
519 pmull_gcm_encrypt(nblocks, dg, src, ctx, dst, iv,
560 pmull_gcm_enc_final(tail, dg, tag, ctx, (u8 *)src, iv,
589 u64 dg[2] = {};
607 gcm_calculate_auth_mac(req, dg, assoclen);
615 pmull_gcm_decrypt(nblocks, dg, src, ctx, dst, iv,
647 ret = pmull_gcm_dec_final(tail, dg, tag, ctx, (u8 *)src, iv,