Fix typo in parameter name.
authorKevin Jones <kevin@vcsjones.com>
Thu, 3 Jan 2019 02:06:31 +0000 (21:06 -0500)
committerKevin Jones <kevin@vcsjones.com>
Fri, 4 Jan 2019 04:55:42 +0000 (23:55 -0500)
Commit migrated from https://github.com/dotnet/corefx/commit/74f041bdfb2ccf9a42ffeb5a000808c24a1a18d9

src/libraries/System.Security.Cryptography.Pkcs/src/Internal/Cryptography/Pal/AnyOS/ManagedPal.KeyTrans.cs

index a0ba5d8..6d60063 100644 (file)
@@ -74,7 +74,7 @@ namespace Internal.Cryptography.Pal.AnyOS
             internal static byte[] DecryptCekCore(
                 X509Certificate2 cert,
                 RSA privateKey,
-                ReadOnlySpan<byte> encrypedKey,
+                ReadOnlySpan<byte> encryptedKey,
                 string keyEncryptionAlgorithm,
                 out Exception exception)
             {
@@ -98,13 +98,13 @@ namespace Internal.Cryptography.Pal.AnyOS
 
                 if (privateKey != null)
                 {
-                    return DecryptKey(privateKey, encryptionPadding, encrypedKey, out exception);
+                    return DecryptKey(privateKey, encryptionPadding, encryptedKey, out exception);
                 }
                 else
                 {
                     using (RSA rsa = cert.GetRSAPrivateKey())
                     {
-                        return DecryptKey(rsa, encryptionPadding, encrypedKey, out exception);
+                        return DecryptKey(rsa, encryptionPadding, encryptedKey, out exception);
                     }
                 }
             }