Name

crypto_hash_final — calculate message digest

Synopsis

int crypto_hash_final (struct hash_desc * desc,
 u8 * out);
 

Arguments

desc

cipher request handle

out

message digest output buffer -- The caller must ensure that the out buffer has a sufficient size (e.g. by using the crypto_hash_digestsize function).

Description

Finalize the message digest operation and create the message digest based on all data added to the cipher handle. The message digest is placed into the output buffer.

Return

0 if the message digest creation was successful; < 0 if an error occurred