MLDsa.ImportMLDsaPrivateKey Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Importe une clé privée ML-DSA au format de clé privée FIPS 204.
Surcharges
| Nom | Description |
|---|---|
| ImportMLDsaPrivateKey(MLDsaAlgorithm, ReadOnlySpan<Byte>) |
Importe une clé privée ML-DSA au format de clé privée FIPS 204. |
| ImportMLDsaPrivateKey(MLDsaAlgorithm, Byte[]) |
Importe une clé privée ML-DSA au format de clé privée FIPS 204. |
ImportMLDsaPrivateKey(MLDsaAlgorithm, ReadOnlySpan<Byte>)
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
Importe une clé privée ML-DSA au format de clé privée FIPS 204.
public:
static System::Security::Cryptography::MLDsa ^ ImportMLDsaPrivateKey(System::Security::Cryptography::MLDsaAlgorithm ^ algorithm, ReadOnlySpan<System::Byte> source);
public static System.Security.Cryptography.MLDsa ImportMLDsaPrivateKey(System.Security.Cryptography.MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
static member ImportMLDsaPrivateKey : System.Security.Cryptography.MLDsaAlgorithm * ReadOnlySpan<byte> -> System.Security.Cryptography.MLDsa
Public Shared Function ImportMLDsaPrivateKey (algorithm As MLDsaAlgorithm, source As ReadOnlySpan(Of Byte)) As MLDsa
Paramètres
- algorithm
- MLDsaAlgorithm
Algorithme de ML-DSA spécifique pour cette clé.
- source
- ReadOnlySpan<Byte>
Octets d’une clé privée FIPS 204.
Retours
Clé importée.
Exceptions
algorithm n’est pas un identificateur d’algorithme ML-DSA valide.
- ou -
source n’est pas la taille correcte de l’algorithme spécifié.
- ou -
Une erreur s’est produite lors de l’importation de la clé.
S’applique à
ImportMLDsaPrivateKey(MLDsaAlgorithm, Byte[])
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
- Source:
- MLDsa.cs
Importe une clé privée ML-DSA au format de clé privée FIPS 204.
public:
static System::Security::Cryptography::MLDsa ^ ImportMLDsaPrivateKey(System::Security::Cryptography::MLDsaAlgorithm ^ algorithm, cli::array <System::Byte> ^ source);
public static System.Security.Cryptography.MLDsa ImportMLDsaPrivateKey(System.Security.Cryptography.MLDsaAlgorithm algorithm, byte[] source);
static member ImportMLDsaPrivateKey : System.Security.Cryptography.MLDsaAlgorithm * byte[] -> System.Security.Cryptography.MLDsa
Public Shared Function ImportMLDsaPrivateKey (algorithm As MLDsaAlgorithm, source As Byte()) As MLDsa
Paramètres
- algorithm
- MLDsaAlgorithm
Algorithme de ML-DSA spécifique pour cette clé.
- source
- Byte[]
Octets d’une clé privée FIPS 204.
Retours
Clé importée.
Exceptions
algorithm ou source est null.