PsaHashCompute

Calculate the hash (digest) of a message. Opcode: 15 (0x000F)

Parameters

NameTypeDescription
algHashThe hash algorithm to compute
inputVector of unsigned bytesBuffer containing message to hash

Results

NameTypeDescription
hashVector of unsigned bytesBuffer containing hash of message

Specific response status codes

  • PsaErrorNotSupported: alg is not supported.

Description

Calculates the hash of the given message, using the specified algorithm.

Note: To verify the hash of a message against an expected value, use PsaHashCompare.

Contract

Protobuf

Copyright 2020 Contributors to the Parsec project.