summary refs log tree commit diff
path: root/crypto/src/util/Strings.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-02-24 22:08:14 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-02-24 22:08:14 +0700
commit6529112d56fb76cd823b314b2fa2c7f11ef37f36 (patch)
tree670cd96f619e29a0c9afcac6d731529d94363278 /crypto/src/util/Strings.cs
parentCipherStream refactoring (diff)
downloadBouncyCastle.NET-ed25519-6529112d56fb76cd823b314b2fa2c7f11ef37f36.tar.xz
Bcpg: update signature subpackets
Diffstat (limited to '')
-rw-r--r--crypto/src/util/Strings.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/util/Strings.cs b/crypto/src/util/Strings.cs
index 29a95a07e..b1a63a3a1 100644
--- a/crypto/src/util/Strings.cs
+++ b/crypto/src/util/Strings.cs
@@ -78,6 +78,11 @@ namespace Org.BouncyCastle.Utilities
             return Encoding.UTF8.GetString(bytes);
         }
 
+        public static string FromUtf8ByteArray(byte[] bytes, int index, int count)
+        {
+            return Encoding.UTF8.GetString(bytes, index, count);
+        }
+
         public static byte[] ToUtf8ByteArray(char[] cs)
         {
             return Encoding.UTF8.GetBytes(cs);