Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_pk1.c179 int zero_index = 0, msg_index, mlen = -1; in RSA_padding_check_PKCS1_type_2() local
234 msg_index = zero_index + 1; in RSA_padding_check_PKCS1_type_2()
235 mlen = num - msg_index; in RSA_padding_check_PKCS1_type_2()
254 for (msg_index = 1; msg_index < num - RSA_PKCS1_PADDING_SIZE; msg_index <<= 1) { in RSA_padding_check_PKCS1_type_2()
255 mask = ~constant_time_eq(msg_index & (num - RSA_PKCS1_PADDING_SIZE - mlen), 0); in RSA_padding_check_PKCS1_type_2()
256 for (i = RSA_PKCS1_PADDING_SIZE; i < num - msg_index; i++) in RSA_padding_check_PKCS1_type_2()
257 em[i] = constant_time_select_8(mask, em[i + msg_index], em[i]); in RSA_padding_check_PKCS1_type_2()
412 int zero_index = 0, msg_index; in ossl_rsa_padding_check_PKCS1_type_2() local
492 msg_index = zero_index + 1; in ossl_rsa_padding_check_PKCS1_type_2()
499 good &= constant_time_ge(tlen, num - msg_index); in ossl_rsa_padding_check_PKCS1_type_2()
[all …]
H A Drsa_oaep.c174 int i, dblen = 0, mlen = -1, one_index = 0, msg_index; in RSA_padding_check_PKCS1_OAEP_mgf1() local
293 msg_index = one_index + 1; in RSA_padding_check_PKCS1_OAEP_mgf1()
294 mlen = dblen - msg_index; in RSA_padding_check_PKCS1_OAEP_mgf1()
313 for (msg_index = 1; msg_index < dblen - mdlen - 1; msg_index <<= 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()
315 for (i = mdlen + 1; i < dblen - msg_index; i++) in RSA_padding_check_PKCS1_OAEP_mgf1()
316 db[i] = constant_time_select_8(mask, db[i + msg_index], db[i]); in RSA_padding_check_PKCS1_OAEP_mgf1()
/freebsd/usr.bin/gencat/
H A Dgencat.c488 int msg_index; local
546 msg_index = 0;
570 set_hdr->__index = htonl(msg_index);
571 msg_index += nmsgs;
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_mci.c1394 static HAL_BOOL ar9300_mci_is_gpm_valid(struct ath_hal *ah, u_int32_t msg_index) in ar9300_mci_is_gpm_valid() argument
1398 u_int32_t recv_type, offset = msg_index << 4; in ar9300_mci_is_gpm_valid()
1400 if (msg_index == HAL_MCI_GPM_INVALID) { in ar9300_mci_is_gpm_valid()