diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-04 13:18:30 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-04 13:18:30 +0700 |
commit | a6e3f6230eceb35539195560472605df29304685 (patch) | |
tree | 9db1054803f2bf1df337871e806db5bb3bdc5894 /crypto/src | |
parent | Support GOST agreement OIDs (diff) | |
download | BouncyCastle.NET-ed25519-a6e3f6230eceb35539195560472605df29304685.tar.xz |
Add variant of AddOptionalTagged
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/asn1/Asn1EncodableVector.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/src/asn1/Asn1EncodableVector.cs b/crypto/src/asn1/Asn1EncodableVector.cs index f50eb6f98..bf8d324ad 100644 --- a/crypto/src/asn1/Asn1EncodableVector.cs +++ b/crypto/src/asn1/Asn1EncodableVector.cs @@ -133,6 +133,14 @@ namespace Org.BouncyCastle.Asn1 } } + public void AddOptionalTagged(bool isExplicit, int tagClass, int tagNo, Asn1Encodable obj) + { + if (null != obj) + { + Add(new DerTaggedObject(isExplicit, tagClass, tagNo, obj)); + } + } + public void AddAll(Asn1EncodableVector other) { if (null == other) |