Bring the AlgorithmIdentifier.Parameters property back
authorMaxim Lipnin <mlipnin@gmail.com>
Wed, 11 Jul 2018 13:18:23 +0000 (16:18 +0300)
committerJeremy Barton <jbarton@microsoft.com>
Wed, 11 Jul 2018 13:18:23 +0000 (06:18 -0700)
commitce9994565426fc2c13644238c6e7e5156a35a456
treed55c383cccb861c75a07281fbe5bffeb6f48f7d3
parent6225cfe3cf52974c53a8fc56b8f123b4f8440fcb
Bring the AlgorithmIdentifier.Parameters property back

Add AlgorithmIdentifier.Parameters, but always set it to the empty array.

There aren't any really understood scenarios for why someone would want to read the algorithm parameters.  Combined with .NET Framework only assigning a non-empty value some of the time, never assigning the correct value, and not having a consistent incorrect value, the empty array seemed the best thing for now.

Commit migrated from https://github.com/dotnet/corefx/commit/64bab987f50b399b78cc1dc23a8e42325e5e175a
src/libraries/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.cs
src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/AlgorithmIdentifier.cs
src/libraries/System.Security.Cryptography.Pkcs/tests/AlgorithmIdentifierTest.cs [new file with mode: 0644]
src/libraries/System.Security.Cryptography.Pkcs/tests/System.Security.Cryptography.Pkcs.Tests.csproj