Home
last modified time | relevance | path

Searched refs:Htable (Results 1 – 11 of 11) sorted by relevance

/freebsd-13-stable/crypto/openssl/crypto/modes/
HDgcm128.c78 static void gcm_init_8bit(u128 Htable[256], u64 H[2]) in gcm_init_8bit()
83 Htable[0].hi = 0; in gcm_init_8bit()
84 Htable[0].lo = 0; in gcm_init_8bit()
88 for (Htable[128] = V, i = 64; i > 0; i >>= 1) { in gcm_init_8bit()
90 Htable[i] = V; in gcm_init_8bit()
94 u128 *Hi = Htable + i, H0 = *Hi; in gcm_init_8bit()
96 Hi[j].hi = H0.hi ^ Htable[j].hi; in gcm_init_8bit()
97 Hi[j].lo = H0.lo ^ Htable[j].lo; in gcm_init_8bit()
102 static void gcm_gmult_8bit(u64 Xi[2], const u128 Htable[256]) in gcm_gmult_8bit()
179 Z.hi ^= Htable[n].hi; in gcm_gmult_8bit()
[all …]
HDmodes_local.h132 u128 Htable[256]; member
134 u128 Htable[16]; member
135 void (*gmult) (u64 Xi[2], const u128 Htable[16]);
136 void (*ghash) (u64 Xi[2], const u128 Htable[16], const u8 *inp,
/freebsd-13-stable/crypto/openssl/crypto/modes/asm/
HDghash-ia64.pl255 { .mmi; add $Htbl=256,sp // &Htable[0]
279 dep $Atbl=$xi[1],$Htbl,4,4 //(p17) &Htable[nlo].lo
286 add $Btbl=$xi[1],$Htbl };; //(p17) &Htable[nhi].lo
291 { .mmi; ld8 $Alo=[$Atbl],8 //(p18) Htable[nlo].lo,&Htable[nlo].hi
295 dep $Atbl=$xi[1],$Htbl,4,4 } //(p17) &Htable[nlo].lo
307 add $Btbl=$xi[1],$Htbl };; //(p17) &Htable[nhi]
315 { .mmi; ld8 $Alo=[$Atbl],8 //(p18) Htable[nlo].lo,&Htable[nlo].hi
323 dep $Atbl=$xi[1],$Htbl,4,4 } //(p17) &Htable[nlo].lo
338 add $Btbl=$xi[1],$Htbl };; //(p17) &Htable[nhi]
344 { .mmi; ld8 $Alo=[$Atbl],8 //(p18) Htable[nlo].lo,&Htable[nlo].hi
[all …]
HDghash-c64xplus.pl32 ($Xip,$Htable,$inp,$len)=("A4","B4","A6","B6"); # arguments
60 ADDAD $Htable,2,$Htable
65 LDDW *${Htable}[-1],$H1:$H0 ; H.lo
66 LDDW *${Htable}[-2],$H3:$H2 ; H.hi
92 LDDW *${Htable}[-1],$H1:$H0 ; H.lo
94 LDDW *${Htable}[-2],$H3:$H2 ; H.hi
HDghash-sparcv9.pl356 ($Xip,$Htable,$inp,$len)=map("%i$_",(0..3));
405 ldx [$Htable+8],$Hlo ! load twisted H
406 ldx [$Htable+0],$Hhi
410 ldx [$Htable+16],$V ! (0xE0·i)&0xff=0xA040608020C0E000
461 ldx [$Htable+8],$Hlo ! load twisted H
462 ldx [$Htable+0],$Hhi
466 ldx [$Htable+16],$V ! (0xE0·i)&0xff=0xA040608020C0E000
/freebsd-13-stable/sys/crypto/armv8/
HDarmv8_crypto_wrap.c332 const uint8_t iv[static AES_GCM_IV_LEN], const __uint128_val_t *Htable) in armv8_aes_gmac_setup() argument
352 gcm_ghash_v8(s->Xi.u, Htable, authdata, authdatalen - trailer); in armv8_aes_gmac_setup()
358 gcm_ghash_v8(s->Xi.u, Htable, block, AES_BLOCK_LEN); in armv8_aes_gmac_setup()
364 size_t authdatalen, const __uint128_val_t *Htable) in armv8_aes_gmac_finish() argument
370 gcm_ghash_v8(s->Xi.u, Htable, s->lenblock.c, AES_BLOCK_LEN); in armv8_aes_gmac_finish()
399 const __uint128_val_t *Htable) in armv8_aes_encrypt_gcm() argument
406 armv8_aes_gmac_setup(&s, aes_key, authdata, authdatalen, iv, Htable); in armv8_aes_encrypt_gcm()
428 gcm_ghash_v8(s.Xi.u, Htable, block, seglen); in armv8_aes_encrypt_gcm()
436 gcm_ghash_v8(s.Xi.u, Htable, (uint8_t *)to64, in armv8_aes_encrypt_gcm()
449 armv8_aes_gmac_finish(&s, olen, authdatalen, Htable); in armv8_aes_encrypt_gcm()
[all …]
HDarmv8_crypto.h51 __uint128_val_t Htable[16]; member
60 void gcm_init_v8(__uint128_val_t Htable[16], const uint64_t Xi[2]);
61 void gcm_gmult_v8(uint64_t Xi[2], const __uint128_val_t Htable[16]);
62 void gcm_ghash_v8(uint64_t Xi[2], const __uint128_val_t Htable[16], const uint8_t *inp, size_t len);
HDarmv8_crypto.c312 gcm_init_v8(ses->Htable, H.u); in armv8_crypto_cipher_setup()
458 crp->crp_aad_length, authbuf, tag, iv, ses->Htable); in armv8_crypto_cipher_process()
466 crp->crp_aad_length, authbuf, tag, iv, ses->Htable); in armv8_crypto_cipher_process()
/freebsd-13-stable/sys/crypto/openssl/arm/
HDghashv8-armx.S28 vst1.64 {q12},[r0]! @ store Htable[0]
55 vst1.64 {q13,q14},[r0]! @ store Htable[1..2]
/freebsd-13-stable/sys/contrib/openzfs/module/icp/algs/modes/
HDgcm.c1072 extern void gcm_init_htab_avx(uint64_t *Htable, const uint64_t H[2]);
1073 extern void gcm_ghash_avx(uint64_t ghash[2], const uint64_t *Htable,
/freebsd-13-stable/crypto/openssl/crypto/evp/
HDe_aes.c258 void gcm_ghash_avx(u64 Xi[2], const u128 Htable[16], const u8 *in,