Home
last modified time | relevance | path

Searched refs:constant_time_eq (Results 1 – 4 of 4) sorted by relevance

/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_pk1.c210 good &= constant_time_eq(em[1], 2); in RSA_padding_check_PKCS1_type_2()
254 mask = ~constant_time_eq(msg_index & (num - RSA_PKCS1_PADDING_SIZE - mlen), 0); in RSA_padding_check_PKCS1_type_2()
469 good &= constant_time_eq(from[1], 2); in ossl_rsa_padding_check_PKCS1_type_2()
577 good &= constant_time_eq(from[1], 2); in ossl_rsa_padding_check_PKCS1_type_2_TLS()
592 version_good = constant_time_eq(from[flen - SSL_MAX_MASTER_KEY_LENGTH], in ossl_rsa_padding_check_PKCS1_type_2_TLS()
594 version_good &= constant_time_eq(from[flen - SSL_MAX_MASTER_KEY_LENGTH + 1], in ossl_rsa_padding_check_PKCS1_type_2_TLS()
610 workaround_good = constant_time_eq(from[flen - SSL_MAX_MASTER_KEY_LENGTH], in ossl_rsa_padding_check_PKCS1_type_2_TLS()
612 workaround_good &= constant_time_eq(from[flen - SSL_MAX_MASTER_KEY_LENGTH + 1], in ossl_rsa_padding_check_PKCS1_type_2_TLS()
H A Drsa_oaep.c278 unsigned int equals1 = constant_time_eq(db[i], 1); in RSA_padding_check_PKCS1_OAEP_mgf1()
314 mask = ~constant_time_eq(msg_index & (dblen - mdlen - 1 - mlen), 0); in RSA_padding_check_PKCS1_OAEP_mgf1()
/freebsd/crypto/openssl/include/internal/
H A Dconstant_time.h66 static ossl_inline unsigned int constant_time_eq(unsigned int a,
237 static ossl_inline unsigned int constant_time_eq(unsigned int a, in constant_time_eq() function
251 return (unsigned char)constant_time_eq(a, b); in constant_time_eq_8()
261 return constant_time_eq((unsigned)(a), (unsigned)(b)); in constant_time_eq_int()
/freebsd/crypto/openssl/test/
H A Dconstant_time_test.c270 || !test_binary_op(&constant_time_eq, "constant_time_eq", in test_binops()
272 || !test_binary_op(&constant_time_eq, "constant_time_eq", in test_binops()