diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-27 13:59:54 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-27 13:59:54 +0700 |
commit | deebe8992db13f74135c2119d376431e69056fe9 (patch) | |
tree | ab9765449db60026ec65471875b90d95a453b381 | |
parent | Change more internal usages of ISet to HashSet (diff) | |
download | BouncyCastle.NET-ed25519-deebe8992db13f74135c2119d376431e69056fe9.tar.xz |
May some KeyParameter methods public
-rw-r--r-- | crypto/src/crypto/parameters/KeyParameter.cs | 4 |
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); |