MLKem.ExportEncryptedPkcs8PrivateKey メソッド

定義

オーバーロード

名前 説明
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)

PKCS#8 EncryptedPrivateKeyInfo 形式の現在のキーをバイトベースのパスワードでエクスポートします。

ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)

現在のキーを PKCS#8 EncryptedPrivateKeyInfo 形式で char ベースのパスワードでエクスポートします。

ExportEncryptedPkcs8PrivateKey(String, PbeParameters)

現在のキーを PKCS#8 EncryptedPrivateKeyInfo 形式で char ベースのパスワードでエクスポートします。

ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)

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

PKCS#8 EncryptedPrivateKeyInfo 形式の現在のキーをバイトベースのパスワードでエクスポートします。

public:
 cli::array <System::Byte> ^ ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<System::Byte> passwordBytes, System::Security::Cryptography::PbeParameters ^ pbeParameters);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters);
public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportEncryptedPkcs8PrivateKey : ReadOnlySpan<byte> * System.Security.Cryptography.PbeParameters -> byte[]
member this.ExportEncryptedPkcs8PrivateKey : ReadOnlySpan<byte> * System.Security.Cryptography.PbeParameters -> byte[]
Public Function ExportEncryptedPkcs8PrivateKey (passwordBytes As ReadOnlySpan(Of Byte), pbeParameters As PbeParameters) As Byte()

パラメーター

passwordBytes
ReadOnlySpan<Byte>

キー マテリアルを暗号化するときに使用するパスワード。

pbeParameters
PbeParameters

キー マテリアルを暗号化するときに使用するパスワード ベースの暗号化 (PBE) パラメーター。

返品

Byte[]

このキーの PKCS#8 EncryptedPrivateKeyInfo 表現を含むバイト配列。

属性

例外

pbeParametersnullです。

このインスタンスは破棄されました。

このインスタンスは公開キーのみを表します。

-又は-

秘密キーはエクスポートできません。

-又は-

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

-又は-

pbeParameters は、有効なパスワードベースの暗号化アルゴリズムを表していません。

適用対象

ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)

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

現在のキーを PKCS#8 EncryptedPrivateKeyInfo 形式で char ベースのパスワードでエクスポートします。

public:
 cli::array <System::Byte> ^ ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, System::Security::Cryptography::PbeParameters ^ pbeParameters);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters);
public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportEncryptedPkcs8PrivateKey : ReadOnlySpan<char> * System.Security.Cryptography.PbeParameters -> byte[]
member this.ExportEncryptedPkcs8PrivateKey : ReadOnlySpan<char> * System.Security.Cryptography.PbeParameters -> byte[]
Public Function ExportEncryptedPkcs8PrivateKey (password As ReadOnlySpan(Of Char), pbeParameters As PbeParameters) As Byte()

パラメーター

password
ReadOnlySpan<Char>

キー マテリアルを暗号化するときに使用するパスワード。

pbeParameters
PbeParameters

キー マテリアルを暗号化するときに使用するパスワード ベースの暗号化 (PBE) パラメーター。

返品

Byte[]

このキーの PKCS#8 EncryptedPrivateKeyInfo 表現を含むバイト配列。

属性

例外

pbeParametersnullです。

このインスタンスは破棄されました。

このインスタンスは公開キーのみを表します。

-又は-

秘密キーはエクスポートできません。

-又は-

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

-又は-

pbeParameters は、有効なパスワードベースの暗号化アルゴリズムを表していません。

適用対象

ExportEncryptedPkcs8PrivateKey(String, PbeParameters)

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

現在のキーを PKCS#8 EncryptedPrivateKeyInfo 形式で char ベースのパスワードでエクスポートします。

public:
 cli::array <System::Byte> ^ ExportEncryptedPkcs8PrivateKey(System::String ^ password, System::Security::Cryptography::PbeParameters ^ pbeParameters);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] ExportEncryptedPkcs8PrivateKey(string password, System.Security.Cryptography.PbeParameters pbeParameters);
public byte[] ExportEncryptedPkcs8PrivateKey(string password, System.Security.Cryptography.PbeParameters pbeParameters);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportEncryptedPkcs8PrivateKey : string * System.Security.Cryptography.PbeParameters -> byte[]
member this.ExportEncryptedPkcs8PrivateKey : string * System.Security.Cryptography.PbeParameters -> byte[]
Public Function ExportEncryptedPkcs8PrivateKey (password As String, pbeParameters As PbeParameters) As Byte()

パラメーター

password
String

キー マテリアルを暗号化するときに使用するパスワード。

pbeParameters
PbeParameters

キー マテリアルを暗号化するときに使用するパスワード ベースの暗号化 (PBE) パラメーター。

返品

Byte[]

このキーの PKCS#8 EncryptedPrivateKeyInfo 表現を含むバイト配列。

属性

例外

pbeParameters または passwordnull

このインスタンスは破棄されました。

このインスタンスは公開キーのみを表します。

-又は-

秘密キーはエクスポートできません。

-又は-

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

-又は-

pbeParameters は、有効なパスワードベースの暗号化アルゴリズムを表していません。

適用対象