SysTutorials

Linux Manual Pages › Section 9

crypto_ahash_init(9)

crypto_ahash_init – (re)initialize message digest handle

Synopsis

int crypto_ahash_init(struct ahash_request *req);

Arguments

req

ahash_request handle that already is initialized with all necessary data using the ahash_request_* API functions

Description

The call (re-)initializes the message digest referenced by the ahash_request handle. Any potentially existing state created by previous operations is discarded.

Return

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

Authors

Stephan Mueller <smueller [at] chronox.de>

Author.

Marek Vasut <marek [at] denx.de>

Author.

Copyright