LIBKECCAK_BEHEX_LOWER(3)
okay so welcome to libkeccak_behex_lower(3) from the Library Functions Manual β the LIBKECCAK page is here to make lower-case hex make sense π β¨
πΈ NAME πΈ
libkeccak_behex_lower β converts a binary hashsum to lower case hexadecimal. Thatβs the whole assignment, bestie π
π¦ SYNOPSIS π¦
#include <libkeccak.h>
void libkeccak_behex_lower(char *restrict output, const void *restrict hashsum, size_t n);
Link with -lkeccak.
π DESCRIPTION π
okay so libkeccak_behex_lower() takes the binary hashsum stored in hashsum, turns it into lowercase hexadecimal, and puts that hexadecimal representation into output. slay π
output will be terminated by a NUL-character. yes, the classic little terminator icon.
The n parameter specifies the number of bytes the binary hashsum is comprised. and the allocation math is not optional, bestie: output needs an allocation size of (2 * n + 1) β¨
donβt skimp on that(2 * n + 1)allocation, fr fr β the page saysoutputneeds it π«Ά
π RETURN VALUES π
The page says: βThe libkeccak_behex_lower() function does return any value.β Translation: donβt go looking for a return value to catch β itβs not that kind of function, periodt π
β ERRORS β
libkeccak_behex_lower() cannot fail. iconic. no error era, just success energy πβ¨
π SEE ALSO π
byeee bestie π β source/version: LIBKECCAK, manual page: LIBKECCAK_BEHEX_LOWER(3). date: not shown in this footer, so Iβm not inventing one π
π¦ 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