23 #ifndef LW_INTERNAL_GHASH_H
24 #define LW_INTERNAL_GHASH_H
37 #include "internal-util.h"
50 #define GHASH_SHOUP_4BIT 0
52 #define GHASH_SHOUP_4BIT 1
void ghash_update(ghash_state_t *state, const unsigned char *data, size_t size)
Updates a GHASH state with more data.
Definition: internal-ghash.c:235
void ghash_pad(ghash_state_t *state)
Pads a GHASH state with zeroes to the next block boundary.
Definition: internal-ghash.c:264
State information for GHASH.
Definition: internal-ghash.h:67
void ghash_finalize(ghash_state_t *state, unsigned char *hash)
Finalizes a GHASH state.
Definition: internal-ghash.c:272
uint32_t posn
Definition: internal-ghash.h:75
Representation of a value in the GF(2^128) field.
Definition: internal-ghash.h:58
void ghash_init(ghash_state_t *state, const unsigned char *key)
Initializes the GHASH state.
Definition: internal-ghash.c:176