Use ReadOnlySpan<byte> for defaultDerInit (#33828)
authorKevin Jones <kevin@vcsjones.com>
Fri, 20 Mar 2020 02:35:42 +0000 (22:35 -0400)
committerGitHub <noreply@github.com>
Fri, 20 Mar 2020 02:35:42 +0000 (02:35 +0000)
commitada03d7f4aaabb956331353b298b6e4739ec78f5
tree89187c01c405cca82541178ceda487700b87709a
parenta44935697639ea56a788843643d26132b8845378
Use ReadOnlySpan<byte> for defaultDerInit (#33828)

* Use ReadOnlySpan for defaultDerInit.

This removes an array allocation for each type initializer.

* Regenerate files.
src/libraries/Common/src/System/Security/Cryptography/Asn1/OaepParamsAsn.xml.cs
src/libraries/Common/src/System/Security/Cryptography/Asn1/Pbkdf2Params.xml.cs
src/libraries/Common/src/System/Security/Cryptography/Asn1/Pkcs12/MacData.xml.cs
src/libraries/Common/src/System/Security/Cryptography/Asn1/PssParamsAsn.xml.cs
src/libraries/Common/src/System/Security/Cryptography/Asn1/X509ExtensionAsn.xml.cs
src/libraries/Common/src/System/Security/Cryptography/Asn1/asn.xslt
src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/Asn1/EssCertIdV2.xml.cs
src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/Asn1/Rfc3161TimeStampReq.xml.cs
src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/Asn1/Rfc3161TstInfo.xml.cs
src/libraries/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/Asn1/BasicConstraintsAsn.xml.cs
src/libraries/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/Asn1/TbsCertificateAsn.xml.cs