Variable: Lms
constLms:object
Defined in: lms.ts:36
Type Declaration
inspectPublicKey()
readonlyinspectPublicKey(publicKey):HssPublicKeyInfo
Reads the parameter set of an HSS public key without verifying anything.
Parameters
publicKey
Uint8Array
Returns
isValid()
readonlyisValid(publicKey,message,signature):boolean
Like Lms.verify but returns false for a well-formed, invalid signature. Structural problems still throw.
Parameters
publicKey
Uint8Array
message
Uint8Array
signature
Uint8Array
Returns
boolean
verify()
readonlyverify(publicKey,message,signature):void
Verifies an HSS signature over message.
Parameters
publicKey
Uint8Array
HSS public key: u32(levels) || LMS public key (60 bytes), as in RFC 8554 §6.3.
message
Uint8Array
signature
Uint8Array
HSS signature: u32(levels - 1) || (LMS signature || LMS public key)* || LMS signature.
Returns
void
Throws
if the signature is well formed but does not verify.
Throws
if the public key is structurally invalid.
Throws
if the signature is truncated, has trailing bytes, or its level count disagrees with the key.
Throws
for parameter sets outside the supported list.