Skip to content

Add Key Security Strength Check Logic#56

Open
Guiliano99 wants to merge 21 commits intosiemens:mainfrom
Guiliano99:AddKeySecStrengthCheck
Open

Add Key Security Strength Check Logic#56
Guiliano99 wants to merge 21 commits intosiemens:mainfrom
Guiliano99:AddKeySecStrengthCheck

Conversation

@Guiliano99
Copy link
Contributor

@Guiliano99 Guiliano99 commented Feb 6, 2026

Add functionality for estimating the security strength (in bits) of various cryptographic key types, including post-quantum, traditional, and hybrid keys. Other small fixes.

Description

  • Added security_utils.py for the checks, but only exposes one function inside the keyutils.
  • Introduced the Get Key Security Strength Robot Framework keyword in resources/keyutils.py, which uses the new utility to return the estimated security strength for a given key.
  • Add not_keyword decorator to compute_hss_signature_index function.
  • Added nist_level properties to several PQ key classes (PQSignaturePublicKey, PQSignaturePrivateKey, MLDSAPublicKey, SLHDSAPublicKey) to expose claimed or derived NIST security levels. [
  • Added key_bit_security properties to stateful hash signature key classes (PQHashStatefulSigPublicKey, PQHashStatefulSigPrivateKey, XMSSPublicKey, XMSSMTPublicKey, HSSPublicKey) to provide estimated security strength in bits, based on algorithm parameters.
  • Added type annotations for algorithm OID mappings in resources/oidutils.py.
  • Updated OID name mappings to include additional hash algorithms.

Motivation and Context

  • Better Policy check tests for hybrid certificates and RFC 9883.

How Has This Been Tested?

unit tests

Verified with

NIST guidelines: NIST SP 800-57 Part 1 Rev. 5, NIST SP 800-227 (KEMs Recommendations)

@Guiliano99 Guiliano99 requested a review from ralienpp as a code owner February 6, 2026 07:58
@Guiliano99 Guiliano99 marked this pull request as draft February 9, 2026 17:53
@Guiliano99 Guiliano99 force-pushed the AddKeySecStrengthCheck branch from 2840450 to 0f8acd6 Compare February 10, 2026 12:34
@Guiliano99 Guiliano99 force-pushed the AddKeySecStrengthCheck branch from aab976b to 2780266 Compare February 10, 2026 12:50
@Guiliano99 Guiliano99 marked this pull request as ready for review February 10, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant