MLDsa.ImportEncryptedPkcs8PrivateKey 메서드

정의

오버로드

Name Description
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

PKCS#8 EncryptedPrivateKeyInfo 구조체에서 ML-DSA 프라이빗 키를 가져옵니다.

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

PKCS#8 EncryptedPrivateKeyInfo 구조체에서 ML-DSA 프라이빗 키를 가져옵니다.

ImportEncryptedPkcs8PrivateKey(String, Byte[])

PKCS#8 EncryptedPrivateKeyInfo 구조체에서 ML-DSA 프라이빗 키를 가져옵니다.

ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Source:
MLDsa.cs
Source:
MLDsa.cs
Source:
MLDsa.cs

PKCS#8 EncryptedPrivateKeyInfo 구조체에서 ML-DSA 프라이빗 키를 가져옵니다.

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

매개 변수

passwordBytes
ReadOnlySpan<Byte>

키 자료를 해독할 때 암호로 사용할 바이트입니다.

source
ReadOnlySpan<Byte>

ASN.1-BER 인코딩에 있는 PKCS#8 EncryptedPrivateKeyInfo 구조체의 바이트입니다.

반품

가져온 키입니다.

특성

예외

source 내용은 ASN.1-BER로 인코딩된 PKCS#8 EncryptedPrivateKeyInfo 구조를 나타내지 않습니다.

-또는-

지정한 암호가 잘못되었습니다.

-또는-

EncryptedPrivateKeyInfo는 적용할 KDF(키 파생 함수)가 -based 암호가 필요한 Char레거시 PKCS#12 KDF임을 나타냅니다.

-또는-

값이 ML-DSA 키를 나타내지 않습니다.

-또는-

source 에는 ASN.1 구조체 뒤의 후행 데이터가 포함됩니다.

-또는-

알고리즘별 가져오기에 실패했습니다.

플랫폼은 ML-DSA를 지원하지 않습니다. 호출자는 이 속성을 사용하여 플랫폼이 IsSupported ML-DSA를 지원하는지 확인할 수 있습니다.

적용 대상

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

Source:
MLDsa.cs
Source:
MLDsa.cs
Source:
MLDsa.cs

PKCS#8 EncryptedPrivateKeyInfo 구조체에서 ML-DSA 프라이빗 키를 가져옵니다.

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

매개 변수

password
ReadOnlySpan<Char>

키 자료의 암호를 해독할 때 사용할 암호입니다.

source
ReadOnlySpan<Byte>

ASN.1-BER 인코딩에 있는 PKCS#8 EncryptedPrivateKeyInfo 구조체의 바이트입니다.

반품

가져온 키입니다.

특성

예외

source 내용은 ASN.1-BER로 인코딩된 PKCS#8 EncryptedPrivateKeyInfo 구조를 나타내지 않습니다.

-또는-

지정한 암호가 잘못되었습니다.

-또는-

값이 ML-DSA 키를 나타내지 않습니다.

-또는-

source 에는 ASN.1 구조체 뒤의 후행 데이터가 포함됩니다.

-또는-

알고리즘별 가져오기에 실패했습니다.

플랫폼은 ML-DSA를 지원하지 않습니다. 호출자는 이 속성을 사용하여 플랫폼이 IsSupported ML-DSA를 지원하는지 확인할 수 있습니다.

적용 대상

ImportEncryptedPkcs8PrivateKey(String, Byte[])

Source:
MLDsa.cs
Source:
MLDsa.cs
Source:
MLDsa.cs

PKCS#8 EncryptedPrivateKeyInfo 구조체에서 ML-DSA 프라이빗 키를 가져옵니다.

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

매개 변수

password
String

키 자료의 암호를 해독할 때 사용할 암호입니다.

source
Byte[]

ASN.1-BER 인코딩에 있는 PKCS#8 EncryptedPrivateKeyInfo 구조체의 바이트입니다.

반품

가져온 키입니다.

특성

예외

password 또는 source .입니다 null.

적용 대상