MLDsa.ImportMLDsaPublicKey Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Importerar en ML-DSA offentlig nyckel i fips 204-formatet för offentlig nyckel.
Överlagringar
| Name | Description |
|---|---|
| ImportMLDsaPublicKey(MLDsaAlgorithm, Byte[]) |
Importerar en ML-DSA offentlig nyckel i fips 204-formatet för offentlig nyckel. |
| ImportMLDsaPublicKey(MLDsaAlgorithm, ReadOnlySpan<Byte>) |
Importerar en ML-DSA offentlig nyckel i fips 204-formatet för offentlig nyckel. |
ImportMLDsaPublicKey(MLDsaAlgorithm, Byte[])
- Källa:
- MLDsa.cs
- Källa:
- MLDsa.cs
- Källa:
- MLDsa.cs
Importerar en ML-DSA offentlig nyckel i fips 204-formatet för offentlig nyckel.
public:
static System::Security::Cryptography::MLDsa ^ ImportMLDsaPublicKey(System::Security::Cryptography::MLDsaAlgorithm ^ algorithm, cli::array <System::Byte> ^ source);
public static System.Security.Cryptography.MLDsa ImportMLDsaPublicKey(System.Security.Cryptography.MLDsaAlgorithm algorithm, byte[] source);
static member ImportMLDsaPublicKey : System.Security.Cryptography.MLDsaAlgorithm * byte[] -> System.Security.Cryptography.MLDsa
Public Shared Function ImportMLDsaPublicKey (algorithm As MLDsaAlgorithm, source As Byte()) As MLDsa
Parametrar
- algorithm
- MLDsaAlgorithm
Den specifika ML-DSA algoritmen för den här nyckeln.
- source
- Byte[]
Byte för en offentlig FIPS 204-nyckel.
Returer
Den importerade nyckeln.
Undantag
algorithm eller source är null.
Gäller för
ImportMLDsaPublicKey(MLDsaAlgorithm, ReadOnlySpan<Byte>)
- Källa:
- MLDsa.cs
- Källa:
- MLDsa.cs
- Källa:
- MLDsa.cs
Importerar en ML-DSA offentlig nyckel i fips 204-formatet för offentlig nyckel.
public:
static System::Security::Cryptography::MLDsa ^ ImportMLDsaPublicKey(System::Security::Cryptography::MLDsaAlgorithm ^ algorithm, ReadOnlySpan<System::Byte> source);
public static System.Security.Cryptography.MLDsa ImportMLDsaPublicKey(System.Security.Cryptography.MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
static member ImportMLDsaPublicKey : System.Security.Cryptography.MLDsaAlgorithm * ReadOnlySpan<byte> -> System.Security.Cryptography.MLDsa
Public Shared Function ImportMLDsaPublicKey (algorithm As MLDsaAlgorithm, source As ReadOnlySpan(Of Byte)) As MLDsa
Parametrar
- algorithm
- MLDsaAlgorithm
Den specifika ML-DSA algoritmen för den här nyckeln.
- source
- ReadOnlySpan<Byte>
Byte för en offentlig FIPS 204-nyckel.
Returer
Den importerade nyckeln.
Undantag
algorithm är inte en giltig ML-DSA algoritmidentifierare.
-eller-
source är inte rätt storlek för den angivna algoritmen.
-eller-
Ett fel uppstod när nyckeln skulle importeras.