From 88c2bc2a9983e0f2bc063b2a8319719deac726bd Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 7 Mar 2024 13:12:08 +0700 Subject: Refactoring --- crypto/src/tls/crypto/impl/bc/BcDefaultTlsCredentialedDecryptor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/src/tls') 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); } } } -- cgit 1.4.1