23 #ifndef LWCRYPTO_PHOTON_BEETLE_HASH_H
24 #define LWCRYPTO_PHOTON_BEETLE_HASH_H
46 #define PHOTON_BEETLE_HASH_SIZE 32
54 unsigned char state[32];
78 (
unsigned char *out,
const unsigned char *in,
size_t inlen);
void photon_beetle_hash_init(photon_beetle_hash_state_t *state)
Initializes the state for a Photon-Beetle-HASH hashing operation.
Definition: photon-beetle-hash.c:96
int photon_beetle_hash(unsigned char *out, const unsigned char *in, size_t inlen)
Hashes a block of input data with PHOTON-Beetle-HASH to generate a hash value.
Definition: photon-beetle-hash.c:42
unsigned char posn
Definition: photon-beetle-hash.h:55
unsigned char rate
Definition: photon-beetle-hash.h:56
State information for the PHOTON-Beetle-HASH incremental mode.
Definition: photon-beetle-hash.h:51
unsigned char first
Definition: photon-beetle-hash.h:57
void photon_beetle_hash_update(photon_beetle_hash_state_t *state, const unsigned char *in, size_t inlen)
Updates a Photon-Beetle-HASH state with more input data.
Definition: photon-beetle-hash.c:105
unsigned long long align
Definition: photon-beetle-hash.h:59
void photon_beetle_hash_finalize(photon_beetle_hash_state_t *state, unsigned char *out)
Returns the final hash value from a Photon-Beetle-HASH hashing operation.
Definition: photon-beetle-hash.c:127