DSA.SignData メソッド

定義

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

オーバーロード

名前 説明
SignData(Byte[], HashAlgorithmName)

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

SignData(Stream, HashAlgorithmName)

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

SignData(Byte[], HashAlgorithmName, DSASignatureFormat)

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

SignData(Stream, HashAlgorithmName, DSASignatureFormat)

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

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

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

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

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

SignData(Byte[], HashAlgorithmName)

ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs

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

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

パラメーター

data
Byte[]

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

hashAlgorithm
HashAlgorithmName

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

返品

Byte[]

指定したデータの DSA 署名。

例外

datanullです。

hashAlgorithm.Namenull または Empty

適用対象

SignData(Stream, HashAlgorithmName)

ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.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[]

指定したデータの DSA 署名。

例外

datanullです。

hashAlgorithm.Namenull または Empty

適用対象

SignData(Byte[], HashAlgorithmName, DSASignatureFormat)

ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.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[]

指定したデータの DSA 署名。

例外

datanullです。

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

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

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

適用対象

SignData(Stream, HashAlgorithmName, DSASignatureFormat)

ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.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[]

指定したデータの DSA 署名。

例外

datanullです。

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

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

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

適用対象

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

ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.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[]

指定したデータの DSA 署名。

例外

datanullです。

hashAlgorithm.Namenull または Empty

offset が 0 未満です。

-又は-

count が 0 未満です。

-又は-

offset + count - 1 の場合、 dataの上限を超えるインデックスが作成されます。

適用対象

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

ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.cs
ソース:
DSA.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[]

指定したデータの DSA 署名。

例外

datanullです。

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

または、 offset が 0 未満です。

または、 count が 0 未満です。

または、 offset + count - 1 の場合、 dataの上限を超えるインデックスが作成されます。

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

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

適用対象