mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Catch OutOfMemoryExceptions when calling RSA.VerifyData with OpenSSL 1.1
This commit is contained in:
parent
2b31368030
commit
2e769ea70a
@ -29,7 +29,8 @@ public static class Rsa
|
|||||||
return rsa.VerifyData(message, signature, HashAlgorithmName.SHA256, padding);
|
return rsa.VerifyData(message, signature, HashAlgorithmName.SHA256, padding);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (CryptographicException)
|
// Catch the OutOfMemoryException to workaround an issue with OpenSSL 1.1. dotnet/runtime#78293
|
||||||
|
catch (Exception ex) when (ex is CryptographicException or OutOfMemoryException)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user