mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Catch OutOfMemoryExceptions when calling RSA.VerifyData with OpenSSL 1.1
This commit is contained in:
parent
2b31368030
commit
2e769ea70a
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ public static class Rsa
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue