MLKem.ExportEncryptedPkcs8PrivateKeyPem 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters) |
使用基于字节的密码导出此密钥的 PKCS#8 EncryptedPrivateKeyInfo 表示形式的 PEM 编码表示形式中的当前密钥。 |
| ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters) |
使用基于字符的密码导出此密钥的 PKCS#8 EncryptedPrivateKeyInfo 表示形式的 PEM 编码表示形式中的当前密钥。 |
| ExportEncryptedPkcs8PrivateKeyPem(String, PbeParameters) |
使用字符串密码导出此密钥的 PKCS#8 EncryptedPrivateKeyInfo 表示形式的 PEM 编码表示形式中的当前密钥。 |
ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters)
- Source:
- MLKem.cs
- Source:
- MLKem.cs
- Source:
- MLKem.cs
使用基于字节的密码导出此密钥的 PKCS#8 EncryptedPrivateKeyInfo 表示形式的 PEM 编码表示形式中的当前密钥。
public:
System::String ^ ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<System::Byte> passwordBytes, System::Security::Cryptography::PbeParameters ^ pbeParameters);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters);
public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, System.Security.Cryptography.PbeParameters pbeParameters);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportEncryptedPkcs8PrivateKeyPem : ReadOnlySpan<byte> * System.Security.Cryptography.PbeParameters -> string
member this.ExportEncryptedPkcs8PrivateKeyPem : ReadOnlySpan<byte> * System.Security.Cryptography.PbeParameters -> string
Public Function ExportEncryptedPkcs8PrivateKeyPem (passwordBytes As ReadOnlySpan(Of Byte), pbeParameters As PbeParameters) As String
参数
- passwordBytes
- ReadOnlySpan<Byte>
加密密钥材料时用作密码的字节。
- pbeParameters
- PbeParameters
加密密钥材料时要使用的基于密码的加密 (PBE) 参数。
返回
包含 PEM 编码的 PKCS#8 EncryptedPrivateKeyInfo 的字符串。
- 属性
例外
pbeParameters 是 null。
此实例已释放。
适用于
ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters)
- Source:
- MLKem.cs
- Source:
- MLKem.cs
- Source:
- MLKem.cs
使用基于字符的密码导出此密钥的 PKCS#8 EncryptedPrivateKeyInfo 表示形式的 PEM 编码表示形式中的当前密钥。
public:
System::String ^ ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, System::Security::Cryptography::PbeParameters ^ pbeParameters);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters);
public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, System.Security.Cryptography.PbeParameters pbeParameters);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportEncryptedPkcs8PrivateKeyPem : ReadOnlySpan<char> * System.Security.Cryptography.PbeParameters -> string
member this.ExportEncryptedPkcs8PrivateKeyPem : ReadOnlySpan<char> * System.Security.Cryptography.PbeParameters -> string
Public Function ExportEncryptedPkcs8PrivateKeyPem (password As ReadOnlySpan(Of Char), pbeParameters As PbeParameters) As String
参数
- password
- ReadOnlySpan<Char>
加密密钥材料时要使用的密码。
- pbeParameters
- PbeParameters
加密密钥材料时要使用的基于密码的加密 (PBE) 参数。
返回
包含 PEM 编码的 PKCS#8 EncryptedPrivateKeyInfo 的字符串。
- 属性
例外
pbeParameters 是 null。
此实例已释放。
适用于
ExportEncryptedPkcs8PrivateKeyPem(String, PbeParameters)
- Source:
- MLKem.cs
- Source:
- MLKem.cs
- Source:
- MLKem.cs
使用字符串密码导出此密钥的 PKCS#8 EncryptedPrivateKeyInfo 表示形式的 PEM 编码表示形式中的当前密钥。
public:
System::String ^ ExportEncryptedPkcs8PrivateKeyPem(System::String ^ password, System::Security::Cryptography::PbeParameters ^ pbeParameters);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public string ExportEncryptedPkcs8PrivateKeyPem(string password, System.Security.Cryptography.PbeParameters pbeParameters);
public string ExportEncryptedPkcs8PrivateKeyPem(string password, System.Security.Cryptography.PbeParameters pbeParameters);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportEncryptedPkcs8PrivateKeyPem : string * System.Security.Cryptography.PbeParameters -> string
member this.ExportEncryptedPkcs8PrivateKeyPem : string * System.Security.Cryptography.PbeParameters -> string
Public Function ExportEncryptedPkcs8PrivateKeyPem (password As String, pbeParameters As PbeParameters) As String
参数
- password
- String
加密密钥材料时要使用的密码。
- pbeParameters
- PbeParameters
加密密钥材料时要使用的基于密码的加密 (PBE) 参数。
返回
包含 PEM 编码的 PKCS#8 EncryptedPrivateKeyInfo 的字符串。
- 属性
例外
password 或 pbeParameters 为 null.
此实例已释放。