#!/usr/bin/env python3 # 20221231 djb print('// auto-generated by keccak.py') print('') R = 1 print('static const uint64_t roundconstant[24] = {') for n in range(24): roundconstant = 0 for y in range(7): R = (R<<1)^(113*(R>>7)) R &= 255 if R&2: roundconstant ^= 1<<((1<