Home
last modified time | relevance | path

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

/net-tools-3.4.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_ecdh.function70 unsigned char shift = 8 - ( grp.nbits % 8 );
74 rnd_buf_A[i] = rnd_buf_A[i] << shift
75 | rnd_buf_A[i+1] >> ( 8 - shift );
77 rnd_buf_A[rnd_info_A.length-1] <<= shift;
86 unsigned char shift = 8 - ( grp.nbits % 8 );
90 rnd_buf_B[i] = rnd_buf_B[i] << shift
91 | rnd_buf_B[i+1] >> ( 8 - shift );
93 rnd_buf_B[rnd_info_B.length-1] <<= shift;
Dtest_suite_ecdsa.function73 unsigned char shift = 8 - ( grp.nbits % 8 );
77 rnd_buf[i] = rnd_buf[i] << shift | rnd_buf[i+1] >> ( 8 - shift );
79 rnd_buf[rnd_info.length-1] <<= shift;
/net-tools-3.4.0/mbedtls-2.4.0/library/
Decp_curves.c1211 size_t adjust, size_t shift, mbedtls_mpi_uint mask ) in ecp_mod_koblitz() argument
1236 if( shift != 0 ) in ecp_mod_koblitz()
1237 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &M, shift ) ); in ecp_mod_koblitz()
1258 if( shift != 0 ) in ecp_mod_koblitz()
1259 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &M, shift ) ); in ecp_mod_koblitz()
Dssl_tls.c3242 uint64_t shift = rec_seqnum - ssl->in_window_top; in mbedtls_ssl_dtls_replay_update() local
3244 if( shift >= 64 ) in mbedtls_ssl_dtls_replay_update()
3248 ssl->in_window <<= shift; in mbedtls_ssl_dtls_replay_update()
/net-tools-3.4.0/tinydtls-0.8.2/ecc/
Decc.c69 …oid rshiftby(const uint32_t *in, uint8_t in_size, uint32_t *out, uint8_t out_size, uint8_t shift) { in rshiftby() argument
72 for (i = 0; i < (in_size - shift) && i < out_size; i++) in rshiftby()
73 out[i] = in[i + shift]; in rshiftby()