libhasha 2.2.2
Loading...
Searching...
No Matches
keccakf1600.h File Reference
Include dependency graph for keccakf1600.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

HA_EXTERN_C_BEG HA_PUBFUN void ha_keccakf1600 (uint64_t *state)
 Performs the Keccak-f[1600] permutation on the state.
HA_PUBFUN int ha_keccakf1600_implid (void)
 Returns the implementation ID of the Keccak-f[1600] function.

Function Documentation

◆ ha_keccakf1600()

HA_EXTERN_C_BEG HA_PUBFUN void ha_keccakf1600 ( uint64_t * state)

Performs the Keccak-f[1600] permutation on the state.

This function applies the Keccak-f[1600] permutation to the 1600-bit state array, which is used as the core transformation for all Keccak-based hashes, including SHA-3. The permutation operates on the internal state of the Keccak algorithm and is typically called during each round of hashing.

Parameters
statePointer to the 1600-bit (200-byte) state array. The state is updated in-place as a result of the permutation.

◆ ha_keccakf1600_implid()

HA_PUBFUN int ha_keccakf1600_implid ( void )

Returns the implementation ID of the Keccak-f[1600] function.

This function returns a unique implementation identifier for the Keccakf1600 permutation used in the library. The ID can be used to identify which version or variant of the Keccakf1600 function is being utilized.

Returns
The implementation ID for the Keccakf1600 function. This ID can be used for debugging, performance tracking, or identifying specific optimizations used in the implementation.