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.c175 int zero_index = 0, msg_index, mlen = -1; in RSA_padding_check_PKCS1_type_2() local
232 msg_index = zero_index + 1; in RSA_padding_check_PKCS1_type_2()
233 mlen = num - msg_index; in RSA_padding_check_PKCS1_type_2()
252 for (msg_index = 1; msg_index < num - RSA_PKCS1_PADDING_SIZE; msg_index <<= 1) { in RSA_padding_check_PKCS1_type_2()
253 mask = ~constant_time_eq(msg_index & (num - RSA_PKCS1_PADDING_SIZE - mlen), 0); in RSA_padding_check_PKCS1_type_2()
254 for (i = RSA_PKCS1_PADDING_SIZE; i < num - msg_index; i++) in RSA_padding_check_PKCS1_type_2()
255 em[i] = constant_time_select_8(mask, em[i + msg_index], em[i]); in RSA_padding_check_PKCS1_type_2()
H A Drsa_oaep.c164 int i, dblen = 0, mlen = -1, one_index = 0, msg_index; in RSA_padding_check_PKCS1_OAEP_mgf1() local
275 msg_index = one_index + 1; in RSA_padding_check_PKCS1_OAEP_mgf1()
276 mlen = dblen - msg_index; in RSA_padding_check_PKCS1_OAEP_mgf1()
295 for (msg_index = 1; msg_index < dblen - mdlen - 1; msg_index <<= 1) { in RSA_padding_check_PKCS1_OAEP_mgf1()
296 mask = ~constant_time_eq(msg_index & (dblen - mdlen - 1 - mlen), 0); in RSA_padding_check_PKCS1_OAEP_mgf1()
297 for (i = mdlen + 1; i < dblen - msg_index; i++) in RSA_padding_check_PKCS1_OAEP_mgf1()
298 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()