Class XmssPrivateKeySpec

java.lang.Object
zeroecho.core.alg.xmss.XmssPrivateKeySpec
All Implemented Interfaces:
Destroyable, AlgorithmKeySpec

public final class XmssPrivateKeySpec extends Object implements AlgorithmKeySpec, Destroyable
Encoded representation of an XMSS private key in PKCS#8 format.

XMSS private keys are stateful with a finite signing capacity. The PKCS#8 encoding captures the current leaf-index state. Callers must persist the updated key state after every signing operation to prevent key-state reuse. See XmssSignatureContext for lifecycle guidance.

This class implements Destroyable to allow zeroing of key material when the spec is no longer needed.

Since:
1.0
  • Constructor Details

    • XmssPrivateKeySpec

      public XmssPrivateKeySpec(byte[] pkcs8Der)
      Constructs a new spec from PKCS#8 DER encoded XMSS private key bytes.
      Parameters:
      pkcs8Der - PKCS#8 DER bytes
      Throws:
      NullPointerException - if pkcs8Der is null
  • Method Details