英語で読む

次の方法で共有


ECDsa.HashData メソッド

定義

バイナリ データのハッシュ値を計算します。

オーバーロード

HashData(Stream, HashAlgorithmName)

派生クラスでオーバーライドされると、指定したハッシュ アルゴリズムを使用して、指定したバイナリ ストリームのハッシュ値が計算されます。

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

派生クラスでオーバーライドされると、指定したハッシュ アルゴリズムを使用して、指定したバイト配列部分のハッシュ値が計算されます。

HashData(Stream, HashAlgorithmName)

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

派生クラスでオーバーライドされると、指定したハッシュ アルゴリズムを使用して、指定したバイナリ ストリームのハッシュ値が計算されます。

C#
protected virtual byte[] HashData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
C#
protected abstract byte[] HashData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);

パラメーター

data
Stream

ハッシュするバイナリ ストリーム。

hashAlgorithm
HashAlgorithmName

データのハッシュに使用するアルゴリズム。

戻り値

Byte[]

ハッシュされたデータ。

例外

派生クラスはこのメソッドをオーバーライドする必要があります。

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.4, 1.6, 2.0, 2.1

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

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

派生クラスでオーバーライドされると、指定したハッシュ アルゴリズムを使用して、指定したバイト配列部分のハッシュ値が計算されます。

C#
protected virtual byte[] HashData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
C#
protected abstract byte[] HashData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);

パラメーター

data
Byte[]

ハッシュされるデータ。

offset
Int32

ハッシュされる data の最初のバイトのインデックス。

count
Int32

ハッシュするバイト数。

hashAlgorithm
HashAlgorithmName

データのハッシュに使用するアルゴリズム。

戻り値

Byte[]

ハッシュされたデータ。

例外

派生クラスはこのメソッドをオーバーライドする必要があります。

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.4, 1.6, 2.0, 2.1