INNER CODE UNIT · Python
all_pq_groups
open-quantum-safe/oqs-provider · scripts/common.py:71
def all_pq_groups(first = 0):
ag = ""
half = len(key_exchanges)//2
if (first == 0):
kexs = key_exchanges[:half]
else:
kexs = key_exchanges[half:]
for kex in kexs:
if len(ag)==0:
ag = kex
else:
ag = ag + ":" + kex
return ag
def run_subprocess(command, working_dir='.', expected_returncode=0, input=None, env=os.environ):
"""
Helper function to run a shell command and report success/failure