Bagikan melalui


RSA.HashData Metode

Definisi

Menghitung nilai hash data biner.

Overload

HashData(Stream, HashAlgorithmName)

Saat ditimpa di kelas turunan, menghitung nilai hash dari aliran biner tertentu dengan menggunakan algoritma hash tertentu.

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

Saat ditimpa dalam kelas turunan, menghitung nilai hash dari bagian tertentu dari array byte dengan menggunakan algoritma hash tertentu.

HashData(Stream, HashAlgorithmName)

Sumber:
RSA.cs
Sumber:
RSA.cs
Sumber:
RSA.cs

Saat ditimpa di kelas turunan, menghitung nilai hash dari aliran biner tertentu dengan menggunakan algoritma hash tertentu.

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

Parameter

data
Stream

Aliran biner ke hash.

hashAlgorithm
HashAlgorithmName

Algoritma hash.

Mengembalikan

Byte[]

Data yang di-hash.

Pengecualian

Kelas turunan harus mengambil alih metode ini.

Berlaku untuk

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

Sumber:
RSA.cs
Sumber:
RSA.cs
Sumber:
RSA.cs

Saat ditimpa dalam kelas turunan, menghitung nilai hash dari bagian tertentu dari array byte dengan menggunakan algoritma hash tertentu.

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

Parameter

data
Byte[]

Data yang akan di-hash.

offset
Int32

Indeks byte pertama di data yang akan di-hash.

count
Int32

Jumlah byte untuk hash.

hashAlgorithm
HashAlgorithmName

Algoritma yang digunakan dalam hash data.

Mengembalikan

Byte[]

Data yang di-hash.

Pengecualian

Kelas turunan harus mengambil alih metode ini.

Berlaku untuk