System::Security::Cryptography::HashAlgorithm::ComputeHash method

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

Hashes buffer.

ArrayPtr<uint8_t> System::Security::Cryptography::HashAlgorithm::ComputeHash(const ArrayPtr<uint8_t> &buffer)
ParameterTypeDescription
bufferconst ArrayPtr<uint8_t>&Source buffer.

ReturnValue

Calculated hash value.

See Also

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)
ParameterTypeDescription
bufferconst ArrayPtr<uint8_t>&Source buffer.
offsetintOffset in the source buffer.
countintNumber of bytes to use from the source buffer.

ReturnValue

Calculated hash value.

See Also

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)
ParameterTypeDescription
inputStreamSharedPtr<IO::Stream> const&Stream to read data from.

ReturnValue

Calculated hash value for the whole stream data.

See Also