mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-03 00:02:36 -04:00
* Sync with PQClean commit 90630db2ebada4bacceb5331b0a1a9a356ba65b9 * Delete duplicate implementations due to underscore bug; add MQDSS AVX2 * Delete more duplicate PQClean implementations
17 lines
397 B
Python
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)
|