Home
last modified time | relevance | path

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

/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()
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()
501 msg_index = constant_time_select_int(good, msg_index, synth_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()

Completed in 15 milliseconds