diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-02-24 22:08:14 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-02-24 22:08:14 +0700 |
commit | 6529112d56fb76cd823b314b2fa2c7f11ef37f36 (patch) | |
tree | 670cd96f619e29a0c9afcac6d731529d94363278 /crypto/src/util/Strings.cs | |
parent | CipherStream refactoring (diff) | |
download | BouncyCastle.NET-ed25519-6529112d56fb76cd823b314b2fa2c7f11ef37f36.tar.xz |
Bcpg: update signature subpackets
Diffstat (limited to '')
-rw-r--r-- | crypto/src/util/Strings.cs | 5 |
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); |