liboqs/scripts/genkatdict.py
Douglas Stebila aa7f1dfa3d
Cleanup PQClean implementations (#803)
* Sync with PQClean commit 90630db2ebada4bacceb5331b0a1a9a356ba65b9

* Delete duplicate implementations due to underscore bug; add MQDSS AVX2

* Delete more duplicate PQClean implementations
2020-08-04 11:54:25 -04:00

17 lines
397 B
Python

# SPDX-License-Identifier: MIT
import os
import json
KATSHA = ".kat.sha256"
d = {}
for filename in os.listdir("."):
if filename.endswith(KATSHA):
alg = filename[:-len(KATSHA)]
with open(filename, "r") as f:
d[alg] = f.read()
print("added %s with KATSHA %s" % (alg, d[alg]))
with open("kats.json", "w") as f:
json.dumps(d, f, indent=2, sort_keys=True)