LIBKECCAK_BEHEX_LOWER(3)

πŸ“¦ version 1.4.3, in arch rolling, opensuse-leap 16.0

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 says output needs 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