Support Windows based ECDSA SignedCms (#91247)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 31 Aug 2023 15:43:11 +0000 (08:43 -0700)
committerGitHub <noreply@github.com>
Thu, 31 Aug 2023 15:43:11 +0000 (08:43 -0700)
commita4c96df36368868cb7fcdfe34c846f8e13761a08
treebc1eacd61157e407b01bc4db2f933975e7b9b233
parent903c3a58d47b7de5dba3e9058ea7f0011f4285af
Support Windows based ECDSA SignedCms (#91247)

Supports SignedCms signatured with an ECDSA key created by the Windows
API or .NET Framework. These signatures store an EC public key OID
rather than a hash specific ECDSA OID used in newer versions of dotnet.

Fixes https://github.com/dotnet/runtime/issues/77377

Co-authored-by: Jordan Borean <jborean93@gmail.com>
src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.ECDsa.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