Create one-shot PEM reader and writer
authorKevin Jones <kevin@vcsjones.com>
Sun, 22 Mar 2020 18:10:45 +0000 (14:10 -0400)
committerGitHub <noreply@github.com>
Sun, 22 Mar 2020 18:10:45 +0000 (11:10 -0700)
commit11c8c807cd811cd90919a878c6755565ec85dda9
tree1dc50e354f6e3d36d5d0e859677a63bdccf83b9c
parent24c4cb193fdf6091fe07695d81b182674e2c1629
Create one-shot PEM reader and writer

The reader and writer use the restricted form of PEM from IETF RFC 7468.

The reader uses the `laxtextualmsg` form, with a restricted subset of allowed whitespace (no vertical tab or form feed).

The writer writes according to the `stricttextualmsg` form.
src/libraries/Common/tests/CoreFx.Private.TestUtilities/System/AssertExtensions.cs
src/libraries/System.Security.Cryptography.Encoding/ref/System.Security.Cryptography.Encoding.cs
src/libraries/System.Security.Cryptography.Encoding/src/Resources/Strings.resx
src/libraries/System.Security.Cryptography.Encoding/src/System.Security.Cryptography.Encoding.csproj
src/libraries/System.Security.Cryptography.Encoding/src/System/Security/Cryptography/PemEncoding.cs [new file with mode: 0644]
src/libraries/System.Security.Cryptography.Encoding/src/System/Security/Cryptography/PemFields.cs [new file with mode: 0644]
src/libraries/System.Security.Cryptography.Encoding/tests/PemEncodingFindTests.cs [new file with mode: 0644]
src/libraries/System.Security.Cryptography.Encoding/tests/PemEncodingTests.cs [new file with mode: 0644]
src/libraries/System.Security.Cryptography.Encoding/tests/System.Security.Cryptography.Encoding.Tests.csproj