Class XWingPrivateKeySpec

java.lang.Object
zeroecho.core.alg.xwing.XWingPrivateKeySpec
All Implemented Interfaces:
Destroyable, AlgorithmKeySpec

public final class XWingPrivateKeySpec extends Object implements AlgorithmKeySpec, Destroyable
Encoded representation of an X-Wing private key as its 32-byte seed.

X-Wing uses a raw seed encoding for private keys (no DER/PKCS#8), as BouncyCastle 1.86 has no JCA/JCE provider binding for X-Wing. The seed allows deterministic reconstruction of the full X-Wing private key via XWingPrivateKeyParameters.

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

Since:
1.0
  • Constructor Details

    • XWingPrivateKeySpec

      public XWingPrivateKeySpec(byte[] seed)
      Constructs a new spec from a raw X-Wing private key seed.
      Parameters:
      seed - 32-byte private key seed
      Throws:
      NullPointerException - if seed is null
      IllegalArgumentException - if the seed is not exactly 32 bytes
  • Method Details