Class Ed25519Algorithm
Ed25519 Digital Signature Algorithm
Implementation of the Edwards-curve Digital Signature Algorithm (Ed25519). This class integrates Ed25519 into the ZeroEcho cryptographic framework as anAbstractCryptoAlgorithm.
Ed25519 is a modern, high-security, high-performance signature scheme with fixed-size keys and signatures. It is resistant to a wide class of implementation pitfalls and side-channel attacks, making it a recommended choice for new protocols.
Capabilities
KeyUsage.SIGN: Creates aSignatureContextbound to aPrivateKey. This context produces 64-byte Ed25519 signatures.KeyUsage.VERIFY: Creates aSignatureContextbound to aPublicKey. This context verifies 64-byte Ed25519 signatures.
Key material
- Generation via
Ed25519KeyGenSpecandEd25519KeyGenBuilder. - Import of public keys via
Ed25519PublicKeySpecandEd25519PublicKeyBuilder. - Import of private keys via
Ed25519PrivateKeySpecandEd25519PrivateKeyBuilder.
Thread-safety
This algorithm definition is immutable and safe to share across threads. The createdSignatureContext instances are not
guaranteed to be thread-safe.- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs the Ed25519 algorithm definition and registers its roles and key builders. -
Method Summary
Modifier and TypeMethodDescriptionList<ParameterSetDescriptor<? extends AlgorithmKeySpec>> Returns the discoverable parameter sets (or parameterized templates) supported by this algorithm.Methods inherited from class AbstractCryptoAlgorithm
capabilityMethods inherited from class CryptoAlgorithm
addCapability, asymmetricKeyPairGenerator, bindContext, createContext, displayName, id, keyOperations, listCapabilities, priority, privateKeyImporter, providerName, publicKeyImporter, registerAsymmetricKeyPairGenerator, registerPrivateKeyImporter, registerPublicKeyImporter, registerSymmetricKeyGenerator, registerSymmetricKeyImporter, requiresStatefulSigning, roles, supports, symmetricKeyGenerator, symmetricKeyImporter
-
Constructor Details
-
Ed25519Algorithm
public Ed25519Algorithm()Constructs the Ed25519 algorithm definition and registers its roles and key builders.This includes:
- Binding SIGN (with
PrivateKey) toEd25519SignatureContext. - Binding VERIFY (with
PublicKey) toEd25519SignatureContext. - Registering key builders for generation and import of Ed25519 key material.
- Binding SIGN (with
-
-
Method Details
-
parameterSets
Description copied from class:CryptoAlgorithmReturns the discoverable parameter sets (or parameterized templates) supported by this algorithm.Callers (UIs, provisioning tools, policy engines) use this list to present users with valid, named key-generation options without prior knowledge of the concrete algorithm. Each entry is either a pre-built
ParameterSetDescriptor.Concrete(ready spec) or aParameterSetDescriptor.Template(user-supplied arguments produce the spec).The default implementation returns an empty list. Algorithms with finite, enumerable parameter sets should override this method. Overrides must return immutable lists in stable order, with unique nonblank descriptor identifiers. Registry loading validates a snapshot; external providers remain responsible for maintaining the contract on subsequent calls. Implementations may use
ParameterSetDescriptor.snapshot(List)to validate and copy their list.- Overrides:
parameterSetsin classCryptoAlgorithm- Returns:
- immutable list of parameter set descriptors; never
null
-