diff --git a/src/LibHac/Crypto/Rsa.cs b/src/LibHac/Crypto/Rsa.cs index 1b28af86..398ca787 100644 --- a/src/LibHac/Crypto/Rsa.cs +++ b/src/LibHac/Crypto/Rsa.cs @@ -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; }