Skip to content

Commit

Permalink
Merge pull request #175 from benvdh/cross-platform-asymmetric-higher-…
Browse files Browse the repository at this point in the history
…key-encryption-helper

make AsymmetricHigherKeyEncryptionHelper runnable on non-windows platforms
  • Loading branch information
laurent-mic authored Dec 1, 2021
2 parents b5882f5 + 05c66ea commit 1c7dd0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ internal static string Encrypt(byte[] plainTextBytes, byte[] modulusBytes, byte[
Buffer.BlockCopy(keyMac, 0, keys, keyEnc.Length + 2, keyMac.Length);
byte[] encryptedKeys;

using (var rsa = new RSACng())
using (var rsa = RSA.Create())
{
var rsaKeyInfo = rsa.ExportParameters(false);
rsaKeyInfo.Modulus = modulusBytes;
Expand Down

0 comments on commit 1c7dd0d

Please sign in to comment.