CryptographicOperations.HashData Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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
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
Verilerin karması.
Özel durumlar
hashAlgorithm boş bir Name 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
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
Verilerin karması.
Özel durumlar
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
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
Verilerin karması.
Özel durumlar
hashAlgorithm
nullbir Name vardır.
hashAlgorithm boş bir Name 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
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ış.
Döndürülenler
destinationyazılan toplam bayt sayısı.
Özel durumlar
destination içindeki arabellek, hesaplanan karma boyutunu tutamayacak kadar küçük.
-veya-
hashAlgorithm boş bir Name 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
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.
Döndürülenler
destinationyazılan toplam bayt sayısı.
Özel durumlar
destination içindeki arabellek, hesaplanan karma boyutunu tutamayacak kadar küçük.
-veya-
hashAlgorithm boş bir Name var.
hashAlgorithm
nullbir Name vardır.
hashAlgorithm geçerli platform tarafından desteklenmeyen bir karma algoritma belirtir.
hashAlgorithm bilinmeyen bir karma algoritma belirtir.