Lines Matching refs:sLen
74 const EVP_MD *Hash, const unsigned char *EM, int sLen)
76 return RSA_verify_PKCS1_PSS_mgf1(rsa, mHash, Hash, NULL, EM, sLen);
81 const unsigned char *EM, int sLen)
99 * Negative sLen has special meanings:
100 * -1 sLen == hLen
104 if (sLen == -1) sLen = hLen;
105 else if (sLen == -2) sLen = -2;
106 else if (sLen < -2)
124 if (emLen < (hLen + sLen + 2)) /* sLen can be small negative */
154 if (sLen >= 0 && (maskedDBLen - i) != sLen)
189 const EVP_MD *Hash, int sLen)
191 return RSA_padding_add_PKCS1_PSS_mgf1(rsa, EM, mHash, Hash, NULL, sLen);
196 const EVP_MD *Hash, const EVP_MD *mgf1Hash, int sLen)
211 * Negative sLen has special meanings:
212 * -1 sLen == hLen
216 if (sLen == -1) sLen = hLen;
217 else if (sLen == -2) sLen = -2;
218 else if (sLen < -2)
231 if (sLen == -2)
233 sLen = emLen - hLen - 2;
235 else if (emLen < (hLen + sLen + 2))
240 if (sLen > 0)
242 salt = OPENSSL_malloc(sLen);
248 if (RAND_bytes(salt, sLen) <= 0)
258 if (sLen && !EVP_DigestUpdate(&ctx, salt, sLen))
274 p += emLen - sLen - hLen - 2;
276 if (sLen > 0)
278 for (i = 0; i < sLen; i++)