Performs a digest operation on a byte array message.
The steps taken for creating the digest are:
If a random salt generator is used, two digests created for the same message will always be different (except in the case of random salt coincidence). Because of this, in this case the result of the digest method will contain both the undigested salt and the digest of the (salt + message), so that another digest operation can be performed with the same salt on a different message to check if both messages match (all of which will be managed automatically by the matches method).
@param message the byte array to be digested @return the digest result @throws EncryptionOperationNotPossibleException if the digest operationfails, ommitting any further information about the cause for security reasons. @throws EncryptionInitializationException if initialization could notbe correctly done (for example, if the digest algorithm chosen cannot be used).
|
|
|
|