Skip to content

Latest commit

 

History

History
81 lines (51 loc) · 2.62 KB

Assorted.Utils.Crypto.KeyedHasherProxy.Compute.md

File metadata and controls

81 lines (51 loc) · 2.62 KB

KeyedHasherProxy.Compute Method

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.

Compute(Byte[], Byte[])

Returns the keyed-hash code of a specified array of bytes for the given secret key.

Syntax

public override Byte[] Compute(Byte[] key, Byte[] bytes)

Parameters

key: Byte[]
The secret key as an array of bytes.

bytes: Byte[]
An array of bytes to calculate its keyed-hash code.

Return Value

Byte[]
The keyed-hash code of the specified bytes as an array of bytes.

Exceptions

Exception Description
System.ArgumentNullException key or bytes is null.

See Also

Compute(Byte[], Stream)

Returns the keyed-hash code of content of a specified stream for the given secret key.

Syntax

public override Byte[] Compute(Byte[] key, Stream stream)

Parameters

key: Byte[]
The secret key for encryption.

stream: Stream
A System.IO.Stream object to calculate the keyed-hash code of its content.

Return Value

Byte[]
The keyed-hash code of content of the specified stream as an array of bytes.

Exceptions

Exception Description
System.ArgumentNullException key or stream is null.

See Also


This document is generated by DG.