WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

DeterministicEncryption..::..ComputeHashAsync Method (Stream)

Asynchronously computes the hash for the provided stream using the specified hash method.

Namespace:  Walter.Cypher
Assembly:  Walter.Cypher (in Walter.Cypher.dll)

Syntax


public Task<byte[]> ComputeHashAsync(
	Stream cypherStream
)

Parameters

cypherStream
Type: Stream
The stream containing the data to hash.

Return Value

A task that represents the asynchronous operation. The task result contains the computed hash.

Exceptions


ExceptionCondition
NotImplementedExceptionThrown if the hash method is not implemented.
InvalidOperationExceptionThrown if the stream does not support seeking.