Skip to content

Commit

Permalink
Update generation script to handle new characters
Browse files Browse the repository at this point in the history
  • Loading branch information
SWilson4 committed Feb 29, 2024
1 parent 0106fd4 commit 437dd8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oqs-template/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_sig_nistlevel(family, alg):
# hacks to match names
def matches(name, alg):
def simplify(s):
return s.lower().replace('_', '').replace('-', '').replace('+', '')
return s.lower().replace('_', '').replace('-', '').replace('+', '').replace(' ', '').replace('(', '').replace(')', '')
if simplify(name) == simplify(alg['name']): return True
return False
# find the variant that matches
Expand Down
2 changes: 1 addition & 1 deletion oqs-template/generatehelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_sig_nistlevel(family, alg, docsdir):
# hacks to match names
def matches(name, alg):
def simplify(s):
return s.lower().replace('_', '').replace('-', '').replace('+', '')
return s.lower().replace('_', '').replace('-', '').replace('+', '').replace(' ', '').replace('(', '').replace(')', '')
if simplify(name) == simplify(alg['name']): return True
return False
# find the variant that matches
Expand Down

0 comments on commit 437dd8e

Please sign in to comment.