@paramin This Points to this instance of EFI_HASH_PROTOCOL.
@paramin HashAlgorithm Points to the EFI_GUID which identifies the algorithm to use.
@paramin Extend Specifies whether to create a new hash (FALSE) or extend the specified
existing hash (TRUE).
@paramin Message Points to the start of the message.
@paramin MessageSize The size of Message, in bytes.
@param[in,out] Hash On input, if Extend is TRUE, then this parameter holds a pointer
to a pointer to an array containing the hash to extend. If Extend
is FALSE, then this parameter holds a pointer to a pointer to a
caller-allocated array that will receive the result of the hash
computation. On output (regardless of the value of Extend), the
array will contain the result of the hash computation.
@retval EFI_SUCCESS Hash returned successfully.
@retval EFI_INVALID_PARAMETER Message or Hash, HashAlgorithm is NULL or MessageSize is 0.
MessageSize is not an integer multiple of block size.
@retval EFI_UNSUPPORTED The algorithm specified by HashAlgorithm is not supported by this
driver. Or, Extend is TRUE, and the algorithm doesn't support extending the hash.
Creates a hash for the specified message text.
@paramin This Points to this instance of EFI_HASH_PROTOCOL. @paramin HashAlgorithm Points to the EFI_GUID which identifies the algorithm to use. @paramin Extend Specifies whether to create a new hash (FALSE) or extend the specified existing hash (TRUE). @paramin Message Points to the start of the message. @paramin MessageSize The size of Message, in bytes. @param[in,out] Hash On input, if Extend is TRUE, then this parameter holds a pointer to a pointer to an array containing the hash to extend. If Extend is FALSE, then this parameter holds a pointer to a pointer to a caller-allocated array that will receive the result of the hash computation. On output (regardless of the value of Extend), the array will contain the result of the hash computation.
@retval EFI_SUCCESS Hash returned successfully. @retval EFI_INVALID_PARAMETER Message or Hash, HashAlgorithm is NULL or MessageSize is 0. MessageSize is not an integer multiple of block size. @retval EFI_UNSUPPORTED The algorithm specified by HashAlgorithm is not supported by this driver. Or, Extend is TRUE, and the algorithm doesn't support extending the hash.