From 7e8ac607aa2c0943d4c272f2a57e17f3635be2fb Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 9 Nov 2021 15:38:57 +0700 Subject: Refactoring --- crypto/src/asn1/Asn1InputStream.cs | 8 ++++---- crypto/src/asn1/LazyASN1InputStream.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crypto/src/asn1/Asn1InputStream.cs b/crypto/src/asn1/Asn1InputStream.cs index 23431093e..b38598a62 100644 --- a/crypto/src/asn1/Asn1InputStream.cs +++ b/crypto/src/asn1/Asn1InputStream.cs @@ -143,14 +143,14 @@ namespace Org.BouncyCastle.Asn1 return new Asn1InputStream(defIn, remaining, tmpBuffers).ReadVector(); } - internal virtual DerSequence CreateDLSequence(DefiniteLengthInputStream dIn) + internal virtual Asn1Sequence CreateDLSequence(DefiniteLengthInputStream defIn) { - return DerSequence.FromVector(ReadVector(dIn)); + return DerSequence.FromVector(ReadVector(defIn)); } - internal virtual DerSet CreateDLSet(DefiniteLengthInputStream dIn) + internal virtual Asn1Set CreateDLSet(DefiniteLengthInputStream defIn) { - return DerSet.FromVector(ReadVector(dIn), false); + return DerSet.FromVector(ReadVector(defIn), false); } public Asn1Object ReadObject() diff --git a/crypto/src/asn1/LazyASN1InputStream.cs b/crypto/src/asn1/LazyASN1InputStream.cs index 2b120aafd..8dfbba122 100644 --- a/crypto/src/asn1/LazyASN1InputStream.cs +++ b/crypto/src/asn1/LazyASN1InputStream.cs @@ -21,14 +21,14 @@ namespace Org.BouncyCastle.Asn1 { } - internal override DerSequence CreateDLSequence(DefiniteLengthInputStream dIn) + internal override Asn1Sequence CreateDLSequence(DefiniteLengthInputStream defIn) { - return new LazyDLSequence(dIn.ToArray()); + return new LazyDLSequence(defIn.ToArray()); } - internal override DerSet CreateDLSet(DefiniteLengthInputStream dIn) + internal override Asn1Set CreateDLSet(DefiniteLengthInputStream defIn) { - return new LazyDLSet(dIn.ToArray()); + return new LazyDLSet(defIn.ToArray()); } internal override Asn1EncodableVector ReadVector(DefiniteLengthInputStream defIn) -- cgit 1.4.1