ComputeHash()

HashAlgorithm::ComputeHash(const ArrayPtr<uint8_t>&) method

Hashes buffer.

ArrayPtr<uint8_t> System::Security::Cryptography::HashAlgorithm::ComputeHash(const ArrayPtr<uint8_t> &buffer)

Arguments

ParameterTypeDescription
bufferconst ArrayPtr<uint8_t>&Source buffer.

Return Value

Calculated hash value.

HashAlgorithm::ComputeHash(const ArrayPtr<uint8_t>&, int, int) method

Hashes buffer slice.

ArrayPtr<uint8_t> System::Security::Cryptography::HashAlgorithm::ComputeHash(const ArrayPtr<uint8_t> &buffer, int offset, int count)

Arguments

ParameterTypeDescription
bufferconst ArrayPtr<uint8_t>&Source buffer.
offsetintOffset in the source buffer.
countintNumber of bytes to use from the source buffer.

Return Value

Calculated hash value.

HashAlgorithm::ComputeHash(SharedPtr<IO::Stream> const&) method

Reads stream until end and calculates hash for the data read.

ArrayPtr<uint8_t> System::Security::Cryptography::HashAlgorithm::ComputeHash(SharedPtr<IO::Stream> const &inputStream)

Arguments

ParameterTypeDescription
inputStreamSharedPtr<IO::Stream> const&Stream to read data from.

Return Value

Calculated hash value for the whole stream data.

See Also