Home
last modified time | relevance | path

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

/third_party/openssl/crypto/rsa/
Drsa_ssl.c68 int zero_index = 0, msg_index, mlen = -1, err; in RSA_padding_check_SSLv23() local
140 msg_index = zero_index + 1; in RSA_padding_check_SSLv23()
141 mlen = num - msg_index; in RSA_padding_check_SSLv23()
161 for (msg_index = 1; msg_index < num - RSA_PKCS1_PADDING_SIZE; msg_index <<= 1) { in RSA_padding_check_SSLv23()
162 mask = ~constant_time_eq(msg_index & (num - RSA_PKCS1_PADDING_SIZE - mlen), 0); in RSA_padding_check_SSLv23()
163 for (i = RSA_PKCS1_PADDING_SIZE; i < num - msg_index; i++) in RSA_padding_check_SSLv23()
164 em[i] = constant_time_select_8(mask, em[i + msg_index], em[i]); in RSA_padding_check_SSLv23()
Drsa_pk1.c162 int zero_index = 0, msg_index, mlen = -1; in RSA_padding_check_PKCS1_type_2() local
220 msg_index = zero_index + 1; in RSA_padding_check_PKCS1_type_2()
221 mlen = num - msg_index; in RSA_padding_check_PKCS1_type_2()
240 for (msg_index = 1; msg_index < num - RSA_PKCS1_PADDING_SIZE; msg_index <<= 1) { in RSA_padding_check_PKCS1_type_2()
241 mask = ~constant_time_eq(msg_index & (num - RSA_PKCS1_PADDING_SIZE - mlen), 0); in RSA_padding_check_PKCS1_type_2()
242 for (i = RSA_PKCS1_PADDING_SIZE; i < num - msg_index; i++) in RSA_padding_check_PKCS1_type_2()
243 em[i] = constant_time_select_8(mask, em[i + msg_index], em[i]); in RSA_padding_check_PKCS1_type_2()
Drsa_oaep.c122 int i, dblen = 0, mlen = -1, one_index = 0, msg_index; in RSA_padding_check_PKCS1_OAEP_mgf1() local
228 msg_index = one_index + 1; in RSA_padding_check_PKCS1_OAEP_mgf1()
229 mlen = dblen - msg_index; in RSA_padding_check_PKCS1_OAEP_mgf1()
248 for (msg_index = 1; msg_index < dblen - mdlen - 1; msg_index <<= 1) { in RSA_padding_check_PKCS1_OAEP_mgf1()
249 mask = ~constant_time_eq(msg_index & (dblen - mdlen - 1 - mlen), 0); in RSA_padding_check_PKCS1_OAEP_mgf1()
250 for (i = mdlen + 1; i < dblen - msg_index; i++) in RSA_padding_check_PKCS1_OAEP_mgf1()
251 db[i] = constant_time_select_8(mask, db[i + msg_index], db[i]); in RSA_padding_check_PKCS1_OAEP_mgf1()