LIBKECCAK_...AST_UPDATE(3)
πΈ NAME πΈ
Okay bestie, this is libkeccak_hmac_fast_update(3) from the Library Functions Manual, and it's here to partially HMAC-hash a message without erasure.
libkeccak_hmac_fast_updateβ partially HMAC-hash a message without erasure
β¨ SYNOPSIS β¨
#include <libkeccak.h>
int libkeccak_hmac_fast_update(struct libkeccak_state *state, const void *msg, size_t msglen);
Link with -lkeccak.
π DESCRIPTION π
So libkeccak_hmac_fast_update() continues (or starts) HMAC-hashing a message. The current state of the hashing is stored in *state, and it gets updated. The message specified by the msg parameter, with the byte-size specified by the msglen parameter, will be hashed. π«Ά
The libkeccak_hmac_fast_update() function may reallocate the state's message chunk buffer. When doing so, it attempts to do so as securely as possible, rather than as fast as possible.
π RETURN VALUES π
The libkeccak_hmac_fast_update() function returns 0 upon successful completion. On error, -1 is returned and errno is set to describe the error. Periodt. π
π₯ ERRORS π₯
Okay, plot twist time: the ERRORS section says the libkeccak_hmac_fast_update() function may reallocate the state's message chunk buffer. When doing so, it attempts to do so as quickly as possible, rather than ensuring that the information in the old allocation is securely removed if a new allocation is required. It also drops realloc(3). Yes bestie, that is what it says β I'm just relaying the text π.
π¦ NOTES π¦
Neither parameter may be NULL or 0. That's the note, fr fr.
π SEE ALSO π
libkeccak_hmac_create(3)libkeccak_hmac_initialise(3)libkeccak_hmac_fast_digest(3)libkeccak_hmac_update(3)
π
Cute little sign-off: the source/version in the footer is LIBKECCAK, and the date slot in the original footer is blank β no date was printed, so I'm not inventing one. Byeee π«Άβ¨
π¦ 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