INNER CODE UNIT · Python

complete_config

open-quantum-safe/oqs-provider · oqs-template/generate.py:100

def complete_config(config):
   for kem in config['kems']:
      bits_level = nist_to_bits(get_kem_nistlevel(kem))
      if bits_level == None:
          print("Cannot find security level for {:s} {:s}".format(kem['family'], kem['name_group']))
          exit(1)
      kem['bit_security'] = bits_level

      if 'nid_hybrid' in kem:
          # now add hybrid_nid to hybrid_groups
          phyb = {}
          if (bits_level == 128):
              phyb['hybrid_group']='p256'
          elif (bits_level == 192):
              phyb['hybrid_group']='p384'
          elif (bits_level == 256):
              phyb['hybrid_group']='p521'
          else:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…