ECDsaOpenSsl コンストラクター

定義

オーバーロード

ECDsaOpenSsl()

ECDsaOpenSsl クラスの新しいインスタンスを初期化します。

ECDsaOpenSsl(Int32)

指定したターゲット キー サイズを使用して、ECDsaOpenSsl クラスの新しいインスタンスを初期化します。

ECDsaOpenSsl(IntPtr)

EC_KEY*として表される既存の OpenSSL キーから、ECDsaOpenSsl クラスの新しいインスタンスを初期化します。

ECDsaOpenSsl(ECCurve)

ECDsaOpenSsl クラスの新しいインスタンスを初期化し、指定した曲線に新しいキーを生成します。

ECDsaOpenSsl(SafeEvpPKeyHandle)

EVP_PKEY*として表される既存の OpenSSL キーから、ECDsaOpenSsl クラスの新しいインスタンスを初期化します。

ECDsaOpenSsl()

ソース:
ECDsaOpenSsl.cs
ソース:
ECDsaOpenSsl.cs
ソース:
ECDsaOpenSsl.cs

ECDsaOpenSsl クラスの新しいインスタンスを初期化します。

public:
 ECDsaOpenSsl();
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 Sub New ()
属性

注釈

このコンストラクターは、新しい公開/秘密キーペアをすぐに生成しません。 このコンストラクターは、KeySize プロパティを 521 に設定し、キーが必要な場合は、保存されたサイズを使用してターゲット曲線を識別します。 ImportParameters メソッドまたは別のキー インポート メソッドを使用してキーが読み込まれる場合、このコンストラクターのキー サイズには意味がありません。

こちらもご覧ください

適用対象

ECDsaOpenSsl(Int32)

ソース:
ECDsaOpenSsl.cs
ソース:
ECDsaOpenSsl.cs
ソース:
ECDsaOpenSsl.cs

指定したターゲット キー サイズを使用して、ECDsaOpenSsl クラスの新しいインスタンスを初期化します。

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")]
public ECDsaOpenSsl (int keySize);
new System.Security.Cryptography.ECDsaOpenSsl : int -> System.Security.Cryptography.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")>]
new System.Security.Cryptography.ECDsaOpenSsl : int -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (keySize As Integer)

パラメーター

keySize
Int32

キーのサイズ。 有効なキー サイズは、256、384、および 521 ビットです。

属性

例外

keySize 無効な長さを指定します。

注釈

このコンストラクターは、新しい公開/秘密キーペアをすぐに生成しません。 このコンストラクターは、KeySize プロパティを指定された値に設定し、キーが必要な場合は、保存されたサイズを使用してターゲット曲線を識別します。 ImportParameters メソッドまたは別のキー インポート メソッドを使用してキーが読み込まれる場合、このコンストラクターのキー サイズには意味がありません。

こちらもご覧ください

適用対象

ECDsaOpenSsl(IntPtr)

ソース:
ECDsaOpenSsl.cs
ソース:
ECDsaOpenSsl.cs
ソース:
ECDsaOpenSsl.cs

EC_KEY*として表される既存の OpenSSL キーから、ECDsaOpenSsl クラスの新しいインスタンスを初期化します。

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")]
public ECDsaOpenSsl (IntPtr handle);
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.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")>]
new System.Security.Cryptography.ECDsaOpenSsl : nativeint -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (handle As IntPtr)

パラメーター

handle
IntPtr

nativeint

キーとして使用する OpenSSL EC_KEY* 値。

属性

例外

handleZeroです。

handle は有効な EC_KEY*ではありません。

注釈

大事な

OpenSSL では、同じプロセス内で読み込まれる複数のライブラリ バージョンがサポートされています。 このコンストラクターを呼び出す前に、ポインター値がこのクラスで使用されているのと同じバージョンの OpenSSL から取得されていることを確認します。 詳細については、OpenSslVersionを参照してください。

こちらもご覧ください

適用対象

ECDsaOpenSsl(ECCurve)

ソース:
ECDsaOpenSsl.cs
ソース:
ECDsaOpenSsl.cs
ソース:
ECDsaOpenSsl.cs

ECDsaOpenSsl クラスの新しいインスタンスを初期化し、指定した曲線に新しいキーを生成します。

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")]
public ECDsaOpenSsl (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.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")>]
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (curve As ECCurve)

パラメーター

curve
ECCurve

エフェメラル公開キーと秘密キーのペアを生成するために使用される曲線。

属性

例外

curve は検証されません。

curvenullです。

こちらもご覧ください

適用対象

ECDsaOpenSsl(SafeEvpPKeyHandle)

ソース:
ECDsaOpenSsl.cs
ソース:
ECDsaOpenSsl.cs
ソース:
ECDsaOpenSsl.cs

EVP_PKEY*として表される既存の OpenSSL キーから、ECDsaOpenSsl クラスの新しいインスタンスを初期化します。

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")]
public ECDsaOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.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")>]
new System.Security.Cryptography.ECDsaOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.ECDsaOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

パラメーター

pkeyHandle
SafeEvpPKeyHandle

キーとして使用する OpenSSL EVP_PKEY* 値。SafeEvpPKeyHandleとして表されます。

属性

例外

pkeyHandle 無効なハンドルを表します。

pkeyHandlenullです。

pkeyHandle は楕円曲線 (EC) キーを表していません。

注釈

.NET 9 以降のバージョンでは、pkeyHandle の外部変更も、このコンストラクターが作成するインスタンスに格納されているハンドルに影響します。

大事な

OpenSSL では、同じプロセス内で読み込まれる複数のライブラリ バージョンがサポートされています。 このコンストラクターを呼び出す前に、ポインター値がこのクラスで使用されているのと同じバージョンの OpenSSL から取得されていることを確認します。 詳細については、OpenSslVersionを参照してください。

こちらもご覧ください

適用対象