LIBKECCAK_BEHEX_UPPER(3) Library Functions Manual LIBKECCAK_BEHEX_UPPER(3)

libkeccak_behex_upper - Converts a binary hashsum to upper case hexadecimal

#include <libkeccak.h>
void libkeccak_behex_upper(char *restrict output, const void *restrict hashsum, size_t n);

Link with -lkeccak.

The libkeccak_behex_upper() function converts a binary hashsum, stored in hashsum, to uppercase hexadecimal, and stores the hexadecimal representation in output.

output will be terminated by a NUL-character.

The n parameter specifies the number of bytes the binary hashsum is comprised. output needs an allocation size of (2 * n + 1).

The libkeccak_behex_upper() function does return any value.

The libkeccak_behex_upper() function cannot fail.

libkeccak_behex_lower(3), libkeccak_unhex(3)

LIBKECCAK