ECDsa.Create 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.
Skapar en ny instans av en implementering av Elliptic Curve Digital Signature Algorithm (ECDSA).
Överlagringar
| Name | Description |
|---|---|
| Create() |
Skapar en ny instans av standardimplementeringen av Elliptic Curve Digital Signature Algorithm (ECDSA). |
| Create(ECCurve) |
Skapar en ny instans av standardimplementeringen av Elliptic Curve Digital Signature Algorithm (ECDSA) med en nyligen genererad nyckel över den angivna kurvan. |
| Create(ECParameters) |
Skapar en ny instans av standardimplementeringen av Elliptic Curve Digital Signature Algorithm (ECDSA) med de angivna parametrarna som nyckel. |
| Create(String) |
Föråldrad.
Skapar en ny instans av den angivna implementeringen av Elliptic Curve Digital Signature Algorithm (ECDSA). |
Create()
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
Skapar en ny instans av standardimplementeringen av Elliptic Curve Digital Signature Algorithm (ECDSA).
public:
static System::Security::Cryptography::ECDsa ^ Create();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDsa Create();
public static System.Security.Cryptography.ECDsa Create();
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.ECDsa
static member Create : unit -> System.Security.Cryptography.ECDsa
Public Shared Function Create () As ECDsa
Returer
En ny instans av standardimplementeringen (ECDsaCng) för den här klassen.
- Attribut
Gäller för
Create(ECCurve)
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
Skapar en ny instans av standardimplementeringen av Elliptic Curve Digital Signature Algorithm (ECDSA) med en nyligen genererad nyckel över den angivna kurvan.
public:
static System::Security::Cryptography::ECDsa ^ Create(System::Security::Cryptography::ECCurve curve);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECCurve curve);
public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsa
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsa
Public Shared Function Create (curve As ECCurve) As ECDsa
Parametrar
- curve
- ECCurve
Kurvan som ska användas för nyckelgenerering.
Returer
En ny instans av standardimplementeringen (ECDsaCng) för den här klassen.
- Attribut
Se även
Gäller för
Create(ECParameters)
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
- Källa:
- ECDsa.Create.OpenSsl.cs
Skapar en ny instans av standardimplementeringen av Elliptic Curve Digital Signature Algorithm (ECDSA) med de angivna parametrarna som nyckel.
public:
static System::Security::Cryptography::ECDsa ^ Create(System::Security::Cryptography::ECParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECParameters parameters);
public static System.Security.Cryptography.ECDsa Create(System.Security.Cryptography.ECParameters parameters);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDsa
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDsa
Public Shared Function Create (parameters As ECParameters) As ECDsa
Parametrar
- parameters
- ECParameters
Parametrarna som representerar nyckeln som ska användas.
Returer
En ny instans av standardimplementeringen (ECDsaCng) för den här klassen.
- Attribut
Se även
Gäller för
Create(String)
- Källa:
- ECDsa.cs
- Källa:
- ECDsa.cs
- Källa:
- ECDsa.cs
- Källa:
- ECDsa.cs
- Källa:
- ECDsa.cs
Varning
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
Skapar en ny instans av den angivna implementeringen av Elliptic Curve Digital Signature Algorithm (ECDSA).
public:
static System::Security::Cryptography::ECDsa ^ Create(System::String ^ algorithm);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
[System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.ECDsa? Create(string algorithm);
public static System.Security.Cryptography.ECDsa? Create(string algorithm);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.ECDsa? Create(string algorithm);
public static System.Security.Cryptography.ECDsa Create(string algorithm);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
[<System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : string -> System.Security.Cryptography.ECDsa
static member Create : string -> System.Security.Cryptography.ECDsa
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
static member Create : string -> System.Security.Cryptography.ECDsa
Public Shared Function Create (algorithm As String) As ECDsa
Parametrar
- algorithm
- String
Namnet på en ECDSA-implementering. Följande strängar refererar alla till samma implementering, vilket är den enda implementering som för närvarande stöds i .NET Framework:
"ECDsa"
"ECDsaCng"
"System.Security.Cryptography.ECDsaCng"
Du kan också ange namnet på en anpassad ECDSA-implementering.
Returer
En ny instans av den angivna implementeringen av den här klassen. Om det angivna algoritmnamnet inte mappas till en ECDSA-implementering returnerar nullden här metoden .
- Attribut
Undantag
Parametern algorithm är null.
Kommentarer
Om du utvecklar din egen implementering av ett ECDsa objekt kan du använda metodöverlagringen Create(String) för att skapa en anpassad algorithm sträng som anger implementeringen.
Om du anger ett anpassat värde för parametern algorithmCryptoConfig använder objektet det för att avgöra om ett ECDSA-objekt kan skapas.