/openssl/crypto/bn/asm/ |
H A D | ppc64-mont.pl | 120 $carry="r0"; 277 li $carry,0 767 srdi $carry,$t0,16 902 li $carry,0 1173 addze $carry,$carry 1237 addze $carry,$carry 1285 addze $carry,$carry 1355 addze $carry,$carry 1360 add $carry,$carry,$ovf ; consume upmost overflow 1408 addze $carry,$carry [all …]
|
H A D | x86-mont.pl | 311 $carry="ebp"; 321 &or ($carry,"edx"); 329 &mov ($carry,"edx"); 331 &add ($carry,"eax"); 339 &mov ($carry,"edx"); 342 &add ("eax",$carry); 362 &mov ($carry,"edx"); 536 &xor ($carry,$carry); 564 &shr ($carry,31); 566 &adc ($carry,0); [all …]
|
H A D | ppc-mont.pl | 504 #addze $carry,$carry 565 #addze $carry,$carry 585 addze $carry,$carry # topmost carry 655 #addze $carry,$carry 659 addze $carry,$carry 671 #addze $carry,$carry 724 #addze $carry,$carry 729 addze $carry,$carry 744 #addze $carry,$carry 1317 addze $carry,$carry [all …]
|
H A D | x86_64-mont5.pl | 1614 xor $carry,$carry 1635 neg $carry # mov $carry,cf 1644 sbb $carry,$carry # mov cf,$carry 1660 sbb $carry,$carry # mov cf,$carry 1683 sbb $carry,$carry # mov cf,$carry 1700 sbb $carry,$carry # mov cf,$carry 1717 sbb $carry,$carry # mov cf,$carry 1732 sbb $carry,$carry # mov cf,$carry 1755 sbb $carry,$carry # mov cf,$carry 2020 xor $carry,$carry [all …]
|
H A D | armv8-mont.pl | 962 adc $carry,$carry,xzr 1218 adc $carry,$carry,xzr 1537 //adc $carry,$carry,xzr 1593 //adc $carry,$carry,xzr 1671 //adc $carry,$carry,xzr 1674 adc $carry,$carry,xzr 1684 //adc $carry,$carry,xzr 1735 //adc $carry,$carry,xzr 1739 adc $carry,$carry,xzr 1751 //adc $carry,$carry,xzr [all …]
|
H A D | x86_64-gcc.c | 74 # define mul_add(r,a,word,carry) do { \ argument 81 : "+r"(carry),"+d"(high)\ 86 : "r"(carry),"g"(0) \ 88 carry=high; \ 91 # define mul(r,a,word,carry) do { \ argument 98 : "+r"(carry),"+d"(high)\ 101 (r)=carry, carry=high; \
|
H A D | sparcv9a-mont.pl | 97 $carry="%i4"; # %i4 reused(!) for a carry bit 505 mov %g1,$carry 801 addcc $carry,%o4,%o4 803 mov %g1,$carry 805 add $carry,1,$carry 831 subc $carry,0,%g4
|
/openssl/crypto/bn/ |
H A D | bn_nist.c | 355 int carry; in BN_nist_mod_192() local 450 if (carry > 0) in BN_nist_mod_192() 451 carry = in BN_nist_mod_192() 491 int carry; in BN_nist_mod_224() local 615 carry = in BN_nist_mod_224() 629 carry = in BN_nist_mod_224() 859 carry = in BN_nist_mod_256() 863 carry = in BN_nist_mod_256() 1080 carry = in BN_nist_mod_384() 1131 carry = in BN_nist_mod_384() [all …]
|
H A D | bn_mod.c | 59 BN_ULONG carry, temp, mask, *rp, *tp = storage; in bn_mod_add_fixed_top() local 77 carry = (temp < carry); in bn_mod_add_fixed_top() 81 carry += (tp[i] < temp); in bn_mod_add_fixed_top() 88 carry -= bn_sub_words(rp, tp, m->d, mtop); in bn_mod_add_fixed_top() 90 rp[i] = (carry & tp[i]) | (~carry & rp[i]); in bn_mod_add_fixed_top() 140 BN_ULONG borrow, carry, ta, tb, mask, *rp; in bn_mod_sub_fixed_top() local 167 carry = (ta < carry); in bn_mod_sub_fixed_top() 169 carry += (rp[i] < ta); in bn_mod_sub_fixed_top() 171 borrow -= carry; in bn_mod_sub_fixed_top() 174 carry = (ta < carry); in bn_mod_sub_fixed_top() [all …]
|
H A D | rsaz_exp.h | 69 BN_ULONG carry, in bn_reduce_once_in_place() argument 73 carry -= bn_sub_words(tmp, r, m, num); in bn_reduce_once_in_place() 74 bn_select_words(r, carry, r /* tmp < 0 */, tmp /* tmp >= 0 */, num); in bn_reduce_once_in_place() 75 return carry; in bn_reduce_once_in_place()
|
H A D | bn_add.c | 80 BN_ULONG *rp, carry, t1, t2; in BN_uadd() local 105 carry = bn_add_words(rp, ap, bp, min); in BN_uadd() 112 t2 = (t1 + carry) & BN_MASK2; in BN_uadd() 114 carry &= (t2 == 0); in BN_uadd() 116 *rp = carry; in BN_uadd() 117 r->top += carry; in BN_uadd()
|
H A D | bn_mont.c | 91 BN_ULONG *ap, *np, *rp, n0, v, carry; in bn_from_montgomery_word() local 125 for (carry = 0, i = 0; i < nl; i++, rp++) { in bn_from_montgomery_word() 127 v = (v + carry + rp[nl]) & BN_MASK2; in bn_from_montgomery_word() 128 carry |= (v != rp[nl]); in bn_from_montgomery_word() 129 carry &= (v <= rp[nl]); in bn_from_montgomery_word() 147 carry -= bn_sub_words(rp, ap, np, nl); in bn_from_montgomery_word() 154 rp[i] = (carry & ap[i]) | (~carry & rp[i]); in bn_from_montgomery_word()
|
H A D | bn_lib.c | 439 int neg = 0, xor = 0, carry = 0; in bin2bn() local 483 carry = neg; in bin2bn() 520 BN_ULONG byte = (byte_xored + carry) & 0xff; in bin2bn() 522 carry = byte_xored > byte; /* Implicit 1 or 0 */ in bin2bn() 550 int xor = 0, carry = 0, ext = 0; in bn2binpad() local 565 carry = a->neg; in bn2binpad() 619 *to = (unsigned char)(byte_xored + carry); in bn2binpad() 620 carry = byte_xored > *to; /* Implicit 1 or 0 */ in bn2binpad()
|
/openssl/crypto/modes/ |
H A D | xts128gb.c | 100 u8 carry, res; in ossl_crypto_xts128gb_encrypt() local 101 carry = 0; in ossl_crypto_xts128gb_encrypt() 104 tweak.c[i] = ((tweak.c[i] >> 1) + carry) & 0xff; in ossl_crypto_xts128gb_encrypt() 105 carry = res; in ossl_crypto_xts128gb_encrypt() 158 u8 carry, res; in ossl_crypto_xts128gb_encrypt() local 159 carry = 0; in ossl_crypto_xts128gb_encrypt() 162 tweak1.c[i] = ((tweak.c[i] >> 1) + carry) & 0xff; in ossl_crypto_xts128gb_encrypt() 163 carry = res; in ossl_crypto_xts128gb_encrypt()
|
H A D | xts128.c | 72 unsigned int carry, res; in CRYPTO_xts128_encrypt() local 75 carry = (unsigned int)(tweak.u[0] >> 63); in CRYPTO_xts128_encrypt() 77 tweak.u[1] = (tweak.u[1] << 1) | carry; in CRYPTO_xts128_encrypt() 111 unsigned int carry, res; in CRYPTO_xts128_encrypt() local 114 carry = (unsigned int)(tweak.u[0] >> 63); in CRYPTO_xts128_encrypt() 116 tweak1.u[1] = (tweak.u[1] << 1) | carry; in CRYPTO_xts128_encrypt()
|
H A D | ocb128.c | 46 unsigned char carry = 0, carry_next; in ocb_block_lshift() local 50 out[i] = (in[i] << shift) | carry; in ocb_block_lshift() 51 carry = carry_next; in ocb_block_lshift()
|
/openssl/crypto/ec/curve448/ |
H A D | f_generic.c | 104 dword_t carry = 0; in gf_strong_reduce() local 131 carry = in gf_strong_reduce() 132 carry + a->limb[LIMBPERM(i)] + in gf_strong_reduce() 134 a->limb[LIMBPERM(i)] = carry & LIMB_MASK(LIMBPERM(i)); in gf_strong_reduce() 135 carry >>= LIMB_PLACE_VALUE(LIMBPERM(i)); in gf_strong_reduce() 138 assert(carry < 2 && ((word_t)carry + scarry_0) == 0); in gf_strong_reduce()
|
/openssl/crypto/ec/asm/ |
H A D | ecp_nistz256-sparcv9.pl | 213 mov 0,$carry 273 addc $carry,%g0,$carry ! top-most carry 276 subc $carry,%g0,$carry ! top-most carry 325 addc $carry,%g0,$carry 328 subc $carry,%g0,$carry ! top-most carry 344 subc $carry,0,$carry ! broadcast borrow bit 354 neg $carry,$bi 428 subc $carry,0,$carry 436 neg $carry,$bi 528 subc $carry,0,$carry [all …]
|
/openssl/providers/implementations/kdfs/ |
H A D | krb5kdf.c | 289 unsigned int tmp, gcd, remainder, lcm, carry; in n_fold() local 313 carry = 0; in n_fold() 333 tmp += carry + block[b]; in n_fold() 336 carry = tmp >> 8; in n_fold() 340 for (b = blocksize - 1; b >= 0 && carry != 0; b--) { in n_fold() 341 carry += block[b]; in n_fold() 342 block[b] = carry & 0xff; in n_fold() 343 carry >>= 8; in n_fold()
|
/openssl/crypto/ec/ |
H A D | ecp_nistp256.c | 839 *carry = (r >> 64) & 1; in subtract_u64() 850 u64 all_equal_so_far = 0, result = 0, carry; in felem_contract() local 895 subtract_u64(&out[0], &carry, result & kPrime[0]); in felem_contract() 896 subtract_u64(&out[1], &carry, carry); in felem_contract() 897 subtract_u64(&out[2], &carry, carry); in felem_contract() 898 subtract_u64(&out[3], &carry, carry); in felem_contract() 900 subtract_u64(&out[1], &carry, result & kPrime[1]); in felem_contract() 901 subtract_u64(&out[2], &carry, carry); in felem_contract() 902 subtract_u64(&out[3], &carry, carry); in felem_contract() 904 subtract_u64(&out[2], &carry, result & kPrime[2]); in felem_contract() [all …]
|
/openssl/providers/implementations/rands/ |
H A D | drbg_hash.c | 152 unsigned char carry = 0, *d; in add_bytes() local 160 result = *d + *add + carry; in add_bytes() 161 carry = (unsigned char)(result >> 8); in add_bytes() 165 if (carry != 0) { in add_bytes()
|
/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_cbc_hmac_sha1_hw.c | 184 unsigned int carry, j; in tls1_multi_block_encrypt() local 197 for (carry = i, j = 8; j--;) { in tls1_multi_block_encrypt() 198 blocks[i].c[j] = ((u8 *)sctx->md.data)[j] + carry; in tls1_multi_block_encrypt() 199 carry = (blocks[i].c[j] - carry) >> (sizeof(carry) * 8 - 1); in tls1_multi_block_encrypt()
|
H A D | cipher_aes_cbc_hmac_sha256_hw.c | 189 unsigned int carry, j; in tls1_multi_block_encrypt() local 205 for (carry = i, j = 8; j--;) { in tls1_multi_block_encrypt() 206 blocks[i].c[j] = ((u8 *)sctx->md.data)[j] + carry; in tls1_multi_block_encrypt() 207 carry = (blocks[i].c[j] - carry) >> (sizeof(carry) * 8 - 1); in tls1_multi_block_encrypt()
|
/openssl/crypto/asn1/ |
H A D | a_int.c | 79 unsigned int carry = pad & 1; in twos_complement() local 92 *(--dst) = (unsigned char)(carry += *(--src) ^ pad); in twos_complement() 93 carry >>= 8; in twos_complement()
|
/openssl/crypto/cmac/ |
H A D | cmac.c | 44 unsigned char c = l[0], carry = c >> 7, cnext; in make_kn() local 51 k1[i] = (c << 1) ^ ((0 - carry) & (bl == 16 ? 0x87 : 0x1b)); in make_kn()
|