Lines Matching refs:flen
34 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP() argument
37 return RSA_padding_add_PKCS1_OAEP_mgf1(to, tlen, from, flen, in RSA_padding_add_PKCS1_OAEP()
42 const unsigned char *from, int flen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument
60 if (flen > emlen - 2 * mdlen - 1) { in RSA_padding_add_PKCS1_OAEP_mgf1()
78 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1); in RSA_padding_add_PKCS1_OAEP_mgf1()
79 db[emlen - flen - mdlen - 1] = 0x01; in RSA_padding_add_PKCS1_OAEP_mgf1()
80 memcpy(db + emlen - flen - mdlen, from, (unsigned int)flen); in RSA_padding_add_PKCS1_OAEP_mgf1()
109 const unsigned char *from, int flen, int num, in RSA_padding_check_PKCS1_OAEP() argument
112 return RSA_padding_check_PKCS1_OAEP_mgf1(to, tlen, from, flen, num, in RSA_padding_check_PKCS1_OAEP()
117 const unsigned char *from, int flen, in RSA_padding_check_PKCS1_OAEP_mgf1() argument
140 if (tlen <= 0 || flen <= 0) in RSA_padding_check_PKCS1_OAEP_mgf1()
150 if (num < flen || num < 2 * mdlen + 2) { in RSA_padding_check_PKCS1_OAEP_mgf1()
176 for (from += flen, em += num, i = 0; i < num; i++) { in RSA_padding_check_PKCS1_OAEP_mgf1()
177 mask = ~constant_time_is_zero(flen); in RSA_padding_check_PKCS1_OAEP_mgf1()
178 flen -= 1 & mask; in RSA_padding_check_PKCS1_OAEP_mgf1()