LIBKECCAK_HMAC_UPDATE(3)
π LIBKECCAK_HMAC_UPDATE(3) π
okay bestie, welcome to the Library Functions Manual page for libkeccak_hmac_update(3) β itβs giving βtiny function, very specific jobβ energy and honestly we love that for us π
β¨
πΈ NAME πΈ
libkeccak_hmac_update β partially HMAC-hash a message with erasure π«Ά
β¨ SYNOPSIS β¨
#include <libkeccak.h>
int libkeccak_hmac_update(struct libkeccak_state *state, const void *msg, size_t msglen);
Link with -lkeccak.
π DESCRIPTION π
okay so libkeccak_hmac_update() continues β or starts β HMAC-hashing a message. the current state of the hashing is stored in *state, and it will be updated. the message you pass as msg, with the byte-size specified by msglen, gets hashed. periodt.
also important: libkeccak_hmac_update() may reallocate the stateβs message chunk buffer. when it does that, it attempts to do so as securely as possible, rather than as fast as possible. no cap, security is the main character here π₯
π¦ RETURN VALUES π¦
libkeccak_hmac_update() returns 0 upon successful completion. on error, -1 is returned and errno is set to describe the error. thatβs the whole vibe check π
π ERRORS π
libkeccak_hmac_update() may fail for any reason specified by the function malloc(3). yep, thatβs the whole note β malloc(3) said βiykykβ π
β NOTES β
π¨ neither parameter may beNULLor0. the page says it, so weβre saying it, bestie β donβt test it π
π SEE ALSO π
libkeccak_hmac_create(3)libkeccak_hmac_initialise(3)libkeccak_hmac_digest(3)libkeccak_hmac_fast_update(3)
xoxo, your Unix bestie π
β source/version LIBKECCAK, tag LIBKECCAK_HMAC_UPDATE(3), and the footer didnβt show a date, so consider this sign-off officially undated π«Άπ
π¦ where this page comes from
- arch rolling: libkeccak 1.4.3-1 Β· custom:ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- opensuse-leap 16.0: libkeccak-devel 1.4-bp160.1.13 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms