1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/src/tls/crypto/impl/AbstractTlsSecret.cs b/crypto/src/tls/crypto/impl/AbstractTlsSecret.cs
index 1ea25344d..cc07f978f 100644
--- a/crypto/src/tls/crypto/impl/AbstractTlsSecret.cs
+++ b/crypto/src/tls/crypto/impl/AbstractTlsSecret.cs
@@ -9,6 +9,11 @@ namespace Org.BouncyCastle.Tls.Crypto.Impl
public abstract class AbstractTlsSecret
: TlsSecret
{
+ protected static byte[] CopyData(AbstractTlsSecret other)
+ {
+ return other.CopyData();
+ }
+
protected byte[] m_data;
/// <summary>Base constructor.</summary>
@@ -79,7 +84,7 @@ namespace Org.BouncyCastle.Tls.Crypto.Impl
public abstract TlsSecret HkdfExpand(int cryptoHashAlgorithm, byte[] info, int length);
- public abstract TlsSecret HkdfExtract(int cryptoHashAlgorithm, byte[] ikm);
+ public abstract TlsSecret HkdfExtract(int cryptoHashAlgorithm, TlsSecret ikm);
public virtual bool IsAlive()
{
|