Searched refs:constant_time_select_int (Results 1 – 10 of 10) sorted by relevance
| /freebsd/crypto/openssl/crypto/rsa/ |
| H A D | rsa_pk1.c | 218 zero_index = constant_time_select_int(~found_zero_byte & equals0, in RSA_padding_check_PKCS1_type_2() 252 tlen = constant_time_select_int(constant_time_lt(num - RSA_PKCS1_PADDING_SIZE, tlen), in RSA_padding_check_PKCS1_type_2() 275 return constant_time_select_int(good, mlen, -1); in RSA_padding_check_PKCS1_type_2() 461 synthetic_length = constant_time_select_int( in ossl_rsa_padding_check_PKCS1_type_2() 476 zero_index = constant_time_select_int(~found_zero_byte & equals0, in ossl_rsa_padding_check_PKCS1_type_2() 501 msg_index = constant_time_select_int(good, msg_index, synth_msg_index); in ossl_rsa_padding_check_PKCS1_type_2()
|
| H A D | rsa_oaep.c | 280 one_index = constant_time_select_int(~found_one_byte & equals1, in RSA_padding_check_PKCS1_OAEP_mgf1() 311 tlen = constant_time_select_int(constant_time_lt(dblen - mdlen - 1, tlen), in RSA_padding_check_PKCS1_OAEP_mgf1() 340 return constant_time_select_int(good, mlen, -1); in RSA_padding_check_PKCS1_OAEP_mgf1()
|
| H A D | rsa_pmeth.c | 394 ret = constant_time_select_int(constant_time_msb(ret), ret, 1); in pkey_rsa_decrypt()
|
| /freebsd/crypto/openssl/crypto/ml_dsa/ |
| H A D | ml_dsa_key_compress.c | 48 *r0 = constant_time_select_int(mask, r0_adjusted, *r0); in ossl_ml_dsa_key_compress_power2_round() 50 *r1 = constant_time_select_int(mask, r1_adjusted, *r1); in ossl_ml_dsa_key_compress_power2_round()
|
| H A D | ml_dsa_local.h | 158 return constant_time_select_int(constant_time_lt(x, y), y, x); in maximum()
|
| /freebsd/crypto/openssl/crypto/bn/ |
| H A D | bn_lib.c | 721 res = constant_time_select_int(constant_time_lt_bn(ap[i], bp[i]), in BN_ucmp() 723 res = constant_time_select_int(constant_time_lt_bn(bp[i], ap[i]), in BN_ucmp() 1060 res = constant_time_select_int(constant_time_eq_bn(ap[0], w), 1, 0); in ossl_bn_is_word_fixed_top() 1063 res = constant_time_select_int(constant_time_is_zero_bn(ap[i]), in ossl_bn_is_word_fixed_top() 1165 atop = constant_time_select_int(mask, j + 1, atop); in bn_correct_top_consttime() 1170 a->neg = constant_time_select_int(mask, 0, a->neg); in bn_correct_top_consttime()
|
| /freebsd/crypto/openssl/include/internal/ |
| H A D | constant_time.h | 99 static ossl_inline int constant_time_select_int(unsigned int mask, int a, 358 static ossl_inline int constant_time_select_int(unsigned int mask, int a, in constant_time_select_int() function
|
| /freebsd/crypto/openssl/test/ |
| H A D | constant_time_test.c | 212 if (!TEST_int_eq(constant_time_select_int(CONSTTIME_TRUE, a, b), a)) in test_select_int() 214 if (!TEST_int_eq(constant_time_select_int(CONSTTIME_FALSE, a, b), b)) in test_select_int()
|
| /freebsd/crypto/openssl/providers/implementations/asymciphers/ |
| H A D | rsa_enc.c | 311 ret = constant_time_select_int(constant_time_msb(ret), 0, 1); in rsa_decrypt()
|
| /freebsd/crypto/openssl/crypto/err/ |
| H A D | err.c | 895 clear = constant_time_select_int(constant_time_eq_int(clear, 0), in err_clear_last_constant_time()
|