12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef GF128_H
- #define GF128_H
- #include <stddef.h>
- #include <stdint.h>
- typedef uint32_t cf_gf128[4];
- void cf_gf128_frombytes_be(const uint8_t in[16], cf_gf128 out);
- void cf_gf128_tobytes_be(const cf_gf128 in, uint8_t out[16]);
- void cf_gf128_double(const cf_gf128 in, cf_gf128 out);
- void cf_gf128_double_le(const cf_gf128 in, cf_gf128 out);
- void cf_gf128_add(const cf_gf128 x, const cf_gf128 y, cf_gf128 out);
- void cf_gf128_mul(const cf_gf128 x, const cf_gf128 y, cf_gf128 out);
- #endif
|