Usa AsnReader.ThrowIfNotEmpty instead of explicit checks.
authorFilip Navara <filip.navara@gmail.com>
Wed, 25 Jul 2018 22:26:03 +0000 (00:26 +0200)
committerJeremy Barton <jbarton@microsoft.com>
Wed, 25 Jul 2018 22:26:03 +0000 (15:26 -0700)
commitf13454ec733fb9cef4f4aa8b8eae697e5691e068
tree9a357bcbf023cdf278e633a447561b7edd180336
parentc27d3153aebb785d180d363e5a40e702013efcfc
Usa AsnReader.ThrowIfNotEmpty instead of explicit checks.

Commit migrated from https://github.com/dotnet/corefx/commit/90aed6e851d7ad2d7374b294cca601dbaeb01083
src/libraries/System.Security.Cryptography.Pkcs/src/Internal/Cryptography/Pal/AnyOS/ManagedPal.Asn.cs
src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignerInfo.cs