Lines Matching refs:hLen
492 size_t hLen; in RSA_verify_PKCS1_PSS_mgf1() local
503 hLen = EVP_MD_size(Hash); in RSA_verify_PKCS1_PSS_mgf1()
510 sLen = hLen; in RSA_verify_PKCS1_PSS_mgf1()
528 if (emLen < (int)hLen + 2 || emLen < ((int)hLen + sLen + 2)) { in RSA_verify_PKCS1_PSS_mgf1()
537 maskedDBLen = emLen - hLen - 1; in RSA_verify_PKCS1_PSS_mgf1()
544 if (!PKCS1_MGF1(DB, maskedDBLen, H, hLen, mgf1Hash)) { in RSA_verify_PKCS1_PSS_mgf1()
566 !EVP_DigestUpdate(&ctx, mHash, hLen) || in RSA_verify_PKCS1_PSS_mgf1()
571 if (OPENSSL_memcmp(H_, H, hLen)) { in RSA_verify_PKCS1_PSS_mgf1()
591 size_t hLen; in RSA_padding_add_PKCS1_PSS_mgf1() local
598 hLen = EVP_MD_size(Hash); in RSA_padding_add_PKCS1_PSS_mgf1()
613 if (emLen < hLen + 2) { in RSA_padding_add_PKCS1_PSS_mgf1()
624 sLen = hLen; in RSA_padding_add_PKCS1_PSS_mgf1()
626 sLen = emLen - hLen - 2; in RSA_padding_add_PKCS1_PSS_mgf1()
634 if (emLen - hLen - 2 < sLen) { in RSA_padding_add_PKCS1_PSS_mgf1()
649 maskedDBLen = emLen - hLen - 1; in RSA_padding_add_PKCS1_PSS_mgf1()
656 EVP_DigestUpdate(&ctx, mHash, hLen) && in RSA_padding_add_PKCS1_PSS_mgf1()
665 if (!PKCS1_MGF1(EM, maskedDBLen, H, hLen, mgf1Hash)) { in RSA_padding_add_PKCS1_PSS_mgf1()
674 p += emLen - sLen - hLen - 2; in RSA_padding_add_PKCS1_PSS_mgf1()