Lines Matching refs:sLen
488 const uint8_t *EM, int sLen) { in RSA_verify_PKCS1_PSS_mgf1() argument
509 if (sLen == -1) { in RSA_verify_PKCS1_PSS_mgf1()
510 sLen = hLen; in RSA_verify_PKCS1_PSS_mgf1()
511 } else if (sLen == -2) { in RSA_verify_PKCS1_PSS_mgf1()
512 sLen = -2; in RSA_verify_PKCS1_PSS_mgf1()
513 } else if (sLen < -2) { in RSA_verify_PKCS1_PSS_mgf1()
528 if (emLen < (int)hLen + 2 || emLen < ((int)hLen + sLen + 2)) { in RSA_verify_PKCS1_PSS_mgf1()
560 if (sLen >= 0 && (maskedDBLen - i) != sLen) { in RSA_verify_PKCS1_PSS_mgf1()
622 size_t sLen; in RSA_padding_add_PKCS1_PSS_mgf1() local
624 sLen = hLen; in RSA_padding_add_PKCS1_PSS_mgf1()
626 sLen = emLen - hLen - 2; in RSA_padding_add_PKCS1_PSS_mgf1()
631 sLen = (size_t)sLenRequested; in RSA_padding_add_PKCS1_PSS_mgf1()
634 if (emLen - hLen - 2 < sLen) { in RSA_padding_add_PKCS1_PSS_mgf1()
639 if (sLen > 0) { in RSA_padding_add_PKCS1_PSS_mgf1()
640 salt = OPENSSL_malloc(sLen); in RSA_padding_add_PKCS1_PSS_mgf1()
645 if (!RAND_bytes(salt, sLen)) { in RSA_padding_add_PKCS1_PSS_mgf1()
657 EVP_DigestUpdate(&ctx, salt, sLen) && in RSA_padding_add_PKCS1_PSS_mgf1()
674 p += emLen - sLen - hLen - 2; in RSA_padding_add_PKCS1_PSS_mgf1()
676 if (sLen > 0) { in RSA_padding_add_PKCS1_PSS_mgf1()
677 for (size_t i = 0; i < sLen; i++) { in RSA_padding_add_PKCS1_PSS_mgf1()