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
ソース:
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
ソース:
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
ソース:
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 は空の文字列です。

hashAlgorithmNamenull

注釈

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

こちらもご覧ください

適用対象

SignData(Byte[], HashAlgorithmName, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
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
ソース:
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
ソース:
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 は空の文字列です。

hashAlgorithmNamenull

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

こちらもご覧ください

適用対象

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

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
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内のバッファーが小さすぎて署名を保持できません。

hashAlgorithmNamenull

注釈

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

こちらもご覧ください

適用対象

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

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
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
ソース:
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内のバッファーが小さすぎて署名を保持できません。

hashAlgorithmNamenull

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

こちらもご覧ください

適用対象

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

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
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があります。

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

適用対象