selectively exclude NOT_READY algorithms from copy_from_pyclean (#841)

This commit is contained in:
Michael Baentsch 2020-10-28 17:53:40 +01:00 committed by GitHub
parent 7c0aa19e8c
commit 993c1d757b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,6 +90,15 @@ def upstream_check(scheme):
def load_instructions(): def load_instructions():
instructions = file_get_contents(os.path.join('scripts', 'copy_from_pqclean', 'copy_from_pqclean.yml'), encoding='utf-8') instructions = file_get_contents(os.path.join('scripts', 'copy_from_pqclean', 'copy_from_pqclean.yml'), encoding='utf-8')
instructions = yaml.safe_load(instructions) instructions = yaml.safe_load(instructions)
# drop instructions selectively if not ready
if ("NOT_READY" in os.environ):
not_ready=os.environ['NOT_READY'].split(" ")
for family in instructions['kems']:
if family['name'] in not_ready:
instructions["kems"].remove(family)
for family in instructions['sigs']:
if family['name'] in not_ready:
instructions["sigs"].remove(family)
for family in instructions['kems']: for family in instructions['kems']:
family['type'] = 'kem' family['type'] = 'kem'
family['pqclean_type'] = 'kem' family['pqclean_type'] = 'kem'