Class StatefulSigningGuard
java.lang.Object
zeroecho.core.alg.common.sig.StatefulSigningGuard
Fail-closed containment for stateful signing until durable leaf reservation is
available. Verification and key import are unaffected. This class is stateless
and thread-safe; it never encodes a key or invokes a cryptographic provider.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisStateful(String algorithm) Identifies LMS/HSS and XMSS/XMSSMT names and their supported OID families.static voidrequireStateless(String algorithm, Key key) Checks both declared algorithm and actual key identity without using the key.
-
Method Details
-
isStateful
Identifies LMS/HSS and XMSS/XMSSMT names and their supported OID families. Canonical identities are checked by family, without interpreting their namespace or parameters as provider aliases. Work and auxiliary memory are O(n) in the identifier length.- Parameters:
algorithm- algorithm name or OID;nullmeans unspecified- Returns:
- whether the identifier is unavailable for signing
-
requireStateless
Checks both declared algorithm and actual key identity without using the key.- Parameters:
algorithm- declared name or OID, ornullkey- actual key, ornullwhen only metadata is available- Throws:
UnsupportedRoleException- if stateful signing is requested
-