Lines Matching defs:flen
32 const unsigned char *from, int flen,
35 return RSA_padding_add_PKCS1_OAEP_mgf1(to, tlen, from, flen,
40 const unsigned char *from, int flen,
56 if (flen > emlen - 2 * mdlen - 1) {
74 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1);
75 db[emlen - flen - mdlen - 1] = 0x01;
76 memcpy(db + emlen - flen - mdlen, from, (unsigned int)flen);
106 const unsigned char *from, int flen, int num,
109 return RSA_padding_check_PKCS1_OAEP_mgf1(to, tlen, from, flen, num,
114 const unsigned char *from, int flen,
137 if (tlen <= 0 || flen <= 0)
140 * |num| is the length of the modulus; |flen| is the length of the
142 * decrypting a ciphertext, we must have |flen| <= |num|. Similarly,
147 if (num < flen || num < 2 * mdlen + 2)
159 * Always do this zero-padding copy (even when num == flen) to avoid
167 memcpy(em + num - flen, from, flen);