Class Ed25519KeyGenSpec

java.lang.Object
zeroecho.core.alg.ed25519.Ed25519KeyGenSpec
All Implemented Interfaces:
AlgorithmKeySpec

public final class Ed25519KeyGenSpec extends Object implements AlgorithmKeySpec

Specification for Ed25519 key-pair generation

Marker AlgorithmKeySpec used to request generation of Ed25519 key pairs.

Ed25519 has no tunable domain parameters (e.g., key size or curve options). Therefore, this spec acts as a simple token to identify the algorithm when invoking key generation. All instances are equivalent; applications should typically use defaultSpec().

Usage example

// Generate a new Ed25519 key pair using the default spec
KeyPair kp = session.keyBuilders().asymmetric()
    .generateKeyPair("Ed25519", Ed25519KeyGenSpec.defaultSpec());

Thread-safety

The default spec instance is immutable and safe to reuse across threads.
Since:
1.0
  • Constructor Details

    • Ed25519KeyGenSpec

      public Ed25519KeyGenSpec()
      Creates the parameter-free Ed25519 key-generation specification.
  • Method Details

    • defaultSpec

      public static Ed25519KeyGenSpec defaultSpec()
      Returns the canonical, shared default spec instance for Ed25519 key generation.

      Since Ed25519 has no configurable parameters, this singleton should be used for all generation requests. Applications may still construct additional instances, but they are functionally identical.

      Returns:
      the default Ed25519 key generation spec