nn::crypto::Sha1Context::GetHash Member Function

Syntax

virtual void GetHash(
     void * pOut
);

Parameters

Name Description
out pOut Pointer to the location in which to store the SHA-1 value (4-byte alignment)

Return Values

None.

Description

Gets the final result of calculating the SHA-1 hash.

pOut is a 4-byte aligned pointer. It requires Sha1Context::HASH_SIZE (=20) bytes of space as the destination for storing the indicated hash.

Even after calling this function, you can call the nn::crypto::Sha1Context::Update function to continue calculating the hash value.

Revision History

2011/03/04
Added note about 4-byte alignment restriction.
2010/01/07
Initial version.

CONFIDENTIAL