Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 105) sorted by relevance

12345

/openssl/include/internal/
H A Dconstant_time.h180 return (value_barrier_bn(mask) & a) | (value_barrier_bn(~mask) & b); in constant_time_select_bn()
321 return (value_barrier(mask) & a) | (value_barrier(~mask) & b); in constant_time_select()
328 return (value_barrier_s(mask) & a) | (value_barrier_s(~mask) & b); in constant_time_select_s()
335 return (unsigned char)constant_time_select(mask, a, b); in constant_time_select_8()
353 return (value_barrier_32(mask) & a) | (value_barrier_32(~mask) & b); in constant_time_select_32()
359 return (value_barrier_64(mask) & a) | (value_barrier_64(~mask) & b); in constant_time_select_64()
377 xor &= mask; in constant_time_cond_swap_32()
397 xor &= mask; in constant_time_cond_swap_64()
424 tmp &= mask; in constant_time_cond_swap_buff()
444 unsigned char mask; in constant_time_lookup() local
[all …]
/openssl/crypto/asn1/
H A Da_strnid.c30 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, &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()
176 rv->mask = tmp->mask; in stable_get()
202 if (mask) in ASN1_STRING_TABLE_add()
[all …]
H A Da_mbstr.c37 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/crypto/ec/curve448/arch_64/
H A Df_impl64.c29 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/crypto/bn/asm/
H A Dsparcv9-mont.pl105 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 …]
H A Darmv4-gf2m.pl80 $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 …]
H A Dsparcv9a-mont.pl151 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/crypto/aes/asm/
H A Daes-s390x.pl309 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 …]
H A Daesfx-sparcv9.pl104 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/crypto/ec/curve448/arch_32/
H A Df_impl32.c29 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/crypto/bn/
H A Dbn_lib.c103 BN_ULONG x, mask; in BN_num_bits_word() local
109 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word()
116 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word()
122 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word()
123 bits += 8 & mask; in BN_num_bits_word()
128 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word()
129 bits += 4 & mask; in BN_num_bits_word()
134 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word()
135 bits += 2 & mask; in BN_num_bits_word()
140 mask = (0 - (mask >> (BN_BITS2 - 1))); in BN_num_bits_word()
[all …]
H A Dbn_mod.c59 BN_ULONG carry, temp, mask, *rp, *tp = storage; in bn_mod_add_fixed_top() local
75 mask = (BN_ULONG)0 - ((i - a->top) >> (8 * sizeof(i) - 1)); in bn_mod_add_fixed_top()
76 temp = ((ap[ai] & mask) + carry) & BN_MASK2; in bn_mod_add_fixed_top()
80 tp[i] = ((bp[bi] & mask) + temp) & BN_MASK2; in bn_mod_add_fixed_top()
140 BN_ULONG borrow, carry, ta, tb, mask, *rp; in bn_mod_sub_fixed_top() local
152 ta = ap[ai] & mask; in bn_mod_sub_fixed_top()
155 tb = bp[bi] & mask; in bn_mod_sub_fixed_top()
165 for (i = 0, mask = 0 - borrow, carry = 0; i < mtop; i++) { in bn_mod_sub_fixed_top()
166 ta = ((ap[i] & mask) + carry) & BN_MASK2; in bn_mod_sub_fixed_top()
172 for (i = 0, mask = 0 - borrow, carry = 0; i < mtop; i++) { in bn_mod_sub_fixed_top()
[all …]
/openssl/crypto/poly1305/asm/
H A Dpoly1305-ppcfp.pl554 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 …]
H A Dpoly1305-sparcv9.pl940 andn $d1,$mask,$d1
943 mov 3,$mask
946 and $d3,$mask,$h4
960 addc $h4,0,$mask
962 srl $mask,2,$mask ! did it carry/borrow?
963 neg $mask,$mask
964 sra $mask,31,$mask ! mask
967 and $d0,$mask,$d0
969 and $d1,$mask,$d1
973 and $d2,$mask,$d2
[all …]
/openssl/crypto/ec/asm/
H A Decp_nistz256-armv4.pl818 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/crypto/rc4/asm/
H A Drc4-parisc.pl98 $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/crypto/poly1305/
H A Dpoly1305.c220 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 …]
H A Dpoly1305_base2_44.c141 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/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha256_hw.c491 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 …]
H A Dcipher_aes_cbc_hmac_sha1_hw.c449 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 …]
H A Dcipher_aes_gcm_siv_polyval.c24 uint64_t t[2], mask; in mulx_ghash() local
34 mask = -(int64_t)(t[1] & 1) & 0xe1; in mulx_ghash()
35 mask <<= 56; in mulx_ghash()
39 a[0] = GSWAP8((t[0] >> 1) ^ mask); in mulx_ghash()
42 a[0] = (t[0] >> 1) ^ mask; in mulx_ghash()
/openssl/crypto/evp/
H A De_aes_cbc_hmac_sha256.c522 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 …]
H A De_aes_cbc_hmac_sha1.c490 size_t inp_len, mask, j, i; in aesni_cbc_hmac_sha1_cipher() local
544 ret &= mask; in aesni_cbc_hmac_sha1_cipher()
617 c &= mask; in aesni_cbc_hmac_sha1_cipher()
629 pmac->u[0] |= key->md.h0 & mask; in aesni_cbc_hmac_sha1_cipher()
630 pmac->u[1] |= key->md.h1 & mask; in aesni_cbc_hmac_sha1_cipher()
631 pmac->u[2] |= key->md.h2 & mask; in aesni_cbc_hmac_sha1_cipher()
657 pmac->u[0] |= key->md.h0 & mask; in aesni_cbc_hmac_sha1_cipher()
658 pmac->u[1] |= key->md.h1 & mask; in aesni_cbc_hmac_sha1_cipher()
659 pmac->u[2] |= key->md.h2 & mask; in aesni_cbc_hmac_sha1_cipher()
660 pmac->u[3] |= key->md.h3 & mask; in aesni_cbc_hmac_sha1_cipher()
[all …]
/openssl/crypto/rsa/
H A Drsa_oaep.c175 unsigned int good = 0, found_one_byte, mask; in RSA_padding_check_PKCS1_OAEP_mgf1() local
242 mask = ~constant_time_is_zero(flen); in RSA_padding_check_PKCS1_OAEP_mgf1()
243 flen -= 1 & mask; in RSA_padding_check_PKCS1_OAEP_mgf1()
244 from -= 1 & mask; in RSA_padding_check_PKCS1_OAEP_mgf1()
245 *--em = *from & mask; in RSA_padding_check_PKCS1_OAEP_mgf1()
316 db[i] = constant_time_select_8(mask, db[i + msg_index], db[i]); in RSA_padding_check_PKCS1_OAEP_mgf1()
319 mask = good & constant_time_lt(i, mlen); in RSA_padding_check_PKCS1_OAEP_mgf1()
320 to[i] = constant_time_select_8(mask, db[i + mdlen + 1], to[i]); in RSA_padding_check_PKCS1_OAEP_mgf1()
350 int PKCS1_MGF1(unsigned char *mask, long len, in PKCS1_MGF1() argument
378 if (!EVP_DigestFinal_ex(c, mask + outlen, NULL)) in PKCS1_MGF1()
[all …]
/openssl/doc/man3/
H A DOPENSSL_s390xcap.pod21 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.
62 optional. Prefix a mask with a tilde, C<~>, to denote a bitwise NOT operation.
67 the numbering is continuous across 64-bit mask boundaries.

Completed in 45 milliseconds

12345