summary refs log tree commit diff
path: root/crypto/src/tls
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-03-07 13:12:08 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-03-07 13:12:08 +0700
commit88c2bc2a9983e0f2bc063b2a8319719deac726bd (patch)
tree0c4980087d304373c9607dacfc0ba4c80c6b1e4d /crypto/src/tls
parentAdd other dhSinglePass OID entries to registries (diff)
downloadBouncyCastle.NET-ed25519-88c2bc2a9983e0f2bc063b2a8319719deac726bd.tar.xz
Refactoring
Diffstat (limited to 'crypto/src/tls')
-rw-r--r--crypto/src/tls/crypto/impl/bc/BcDefaultTlsCredentialedDecryptor.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/tls/crypto/impl/bc/BcDefaultTlsCredentialedDecryptor.cs b/crypto/src/tls/crypto/impl/bc/BcDefaultTlsCredentialedDecryptor.cs
index d7d9f7595..5cfb2690e 100644
--- a/crypto/src/tls/crypto/impl/bc/BcDefaultTlsCredentialedDecryptor.cs
+++ b/crypto/src/tls/crypto/impl/bc/BcDefaultTlsCredentialedDecryptor.cs
@@ -58,10 +58,10 @@ namespace Org.BouncyCastle.Tls.Crypto.Impl.BC
         {
             ProtocolVersion expectedVersion = cryptoParams.RsaPreMasterSecretVersion;
 
-            byte[] M = Org.BouncyCastle.Crypto.Tls.TlsRsaKeyExchange.DecryptPreMasterSecret(encryptedPreMasterSecret,
-                rsaServerPrivateKey, expectedVersion.FullVersion, m_crypto.SecureRandom);
+            byte[] preMasterSecret = Org.BouncyCastle.Crypto.Tls.TlsRsaKeyExchange.DecryptPreMasterSecret(
+                encryptedPreMasterSecret, rsaServerPrivateKey, expectedVersion.FullVersion, m_crypto.SecureRandom);
 
-            return m_crypto.CreateSecret(M);
+            return m_crypto.CreateSecret(preMasterSecret);
         }
     }
 }