Name

crypto_hash_update — add data to message digest for processing

Synopsis

int crypto_hash_update (struct hash_desc * desc,
 struct scatterlist * sg,
 unsigned int nbytes);
 

Arguments

desc

cipher request handle

sg

scatter / gather list pointing to the data to be added to the message digest

nbytes

number of bytes to be processed from sg

Description

Updates the message digest state of the cipher handle pointed to by the hash cipher request handle with the input data pointed to by the scatter/gather list.

Return

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