mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-10 00:03:09 -04:00
* removed full-size KATs * corrected qTesla avx2 KAT selection * Fixed macOS build warnings. (#782) * removed full-size KATs * corrected qTesla avx2 KAT selection * KATs as dicts; simplified & corrected logic
17 lines
370 B
Python
17 lines
370 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.dump(d, f)
|