Movatterモバイル変換


[0]ホーム

URL:


Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

PemEncoding Class

Definition

Namespace:
System.Security.Cryptography
Assembly:
System.Security.Cryptography.dll
Assembly:
System.Security.Cryptography.Encoding.dll
Source:
PemEncoding.cs
Source:
PemEncoding.cs
Source:
PemEncoding.cs
Source:
PemEncoding.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides methods for reading and writing the IETF RFC 7468 subset of PEM (Privacy-Enhanced Mail) textual encodings.This class cannot be inherited.

public ref class PemEncoding abstract sealed
public static class PemEncoding
type PemEncoding = class
Public Class PemEncoding
Inheritance
PemEncoding

Methods

Find(ReadOnlySpan<Char>)

Finds the first PEM-encoded data.

FindUtf8(ReadOnlySpan<Byte>)
GetEncodedSize(Int32, Int32)

Determines the length of a PEM-encoded value, in characters, given the length of a label and binary data.

TryFind(ReadOnlySpan<Char>, PemFields)

Attempts to find the first PEM-encoded data.

TryFindUtf8(ReadOnlySpan<Byte>, PemFields)
TryWrite(ReadOnlySpan<Char>, ReadOnlySpan<Byte>, Span<Char>, Int32)

Tries to write the provided data and label as PEM-encoded data into a provided buffer.

TryWriteUtf8(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Int32)
Write(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

Creates an encoded PEM with the given label and data.

WriteString(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

Creates an encoded PEM with the given label and data.

WriteUtf8(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Applies to

Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, seeour contributor guide.

Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo