From 62486175817538acb3620f213c1d72e020774ec4 Mon Sep 17 00:00:00 2001 From: Alexander Scheel Date: Mon, 12 Feb 2024 09:44:54 -0500 Subject: Added test for PKCS7 signed content parsing #310 #232 Signed-off-by: Alexander Scheel --- crypto/test/data/cms/sigs/Pkcs7SignedContent.p7b | Bin 0 -> 8360 bytes crypto/test/src/cms/test/SignedDataTest.cs | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 crypto/test/data/cms/sigs/Pkcs7SignedContent.p7b diff --git a/crypto/test/data/cms/sigs/Pkcs7SignedContent.p7b b/crypto/test/data/cms/sigs/Pkcs7SignedContent.p7b new file mode 100644 index 000000000..d8986b228 Binary files /dev/null and b/crypto/test/data/cms/sigs/Pkcs7SignedContent.p7b differ diff --git a/crypto/test/src/cms/test/SignedDataTest.cs b/crypto/test/src/cms/test/SignedDataTest.cs index f16edb3f2..78a5015b2 100644 --- a/crypto/test/src/cms/test/SignedDataTest.cs +++ b/crypto/test/src/cms/test/SignedDataTest.cs @@ -1485,6 +1485,14 @@ namespace Org.BouncyCastle.Cms.Tests } } + [Test] + public void TestPkcs7SignedContent() + { + CmsSignedData sig = new CmsSignedData(GetInput("Pkcs7SignedContent.p7b")); + + VerifySignatures(sig); + } + private static void DoTestSample(string sigName) { CmsSignedData sig = new CmsSignedData(GetInput(sigName)); -- cgit 1.4.1