Skip to content

Commit

Permalink
Merge pull request #116 from bunq/bunq/sdk_csharp#92_fix_key_modulus_…
Browse files Browse the repository at this point in the history
…length

Fix key generation on .NET Framework. (#92)
  • Loading branch information
OGKevin authored Oct 10, 2018
2 parents 729f382 + 395d7ef commit a691566
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BunqSdk/Security/SecurityUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,12 @@ public static RSA CreatePublicKeyFromPublicKeyFormattedString(string publicKeySt
/// </summary>
public static RSA GenerateKeyPair()
{
#if NETSTANDARD2_0 || NET46 || NET45 || NET451 || NET452 || NET40 || NET35
var rsa = (RSA)new RSACryptoServiceProvider(RSA_KEY_SIZE);
#else
var rsa = RSA.Create();
rsa.KeySize = RSA_KEY_SIZE;

#endif
return rsa;
}

Expand Down

0 comments on commit a691566

Please sign in to comment.