Skip to content

Commit

Permalink
fix(key)!: Add grade for PQC algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
c0r0n3r committed Nov 13, 2023
1 parent acc33d3 commit a6813af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cryptodatahub/common/key-exchange.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"HYBRID_PQS": {
"name": "hybrid post-quantum safe",
"long_name": null,
"vulnerabilities": null,
"vulnerabilities": [],
"forward_secret": true
},
"SRP": {
Expand Down
2 changes: 2 additions & 0 deletions cryptodatahub/common/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def __attrs_post_init__(self):
Vulnerability(attack_type=AttackType.DOS_ATTACK, grade=Grade.WEAK, named=AttackNamed.DHEAT_ATTACK)
)
gradeables = [_PublicKeySizeGradeable(gradeables)]
elif self.key_type == KeyExchange.HYBRID_PQS:
gradeables = []
else:
gradeables = None

Expand Down

0 comments on commit a6813af

Please sign in to comment.