summary refs log tree commit diff
path: root/crypto/src/security/SecurityUtilities.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-22 15:31:33 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-22 15:31:33 +0700
commit3a1d465dcde21e2cc5fa0589a2cbbde1f08fb681 (patch)
tree0f9c7559a9232cb2581e259893ec5d40cee8114d /crypto/src/security/SecurityUtilities.cs
parentUpdate NistObjectIdentifiers (diff)
downloadBouncyCastle.NET-ed25519-3a1d465dcde21e2cc5fa0589a2cbbde1f08fb681.tar.xz
Add explanatory comment for "wrong AES OIDs"
Diffstat (limited to '')
-rw-r--r--crypto/src/security/SecurityUtilities.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/src/security/SecurityUtilities.cs b/crypto/src/security/SecurityUtilities.cs
new file mode 100644
index 000000000..ff24c6e1e
--- /dev/null
+++ b/crypto/src/security/SecurityUtilities.cs
@@ -0,0 +1,13 @@
+namespace Org.BouncyCastle.Security
+{
+    internal static class SecurityUtilities
+    {
+        /*
+         * These three got introduced in some messages as a result of a typo in an early document. We don't produce
+         * anything using these OID values, but we'll read them.
+         */
+        internal static readonly string WrongAes128 = "2.16.840.1.101.3.4.2";
+        internal static readonly string WrongAes192 = "2.16.840.1.101.3.4.22";
+        internal static readonly string WrongAes256 = "2.16.840.1.101.3.4.42";
+    }
+}