GetDigest

nn::boss::NsaList::GetDigest Member Function

Syntax

nn::Result GetDigest(
     u8 * pDigestBuf,
     size_t digestBufSize
);

Parameters

Name Description
out pDigestBuf The buffer storing NSA digest information.
in digestBufSize The size of pDigestBuf.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.

Value Description
Result::IsSuccess Retrieval successful.
ResultNSAListInvalidFormat The file format is invalid.
A value other than the above. Unexpected error (see boss_Result.h for error details).

Description

Gets the digest value included in an NSA list.

Gets the digest value included in the NSA list (in the CheckValidity function, compares this with the calculated digest value). One use of this is to check whether the NSA list has been updated. When NSA updates on the server are infrequent, this can be used to quickly check whether the NSA list has been updated, by recording the digest value of the downloaded NSA list obtained by this function, and then the next time the NSA list is downloaded, first only comparing the digest values.

Revision History

2011/10/27
Initial version.

CONFIDENTIAL