summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-01-20 17:55:07 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-01-20 17:55:07 +0700
commit27c1d7797c79cd799ba04132e0d4b571de509e24 (patch)
treec8ff0d7c6d188841553b08e2561a267488d917bb /crypto/test
parentAlign sig alg checks in X509Certificate, X509Crl (diff)
downloadBouncyCastle.NET-ed25519-27c1d7797c79cd799ba04132e0d4b571de509e24.tar.xz
Overhaul algorithm registries
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/cms/test/EnvelopedDataTest.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/test/src/cms/test/EnvelopedDataTest.cs b/crypto/test/src/cms/test/EnvelopedDataTest.cs
index 02c76a0c1..36b3c7db4 100644
--- a/crypto/test/src/cms/test/EnvelopedDataTest.cs
+++ b/crypto/test/src/cms/test/EnvelopedDataTest.cs
@@ -374,11 +374,11 @@ namespace Org.BouncyCastle.Cms.Tests
 
 			CmsEnvelopedData ed = edGen.Generate(
 				new CmsProcessableByteArray(data),
-				"1.2.840.113549.3.4"); // RC4 OID
+                PkcsObjectIdentifiers.rc4.GetID());
 
 			RecipientInformationStore  recipients = ed.GetRecipientInfos();
 
-			Assert.AreEqual(ed.EncryptionAlgOid, "1.2.840.113549.3.4");
+			Assert.AreEqual(ed.EncryptionAlgOid, PkcsObjectIdentifiers.rc4.GetID());
 
 			var c = recipients.GetRecipients();
 
@@ -404,11 +404,11 @@ namespace Org.BouncyCastle.Cms.Tests
 
 			CmsEnvelopedData ed = edGen.Generate(
 				new CmsProcessableByteArray(data),
-				"1.2.840.113549.3.4", 128);  // RC4 OID
+                PkcsObjectIdentifiers.rc4.GetID(), 128);
 
 			RecipientInformationStore recipients = ed.GetRecipientInfos();
 
-			Assert.AreEqual(ed.EncryptionAlgOid, "1.2.840.113549.3.4");
+			Assert.AreEqual(ed.EncryptionAlgOid, PkcsObjectIdentifiers.rc4.GetID());
 
 			var c = recipients.GetRecipients();