Lines Matching refs:Htable
88 static void gcm_init_4bit(u128 Htable[16], const u64 H[2]) in gcm_init_4bit()
95 Htable[0].hi = 0; in gcm_init_4bit()
96 Htable[0].lo = 0; in gcm_init_4bit()
101 for (Htable[8] = V, i = 4; i > 0; i >>= 1) { in gcm_init_4bit()
103 Htable[i] = V; in gcm_init_4bit()
107 u128 *Hi = Htable + i; in gcm_init_4bit()
110 Hi[j].hi = V.hi ^ Htable[j].hi; in gcm_init_4bit()
111 Hi[j].lo = V.lo ^ Htable[j].lo; in gcm_init_4bit()
115 Htable[8] = V; in gcm_init_4bit()
117 Htable[4] = V; in gcm_init_4bit()
119 Htable[2] = V; in gcm_init_4bit()
121 Htable[1] = V; in gcm_init_4bit()
122 Htable[3].hi = V.hi ^ Htable[2].hi, Htable[3].lo = V.lo ^ Htable[2].lo; in gcm_init_4bit()
123 V = Htable[4]; in gcm_init_4bit()
124 Htable[5].hi = V.hi ^ Htable[1].hi, Htable[5].lo = V.lo ^ Htable[1].lo; in gcm_init_4bit()
125 Htable[6].hi = V.hi ^ Htable[2].hi, Htable[6].lo = V.lo ^ Htable[2].lo; in gcm_init_4bit()
126 Htable[7].hi = V.hi ^ Htable[3].hi, Htable[7].lo = V.lo ^ Htable[3].lo; in gcm_init_4bit()
127 V = Htable[8]; in gcm_init_4bit()
128 Htable[9].hi = V.hi ^ Htable[1].hi, Htable[9].lo = V.lo ^ Htable[1].lo; in gcm_init_4bit()
129 Htable[10].hi = V.hi ^ Htable[2].hi, Htable[10].lo = V.lo ^ Htable[2].lo; in gcm_init_4bit()
130 Htable[11].hi = V.hi ^ Htable[3].hi, Htable[11].lo = V.lo ^ Htable[3].lo; in gcm_init_4bit()
131 Htable[12].hi = V.hi ^ Htable[4].hi, Htable[12].lo = V.lo ^ Htable[4].lo; in gcm_init_4bit()
132 Htable[13].hi = V.hi ^ Htable[5].hi, Htable[13].lo = V.lo ^ Htable[5].lo; in gcm_init_4bit()
133 Htable[14].hi = V.hi ^ Htable[6].hi, Htable[14].lo = V.lo ^ Htable[6].lo; in gcm_init_4bit()
134 Htable[15].hi = V.hi ^ Htable[7].hi, Htable[15].lo = V.lo ^ Htable[7].lo; in gcm_init_4bit()
146 V = Htable[j]; in gcm_init_4bit()
147 Htable[j].hi = V.lo; in gcm_init_4bit()
148 Htable[j].lo = V.hi; in gcm_init_4bit()
151 V = Htable[j]; in gcm_init_4bit()
152 Htable[j].hi = V.lo << 32 | V.lo >> 32; in gcm_init_4bit()
153 Htable[j].lo = V.hi << 32 | V.hi >> 32; in gcm_init_4bit()
167 static void gcm_gmult_4bit(u64 Xi[2], const u128 Htable[16]) in gcm_gmult_4bit()
178 Z.hi = Htable[nlo].hi; in gcm_gmult_4bit()
179 Z.lo = Htable[nlo].lo; in gcm_gmult_4bit()
190 Z.hi ^= Htable[nhi].hi; in gcm_gmult_4bit()
191 Z.lo ^= Htable[nhi].lo; in gcm_gmult_4bit()
208 Z.hi ^= Htable[nlo].hi; in gcm_gmult_4bit()
209 Z.lo ^= Htable[nlo].lo; in gcm_gmult_4bit()
245 static void gcm_ghash_4bit(u64 Xi[2], const u128 Htable[16], in gcm_ghash_4bit()
260 Z.hi = Htable[nlo].hi; in gcm_ghash_4bit()
261 Z.lo = Htable[nlo].lo; in gcm_ghash_4bit()
272 Z.hi ^= Htable[nhi].hi; in gcm_ghash_4bit()
273 Z.lo ^= Htable[nhi].lo; in gcm_ghash_4bit()
291 Z.hi ^= Htable[nlo].hi; in gcm_ghash_4bit()
292 Z.lo ^= Htable[nlo].lo; in gcm_ghash_4bit()
323 void gcm_gmult_4bit(u64 Xi[2], const u128 Htable[16]);
324 void gcm_ghash_4bit(u64 Xi[2], const u128 Htable[16], const u8 *inp,
328 # define GCM_MUL(ctx) ctx->funcs.gmult(ctx->Xi.u,ctx->Htable)
330 # define GHASH(ctx,in,len) ctx->funcs.ghash((ctx)->Xi.u,(ctx)->Htable,in,len)
346 void gcm_init_clmul(u128 Htable[16], const u64 Xi[2]);
347 void gcm_gmult_clmul(u64 Xi[2], const u128 Htable[16]);
348 void gcm_ghash_clmul(u64 Xi[2], const u128 Htable[16], const u8 *inp,
356 void gcm_init_avx(u128 Htable[16], const u64 Xi[2]);
357 void gcm_gmult_avx(u64 Xi[2], const u128 Htable[16]);
358 void gcm_ghash_avx(u64 Xi[2], const u128 Htable[16], const u8 *inp,
364 void gcm_gmult_4bit_mmx(u64 Xi[2], const u128 Htable[16]);
365 void gcm_ghash_4bit_mmx(u64 Xi[2], const u128 Htable[16], const u8 *inp,
368 void gcm_gmult_4bit_x86(u64 Xi[2], const u128 Htable[16]);
369 void gcm_ghash_4bit_x86(u64 Xi[2], const u128 Htable[16], const u8 *inp,
380 void gcm_init_neon(u128 Htable[16], const u64 Xi[2]);
381 void gcm_gmult_neon(u64 Xi[2], const u128 Htable[16]);
382 void gcm_ghash_neon(u64 Xi[2], const u128 Htable[16], const u8 *inp,
384 void gcm_init_v8(u128 Htable[16], const u64 Xi[2]);
385 void gcm_gmult_v8(u64 Xi[2], const u128 Htable[16]);
386 void gcm_ghash_v8(u64 Xi[2], const u128 Htable[16], const u8 *inp,
392 void gcm_init_vis3(u128 Htable[16], const u64 Xi[2]);
393 void gcm_gmult_vis3(u64 Xi[2], const u128 Htable[16]);
394 void gcm_ghash_vis3(u64 Xi[2], const u128 Htable[16], const u8 *inp,
399 void gcm_init_p8(u128 Htable[16], const u64 Xi[2]);
400 void gcm_gmult_p8(u64 Xi[2], const u128 Htable[16]);
401 void gcm_ghash_p8(u64 Xi[2], const u128 Htable[16], const u8 *inp,
407 void gcm_init_rv64i_zbc(u128 Htable[16], const u64 Xi[2]);
408 void gcm_init_rv64i_zbc__zbb(u128 Htable[16], const u64 Xi[2]);
409 void gcm_init_rv64i_zbc__zbkb(u128 Htable[16], const u64 Xi[2]);
410 void gcm_gmult_rv64i_zbc(u64 Xi[2], const u128 Htable[16]);
411 void gcm_gmult_rv64i_zbc__zbkb(u64 Xi[2], const u128 Htable[16]);
412 void gcm_ghash_rv64i_zbc(u64 Xi[2], const u128 Htable[16],
414 void gcm_ghash_rv64i_zbc__zbkb(u64 Xi[2], const u128 Htable[16],
417 void gcm_init_rv64i_zvkb_zvbc(u128 Htable[16], const u64 Xi[2]);
418 void gcm_gmult_rv64i_zvkb_zvbc(u64 Xi[2], const u128 Htable[16]);
419 void gcm_ghash_rv64i_zvkb_zvbc(u64 Xi[2], const u128 Htable[16],
422 void gcm_init_rv64i_zvkg(u128 Htable[16], const u64 Xi[2]);
423 void gcm_init_rv64i_zvkg_zvkb(u128 Htable[16], const u64 Xi[2]);
424 void gcm_gmult_rv64i_zvkg(u64 Xi[2], const u128 Htable[16]);
425 void gcm_ghash_rv64i_zvkg(u64 Xi[2], const u128 Htable[16],
565 void ossl_gcm_init_4bit(u128 Htable[16], const u64 H[2]) in ossl_gcm_init_4bit()
570 funcs.ginit(Htable, H); in ossl_gcm_init_4bit()
573 void ossl_gcm_gmult_4bit(u64 Xi[2], const u128 Htable[16]) in ossl_gcm_gmult_4bit()
578 funcs.gmult(Xi, Htable); in ossl_gcm_gmult_4bit()
581 void ossl_gcm_ghash_4bit(u64 Xi[2], const u128 Htable[16], in ossl_gcm_ghash_4bit()
590 funcs.ghash(Xi, Htable, inp, len); in ossl_gcm_ghash_4bit()
597 funcs.gmult(Xi, Htable); in ossl_gcm_ghash_4bit()
628 ctx->funcs.ginit(ctx->Htable, ctx->H.u); in CRYPTO_gcm128_init()