diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-11-08 16:45:05 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-11-08 16:45:05 +0700 |
commit | 43ca80887364141adace03abe88b52f211f0e07e (patch) | |
tree | f4f851abab8f11c75ce61031d8a4dfe0e64b2936 /crypto/src/asn1/DerOctetString.cs | |
parent | More tagged object work from bc-java (diff) | |
download | BouncyCastle.NET-ed25519-43ca80887364141adace03abe88b52f211f0e07e.tar.xz |
ASN.1 refactoring
Diffstat (limited to 'crypto/src/asn1/DerOctetString.cs')
-rw-r--r-- | crypto/src/asn1/DerOctetString.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crypto/src/asn1/DerOctetString.cs b/crypto/src/asn1/DerOctetString.cs index 7679d5eb1..55c099360 100644 --- a/crypto/src/asn1/DerOctetString.cs +++ b/crypto/src/asn1/DerOctetString.cs @@ -5,10 +5,9 @@ namespace Org.BouncyCastle.Asn1 public class DerOctetString : Asn1OctetString { - /// <param name="str">The octets making up the octet string.</param> - public DerOctetString( - byte[] str) - : base(str) + /// <param name="contents">The octets making up the octet string.</param> + public DerOctetString(byte[] contents) + : base(contents) { } @@ -29,12 +28,12 @@ namespace Org.BouncyCastle.Asn1 internal override int EncodedLength(bool withID) { - return Asn1OutputStream.GetLengthOfEncodingDL(withID, str.Length); + return Asn1OutputStream.GetLengthOfEncodingDL(withID, contents.Length); } internal override void Encode(Asn1OutputStream asn1Out, bool withID) { - asn1Out.WriteEncodingDL(withID, Asn1Tags.OctetString, str); + asn1Out.WriteEncodingDL(withID, Asn1Tags.OctetString, contents); } internal static void Encode(Asn1OutputStream asn1Out, bool withID, byte[] buf, int off, int len) |