Namespace: Assorted.Utils.Crypto
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Overload | Description |
---|---|
Compute(Byte[], Byte[]) | Returns the keyed-hash code of a specified array of bytes for the given secret key. |
Compute(Byte[], Stream) | Returns the keyed-hash code of content of a specified stream for the given secret key. |
Returns the keyed-hash code of a specified array of bytes for the given secret key.
public override Byte[] Compute(Byte[] key, Byte[] bytes)
key
: Byte[]
The secret key as an array of bytes.
bytes
: Byte[]
An array of bytes to calculate its keyed-hash code.
Byte[]
The keyed-hash code of the specified bytes
as an array of bytes.
Exception | Description |
---|---|
System.ArgumentNullException | key or bytes is null . |
Returns the keyed-hash code of content of a specified stream for the given secret key.
public override Byte[] Compute(Byte[] key, Stream stream)
key
: Byte[]
The secret key for encryption.
stream
: Stream
A System.IO.Stream
object to calculate the keyed-hash code of its content.
Byte[]
The keyed-hash code of content of the specified stream
as an array of bytes.
Exception | Description |
---|---|
System.ArgumentNullException | key or stream is null . |
This document is generated by DG.