crypto_shash_setkey (9) - Linux Manuals
crypto_shash_setkey: set key for message digest
NAME
crypto_shash_setkey - set key for message digest
SYNOPSIS
-
int crypto_shash_setkey(struct crypto_shash
* tfm, const u8* key, unsigned intkeylen);
ARGUMENTS
tfm
-
- cipher handle
key
- buffer holding the key
keylen
- length of the key in bytes
DESCRIPTION
The caller provided key is set for the keyed message digest cipher. The cipher handle must point to a keyed message digest cipher in order for this function to succeed.
RETURN
0 if the setting of the key was successful; < 0 if an error occurred
AUTHORS
Stephan Mueller <smueller [at] chronox.de>
- Author.
Marek Vasut <marek [at] denx.de>
- Author.
COPYRIGHT