Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 27) sorted by relevance

12

/openssl/apps/
H A Drand.c101 int shift = 0; in rand_main() local
129 shift = 10; in rand_main()
132 shift = 20; in rand_main()
135 shift = 30; in rand_main()
138 shift = 40; in rand_main()
150 if (shift != 0 && strlen(&argv[0][factoridx]) != 1) { in rand_main()
157 if (shift != 0) in rand_main()
163 if (shift != 0) { in rand_main()
165 if ((UINT64_MAX >> shift) < (size_t)num) { in rand_main()
170 scaled_num = num << shift; in rand_main()
/openssl/crypto/
H A Ddeterministic_nonce.c32 int shift; in bits2int() local
37 shift = blen_bits - qlen_bits; in bits2int()
38 if (shift > 0) in bits2int()
39 return BN_rshift(out, out, shift); in bits2int()
59 int shift; in bits2int_consttime() local
67 shift = blen_bits - qlen_bits; in bits2int_consttime()
68 if (shift > 0) in bits2int_consttime()
69 return bn_rshift_fixed_top(out, out, shift); in bits2int_consttime()
H A Dparams.c512 unsigned int shift; in OSSL_PARAM_set_int32() local
519 shift = real_shift(); in OSSL_PARAM_set_int32()
520 if (shift < 8 * sizeof(val) - 1) { in OSSL_PARAM_set_int32()
522 if ((u32 >> shift) != 0) { in OSSL_PARAM_set_int32()
671 unsigned int shift; in OSSL_PARAM_set_uint32() local
678 shift = real_shift(); in OSSL_PARAM_set_uint32()
679 if (shift < 8 * sizeof(val) && (val >> shift) != 0) { in OSSL_PARAM_set_uint32()
/openssl/doc/man3/
H A DEVP_des_cbc.pod54 DES in CBC, ECB, CFB with 64-bit shift, CFB with 1-bit shift, CFB with 8-bit
55 shift and OFB modes.
68 Two key triple DES in ECB, CBC, CFB with 64-bit shift and OFB modes.
79 Three-key triple DES in ECB, CBC, CFB with 64-bit shift, CFB with 1-bit shift,
80 CFB with 8-bit shift and OFB modes.
H A DEVP_camellia_128_ecb.pod74 128-bit shift, CFB with 1-bit shift, CFB with 8-bit shift, CTR, ECB and OFB.
H A DEVP_aria_128_gcm.pod80 128-bit shift, CFB with 1-bit shift, CFB with 8-bit shift, CTR, ECB and OFB.
H A DEVP_aes_128_gcm.pod95 shift, CFB with 1-bit shift, CFB with 8-bit shift, CTR, ECB, and OFB.
H A DBN_set_bit.pod47 For the shift functions, B<r> and B<a> may be the same variable.
H A DEVP_EncryptInit.pod1014 Std 1619-2007 noted that the multiplication "is a left shift of each
1018 most significant bit, thus the multiplication becomes a right shift
/openssl/crypto/bn/
H A Dbn_gcd.c268 int shift; in int_bn_mod_inverse() local
283 shift = 0; in int_bn_mod_inverse()
284 while (!BN_is_bit_set(B, shift)) { /* note that 0 < B */ in int_bn_mod_inverse()
285 shift++; in int_bn_mod_inverse()
297 if (shift > 0) { in int_bn_mod_inverse()
298 if (!BN_rshift(B, B, shift)) in int_bn_mod_inverse()
305 shift = 0; in int_bn_mod_inverse()
306 while (!BN_is_bit_set(A, shift)) { /* note that 0 < A */ in int_bn_mod_inverse()
307 shift++; in int_bn_mod_inverse()
317 if (shift > 0) { in int_bn_mod_inverse()
[all …]
H A Dbn_recp.c49 recp->shift = 0; in BN_RECP_CTX_set()
118 if (i != recp->shift) in BN_div_recp()
119 recp->shift = BN_reciprocal(&(recp->Nr), &(recp->N), i, ctx); in BN_div_recp()
121 if (recp->shift == -1) in BN_div_recp()
H A Dbn_local.h280 int shift; member
/openssl/ssl/record/methods/
H A Ddtls_meth.c43 unsigned int shift; in dtls_record_replay_check() local
51 shift = -cmp; in dtls_record_replay_check()
52 if (shift >= sizeof(bitmap->map) * 8) in dtls_record_replay_check()
54 else if (bitmap->map & ((uint64_t)1 << shift)) in dtls_record_replay_check()
65 unsigned int shift; in dtls_record_bitmap_update() local
70 shift = cmp; in dtls_record_bitmap_update()
71 if (shift < sizeof(bitmap->map) * 8) in dtls_record_bitmap_update()
72 bitmap->map <<= shift, bitmap->map |= 1UL; in dtls_record_bitmap_update()
77 shift = -cmp; in dtls_record_bitmap_update()
78 if (shift < sizeof(bitmap->map) * 8) in dtls_record_bitmap_update()
[all …]
/openssl/crypto/modes/
H A Docb128.c42 static void ocb_block_lshift(const unsigned char *in, size_t shift, in ocb_block_lshift() argument
49 carry_next = in[i] >> (8 - shift); in ocb_block_lshift()
50 out[i] = (in[i] << shift) | carry; in ocb_block_lshift()
218 size_t bottom, shift; in CRYPTO_ocb128_setiv() local
250 shift = bottom % 8; in CRYPTO_ocb128_setiv()
251 ocb_block_lshift(stretch + (bottom / 8), shift, ctx->sess.offset.c); in CRYPTO_ocb128_setiv()
253 mask <<= 8 - shift; in CRYPTO_ocb128_setiv()
255 (*(stretch + (bottom / 8) + 16) & mask) >> (8 - shift); in CRYPTO_ocb128_setiv()
/openssl/crypto/rsa/
H A Drsa_sp800_56b_check.c92 int shift; in ossl_rsa_check_prime_factor_range() local
95 shift = nbits - BN_num_bits(&ossl_bn_inv_sqrt_2); in ossl_rsa_check_prime_factor_range()
110 if (shift >= 0) { in ossl_rsa_check_prime_factor_range()
116 if (!BN_lshift(low, low, shift)) in ossl_rsa_check_prime_factor_range()
118 } else if (!BN_rshift(low, low, -shift)) { in ossl_rsa_check_prime_factor_range()
/openssl/crypto/des/asm/
H A Dcrypt586.pl149 local($a,$b,$tt,$shift,$mask,$last)=@_;
151 &rotl( $a, $shift ) if ($shift != 0);
H A Ddes-586.pl255 local($a,$b,$tt,$shift,$mask,$last)=@_;
257 &rotl( $a, $shift ) if ($shift != 0);
/openssl/crypto/bn/asm/
H A Dx86_64-mont5.pl1608 my ($shift,$carry)=($a0,$a1);
1612 xor $shift,$shift
1627 lea ($shift,$A0[0],2),$S[0] # t[2*i]<<1 | shift
1633 mov $A0[1],$shift # shift=t[2*i+1]>>63
1650 mov $A0[1],$shift # shift=t[2*i+1]>>63
1672 mov $A0[1],$shift # shift=t[2*i+1]>>63
1689 mov $A0[1],$shift # shift=t[2*i+1]>>63
1706 mov $A0[1],$shift # shift=t[2*i+1]>>63
1723 mov $A0[1],$shift # shift=t[2*i+1]>>63
1744 mov $A0[1],$shift # shift=t[2*i+1]>>63
[all …]
/openssl/util/perl/OpenSSL/
H A Dconfig.pm347 $CCVER += shift(@numbers) * shift(@factors)
397 $v += shift(@numbers) * shift(@factors)
/openssl/exporters/cmake/
H A DOpenSSLConfig.cmake.in34 my $path = shift;
35 my $no_file = shift;
/openssl/test/ssl-tests/
H A D14-curves.cnf.in45 my $group = shift;
/openssl/crypto/whrlpool/asm/
H A Dwp-mmx.pl82 elsif ($SCALE==8) { (8*shift); }
/openssl/Configurations/
H A Ddescrip.mms.tmpl39 (my $x = shift) =~ s|\]$|...]|;
285 my $target = shift;
868 my $input = shift;
930 my $outd = shift;
931 my $ind = shift;
H A Dunix-Makefile.tmpl27 my $target = shift;
28 my $help = shift;
41 my $item_sep = shift; # string
42 my $line_length = shift; # number of chars
H A Dwindows-makefile.tmpl31 my $target = shift;

Completed in 88 milliseconds

12