libkeccak_zerocopy_chunksize3
Get chunk size for zero-copy processing (advanced)
Usage
#include <libkeccak.h> size_t libkeccak_zerocopy_chunksize(struct libkeccak_state *state);
Link with -lkeccak.
Overview
The libkeccak_zerocopy_chunksize() function returns the number of bytes the sponge in the state parameter processes per round. Input to the libkeccak_zerocopy_update(3) function must be an integer multiple of this number, and memory allocated for the libkeccak_zerocopy_digest(3) function must also be a multiple of this number (further restrictions apply, see libkeccak_zerocopy_digest(3) for more details.)
Return values
The libkeccak_zerocopy_chunksize() function returns the number of bytes that the sponge processes per processing round.
Errors
The libkeccak_zerocopy_chunksize() function cannot fail.