Skip to content

Commit 9499277

Browse files
committed
drop mono exception
1 parent 764508d commit 9499277

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Renci.SshNet/Security/Cryptography/Ciphers/AesGcmCipher.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,7 @@ public AesGcmCipher(byte[] key, byte[] iv, int aadLength)
6565
#if !NETSTANDARD
6666
if (System.Security.Cryptography.AesGcm.IsSupported)
6767
{
68-
try
69-
{
70-
_impl = new BclImpl(key, _iv);
71-
}
72-
catch (DllNotFoundException)
73-
{
74-
// Mono doesn't have BCrypt.dll
75-
_impl = new BouncyCastleImpl(key, _iv);
76-
}
68+
_impl = new BclImpl(key, _iv);
7769
}
7870
else
7971
#endif

0 commit comments

Comments
 (0)