From 993c1d757b8d6a875eb9916170c4ff37dd1abd63 Mon Sep 17 00:00:00 2001 From: Michael Baentsch <57787676+baentsch@users.noreply.github.com> Date: Wed, 28 Oct 2020 17:53:40 +0100 Subject: [PATCH] selectively exclude NOT_READY algorithms from copy_from_pyclean (#841) --- scripts/copy_from_pqclean/copy_from_pqclean.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/copy_from_pqclean/copy_from_pqclean.py b/scripts/copy_from_pqclean/copy_from_pqclean.py index 15516b758..1e2ec181e 100755 --- a/scripts/copy_from_pqclean/copy_from_pqclean.py +++ b/scripts/copy_from_pqclean/copy_from_pqclean.py @@ -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'