/openssl-master/include/internal/ |
A D | constant_time.h | 280 return (value_barrier(mask) & a) | (value_barrier(~mask) & b); in constant_time_select() 283 static ossl_inline size_t constant_time_select_s(size_t mask, in constant_time_select_s() argument 287 return (value_barrier_s(mask) & a) | (value_barrier_s(~mask) & b); in constant_time_select_s() 294 return (unsigned char)constant_time_select(mask, a, b); in constant_time_select_8() 312 return (value_barrier_32(mask) & a) | (value_barrier_32(~mask) & b); in constant_time_select_32() 318 return (value_barrier_64(mask) & a) | (value_barrier_64(~mask) & b); in constant_time_select_64() 336 xor &= mask; in constant_time_cond_swap_32() 356 xor &= mask; in constant_time_cond_swap_64() 383 tmp &= mask; in constant_time_cond_swap_buff() 403 unsigned char mask; in constant_time_lookup() local [all …]
|
/openssl-master/crypto/asn1/ |
A D | a_strnid.c | 30 global_mask = mask; in ASN1_STRING_set_default_mask() 50 unsigned long mask; in ASN1_STRING_set_default_mask_asc() local 56 mask = strtoul(p + 5, &end, 0); in ASN1_STRING_set_default_mask_asc() 64 mask = B_ASN1_UTF8STRING; in ASN1_STRING_set_default_mask_asc() 66 mask = 0xFFFFFFFFL; in ASN1_STRING_set_default_mask_asc() 85 unsigned long mask; in ASN1_STRING_set_by_NID() local 92 mask = tbl->mask; in ASN1_STRING_set_by_NID() 94 mask &= global_mask; in ASN1_STRING_set_by_NID() 174 rv->mask = tmp->mask; in stable_get() 200 if (mask) in ASN1_STRING_TABLE_add() [all …]
|
A D | a_mbstr.c | 37 int inform, unsigned long mask) in ASN1_mbstring_copy() argument 39 return ASN1_mbstring_ncopy(out, in, len, inform, mask, 0, 0); in ASN1_mbstring_copy() 43 int inform, unsigned long mask, in ASN1_mbstring_ncopy() argument 56 if (!mask) in ASN1_mbstring_ncopy() 57 mask = DIRSTRING_TYPE; in ASN1_mbstring_ncopy() 119 if (mask & B_ASN1_NUMERICSTRING) in ASN1_mbstring_ncopy() 121 else if (mask & B_ASN1_PRINTABLESTRING) in ASN1_mbstring_ncopy() 123 else if (mask & B_ASN1_IA5STRING) in ASN1_mbstring_ncopy() 125 else if (mask & B_ASN1_T61STRING) in ASN1_mbstring_ncopy() 127 else if (mask & B_ASN1_BMPSTRING) { in ASN1_mbstring_ncopy() [all …]
|
/openssl-master/crypto/ec/curve448/arch_64/ |
A D | f_impl64.c | 29 uint64_t mask = (1ULL << 56) - 1; 66 c[4] = ((uint64_t)(accum0)) & mask; 67 c[0] = ((uint64_t)(accum1)) & mask; 81 uint64_t mask = (1ULL << 56) - 1; 87 c[i] = accum0 & mask; 89 c[i + 4] = accum4 & mask; 94 c[4] = accum0 & mask; 98 c[0] = accum4 & mask; 107 uint64_t mask = (1ULL << 56) - 1; 148 c[0] = ((uint64_t)(accum0)) & mask; [all …]
|
/openssl-master/crypto/bn/asm/ |
A D | sparcv9-mont.pl | 105 or $mask,%lo(0xffffffff),$mask 108 and $num,$mask,$num 125 and $car0,$mask,$acc0 130 and $mul1,$mask,$mul1 145 and $car0,$mask,$acc0 163 and $car0,$mask,$acc0 171 and $car0,$mask,$acc0 198 and $car0,$mask,$acc0 201 and $mul1,$mask,$mul1 219 and $car0,$mask,$acc0 [all …]
|
A D | armv4-gf2m.pl | 80 $mask="r12"; 101 and $i0,$mask,$b,lsl#2 104 and $i1,$mask,$b,lsr#1 106 and $i0,$mask,$b,lsr#4 108 and $i1,$mask,$b,lsr#7 114 and $i0,$mask,$b,lsr#10 119 and $i1,$mask,$b,lsr#13 124 and $i0,$mask,$b,lsr#16 129 and $i1,$mask,$b,lsr#19 134 and $i0,$mask,$b,lsr#22 [all …]
|
A D | sparcv9a-mont.pl | 151 or $mask,%lo(0xffff),$mask 410 and %o0,$mask,%o0 413 and %o1,$mask,%o1 414 and %o2,$mask,%o2 476 and %o0,$mask,%o0 477 and %o1,$mask,%o1 478 and %o2,$mask,%o2 497 and %o4,$mask,%o4 633 and %o0,$mask,%o0 635 and %o1,$mask,%o1 [all …]
|
/openssl-master/crypto/aes/asm/ |
A D | aes-s390x.pl | 309 nr $s0,$mask 311 nr $t2,$mask 312 nr $t3,$mask 318 nr $i1,$mask 319 nr $s1,$mask 321 nr $i3,$mask 335 nr $i1,$mask 336 nr $i2,$mask 339 nr $s2,$mask 345 nr $ra,$mask [all …]
|
A D | aesfx-sparcv9.pl | 104 mov 0xff, $mask 105 srl $mask, $tmp, $mask 194 mov 0xff, $mask 195 srl $mask, $tmp, $mask 529 mov 0xff, $mask 530 srl $mask, $oalign, $mask 537 orn %g0, $mask, $mask 737 srl $mask, $oalign, $mask 744 orn %g0, $mask, $mask 993 srl $mask, $oalign, $mask [all …]
|
/openssl-master/crypto/ec/curve448/arch_32/ |
A D | f_impl32.c | 29 uint32_t mask = (1 << 28) - 1; 55 c[j] = ((uint32_t)(accum0)) & mask; 56 c[j + 8] = ((uint32_t)(accum1)) & mask; 64 c[8] = ((uint32_t)(accum0)) & mask; 65 c[0] = ((uint32_t)(accum1)) & mask; 78 uint32_t mask = (1 << 28) - 1; 81 assert(b <= mask); 86 c[i] = accum0 & mask; 88 c[i + 8] = accum8 & mask; 93 c[8] = ((uint32_t)accum0) & mask; [all …]
|
/openssl-master/crypto/bn/ |
A D | bn_lib.c | 102 BN_ULONG x, mask; in BN_num_bits_word() local 108 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word() 115 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word() 121 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word() 122 bits += 8 & mask; in BN_num_bits_word() 127 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word() 128 bits += 4 & mask; in BN_num_bits_word() 133 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word() 134 bits += 2 & mask; in BN_num_bits_word() 139 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word() [all …]
|
A D | bn_mod.c | 53 BN_ULONG carry, temp, mask, *rp, *tp = storage; in bn_mod_add_fixed_top() local 71 mask = (BN_ULONG)0 - ((i - a->top) >> (8 * sizeof(i) - 1)); in bn_mod_add_fixed_top() 72 temp = ((ap[ai] & mask) + carry) & BN_MASK2; in bn_mod_add_fixed_top() 76 tp[i] = ((bp[bi] & mask) + temp) & BN_MASK2; in bn_mod_add_fixed_top() 136 BN_ULONG borrow, carry, ta, tb, mask, *rp; in bn_mod_sub_fixed_top() local 148 ta = ap[ai] & mask; in bn_mod_sub_fixed_top() 151 tb = bp[bi] & mask; in bn_mod_sub_fixed_top() 161 for (i = 0, mask = 0 - borrow, carry = 0; i < mtop; i++) { in bn_mod_sub_fixed_top() 162 ta = ((ap[i] & mask) + carry) & BN_MASK2; in bn_mod_sub_fixed_top() 168 for (i = 0, mask = 0 - borrow, carry = 0; i < mtop; i++) { in bn_mod_sub_fixed_top() [all …]
|
A D | bn_nist.c | 330 PTR_SIZE_INT mask; in BN_nist_mod_192() local 431 mask = in BN_nist_mod_192() 437 (((PTR_SIZE_INT) res & ~mask) | ((PTR_SIZE_INT) r_d & mask)); in BN_nist_mod_192() 471 PTR_SIZE_INT mask; in BN_nist_mod_224() local 615 mask = in BN_nist_mod_224() 652 PTR_SIZE_INT mask; in BN_nist_mod_256() local 857 mask = in BN_nist_mod_256() 898 PTR_SIZE_INT mask; in BN_nist_mod_384() local 1138 mask = in BN_nist_mod_384() 1160 PTR_SIZE_INT mask; in BN_nist_mod_521() local [all …]
|
/openssl-master/crypto/poly1305/asm/ |
A D | poly1305-ppcfp.pl | 554 my $mask = "r0"; 578 lis $mask,0xfff0 583 li $mask,3 586 and $h4,$d3,$mask 602 addze $mask,$h4 604 srwi $mask,$mask,2 # did it carry/borrow? 605 neg $mask,$mask 606 srawi $mask,$mask,31 # mask 609 and $d0,$d0,$mask 654 neg $mask,$mask [all …]
|
/openssl-master/crypto/ec/asm/ |
A D | ecp_nistz256-armv4.pl | 818 mov $mask,#0 823 movne $mask,#-1 829 and r4,r4,$mask 831 and r5,r5,$mask 833 and r6,r6,$mask 835 and r7,r7,$mask 902 mov $mask,$mask,lsr#8 904 mov $mask,$mask,lsr#8 906 mov $mask,$mask,lsr#8 927 mov $mask,#0 [all …]
|
/openssl-master/crypto/rc4/asm/ |
A D | rc4-parisc.pl | 98 $mask="%r31"; 105 and $mask,$XX[1],$XX[1] 117 and $mask,$TY,$TY 118 and $mask,$YY,$YY 135 and $mask,$TY,$TY 136 and $mask,$XX[0],$XX[0] 144 and $mask,$YY,$YY 171 ldi 0xff,$mask 179 and $mask,$YY,$YY 241 and $mask,$YY,$YY [all …]
|
/openssl-master/crypto/poly1305/ |
A D | poly1305.c | 220 u64 mask; in poly1305_emit() local 232 mask = 0 - (g2 >> 2); in poly1305_emit() 233 g0 &= mask; in poly1305_emit() 234 g1 &= mask; in poly1305_emit() 235 mask = ~mask; in poly1305_emit() 386 u32 mask; in poly1305_emit() local 403 g0 &= mask; in poly1305_emit() 404 g1 &= mask; in poly1305_emit() 405 g2 &= mask; in poly1305_emit() 406 g3 &= mask; in poly1305_emit() [all …]
|
A D | poly1305_base2_44.c | 141 u64 mask; in poly1305_emit() local 158 mask = 0 - (g2 >> 2); in poly1305_emit() 159 g0 &= mask; in poly1305_emit() 160 g1 &= mask; in poly1305_emit() 161 mask = ~mask; in poly1305_emit() 162 h0 = (h0 & mask) | g0; in poly1305_emit() 163 h1 = (h1 & mask) | g1; in poly1305_emit()
|
/openssl-master/providers/implementations/ciphers/ |
A D | cipher_aes_cbc_hmac_sha256_hw.c | 491 size_t inp_len, mask, j, i; in aesni_cbc_hmac_sha256_cipher() local 517 ret &= mask; in aesni_cbc_hmac_sha256_cipher() 570 c &= mask; in aesni_cbc_hmac_sha256_cipher() 616 pmac->u[0] |= sctx->md.h[0] & mask; in aesni_cbc_hmac_sha256_cipher() 617 pmac->u[1] |= sctx->md.h[1] & mask; in aesni_cbc_hmac_sha256_cipher() 618 pmac->u[2] |= sctx->md.h[2] & mask; in aesni_cbc_hmac_sha256_cipher() 619 pmac->u[3] |= sctx->md.h[3] & mask; in aesni_cbc_hmac_sha256_cipher() 620 pmac->u[4] |= sctx->md.h[4] & mask; in aesni_cbc_hmac_sha256_cipher() 621 pmac->u[5] |= sctx->md.h[5] & mask; in aesni_cbc_hmac_sha256_cipher() 622 pmac->u[6] |= sctx->md.h[6] & mask; in aesni_cbc_hmac_sha256_cipher() [all …]
|
A D | cipher_aes_cbc_hmac_sha1_hw.c | 449 size_t inp_len, mask, j, i; in aesni_cbc_hmac_sha1_cipher() local 480 mask = constant_time_ge(maxpad, pad); in aesni_cbc_hmac_sha1_cipher() 481 ret &= mask; in aesni_cbc_hmac_sha1_cipher() 531 c &= mask; in aesni_cbc_hmac_sha1_cipher() 543 pmac->u[0] |= sctx->md.h0 & mask; in aesni_cbc_hmac_sha1_cipher() 544 pmac->u[1] |= sctx->md.h1 & mask; in aesni_cbc_hmac_sha1_cipher() 571 pmac->u[0] |= sctx->md.h0 & mask; in aesni_cbc_hmac_sha1_cipher() 572 pmac->u[1] |= sctx->md.h1 & mask; in aesni_cbc_hmac_sha1_cipher() 573 pmac->u[2] |= sctx->md.h2 & mask; in aesni_cbc_hmac_sha1_cipher() 574 pmac->u[3] |= sctx->md.h3 & mask; in aesni_cbc_hmac_sha1_cipher() [all …]
|
/openssl-master/crypto/rsa/ |
A D | rsa_oaep.c | 165 unsigned int good = 0, found_one_byte, mask; in RSA_padding_check_PKCS1_OAEP_mgf1() local 224 mask = ~constant_time_is_zero(flen); in RSA_padding_check_PKCS1_OAEP_mgf1() 225 flen -= 1 & mask; in RSA_padding_check_PKCS1_OAEP_mgf1() 226 from -= 1 & mask; in RSA_padding_check_PKCS1_OAEP_mgf1() 227 *--em = *from & mask; in RSA_padding_check_PKCS1_OAEP_mgf1() 298 db[i] = constant_time_select_8(mask, db[i + msg_index], db[i]); in RSA_padding_check_PKCS1_OAEP_mgf1() 301 mask = good & constant_time_lt(i, mlen); in RSA_padding_check_PKCS1_OAEP_mgf1() 302 to[i] = constant_time_select_8(mask, db[i + mdlen + 1], to[i]); in RSA_padding_check_PKCS1_OAEP_mgf1() 332 int PKCS1_MGF1(unsigned char *mask, long len, in PKCS1_MGF1() argument 360 if (!EVP_DigestFinal_ex(c, mask + outlen, NULL)) in PKCS1_MGF1() [all …]
|
A D | rsa_pk1.c | 174 unsigned int good, found_zero_byte, mask; in RSA_padding_check_PKCS1_type_2() local 202 mask = ~constant_time_is_zero(flen); in RSA_padding_check_PKCS1_type_2() 203 flen -= 1 & mask; in RSA_padding_check_PKCS1_type_2() 204 from -= 1 & mask; in RSA_padding_check_PKCS1_type_2() 205 *--em = *from & mask; in RSA_padding_check_PKCS1_type_2() 253 mask = ~constant_time_eq(msg_index & (num - RSA_PKCS1_PADDING_SIZE - mlen), 0); in RSA_padding_check_PKCS1_type_2() 255 em[i] = constant_time_select_8(mask, em[i + msg_index], em[i]); in RSA_padding_check_PKCS1_type_2() 258 mask = good & constant_time_lt(i, mlen); in RSA_padding_check_PKCS1_type_2() 259 to[i] = constant_time_select_8(mask, em[i + RSA_PKCS1_PADDING_SIZE], to[i]); in RSA_padding_check_PKCS1_type_2()
|
/openssl-master/crypto/evp/ |
A D | e_aes_cbc_hmac_sha256.c | 522 size_t inp_len, mask, j, i; in aesni_cbc_hmac_sha256_cipher() local 548 ret &= mask; in aesni_cbc_hmac_sha256_cipher() 601 c &= mask; in aesni_cbc_hmac_sha256_cipher() 647 pmac->u[0] |= key->md.h[0] & mask; in aesni_cbc_hmac_sha256_cipher() 648 pmac->u[1] |= key->md.h[1] & mask; in aesni_cbc_hmac_sha256_cipher() 649 pmac->u[2] |= key->md.h[2] & mask; in aesni_cbc_hmac_sha256_cipher() 650 pmac->u[3] |= key->md.h[3] & mask; in aesni_cbc_hmac_sha256_cipher() 651 pmac->u[4] |= key->md.h[4] & mask; in aesni_cbc_hmac_sha256_cipher() 652 pmac->u[5] |= key->md.h[5] & mask; in aesni_cbc_hmac_sha256_cipher() 653 pmac->u[6] |= key->md.h[6] & mask; in aesni_cbc_hmac_sha256_cipher() [all …]
|
A D | e_aes_cbc_hmac_sha1.c | 489 size_t inp_len, mask, j, i; in aesni_cbc_hmac_sha1_cipher() local 537 ret &= mask; in aesni_cbc_hmac_sha1_cipher() 610 c &= mask; in aesni_cbc_hmac_sha1_cipher() 622 pmac->u[0] |= key->md.h0 & mask; in aesni_cbc_hmac_sha1_cipher() 623 pmac->u[1] |= key->md.h1 & mask; in aesni_cbc_hmac_sha1_cipher() 624 pmac->u[2] |= key->md.h2 & mask; in aesni_cbc_hmac_sha1_cipher() 650 pmac->u[0] |= key->md.h0 & mask; in aesni_cbc_hmac_sha1_cipher() 651 pmac->u[1] |= key->md.h1 & mask; in aesni_cbc_hmac_sha1_cipher() 652 pmac->u[2] |= key->md.h2 & mask; in aesni_cbc_hmac_sha1_cipher() 653 pmac->u[3] |= key->md.h3 & mask; in aesni_cbc_hmac_sha1_cipher() [all …]
|
/openssl-master/doc/man3/ |
A D | OPENSSL_s390xcap.pod | 21 with a mask which is derived from the environment variable. 35 mask is set to one if and only if the specified processor generation 40 =item <string>:<mask>:<mask> 43 environment variable's mask corresponding to the specified instruction is 44 set to the specified 128-bit mask. Possible values are B<kimd>, B<klmd>, 48 =item stfle:<mask>:<mask>:<mask> 51 part of the environment variable's mask corresponding to the stfle 52 instruction is set to the specified 192-bit mask. 57 optional. Prefix a mask with a tilde, C<~>, to denote a bitwise NOT operation. 62 the numbering is continuous across 64-bit mask boundaries.
|