compute Nonce
Method to compute a nonce based on privacySalt, component group index and component internal index. SHA256d (double SHA256) is used to prevent length extension attacks.
Return
HASH(HASH(privacySalt || groupIndex || internalIndex)) for SHA2-256 and other algorithms loaded via JCA MessageDigest, otherwise it's defined by DigestAlgorithm.nonceDigest(privacySalt || groupIndex || internalIndex).
Parameters
privacy Salt
a PrivacySalt.
group Index
the fixed index (ordinal) of this component group.
internal Index
the internal index of this object in its corresponding components list.