Dil

CryptographicOperations.HashData Yöntem

Tanım

Veri karması hesaplar.

Aşırı Yüklemeler

Name Description
HashData(HashAlgorithmName, Byte[])

Veri karması hesaplar.

HashData(HashAlgorithmName, Stream)

Bir akışın karması hesaplanır.

HashData(HashAlgorithmName, ReadOnlySpan<Byte>)

Veri karması hesaplar.

HashData(HashAlgorithmName, Stream, Span<Byte>)

Bir akışın karması hesaplanır.

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

Veri karması hesaplar.

HashData(HashAlgorithmName, Byte[])

Kaynak:
CryptographicOperations.cs
Kaynak:
CryptographicOperations.cs
Kaynak:
CryptographicOperations.cs

Veri karması hesaplar.

public:
 static cli::array <System::Byte> ^ HashData(System::Security::Cryptography::HashAlgorithmName hashAlgorithm, cli::array <System::Byte> ^ source);
public static byte[] HashData(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] source);
static member HashData : System.Security.Cryptography.HashAlgorithmName * byte[] -> byte[]
Public Shared Function HashData (hashAlgorithm As HashAlgorithmName, source As Byte()) As Byte()

Parametreler

hashAlgorithm
HashAlgorithmName

Karmayı hesaplamak için kullanılan algoritma.

source
Byte[]

Karmaya veri.

Döndürülenler

Byte[]

Verilerin karması.

Özel durumlar

source, null'e eşittir.

-veya-

hashAlgorithm olan bir Name öğesine nullsahiptir.

hashAlgorithm boş bir Name şey var.

hashAlgorithm geçerli platform tarafından desteklenmeyen bir karma algoritma belirtir.

hashAlgorithm bilinmeyen bir karma algoritma belirtir.

Şunlara uygulanır

HashData(HashAlgorithmName, Stream)

Kaynak:
CryptographicOperations.cs
Kaynak:
CryptographicOperations.cs
Kaynak:
CryptographicOperations.cs

Bir akışın karması hesaplanır.

public:
 static cli::array <System::Byte> ^ HashData(System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::IO::Stream ^ source);
public static byte[] HashData(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.IO.Stream source);
static member HashData : System.Security.Cryptography.HashAlgorithmName * System.IO.Stream -> byte[]
Public Shared Function HashData (hashAlgorithm As HashAlgorithmName, source As Stream) As Byte()

Parametreler

hashAlgorithm
HashAlgorithmName

Karmayı hesaplamak için kullanılan algoritma.

source
Stream

Karma akış.

Döndürülenler

Byte[]

Verilerin karması.

Özel durumlar

source, null'e eşittir.

-veya-

hashAlgorithm olan bir Name öğesine nullsahiptir.

hashAlgorithm boş bir Name şey var.

-veya-

source okumayı desteklemez.

hashAlgorithm geçerli platform tarafından desteklenmeyen bir karma algoritma belirtir.

hashAlgorithm bilinmeyen bir karma algoritma belirtir.

Şunlara uygulanır

HashData(HashAlgorithmName, ReadOnlySpan<Byte>)

Kaynak:
CryptographicOperations.cs
Kaynak:
CryptographicOperations.cs
Kaynak:
CryptographicOperations.cs

Veri karması hesaplar.

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

Parametreler

hashAlgorithm
HashAlgorithmName

Karmayı hesaplamak için kullanılan algoritma.

source
ReadOnlySpan<Byte>

Karmaya veri.

Döndürülenler

Byte[]

Verilerin karması.

Özel durumlar

hashAlgorithm olan bir Name öğesine nullsahiptir.

hashAlgorithm boş bir Name şey var.

hashAlgorithm geçerli platform tarafından desteklenmeyen bir karma algoritma belirtir.

hashAlgorithm bilinmeyen bir karma algoritma belirtir.

Şunlara uygulanır

HashData(HashAlgorithmName, Stream, Span<Byte>)

Kaynak:
CryptographicOperations.cs
Kaynak:
CryptographicOperations.cs
Kaynak:
CryptographicOperations.cs

Bir akışın karması hesaplanır.

public:
 static int HashData(System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::IO::Stream ^ source, Span<System::Byte> destination);
public static int HashData(System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.IO.Stream source, Span<byte> destination);
static member HashData : System.Security.Cryptography.HashAlgorithmName * System.IO.Stream * Span<byte> -> int
Public Shared Function HashData (hashAlgorithm As HashAlgorithmName, source As Stream, destination As Span(Of Byte)) As Integer

Parametreler

hashAlgorithm
HashAlgorithmName

Karmayı hesaplamak için kullanılan algoritma.

source
Stream

Karma akış.

destination
Span<Byte>

Karma değeri almak için arabellek.

Döndürülenler

öğesine yazılan destinationtoplam bayt sayısı.

Özel durumlar

source, null'e eşittir.

-veya-

hashAlgorithm olan bir Name öğesine nullsahiptir.

içindeki destination arabellek, hesaplanan karma boyutunu tutamayacak kadar küçük.

-veya-

hashAlgorithm boş bir Name şey var.

-veya-

source okumayı desteklemez.

hashAlgorithm geçerli platform tarafından desteklenmeyen bir karma algoritma belirtir.

hashAlgorithm bilinmeyen bir karma algoritma belirtir.

Şunlara uygulanır

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

Kaynak:
CryptographicOperations.cs
Kaynak:
CryptographicOperations.cs
Kaynak:
CryptographicOperations.cs

Veri karması hesaplar.

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

Parametreler

hashAlgorithm
HashAlgorithmName

Karmayı hesaplamak için kullanılan algoritma.

source
ReadOnlySpan<Byte>

Karmaya veri.

destination
Span<Byte>

Karma değeri almak için arabellek.

Döndürülenler

öğesine yazılan destinationtoplam bayt sayısı.

Özel durumlar

içindeki destination arabellek, hesaplanan karma boyutunu tutamayacak kadar küçük.

-veya-

hashAlgorithm boş bir Name şey var.

hashAlgorithm olan bir Name öğesine nullsahiptir.

hashAlgorithm geçerli platform tarafından desteklenmeyen bir karma algoritma belirtir.

hashAlgorithm bilinmeyen bir karma algoritma belirtir.

Şunlara uygulanır