summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crypto/src/crypto/parameters/KeyParameter.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crypto/parameters/KeyParameter.cs b/crypto/src/crypto/parameters/KeyParameter.cs
index c29dfe61b..592c35008 100644
--- a/crypto/src/crypto/parameters/KeyParameter.cs
+++ b/crypto/src/crypto/parameters/KeyParameter.cs
@@ -62,7 +62,7 @@ namespace Org.BouncyCastle.Crypto.Parameters
             m_key = new byte[length];
         }
 
-        internal void CopyTo(byte[] buf, int off, int len)
+        public void CopyTo(byte[] buf, int off, int len)
         {
             if (m_key.Length != len)
                 throw new ArgumentOutOfRangeException(nameof(len));
@@ -86,7 +86,7 @@ namespace Org.BouncyCastle.Crypto.Parameters
         internal ReadOnlySpan<byte> Key => m_key;
 #endif
 
-        internal KeyParameter Reverse()
+        public KeyParameter Reverse()
         {
             var reversed = new KeyParameter(m_key.Length);
             Arrays.Reverse(m_key, reversed.m_key);