CryptographicOperations.HmacData Metoda

Definicja

Przeciążenia

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

Oblicza HMAC danych.

HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, Stream, Span<Byte>)

Oblicza HMAC strumienia.

HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Oblicza HMAC danych.

HmacData(HashAlgorithmName, Byte[], Stream)

Oblicza HMAC strumienia.

HmacData(HashAlgorithmName, Byte[], Byte[])

Oblicza HMAC danych.

HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, Stream)

Oblicza HMAC strumienia.

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

Źródło:
CryptographicOperations.cs

Oblicza HMAC danych.

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

Parametry

hashAlgorithm
HashAlgorithmName

Algorytm używany do obliczania HMAC.

key
ReadOnlySpan<Byte>

Klucz tajny. Klucz może mieć dowolną długość.

source
ReadOnlySpan<Byte>

Dane do obliczenia HMAC przez.

destination
Span<Byte>

Bufor do odbierania wartości HMAC.

Zwraca

Całkowita liczba bajtów zapisanych w destination.

Wyjątki

Bufor w destination jest zbyt mały, aby pomieścić obliczony rozmiar skrótu.

-lub-

hashAlgorithm ma Name, który jest pusty.

hashAlgorithm ma Namenull.

hashAlgorithm określa algorytm wyznaczania wartości skrótu nieobsługiwany przez bieżącą platformę.

hashAlgorithm określa nieznany algorytm wyznaczania skrótu.

Dotyczy

HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, Stream, Span<Byte>)

Źródło:
CryptographicOperations.cs

Oblicza HMAC strumienia.

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

Parametry

hashAlgorithm
HashAlgorithmName

Algorytm używany do obliczania HMAC.

key
ReadOnlySpan<Byte>

Klucz tajny. Klucz może mieć dowolną długość.

source
Stream

Dane do obliczenia HMAC przez.

destination
Span<Byte>

Bufor do odbierania wartości HMAC.

Zwraca

Całkowita liczba bajtów zapisanych w destination.

Wyjątki

source jest null.

-lub-

hashAlgorithm ma Namenull.

hashAlgorithm ma Name, który jest pusty.

-lub-

source nie obsługuje odczytu.

-lub-

Bufor w destination jest zbyt mały, aby przechowywać obliczony rozmiar HMAC.

hashAlgorithm określa algorytm wyznaczania wartości skrótu nieobsługiwany przez bieżącą platformę.

hashAlgorithm określa nieznany algorytm wyznaczania skrótu.

Dotyczy

HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Źródło:
CryptographicOperations.cs

Oblicza HMAC danych.

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

Parametry

hashAlgorithm
HashAlgorithmName

Algorytm używany do obliczania HMAC.

key
ReadOnlySpan<Byte>

Klucz tajny. Klucz może mieć dowolną długość.

source
ReadOnlySpan<Byte>

Dane do obliczenia HMAC przez.

Zwraca

Byte[]

HMAC danych.

Wyjątki

hashAlgorithm ma Namenull.

hashAlgorithm ma Name, który jest pusty.

hashAlgorithm określa algorytm wyznaczania wartości skrótu nieobsługiwany przez bieżącą platformę.

hashAlgorithm określa nieznany algorytm wyznaczania skrótu.

Dotyczy

HmacData(HashAlgorithmName, Byte[], Stream)

Źródło:
CryptographicOperations.cs

Oblicza HMAC strumienia.

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

Parametry

hashAlgorithm
HashAlgorithmName

Algorytm używany do obliczania HMAC.

key
Byte[]

Klucz tajny. Klucz może mieć dowolną długość.

source
Stream

Dane do obliczenia HMAC przez.

Zwraca

Byte[]

HMAC danych.

Wyjątki

key lub source jest null.

-lub-

hashAlgorithm ma Namenull.

hashAlgorithm ma Name, który jest pusty.

-lub-

source nie obsługuje odczytu.

hashAlgorithm określa algorytm wyznaczania wartości skrótu nieobsługiwany przez bieżącą platformę.

hashAlgorithm określa nieznany algorytm wyznaczania skrótu.

Dotyczy

HmacData(HashAlgorithmName, Byte[], Byte[])

Źródło:
CryptographicOperations.cs

Oblicza HMAC danych.

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

Parametry

hashAlgorithm
HashAlgorithmName

Algorytm używany do obliczania HMAC.

key
Byte[]

Klucz tajny. Klucz może mieć dowolną długość.

source
Byte[]

Dane do obliczenia HMAC przez.

Zwraca

Byte[]

HMAC danych.

Wyjątki

key lub source jest null.

-lub-

hashAlgorithm ma Namenull.

hashAlgorithm ma Name, który jest pusty.

hashAlgorithm określa algorytm wyznaczania wartości skrótu nieobsługiwany przez bieżącą platformę.

hashAlgorithm określa nieznany algorytm wyznaczania skrótu.

Dotyczy

HmacData(HashAlgorithmName, ReadOnlySpan<Byte>, Stream)

Źródło:
CryptographicOperations.cs

Oblicza HMAC strumienia.

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

Parametry

hashAlgorithm
HashAlgorithmName

Algorytm używany do obliczania HMAC.

key
ReadOnlySpan<Byte>

Klucz tajny. Klucz może mieć dowolną długość.

source
Stream

Dane do obliczenia HMAC przez.

Zwraca

Byte[]

HMAC danych.

Wyjątki

source jest null.

-lub-

hashAlgorithm ma Namenull.

hashAlgorithm ma Name, który jest pusty.

-lub-

source nie obsługuje odczytu.

hashAlgorithm określa algorytm wyznaczania wartości skrótu nieobsługiwany przez bieżącą platformę.

hashAlgorithm określa nieznany algorytm wyznaczania skrótu.

Dotyczy