ECDsaOpenSsl Konstruktorer

Definition

Överlagringar

Name Description
ECDsaOpenSsl()

Initierar en ny instans av ECDsaOpenSsl klassen.

ECDsaOpenSsl(Int32)

Initierar en ny instans av ECDsaOpenSsl klassen med en angiven målnyckelstorlek.

ECDsaOpenSsl(IntPtr)

Initierar en ny instans av ECDsaOpenSsl klassen från en befintlig OpenSSL-nyckel som representeras som en EC_KEY*.

ECDsaOpenSsl(ECCurve)

Initierar en ny instans av ECDsaOpenSsl klassen och genererar en ny nyckel i den angivna kurvan.

ECDsaOpenSsl(SafeEvpPKeyHandle)

Initierar en ny instans av ECDsaOpenSsl klassen från en befintlig OpenSSL-nyckel som representeras som en EVP_PKEY*.

ECDsaOpenSsl()

Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs

Initierar en ny instans av ECDsaOpenSsl klassen.

public:
 ECDsaOpenSsl();
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDsaOpenSsl();
public ECDsaOpenSsl();
Public Sub New ()
Attribut

Kommentarer

Den här konstruktorn genererar inte en ny offentlig/privat keypair omedelbart. Den här konstruktorn anger KeySize egenskapen till 521 och när en nyckel behövs används den sparade storleken för att identifiera målkurvan. Om en nyckel läses in via ImportParameters metoden eller en annan nyckelimportmetod har nyckelstorleken från konstruktorn ingen betydelse.

Se även

Gäller för

ECDsaOpenSsl(Int32)

Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs

Initierar en ny instans av ECDsaOpenSsl klassen med en angiven målnyckelstorlek.

public:
 ECDsaOpenSsl(int keySize);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDsaOpenSsl(int keySize);
public ECDsaOpenSsl(int keySize);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (keySize As Integer)

Parametrar

keySize
Int32
Attribut

Undantag

keySize anger en ogiltig längd.

Kommentarer

Den här konstruktorn genererar inte en ny offentlig/privat keypair omedelbart. Den här konstruktorn anger KeySize egenskapen till det angivna värdet och när en nyckel behövs används den sparade storleken för att identifiera målkurvan. Om en nyckel läses in via ImportParameters metoden eller en annan nyckelimportmetod har nyckelstorleken från konstruktorn ingen betydelse.

Se även

Gäller för

ECDsaOpenSsl(IntPtr)

Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs

Initierar en ny instans av ECDsaOpenSsl klassen från en befintlig OpenSSL-nyckel som representeras som en EC_KEY*.

public:
 ECDsaOpenSsl(IntPtr handle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDsaOpenSsl(IntPtr handle);
public ECDsaOpenSsl(IntPtr handle);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (handle As IntPtr)

Parametrar

handle
IntPtr

nativeint

Attribut

Undantag

handle är Zero.

handle är inte ett giltigt EC_KEY*.

Kommentarer

Important

OpenSSL stöder flera biblioteksversioner som läses in i samma process. Innan du anropar den här konstruktorn kontrollerar du att pekarvärdet kom från samma version av OpenSSL som den här klassen använder. Mer information finns i OpenSslVersion.

Se även

Gäller för

ECDsaOpenSsl(ECCurve)

Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs

Initierar en ny instans av ECDsaOpenSsl klassen och genererar en ny nyckel i den angivna kurvan.

public:
 ECDsaOpenSsl(System::Security::Cryptography::ECCurve curve);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDsaOpenSsl(System.Security.Cryptography.ECCurve curve);
public ECDsaOpenSsl(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (curve As ECCurve)

Parametrar

curve
ECCurve
Attribut

Undantag

curve verifierar inte.

curve är null.

Se även

Gäller för

ECDsaOpenSsl(SafeEvpPKeyHandle)

Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs
Källa:
ECDsaOpenSsl.cs

Initierar en ny instans av ECDsaOpenSsl klassen från en befintlig OpenSSL-nyckel som representeras som en EVP_PKEY*.

public:
 ECDsaOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public ECDsaOpenSsl(System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
public ECDsaOpenSsl(System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

Parametrar

pkeyHandle
SafeEvpPKeyHandle
Attribut

Undantag

pkeyHandle representerar ett ogiltigt handtag.

pkeyHandle är null.

pkeyHandle representerar inte en elliptisk kurva (EC).

Kommentarer

I .NET 9 och senare versioner påverkar även externa ändringar av pkeyHandle handtaget som lagras i den instans som konstruktorn skapar.

Important

OpenSSL stöder flera biblioteksversioner som läses in i samma process. Innan du anropar den här konstruktorn kontrollerar du att pekarvärdet kom från samma version av OpenSSL som den här klassen använder. Mer information finns i OpenSslVersion.

Se även

Gäller för