Lines Matching defs:sLen
76 int sLen)
78 return RSA_verify_PKCS1_PSS_mgf1(rsa, mHash, Hash, NULL, EM, sLen);
83 const unsigned char *EM, int sLen)
101 * Negative sLen has special meanings:
102 * -1 sLen == hLen
106 if (sLen == -1)
107 sLen = hLen;
108 else if (sLen == -2)
109 sLen = -2;
110 else if (sLen < -2) {
125 if (emLen < (hLen + sLen + 2)) { /* sLen can be small negative */
151 if (sLen >= 0 && (maskedDBLen - i) != sLen) {
182 const EVP_MD *Hash, int sLen)
184 return RSA_padding_add_PKCS1_PSS_mgf1(rsa, EM, mHash, Hash, NULL, sLen);
190 int sLen)
205 * Negative sLen has special meanings:
206 * -1 sLen == hLen
210 if (sLen == -1)
211 sLen = hLen;
212 else if (sLen == -2)
213 sLen = -2;
214 else if (sLen < -2) {
225 if (sLen == -2) {
226 sLen = emLen - hLen - 2;
227 } else if (emLen < (hLen + sLen + 2)) {
232 if (sLen > 0) {
233 salt = OPENSSL_malloc(sLen);
239 if (RAND_bytes(salt, sLen) <= 0)
249 if (sLen && !EVP_DigestUpdate(&ctx, salt, sLen))
265 p += emLen - sLen - hLen - 2;
267 if (sLen > 0) {
268 for (i = 0; i < sLen; i++)