MLKem.ImportFromPem メソッド

定義

オーバーロード

名前 説明
ImportFromPem(String)

RFC 7468 PEM エンコード文字列から ML-KEM キーをインポートします。

ImportFromPem(ReadOnlySpan<Char>)

RFC 7468 PEM エンコード文字列から ML-KEM キーをインポートします。

ImportFromPem(String)

ソース:
MLKem.cs
ソース:
MLKem.cs
ソース:
MLKem.cs

RFC 7468 PEM エンコード文字列から ML-KEM キーをインポートします。

public:
 static System::Security::Cryptography::MLKem ^ ImportFromPem(System::String ^ source);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.MLKem ImportFromPem(string source);
public static System.Security.Cryptography.MLKem ImportFromPem(string source);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member ImportFromPem : string -> System.Security.Cryptography.MLKem
static member ImportFromPem : string -> System.Security.Cryptography.MLKem
Public Shared Function ImportFromPem (source As String) As MLKem

パラメーター

source
String

インポートする PEM キーのテキスト。

返品

インポートされた ML-KEM キー。

属性

例外

sourcenull です

適用対象

ImportFromPem(ReadOnlySpan<Char>)

ソース:
MLKem.cs
ソース:
MLKem.cs
ソース:
MLKem.cs

RFC 7468 PEM エンコード文字列から ML-KEM キーをインポートします。

public:
 static System::Security::Cryptography::MLKem ^ ImportFromPem(ReadOnlySpan<char> source);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.MLKem ImportFromPem(ReadOnlySpan<char> source);
public static System.Security.Cryptography.MLKem ImportFromPem(ReadOnlySpan<char> source);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member ImportFromPem : ReadOnlySpan<char> -> System.Security.Cryptography.MLKem
static member ImportFromPem : ReadOnlySpan<char> -> System.Security.Cryptography.MLKem
Public Shared Function ImportFromPem (source As ReadOnlySpan(Of Char)) As MLKem

パラメーター

source
ReadOnlySpan<Char>

インポートする PEM キーのテキスト。

返品

インポートされた ML-KEM キー。

属性

例外

source には、暗号化された PEM でエンコードされたキーが含まれています。

-又は-

source には、PEM でエンコードされた複数の ML-KEM キーが含まれています。

-又は-

source には、PEM でエンコードされた ML-KEM キーが含まれています。

キーのインポート中にエラーが発生しました。

注釈

サポートされていないか、形式が正しくない PEM でエンコードされたオブジェクトは無視されます。 サポートされている PEM ラベルが複数見つかった場合は、キーがあいまいな場合にキーをインポートしないように例外が発生します。

この方法では、次の PEM ラベルがサポートされています。

  • 公開キー
  • 秘密キー

適用対象