summary refs log tree commit diff
path: root/crypto/src/asn1/pkcs/PKCSObjectIdentifiers.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-09-10 00:19:15 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-09-10 00:19:15 +0700
commit7248688e6f513cbdde1ccc1d39904cb964b0c88a (patch)
tree55e3287103febeeec1d759b7c691951306d087e9 /crypto/src/asn1/pkcs/PKCSObjectIdentifiers.cs
parentPort ChaCha20Poly1305 from bc-java (diff)
downloadBouncyCastle.NET-ed25519-7248688e6f513cbdde1ccc1d39904cb964b0c88a.tar.xz
Add ChaCha ciphers to factory classes
Diffstat (limited to 'crypto/src/asn1/pkcs/PKCSObjectIdentifiers.cs')
-rw-r--r--crypto/src/asn1/pkcs/PKCSObjectIdentifiers.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/src/asn1/pkcs/PKCSObjectIdentifiers.cs b/crypto/src/asn1/pkcs/PKCSObjectIdentifiers.cs
index a991585f6..6c7fed442 100644
--- a/crypto/src/asn1/pkcs/PKCSObjectIdentifiers.cs
+++ b/crypto/src/asn1/pkcs/PKCSObjectIdentifiers.cs
@@ -159,6 +159,17 @@ namespace Org.BouncyCastle.Asn1.Pkcs
          */
         public static readonly DerObjectIdentifier IdRsaKem = IdAlg.Branch("14");
 
+        /**
+         * <pre>
+         * id-alg-AEADChaCha20Poly1305 OBJECT IDENTIFIER ::=
+         * { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
+         *    pkcs9(9) smime(16) alg(3) 18 }
+         *
+         * AEADChaCha20Poly1305Nonce ::= OCTET STRING (SIZE(12))
+         * </pre>
+         */
+        public static readonly DerObjectIdentifier IdAlgAeadChaCha20Poly1305 = IdAlg.Branch("18");
+
         //
         // SMIME capability sub oids.
         //