Skip to content

Commit 9a8b2f6

Browse files
committed
Use VerifyData
1 parent d159df1 commit 9a8b2f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ValvePak/ValvePak/Package.Verify.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ public bool IsSignatureValid()
255255
return false;
256256
}
257257

258-
var sha256OfMd5 = SHA256.HashData(hash); // SHA256(MD5) is certainly a choice
259-
return rsa.VerifyHash(sha256OfMd5, Signature, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
258+
// SHA256(MD5) is certainly a choice
259+
return rsa.VerifyData(hash, Signature, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
260260
}
261261

262262
if (SignatureType != ESignatureType.FullFile)

0 commit comments

Comments
 (0)