2 * GF-Complete: A Comprehensive Open Source Library for Galois Field Arithmetic
3 * James S. Plank, Ethan L. Miller, Kevin M. Greenan,
4 * Benjamin A. Arnold, John A. Burnum, Adam W. Disney, Allen C. McBride.
8 * Defines and data structures for 64-bit Galois fields
11 #ifndef GF_COMPLETE_GF_W64_H
12 #define GF_COMPLETE_GF_W64_H
16 #define GF_FIELD_WIDTH (64)
17 #define GF_FIRST_BIT (1ULL << 63)
19 #define GF_BASE_FIELD_WIDTH (32)
20 #define GF_BASE_FIELD_SIZE (1ULL << GF_BASE_FIELD_WIDTH)
21 #define GF_BASE_FIELD_GROUP_SIZE GF_BASE_FIELD_SIZE-1
23 struct gf_w64_group_data {
29 struct gf_split_4_64_lazy_data {
30 uint64_t tables[16][16];
34 struct gf_split_8_64_lazy_data {
35 uint64_t tables[8][(1<<8)];
39 struct gf_split_16_64_lazy_data {
40 uint64_t tables[4][(1<<16)];
44 struct gf_split_8_8_data {
45 uint64_t tables[15][256][256];
48 void gf_w64_neon_split_init(gf_t *gf);
50 #endif /* GF_COMPLETE_GF_W64_H */