23 #ifndef LW_INTERNAL_WAGE_H
24 #define LW_INTERNAL_WAGE_H
26 #include "internal-util.h"
44 #define WAGE_STATE_SIZE 37
98 const unsigned char *key,
const unsigned char *nonce);
void wage_extract_tag(const unsigned char s[WAGE_STATE_SIZE], unsigned char tag[16])
Extracts the 128-bit authentication tag from the WAGE state.
Definition: internal-wage.c:473
void wage_get_rate(const unsigned char s[WAGE_STATE_SIZE], unsigned char data[8])
Gets the 8 bytes of the rate from the WAGE state.
Definition: internal-wage.c:311
void wage_set_rate(unsigned char s[WAGE_STATE_SIZE], const unsigned char data[8])
Sets the 8 bytes of the rate in the WAGE state.
Definition: internal-wage.c:330
void wage_init(unsigned char s[WAGE_STATE_SIZE], const unsigned char *key, const unsigned char *nonce)
Initializes the WAGE state with a key and nonce.
Definition: internal-wage.c:418
void wage_absorb(unsigned char s[WAGE_STATE_SIZE], const unsigned char data[8])
Absorbs 8 bytes into the WAGE state.
Definition: internal-wage.c:292
void wage_absorb_key(unsigned char s[WAGE_STATE_SIZE], const unsigned char *key)
Absorbs 16 key bytes into the WAGE state.
Definition: internal-wage.c:389
#define WAGE_STATE_SIZE
Size of the WAGE state in bytes.
Definition: internal-wage.h:44
void wage_permute(unsigned char s[WAGE_STATE_SIZE])
Permutes the WAGE state.
Definition: internal-wage.c:115