Name
crypto_shash_digest —
calculate message digest for buffer
Synopsis
int crypto_shash_digest ( | struct shash_desc * desc, |
| const u8 * data, |
| unsigned int len, |
| u8 * out) ; |
Description
This function is a “short-hand” for the function calls of crypto_shash_init,
crypto_shash_update and crypto_shash_final. The parameters have the same
meaning as discussed for those separate three functions.
Return
0 if the message digest creation was successful; < 0 if an error
occurred