libhasha 2.2.2
|
#include "internal/internal.h"
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. |
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.
state | Pointer to the 1600-bit (200-byte) state array. The state is updated in-place as a result of the permutation. |
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.