libkeccak_behex_upper(3)

libkeccak_behex_upper3

Converts a binary hashsum to upper case hexadecimal

Usage

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

Link with -lkeccak.

Overview

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).

Return values

The libkeccak_behex_upper() function does return any value.

Errors

The libkeccak_behex_upper() function cannot fail.

From libkeccak 1.4.3-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.