diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-03-07 16:58:53 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-03-07 16:58:53 +0700 |
commit | 05890ce5de379abebd7d6706f4cb75b9aa6d30ff (patch) | |
tree | add55bd02058094e2289ec6eb3d9a2b3230d834d | |
parent | Sort DER sets without encoding elements (diff) | |
download | BouncyCastle.NET-ed25519-05890ce5de379abebd7d6706f4cb75b9aa6d30ff.tar.xz |
Seal some overrides
-rw-r--r-- | crypto/src/asn1/DerSequence.cs | 4 | ||||
-rw-r--r-- | crypto/src/asn1/DerSet.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/crypto/src/asn1/DerSequence.cs b/crypto/src/asn1/DerSequence.cs index 43d1a9167..cd526e871 100644 --- a/crypto/src/asn1/DerSequence.cs +++ b/crypto/src/asn1/DerSequence.cs @@ -66,13 +66,13 @@ namespace Org.BouncyCastle.Asn1 Asn1OutputStream.GetContentsEncodings(Asn1OutputStream.EncodingDer, elements)); } - internal override DerEncoding GetEncodingDer() + internal sealed override DerEncoding GetEncodingDer() { return new ConstructedDerEncoding(Asn1Tags.Universal, Asn1Tags.Sequence, Asn1OutputStream.GetContentsEncodingsDer(elements)); } - internal override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo) + internal sealed override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo) { return new ConstructedDerEncoding(tagClass, tagNo, Asn1OutputStream.GetContentsEncodingsDer(elements)); diff --git a/crypto/src/asn1/DerSet.cs b/crypto/src/asn1/DerSet.cs index 99a8dc284..5c7509d11 100644 --- a/crypto/src/asn1/DerSet.cs +++ b/crypto/src/asn1/DerSet.cs @@ -71,12 +71,12 @@ namespace Org.BouncyCastle.Asn1 return new ConstructedDLEncoding(tagClass, tagNo, GetSortedDerEncodings()); } - internal override DerEncoding GetEncodingDer() + internal sealed override DerEncoding GetEncodingDer() { return new ConstructedDerEncoding(Asn1Tags.Universal, Asn1Tags.Set, GetSortedDerEncodings()); } - internal override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo) + internal sealed override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo) { return new ConstructedDerEncoding(tagClass, tagNo, GetSortedDerEncodings()); } |