ANSI C implementation Binary BCH codes over GF(2^12), along with Sage implementation with identical outputs. The implementations of Keccak (for testing purposes only) were drawn from the Keccak Code Package and modified accordingly for ANSI compliance.
$> gcc -o test_bch *.c -ansi -Wpedantic