Support additional OIDs for SignedCms digest algorithms
authorKevin Jones <kevin@vcsjones.com>
Tue, 25 Jun 2019 14:45:59 +0000 (10:45 -0400)
committerJeremy Barton <jbarton@microsoft.com>
Tue, 25 Jun 2019 14:45:59 +0000 (07:45 -0700)
commitb078c1bd2520952c1455db393a0f4f52342004c7
treedb3cc2622a501f920abcde887fe95d9e9bc17f75
parent0542f5a57ef920e380c879426478342493e543d1
Support additional OIDs for SignedCms digest algorithms

If an existing CMS has a digest algorithm identifier of {Digest}withRSA, the algorithm will be treated as unknown, however this works in the Desktop .NET Framework. This adds support for those algorithm identifiers for signature verification, but not for creation.

Commit migrated from https://github.com/dotnet/corefx/commit/e40dbeb9c4adfec29e291e11e98d92924efea673
src/libraries/Common/src/System/Security/Cryptography/Oids.cs
src/libraries/System.Security.Cryptography.Pkcs/src/Internal/Cryptography/PkcsHelpers.cs
src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignerInfo.cs
src/libraries/System.Security.Cryptography.Pkcs/tests/Oids.cs
src/libraries/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedCmsTests.netcoreapp.cs
src/libraries/System.Security.Cryptography.Pkcs/tests/SignedCms/SignedDocuments.cs
src/libraries/System.Security.Cryptography.Pkcs/tests/SignedCms/SignerInfoTests.cs