ECDsa.SignData メソッド

定義

指定したデータのハッシュ値を計算し、それに署名します。

オーバーロード

SignData(Byte[], HashAlgorithmName)

指定したハッシュ アルゴリズムを使用して、指定したバイト配列のハッシュ値を計算し、結果のハッシュ値に署名します。

SignData(Stream, HashAlgorithmName)

指定したハッシュ アルゴリズムを使用して、指定したストリームのハッシュ値を計算し、結果のハッシュ値に署名します。

SignData(ReadOnlySpan<Byte>, HashAlgorithmName)

指定したデータのハッシュ値を計算し、それに署名します。

SignData(Byte[], HashAlgorithmName, DSASignatureFormat)

指定したデータのハッシュ値を計算し、指定した署名形式を使用して署名します。

SignData(Stream, HashAlgorithmName, DSASignatureFormat)

指定したデータのハッシュ値を計算し、指定した署名形式を使用して署名します。

SignData(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

指定したデータのハッシュ値を計算し、指定した署名形式を使用して署名します。

SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName)

指定したデータのハッシュ値を計算し、指定された形式で指定されたバッファーに署名します。

SignData(Byte[], Int32, Int32, HashAlgorithmName)

指定したハッシュ アルゴリズムを使用して、指定したバイト配列の一部分のハッシュ値を計算し、結果のハッシュ値に署名します。

SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat)

指定したデータのハッシュ値を計算し、指定された形式で指定されたバッファーに署名します。

SignData(Byte[], Int32, Int32, HashAlgorithmName, DSASignatureFormat)

指定したデータのハッシュ値を計算し、指定した署名形式を使用して署名します。

SignData(Byte[], HashAlgorithmName)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したハッシュ アルゴリズムを使用して、指定したバイト配列のハッシュ値を計算し、結果のハッシュ値に署名します。

public:
 virtual cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual byte[] SignData (byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member SignData : byte[] * System.Security.Cryptography.HashAlgorithmName -> byte[]
override this.SignData : byte[] * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Overridable Function SignData (data As Byte(), hashAlgorithm As HashAlgorithmName) As Byte()

パラメーター

data
Byte[]

ハッシュを計算する対象の入力データ。

hashAlgorithm
HashAlgorithmName

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

戻り値

Byte[]

指定されたデータの ECDSA 署名。

例外

datanull です。

hashAlgorithm.Namenull または Empty です。

適用対象

SignData(Stream, HashAlgorithmName)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したハッシュ アルゴリズムを使用して、指定したストリームのハッシュ値を計算し、結果のハッシュ値に署名します。

public:
 virtual cli::array <System::Byte> ^ SignData(System::IO::Stream ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual byte[] SignData (System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member SignData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName -> byte[]
override this.SignData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Overridable Function SignData (data As Stream, hashAlgorithm As HashAlgorithmName) As Byte()

パラメーター

data
Stream

ハッシュを計算する対象の入力ストリーム。

hashAlgorithm
HashAlgorithmName

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

戻り値

Byte[]

指定されたデータの ECDSA 署名。

例外

datanull です。

hashAlgorithm.Namenull または Empty です。

適用対象

SignData(ReadOnlySpan<Byte>, HashAlgorithmName)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したデータのハッシュ値を計算し、それに署名します。

public:
 cli::array <System::Byte> ^ SignData(ReadOnlySpan<System::Byte> data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public byte[] SignData (ReadOnlySpan<byte> data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
member this.SignData : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Function SignData (data As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName) As Byte()

パラメーター

data
ReadOnlySpan<Byte>

ハッシュおよび署名するデータ。

hashAlgorithm
HashAlgorithmName

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

戻り値

Byte[]

指定されたデータの ECDSA 署名。

例外

hashAlgorithm's Name は空の文字列です。

hashAlgorithmName は です null

注釈

このメソッドは、 を使用 IeeeP1363FixedFieldConcatenation してシグネチャをエンコードします。 別の署名形式を使用するには、 を使用します SignData(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

適用対象

SignData(Byte[], HashAlgorithmName, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したデータのハッシュ値を計算し、指定した署名形式を使用して署名します。

public:
 cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignData (byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignData : byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignData (data As Byte(), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Byte()

パラメーター

data
Byte[]

署名するデータ。

hashAlgorithm
HashAlgorithmName

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

signatureFormat
DSASignatureFormat

署名に使用するエンコード形式。

戻り値

Byte[]

指定されたデータの ECDSA 署名。

例外

datanullです。

signatureFormat は既知の形式ではありません。

hashAlgorithm には null または空の Name があります。

ハッシュまたは署名操作で発生したエラー。

適用対象

SignData(Stream, HashAlgorithmName, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したデータのハッシュ値を計算し、指定した署名形式を使用して署名します。

public:
 cli::array <System::Byte> ^ SignData(System::IO::Stream ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignData (System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignData (data As Stream, hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Byte()

パラメーター

data
Stream

署名するデータ。

hashAlgorithm
HashAlgorithmName

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

signatureFormat
DSASignatureFormat

署名に使用するエンコード形式。

戻り値

Byte[]

指定されたデータの ECDSA 署名。

例外

datanullです。

signatureFormat は既知の形式ではありません。

hashAlgorithm には null または空の Name があります。

ハッシュまたは署名操作で発生したエラー。

適用対象

SignData(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したデータのハッシュ値を計算し、指定した署名形式を使用して署名します。

public:
 cli::array <System::Byte> ^ SignData(ReadOnlySpan<System::Byte> data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignData (ReadOnlySpan<byte> data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignData : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignData (data As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Byte()

パラメーター

data
ReadOnlySpan<Byte>

ハッシュおよび署名するデータ。

hashAlgorithm
HashAlgorithmName

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

signatureFormat
DSASignatureFormat

署名に使用するエンコード形式。

戻り値

Byte[]

指定されたデータの ECDSA 署名。

例外

hashAlgorithm's Name は空の文字列です。

hashAlgorithmName は です null

signatureFormat は既知の形式ではありません。

適用対象

SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したデータのハッシュ値を計算し、指定された形式で指定されたバッファーに署名します。

public:
 int SignData(ReadOnlySpan<System::Byte> data, Span<System::Byte> destination, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public int SignData (ReadOnlySpan<byte> data, Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
member this.SignData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName -> int
Public Function SignData (data As ReadOnlySpan(Of Byte), destination As Span(Of Byte), hashAlgorithm As HashAlgorithmName) As Integer

パラメーター

data
ReadOnlySpan<Byte>

ハッシュおよび署名するデータ。

destination
Span<Byte>

署名を受け取るバッファー。

hashAlgorithm
HashAlgorithmName

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

戻り値

destination に書き込まれた合計バイト数。

例外

hashAlgorithm's Name は空の文字列です。

\- または -

destination バッファーが小さすぎて署名を保持できません。

hashAlgorithmName は です null

注釈

このメソッドは、 を使用 IeeeP1363FixedFieldConcatenation してシグネチャをエンコードします。 別の署名形式を使用するには、 を使用します SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat)

適用対象

SignData(Byte[], Int32, Int32, HashAlgorithmName)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したハッシュ アルゴリズムを使用して、指定したバイト配列の一部分のハッシュ値を計算し、結果のハッシュ値に署名します。

public:
 virtual cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, int offset, int count, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual byte[] SignData (byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member SignData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName -> byte[]
override this.SignData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Overridable Function SignData (data As Byte(), offset As Integer, count As Integer, hashAlgorithm As HashAlgorithmName) As Byte()

パラメーター

data
Byte[]

ハッシュを計算する対象の入力データ。

offset
Int32

配列内のデータの使用開始位置を示すオフセット。

count
Int32

配列内でデータとして使用されるバイトの数。

hashAlgorithm
HashAlgorithmName

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

戻り値

Byte[]

指定されたデータの ECDSA 署名。

例外

datanull です。

hashAlgorithm.Namenull または Empty です。

offset が 0 未満です。

または

count が 0 未満です。

または

offset + count - 1 の結果は、data の上限を超えるインデックスになります。

適用対象

SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したデータのハッシュ値を計算し、指定された形式で指定されたバッファーに署名します。

public:
 int SignData(ReadOnlySpan<System::Byte> data, Span<System::Byte> destination, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public int SignData (ReadOnlySpan<byte> data, Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> int
Public Function SignData (data As ReadOnlySpan(Of Byte), destination As Span(Of Byte), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Integer

パラメーター

data
ReadOnlySpan<Byte>

ハッシュおよび署名するデータ。

destination
Span<Byte>

署名を受け取るバッファー。

hashAlgorithm
HashAlgorithmName

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

signatureFormat
DSASignatureFormat

署名に使用するエンコード形式。

戻り値

destination に書き込まれた合計バイト数。

例外

hashAlgorithm's Name は空の文字列です。

\- または -

destination バッファーが小さすぎて署名を保持できません。

hashAlgorithmName は です null

signatureFormat は既知の形式ではありません。

適用対象

SignData(Byte[], Int32, Int32, HashAlgorithmName, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したデータのハッシュ値を計算し、指定した署名形式を使用して署名します。

public:
 cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, int offset, int count, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignData (byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignData (data As Byte(), offset As Integer, count As Integer, hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Byte()

パラメーター

data
Byte[]

署名するデータ。

offset
Int32

data 内のハッシュの開始位置を示すオフセット。

count
Int32

data から読み取るバイト数。

hashAlgorithm
HashAlgorithmName

ハッシュ値を作成するために使用するハッシュ アルゴリズム。

signatureFormat
DSASignatureFormat

署名に使用するエンコード形式。

戻り値

Byte[]

指定されたデータの ECDSA 署名。

例外

datanullです。

signatureFormat は既知の形式ではありません。

- または -

offset が 0 未満です。

または

count が 0 未満です。

または

offset + count - 1 の結果は、data の上限を超えるインデックスになります。

hashAlgorithm には null または空の Name があります。

ハッシュまたは署名操作で発生したエラー。

適用対象