Skip to content

Commit

Permalink
Ensure netstandard2.0 uses correct crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
smithrobs committed Feb 24, 2018
1 parent d14c064 commit 7f556aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Nexmo.Api/PemParse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ public static RSA DecodeRSAPrivateKey(byte[] privkey, bool isPkcs8)
elems = GetIntegerSize(binr);
IQ = binr.ReadBytes(elems);

// ------- create RSACryptoServiceProvider instance and initialize with public key -----
#if NETSTANDARD1_6
// ------- create RSACryptoServiceProvider instance and initialize with public key -----
#if NETSTANDARD1_6 || NETSTANDARD2_0
RSA RSA;
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ||
RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Expand Down

0 comments on commit 7f556aa

Please sign in to comment.