Cross-platform library for efficient Galois field arithmetic