From 46230a012af2824a5e742db8e6dc5b23c720d696 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 11 Nov 2021 14:06:03 +0700 Subject: ASN.1: Update encoding in line with bc-java --- crypto/src/asn1/DerApplicationSpecific.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/src/asn1/DerApplicationSpecific.cs') diff --git a/crypto/src/asn1/DerApplicationSpecific.cs b/crypto/src/asn1/DerApplicationSpecific.cs index a71526876..bc48d24e5 100644 --- a/crypto/src/asn1/DerApplicationSpecific.cs +++ b/crypto/src/asn1/DerApplicationSpecific.cs @@ -163,12 +163,12 @@ namespace Org.BouncyCastle.Asn1 return FromByteArray(tmp); } - internal override bool EncodeConstructed() + internal override bool EncodeConstructed(int encoding) { - throw Platform.CreateNotImplementedException("DerApplicationSpecific.EncodeConstructed"); + return isConstructed; } - internal override int EncodedLength(bool withID) + internal override int EncodedLength(int encoding, bool withID) { return Asn1OutputStream.GetLengthOfEncodingDL(withID, tag, octets.Length); } -- cgit 1.4.1