Home
last modified time | relevance | path

Searched refs:true_val (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/wpa/src/utils/
H A Dconst_time.h100 unsigned int true_val, in const_time_select() argument
103 return (mask & true_val) | (~mask & false_val); in const_time_select()
114 static inline int const_time_select_int(unsigned int mask, int true_val, in const_time_select_int() argument
117 return (int) const_time_select(mask, (unsigned int) true_val, in const_time_select_int()
129 static inline u8 const_time_select_u8(u8 mask, u8 true_val, u8 false_val) in const_time_select_u8() argument
131 return (u8) const_time_select(mask, true_val, false_val); in const_time_select_u8()
142 static inline s8 const_time_select_s8(u8 mask, s8 true_val, s8 false_val) in const_time_select_s8() argument
144 return (s8) const_time_select(mask, (unsigned int) true_val, in const_time_select_s8()
161 static inline void const_time_select_bin(u8 mask, const u8 *true_val, in const_time_select_bin() argument
168 dst[i] = const_time_select_u8(mask, true_val[i], false_val[i]); in const_time_select_bin()
H A Dutils_module_tests.c980 unsigned int true_val; in const_time_tests() member
997 int true_val; in const_time_tests() member
1012 u8 true_val; in const_time_tests() member
1027 s8 true_val; in const_time_tests() member
1040 u8 *true_val; in const_time_tests() member
1130 if (const_time_select(test->mask, test->true_val, in const_time_tests()
1134 test->mask, test->true_val, test->false_val); in const_time_tests()
1147 test->mask, test->true_val, test->false_val); in const_time_tests()
1160 test->mask, test->true_val, test->false_val); in const_time_tests()
1173 test->mask, test->true_val, test->false_val); in const_time_tests()
[all …]
/freebsd/crypto/openssh/
H A Dssh-pkcs11.c385 true_val = CK_TRUE; in pkcs11_get_key()
1349 FILL_ATTR(tpub, npub, CKA_TOKEN, &true_val, sizeof(true_val)); in pkcs11_rsa_generate_private_key()
1352 FILL_ATTR(tpub, npub, CKA_VERIFY, &true_val, sizeof(true_val)); in pkcs11_rsa_generate_private_key()
1362 FILL_ATTR(tpriv, npriv, CKA_TOKEN, &true_val, sizeof(true_val)); in pkcs11_rsa_generate_private_key()
1364 FILL_ATTR(tpriv, npriv, CKA_PRIVATE, &true_val, sizeof(true_val)); in pkcs11_rsa_generate_private_key()
1367 FILL_ATTR(tpriv, npriv, CKA_SIGN, &true_val, sizeof(true_val)); in pkcs11_rsa_generate_private_key()
1468 FILL_ATTR(tpub, npub, CKA_TOKEN, &true_val, sizeof(true_val)); in pkcs11_ecdsa_generate_private_key()
1471 FILL_ATTR(tpub, npub, CKA_VERIFY, &true_val, sizeof(true_val)); in pkcs11_ecdsa_generate_private_key()
1479 FILL_ATTR(tpriv, npriv, CKA_TOKEN, &true_val, sizeof(true_val)); in pkcs11_ecdsa_generate_private_key()
1481 FILL_ATTR(tpriv, npriv, CKA_PRIVATE, &true_val, sizeof(true_val)); in pkcs11_ecdsa_generate_private_key()
[all …]