mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-11-27 00:04:24 -05:00
selectively exclude NOT_READY algorithms from copy_from_pyclean (#841)
This commit is contained in:
parent
7c0aa19e8c
commit
993c1d757b
@ -90,6 +90,15 @@ def upstream_check(scheme):
|
||||
def load_instructions():
|
||||
instructions = file_get_contents(os.path.join('scripts', 'copy_from_pqclean', 'copy_from_pqclean.yml'), encoding='utf-8')
|
||||
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']:
|
||||
family['type'] = 'kem'
|
||||
family['pqclean_type'] = 'kem'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user