diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-09-09 15:52:36 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-09-09 15:52:36 +0700 |
commit | 71a58e93463e0a7e4f277069f9e133a98a9a8bcb (patch) | |
tree | b14b3c28149ece39a59bf14d6f2d45bed7774dcd /crypto/src/asn1/x500 | |
parent | Add sanity checks on scalar mult. outputs (diff) | |
download | BouncyCastle.NET-ed25519-71a58e93463e0a7e4f277069f9e133a98a9a8bcb.tar.xz |
Port of strict hex decoding from bc-java
Diffstat (limited to 'crypto/src/asn1/x500')
-rw-r--r-- | crypto/src/asn1/x500/style/IetfUtilities.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/x500/style/IetfUtilities.cs b/crypto/src/asn1/x500/style/IetfUtilities.cs index 2c0ab45bc..53e5fccf4 100644 --- a/crypto/src/asn1/x500/style/IetfUtilities.cs +++ b/crypto/src/asn1/x500/style/IetfUtilities.cs @@ -138,7 +138,7 @@ namespace Org.BouncyCastle.Asn1.X500.Style { try { - return Asn1Object.FromByteArray(Hex.Decode(oValue.Substring(1))); + return Asn1Object.FromByteArray(Hex.DecodeStrict(oValue, 1, oValue.Length - 1)); } catch (IOException e) { |