From 30f959c64691c30ea7a469ed5c267b740c4c979f Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 13 Mar 2024 01:21:30 +0700 Subject: Refactoring in Cms - stricter (and earlier) OID checks - add TODOs for IDigestAlgorithmFinder usage (inc. noParams) --- crypto/test/src/cms/test/SignedDataStreamTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/test') diff --git a/crypto/test/src/cms/test/SignedDataStreamTest.cs b/crypto/test/src/cms/test/SignedDataStreamTest.cs index de4011b17..c6bcf12b8 100644 --- a/crypto/test/src/cms/test/SignedDataStreamTest.cs +++ b/crypto/test/src/cms/test/SignedDataStreamTest.cs @@ -187,7 +187,7 @@ namespace Org.BouncyCastle.Cms.Tests { CmsSignedDataStreamGenerator gen = new CmsSignedDataStreamGenerator(); gen.AddSigner(OrigKP.Private, OrigCert, - "DSA", // DOESN'T MATCH KEY ALG + CmsSignedDataStreamGenerator.EncryptionDsa, // DOESN'T MATCH KEY ALG CmsSignedDataStreamGenerator.DigestSha1); Assert.Fail("Expected InvalidKeyException in AddSigner"); -- cgit 1.4.1