| /freebsd/crypto/openssl/crypto/pem/ |
| H A D | pem_info.c | 57 X509_INFO *xi = NULL; in STACK_OF() local 76 if ((xi = X509_INFO_new()) == NULL) in STACK_OF() 97 if (xi->x509 != NULL) { in STACK_OF() 98 if (!sk_X509_INFO_push(ret, xi)) in STACK_OF() 100 if ((xi = X509_INFO_new()) == NULL) in STACK_OF() 108 xi->x509 = X509_new_ex(libctx, propq); in STACK_OF() 109 if (xi->x509 == NULL) in STACK_OF() 111 pp = &(xi->x509); in STACK_OF() 114 if (xi->crl != NULL) { in STACK_OF() 115 if (!sk_X509_INFO_push(ret, xi)) in STACK_OF() [all …]
|
| /freebsd/crypto/openssl/crypto/modes/asm/ |
| H A D | ghash-x86_64.pl | 138 $Xi="%rdi"; 261 movzb 15($Xi),$Zlo 264 &loop ($Xi); 266 mov $Zlo,8($Xi) 267 mov $Zhi,($Xi) 343 &mov ($Zlo,"8($Xi)"); 344 &mov ($Zhi,"0($Xi)"); 354 &mov ("($Xi)",$Zhi); 355 &mov ("8($Xi)","%rdx"); 390 &mov ($dat,"$j($Xi)") if (--$j%4==0); [all …]
|
| H A D | ghash-x86.pl | 271 &mov ($inp,&wparam(0)); # load Xi 274 &mov ($Zhh,&DWP(0,$inp)); # load Xi[16] 281 &mov (&DWP(0,"esp"),$Zhh); # copy Xi[16] on stack 304 &mov ($Zll,&wparam(0)); # load Xi 311 &mov ($Zhh,&DWP(0,$Zll)); # load Xi[16] 342 &mov ($inp,&wparam(0)); # load Xi 431 &mov ($inp,&wparam(0)); # load Xi 443 &mov ($inp,&wparam(0)); # load Xi 454 &mov ($Zhh,&wparam(0)); # load Xi 468 &mov ($Zll,&DWP(12,$Zhh)); # load Xi[16] [all …]
|
| H A D | ghash-ia64.pl | 68 ($p17) xor xi[1]=xi[1],in[1] };; 72 (p18) and Hi[1]=mask0xf0,xi[2] };; 81 { .mfi; (p17) shladd Hi[0]=xi[1],4,r0 87 { .mmi; (p16) ld1 xi[0]=[Xi],-1 103 Xi=r24; Htbl=r25; 116 $ADDP Xi=15,in0 // &Xi[15] 125 .rotr in[3],xi[3],Hi[2] 127 { .mib; ld1 xi[2]=[Xi],-1 // Xi[15] 130 { .mmi; ld1 xi[1]=[Xi],-1 // Xi[14] 132 { .mii; shladd Hi[1]=xi[2],4,r0 [all …]
|
| H A D | ghash-s390x.pl | 67 $Xi="%r2"; # argument block 76 $xi="%r10"; 96 aghi $Xi,-1 101 lg $Zlo,8+1($Xi) # Xi 119 # Chaining Value (XI) 128byte 121 lmg %r0,%r1,0($Xi) 130 stmg %r0,%r1,0($Xi) 141 aghi $Xi,-1 146 lg $Zlo,8+1($Xi) # Xi 147 lg $Zhi,0+1($Xi) [all …]
|
| H A D | ghash-riscv64.pl | 131 # void gcm_gmult_rv64i_zbc(u64 Xi[2], const u128 Htable[16]); 132 # void gcm_gmult_rv64i_zbc__zbkb(u64 Xi[2], const u128 Htable[16]); 134 # input: Xi: current hash value 136 # output: Xi: next hash value Xi 138 # Compute GMULT (Xi*H mod f) using the Zbc (clmul) and Zbb (basic bit manip) 147 my ($Xi,$Htable,$x0,$x1,$y0,$y1) = ("a0","a1","a4","a5","a6","a7"); 155 # Load Xi and bit-reverse it 156 ld $x0, 0($Xi) 157 ld $x1, 8($Xi) 193 # Bit-reverse Xi back and store it [all …]
|
| H A D | ghashp8-ppc.pl | 222 lvx_u $IN,0,$Xip # load Xi 234 vpmsumd $Xl,$IN,$Hl # H.lo·Xi.lo 235 vpmsumd $Xm,$IN,$H # H.hi·Xi.lo+H.lo·Xi.hi 236 vpmsumd $Xh,$IN,$Hh # H.hi·Xi.hi 254 stvx_u $Xl,0,$Xip # write out Xi 272 lvx_u $Xl,0,$Xip # load Xi 310 vpmsumd $Xl,$IN,$H2l # H^2.lo·Xi.lo 311 vpmsumd $Xl1,$IN1,$Hl # H.lo·Xi+1.lo 313 vpmsumd $Xm,$IN,$H2 # H^2.hi·Xi.lo+H^2.lo·Xi.hi 314 vpmsumd $Xm1,$IN1,$H # H.hi·Xi+1.lo+H.lo·Xi+1.hi [all …]
|
| H A D | aesni-gcm-x86_64.pl | 83 $Z0,$Z1,$Z2,$Z3,$Xi) = map("%xmm$_",(0..8)); 141 vpxor $Z0,$Xi,$Xi # modulo-scheduled 152 vpxor 16+8(%rsp),$Xi,$Xi # modulo-scheduled [vpxor $Z3,$Xi,$Xi] 216 vpxor 0x70+8(%rsp),$Xi,$Xi # accumulate I[0] 230 vpclmulqdq \$0x10,$Hkey,$Xi,$Z1 233 vpclmulqdq \$0x01,$Hkey,$Xi,$T1 237 vpclmulqdq \$0x00,$Hkey,$Xi,$T2 240 vpclmulqdq \$0x11,$Hkey,$Xi,$Xi 255 vpxor $Xi,$Z3,$Z3 345 vmovdqu $Z3,16+8(%rsp) # postpone vpxor $Z3,$Xi,$Xi [all …]
|
| H A D | ghash-riscv64-zvkg.pl | 107 # void gcm_gmult_rv64i_zvkg(u64 Xi[2], const u128 Htable[16]); 109 # input: Xi: current hash value 111 # output: Xi: next hash value Xi 113 my ($Xi,$Htable) = ("a0","a1"); 123 @{[vle32_v $VD, $Xi]} 125 @{[vse32_v $VD, $Xi]} 132 # void gcm_ghash_rv64i_zvkg(u64 Xi[2], const u128 Htable[16], 135 # input: Xi: current hash value 139 # output: Xi: Xi+1 (next hash value Xi) 141 my ($Xi,$Htable,$inp,$len) = ("a0","a1","a2","a3"); [all …]
|
| H A D | ghash-c64xplus.pl | 66 || MV $Xip,${xip} ; reassign Xi 70 || LDBU *++${xip}[15],$x1 ; Xi[15] 72 || LDBU *--${xip},$x0 ; Xi[14] 94 || MV $Xip,${xip} ; reassign Xi 113 || [B0] XOR $H0x,$Z0,$Z0 ; Xi^=inp 118 || [B0] SHRU $Z1,24,$xia ; Xi[15], avoid cross-path stall 120 || [B0] SHRU $Z1,16,$x0 ; Xi[14] 125 || [B0] MV $Z0,$xia ; Xi[15], avoid cross-path stall 127 || [B0] SHRU $Z0,8,$x0 ; Xi[14] 162 XORMPY $H0,$xia,$H0x ; 0 ; H·(Xi[i]<<1) [all …]
|
| H A D | ghash-armv4.pl | 98 $Xi="r0"; # argument block 126 str $_,[$Xi,#$i] 128 str $_,[$Xi,#$i] 131 strb $_,[$Xi,#$i+3] 133 strb $Tlh,[$Xi,#$i+2] 135 strb $Thl,[$Xi,#$i+1] 136 strb $Thh,[$Xi,#$i] 197 ldrb $nhi,[$Xi,#15] 215 ldrb $nhi,[$Xi,#14] 254 ldrplb $Tll,[$Xi,$cnt] [all …]
|
| /freebsd/crypto/openssl/crypto/sha/asm/ |
| H A D | sha1-mb-x86_64.pl | 101 @Xi=map("%xmm$_",(10..14)); 107 @Xi=map("%xmm$_",(0..4)); 140 movd (@ptr[0]),@Xi[0] 142 movd (@ptr[1]),@Xi[2] # borrow @Xi[2] 144 movd (@ptr[2]),@Xi[3] # borrow @Xi[3] 146 movd (@ptr[3]),@Xi[4] # borrow @Xi[4] 148 punpckldq @Xi[3],@Xi[0] 149 movd `4*$j-16*4`(@ptr[0]),@Xi[1] 150 punpckldq @Xi[4],@Xi[2] 152 punpckldq @Xi[2],@Xi[0] [all …]
|
| H A D | sha1-sparcv9.pl | 40 $Xi="%g4"; 62 my $xi=($i&1)?@X[($i/2)%8]:$Xi; 76 add $xi,$e,$e 80 " srlx @X[(($i+1)/2)%8],32,$Xi\n"; 99 sllx @X[($j+6)%8],32,$Xi ! Xupdate($i) 104 or $tmp1,$Xi,$Xi 106 xor $Xi,@X[$j%8],@X[$j%8] 107 srlx @X[$j%8],31,$Xi 109 and $Xi,$rot1m,$Xi 112 or $Xi,@X[$j%8],@X[$j%8] [all …]
|
| H A D | sha256-mb-x86_64.pl | 104 ($t1,$t2,$t3,$axb,$bxc,$Xi,$Xn,$sigma)=map("%xmm$_",(0..7)); 119 movd `4*$i`(@ptr[0]),$Xi 123 punpckldq $t2,$Xi 125 punpckldq $t1,$Xi 128 movd `4*$i`(@ptr[0]),$Xi 136 punpckldq $t2,$Xi 138 punpckldq $t1,$Xi 142 `"pshufb $Xn,$Xi" if ($i<=15 && ($i&1)==0)` 144 `"pshufb $Xn,$Xi" if ($i<=15 && ($i&1)==1)` 148 movdqa $Xi,`&Xi_off($i)` [all …]
|
| /freebsd/crypto/openssl/crypto/modes/ |
| H A D | gcm128.c | 167 static void gcm_gmult_4bit(u64 Xi[2], const u128 Htable[16]) in gcm_gmult_4bit() 174 nlo = ((const u8 *)Xi)[15]; in gcm_gmult_4bit() 196 nlo = ((const u8 *)Xi)[cnt]; in gcm_gmult_4bit() 214 Xi[0] = BSWAP8(Z.hi); in gcm_gmult_4bit() 215 Xi[1] = BSWAP8(Z.lo); in gcm_gmult_4bit() 217 u8 *p = (u8 *)Xi; in gcm_gmult_4bit() 229 Xi[0] = Z.hi; in gcm_gmult_4bit() 230 Xi[1] = Z.lo; in gcm_gmult_4bit() 245 static void gcm_ghash_4bit(u64 Xi[2], const u128 Htable[16], in gcm_ghash_4bit() 255 nlo = ((const u8 *)Xi)[15]; in gcm_ghash_4bit() [all …]
|
| /freebsd/sys/crypto/openssl/ |
| H A D | ossl_aes_gcm.c | 44 const void *key, unsigned char ivec[16], uint64_t *Xi); 46 const void *key, unsigned char ivec[16], uint64_t *Xi); 51 void GCM_init(__uint128_t Htable[16], uint64_t Xi[2]); 52 void GCM_gmult(uint64_t Xi[2], const __uint128_t Htable[16]); 53 void GCM_ghash(uint64_t Xi[2], const __uint128_t Htable[16], const void *in, 67 const void *key, unsigned char ivec[16], uint64_t *Xi); 69 const void *key, unsigned char ivec[16], uint64_t *Xi); 76 void GCM_init(__uint128_t Htable[16], uint64_t Xi[2]); 77 void GCM_gmult(uint64_t Xi[2], const __uint128_t Htable[16]); 78 void GCM_ghash(uint64_t Xi[2], const __uint128_t Htable[16], const void *in, [all …]
|
| /freebsd/crypto/openssl/providers/implementations/ciphers/ |
| H A D | cipher_aes_gcm_hw_armv8.inc | 16 const void *key, unsigned char ivec[16], u64 *Xi) 24 … unroll8_eor3_aes_gcm_enc_128_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 26 aes_gcm_enc_128_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 31 … unroll8_eor3_aes_gcm_enc_192_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 33 aes_gcm_enc_192_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 38 … unroll8_eor3_aes_gcm_enc_256_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 40 aes_gcm_enc_256_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 48 const void *key, unsigned char ivec[16], u64 *Xi) 56 … unroll8_eor3_aes_gcm_dec_128_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 58 aes_gcm_dec_128_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); [all …]
|
| H A D | cipher_aes_gcm_hw_vaes_avx512.inc | 42 void ossl_gcm_gmult_avx512(u64 Xi[2], const void *gcm128ctx); 68 gcmctx->Xi.u[0] = 0; /* AAD hash */ 69 gcmctx->Xi.u[1] = 0; 112 gcmctx->Xi.c[15 - ares] ^= *(aad++); 118 ossl_gcm_gmult_avx512(gcmctx->Xi.u, gcmctx); 137 gcmctx->Xi.c[15 - i] ^= aad[i]; 159 ossl_gcm_gmult_avx512(gcmctx->Xi.u, gcmctx); 184 memcpy(tag, gcmctx->Xi.c, 185 ctx->taglen <= sizeof(gcmctx->Xi.c) ? ctx->taglen : 186 sizeof(gcmctx->Xi.c)); [all …]
|
| /freebsd/sys/crypto/openssl/arm/ |
| H A D | ossl_aes_gcm_neon.c | 29 void gcm_init_neon(__uint128_t Htable[16], const uint64_t Xi[2]); 30 void gcm_gmult_neon(uint64_t Xi[2], const __uint128_t Htable[16]); 31 void gcm_ghash_neon(uint64_t Xi[2], const __uint128_t Htable[16], 73 ctx->gcm.Xi.u[0] = 0; in gcm_setiv() 74 ctx->gcm.Xi.u[1] = 0; in gcm_setiv() 93 gcm_gmult_neon(ctx->gcm.Xi.u, ctx->gcm.Htable); in gcm_finish() 100 ctx->gcm.Xi.u[0] ^= alen; in gcm_finish() 101 ctx->gcm.Xi.u[1] ^= clen; in gcm_finish() 102 gcm_gmult_neon(ctx->gcm.Xi.u, ctx->gcm.Htable); in gcm_finish() 104 ctx->gcm.Xi.u[0] ^= ctx->gcm.EK0.u[0]; in gcm_finish() [all …]
|
| H A D | ghashv8-armx.S | 69 vld1.64 {q9},[r0] @ load Xi 78 INST(0x86,0x0e,0xa8,0xf2) @ pmull q0,q12,q3 @ H.lo·Xi.lo 80 INST(0x87,0x4e,0xa9,0xf2) @ pmull2 q2,q12,q3 @ H.hi·Xi.hi 81 INST(0xa2,0x2e,0xaa,0xf2) @ pmull q1,q13,q9 @ (H.lo+H.hi)·(Xi.lo+Xi.hi) 102 vst1.64 {q0},[r0] @ write out Xi 111 vld1.64 {q0},[r0] @ load [rotated] Xi 132 vext.8 q0,q0,q0,#8 @ rotate Xi 146 veor q3,q3,q0 @ I[i]^=Xi 156 INST(0x86,0x0e,0xac,0xf2) @ pmull q0,q14,q3 @ H^2.lo·Xi.lo 162 INST(0x87,0x4e,0xad,0xf2) @ pmull2 q2,q14,q3 @ H^2.hi·Xi.hi [all …]
|
| /freebsd/sys/dev/ofw/ |
| H A D | openfirm.c | 118 struct xrefinfo * xi; in xrefinfo_create() local 133 xi = malloc(sizeof(*xi), M_OFWPROP, M_WAITOK | M_ZERO); in xrefinfo_create() 134 xi->node = child; in xrefinfo_create() 135 xi->xref = xref; in xrefinfo_create() 136 SLIST_INSERT_HEAD(&xreflist, xi, next_entry); in xrefinfo_create() 158 struct xrefinfo *rv, *xi; in xrefinfo_find() local 162 SLIST_FOREACH(xi, &xreflist, next_entry) { in xrefinfo_find() 163 if ((find_by == FIND_BY_XREF && (phandle_t)key == xi->xref) || in xrefinfo_find() 164 (find_by == FIND_BY_NODE && (phandle_t)key == xi->node) || in xrefinfo_find() 165 (find_by == FIND_BY_DEV && key == (uintptr_t)xi->dev)) { in xrefinfo_find() [all …]
|
| /freebsd/contrib/arm-optimized-routines/math/ |
| H A D | sincosf.h | 122 /* Reduce the range of XI to a multiple of PI/2 using fast integer arithmetic. 123 XI is a reinterpreted float and must be >= 2.0f (the sign bit is ignored). 130 reduce_large (uint32_t xi, int *np) in reduce_large() argument 132 const uint32_t *arr = &__inv_pio4[(xi >> 26) & 15]; in reduce_large() 133 int shift = (xi >> 23) & 7; in reduce_large() 136 xi = (xi & 0xffffff) | 0x800000; in reduce_large() 137 xi <<= shift; in reduce_large() 139 res0 = xi * arr[0]; in reduce_large() 140 res1 = (uint64_t)xi * arr[4]; in reduce_large() 141 res2 = (uint64_t)xi * arr[8]; in reduce_large()
|
| /freebsd/sbin/ipfw/ |
| H A D | tables.c | 64 char *key, int add, uint8_t *ptype, uint32_t *pvmask, ipfw_xtable_info *xi); 408 ipfw_xtable_info xi, xie; in table_create() local 415 memset(&xi, 0, sizeof(xi)); in table_create() 423 xi.limit = strtol(*av, NULL, 10); in table_create() 439 xi.type = val; in table_create() 441 error = table_parse_type(val, p, &xi.tflags); in table_create() 453 xi.vmask = fset; in table_create() 463 if (strlen(*av) > sizeof(xi.algoname)) in table_create() 465 strlcpy(xi.algoname, *av, sizeof(xi.algoname)); in table_create() 469 xi.flags |= IPFW_TGFLAGS_LOCKED; in table_create() [all …]
|
| /freebsd/contrib/wireguard-tools/ |
| H A D | curve25519-hacl64.h | 52 u128 xi = input[0]; in fproduct_copy_from_wide_() local 53 output[0] = ((u64)(xi)); in fproduct_copy_from_wide_() 56 u128 xi = input[1]; in fproduct_copy_from_wide_() local 57 output[1] = ((u64)(xi)); in fproduct_copy_from_wide_() 60 u128 xi = input[2]; in fproduct_copy_from_wide_() local 61 output[2] = ((u64)(xi)); in fproduct_copy_from_wide_() 64 u128 xi = input[3]; in fproduct_copy_from_wide_() local 65 output[3] = ((u64)(xi)); in fproduct_copy_from_wide_() 68 u128 xi = input[4]; in fproduct_copy_from_wide_() local 69 output[4] = ((u64)(xi)); in fproduct_copy_from_wide_() [all …]
|
| /freebsd/crypto/openssl/crypto/x509/ |
| H A D | x509_r2x.c | 23 X509_CINF *xi = NULL; in X509_REQ_to_X509() local 33 xi = &ret->cert_info; in X509_REQ_to_X509() 36 if ((xi->version = ASN1_INTEGER_new()) == NULL) in X509_REQ_to_X509() 38 if (!ASN1_INTEGER_set(xi->version, 2)) in X509_REQ_to_X509() 40 /*- xi->extensions=ri->attributes; <- bad, should not ever be done in X509_REQ_to_X509() 50 if (X509_gmtime_adj(xi->validity.notBefore, 0) == NULL) in X509_REQ_to_X509() 52 if (X509_gmtime_adj(xi->validity.notAfter, (long)60 * 60 * 24 * days) == in X509_REQ_to_X509()
|