-rwxr-xr-x 743 libntruprime-20241008/autogen/hdef raw
#!/usr/bin/env python3
result = ''
for size in '653','761','857','953','1013','1277':
result += f'#define sntrup{size}_keypair ntruprime_kem_sntrup{size}_keypair\n'
result += f'#define sntrup{size}_enc ntruprime_kem_sntrup{size}_enc\n'
result += f'#define sntrup{size}_dec ntruprime_kem_sntrup{size}_dec\n'
result += f'#define sntrup{size}_SECRETKEYBYTES ntruprime_kem_sntrup{size}_SECRETKEYBYTES\n'
result += f'#define sntrup{size}_PUBLICKEYBYTES ntruprime_kem_sntrup{size}_PUBLICKEYBYTES\n'
result += f'#define sntrup{size}_CIPHERTEXTBYTES ntruprime_kem_sntrup{size}_CIPHERTEXTBYTES\n'
result += f'#define sntrup{size}_BYTES ntruprime_kem_sntrup{size}_BYTES\n'
result += '\n'
with open('hdef','w') as f:
f.write(result)