MLDsa.ExportEncryptedPkcs8PrivateKey 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| Name | Description |
|---|---|
| ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters) |
바이트 기반 암호를 사용하여 PKCS#8 EncryptedPrivateKeyInfo 형식의 현재 키를 내보냅니다. |
| ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters) |
문자 기반 암호를 사용하여 PKCS#8 EncryptedPrivateKeyInfo 형식의 현재 키를 내보냅니다. |
| ExportEncryptedPkcs8PrivateKey(String, PbeParameters) |
문자 기반 암호를 사용하여 PKCS#8 EncryptedPrivateKeyInfo 형식의 현재 키를 내보냅니다. |
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
- Source:
- MLDsa.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(암호 기반 암호화) 매개 변수입니다.
반품
이 키의 PKCS#8 EncryptedPrivateKeyInfo 표현을 포함하는 바이트 배열입니다.
- 특성
예외
pbeParameters은 null입니다.
이 인스턴스가 삭제되었습니다.
pbeParameters 는 문자 기반 암호가 필요한 KDF를 지정합니다.
-또는-
pbeParameters 는 유효한 암호 기반 암호화 알고리즘을 나타내지 않습니다.
-또는-
이 인스턴스는 공개 키만 나타냅니다.
-또는-
프라이빗 키를 내보낼 수 없습니다.
-또는-
키를 내보내는 동안 오류가 발생했습니다.
적용 대상
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
문자 기반 암호를 사용하여 PKCS#8 EncryptedPrivateKeyInfo 형식의 현재 키를 내보냅니다.
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(암호 기반 암호화) 매개 변수입니다.
반품
이 키의 PKCS#8 EncryptedPrivateKeyInfo 표현을 포함하는 바이트 배열입니다.
- 특성
예외
pbeParameters은 null입니다.
이 인스턴스가 삭제되었습니다.
pbeParameters 는 유효한 암호 기반 암호화 알고리즘을 나타내지 않습니다.
-또는-
이 인스턴스는 공개 키만 나타냅니다.
-또는-
프라이빗 키를 내보낼 수 없습니다.
-또는-
키를 내보내는 동안 오류가 발생했습니다.
적용 대상
ExportEncryptedPkcs8PrivateKey(String, PbeParameters)
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
문자 기반 암호를 사용하여 PKCS#8 EncryptedPrivateKeyInfo 형식의 현재 키를 내보냅니다.
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(암호 기반 암호화) 매개 변수입니다.
반품
이 키의 PKCS#8 EncryptedPrivateKeyInfo 표현을 포함하는 바이트 배열입니다.
- 특성
예외
password 또는 pbeParameters .입니다 null.