HMACSHA1.HashData Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| HashData(ReadOnlySpan<Byte>, Stream, Span<Byte>) |
Calcula el HMAC de una secuencia mediante el algoritmo SHA1. |
| HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Calcula el HMAC de los datos mediante el algoritmo SHA1. |
| HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>) |
Calcula el HMAC de los datos mediante el algoritmo SHA1. |
| HashData(Byte[], Stream) |
Calcula el HMAC de una secuencia mediante el algoritmo SHA1. |
| HashData(Byte[], Byte[]) |
Calcula el HMAC de los datos mediante el algoritmo SHA1. |
| HashData(ReadOnlySpan<Byte>, Stream) |
Calcula el HMAC de una secuencia mediante el algoritmo SHA1. |
HashData(ReadOnlySpan<Byte>, Stream, Span<Byte>)
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
Calcula el HMAC de una secuencia mediante el algoritmo SHA1.
public:
static int HashData(ReadOnlySpan<System::Byte> key, System::IO::Stream ^ source, Span<System::Byte> destination);
public static int HashData(ReadOnlySpan<byte> key, System.IO.Stream source, Span<byte> destination);
static member HashData : ReadOnlySpan<byte> * System.IO.Stream * Span<byte> -> int
Public Shared Function HashData (key As ReadOnlySpan(Of Byte), source As Stream, destination As Span(Of Byte)) As Integer
Parámetros
- key
- ReadOnlySpan<Byte>
Tecla HMAC.
- source
- Stream
Secuencia a HMAC.
Devoluciones
Número total de bytes escritos en destination.
Excepciones
source es null.
El búfer de destination es demasiado pequeño para contener el tamaño HMAC calculado. El algoritmo SHA1 siempre genera un HMAC de 160 bits o 20 bytes.
O bien
source no es compatible con la lectura.
Se aplica a
HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
Calcula el HMAC de los datos mediante el algoritmo SHA1.
public:
static cli::array <System::Byte> ^ HashData(ReadOnlySpan<System::Byte> key, ReadOnlySpan<System::Byte> source);
public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source);
static member HashData : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> byte[]
Public Shared Function HashData (key As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte)) As Byte()
Parámetros
- key
- ReadOnlySpan<Byte>
Tecla HMAC.
- source
- ReadOnlySpan<Byte>
Datos de HMAC.
Devoluciones
HMAC de los datos.
Se aplica a
HashData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>)
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
Calcula el HMAC de los datos mediante el algoritmo SHA1.
public:
static int HashData(ReadOnlySpan<System::Byte> key, ReadOnlySpan<System::Byte> source, Span<System::Byte> destination);
public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination);
static member HashData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> -> int
Public Shared Function HashData (key As ReadOnlySpan(Of Byte), source As ReadOnlySpan(Of Byte), destination As Span(Of Byte)) As Integer
Parámetros
- key
- ReadOnlySpan<Byte>
Tecla HMAC.
- source
- ReadOnlySpan<Byte>
Datos de HMAC.
Devoluciones
Número total de bytes escritos en destination.
Excepciones
El búfer de destination es demasiado pequeño para contener el tamaño de hash calculado. El algoritmo SHA1 siempre genera un HMAC de 160 bits o 20 bytes.
Se aplica a
HashData(Byte[], Stream)
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
Calcula el HMAC de una secuencia mediante el algoritmo SHA1.
public:
static cli::array <System::Byte> ^ HashData(cli::array <System::Byte> ^ key, System::IO::Stream ^ source);
public static byte[] HashData(byte[] key, System.IO.Stream source);
static member HashData : byte[] * System.IO.Stream -> byte[]
Public Shared Function HashData (key As Byte(), source As Stream) As Byte()
Parámetros
- key
- Byte[]
Tecla HMAC.
- source
- Stream
Secuencia a HMAC.
Devoluciones
HMAC de los datos.
Excepciones
key o source es null.
source no es compatible con la lectura.
Se aplica a
HashData(Byte[], Byte[])
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
Calcula el HMAC de los datos mediante el algoritmo SHA1.
public:
static cli::array <System::Byte> ^ HashData(cli::array <System::Byte> ^ key, cli::array <System::Byte> ^ source);
public static byte[] HashData(byte[] key, byte[] source);
static member HashData : byte[] * byte[] -> byte[]
Public Shared Function HashData (key As Byte(), source As Byte()) As Byte()
Parámetros
- key
- Byte[]
Tecla HMAC.
- source
- Byte[]
Datos de HMAC.
Devoluciones
HMAC de los datos.
Excepciones
key o source es null.
Se aplica a
HashData(ReadOnlySpan<Byte>, Stream)
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
- Source:
- HMACSHA1.cs
Calcula el HMAC de una secuencia mediante el algoritmo SHA1.
public:
static cli::array <System::Byte> ^ HashData(ReadOnlySpan<System::Byte> key, System::IO::Stream ^ source);
public static byte[] HashData(ReadOnlySpan<byte> key, System.IO.Stream source);
static member HashData : ReadOnlySpan<byte> * System.IO.Stream -> byte[]
Public Shared Function HashData (key As ReadOnlySpan(Of Byte), source As Stream) As Byte()
Parámetros
- key
- ReadOnlySpan<Byte>
Tecla HMAC.
- source
- Stream
Secuencia a HMAC.
Devoluciones
HMAC de los datos.
Excepciones
source es null.
source no es compatible con la lectura.