Lines Matching refs:mask
175 unsigned int good = 0, found_one_byte, mask; in RSA_padding_check_PKCS1_OAEP_mgf1() local
242 mask = ~constant_time_is_zero(flen); in RSA_padding_check_PKCS1_OAEP_mgf1()
243 flen -= 1 & mask; in RSA_padding_check_PKCS1_OAEP_mgf1()
244 from -= 1 & mask; in RSA_padding_check_PKCS1_OAEP_mgf1()
245 *--em = *from & mask; 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()
316 db[i] = constant_time_select_8(mask, db[i + msg_index], db[i]); in RSA_padding_check_PKCS1_OAEP_mgf1()
319 mask = good & constant_time_lt(i, mlen); in RSA_padding_check_PKCS1_OAEP_mgf1()
320 to[i] = constant_time_select_8(mask, db[i + mdlen + 1], to[i]); in RSA_padding_check_PKCS1_OAEP_mgf1()
350 int PKCS1_MGF1(unsigned char *mask, long len, in PKCS1_MGF1() argument
378 if (!EVP_DigestFinal_ex(c, mask + outlen, NULL)) in PKCS1_MGF1()
384 memcpy(mask + outlen, md, len - outlen); in PKCS1_MGF1()