Package zeroecho.core.alg.ed448
Class Ed448Algorithm
java.lang.Object
zeroecho.core.CryptoAlgorithm
zeroecho.core.alg.AbstractCryptoAlgorithm
zeroecho.core.alg.ed448.Ed448Algorithm
Ed448 Digital Signature Algorithm
Implementation of the Edwards-curve Digital Signature Algorithm over the Curve448 curve, commonly referred to as Ed448.Ed448 is a modern elliptic curve signature scheme standardized in RFC 8032. It provides high security margins (224-bit classical strength) and is designed for simplicity, determinism, and resilience against common implementation pitfalls such as malleability.
Roles
KeyUsage.SIGN: Contexts that sign messages using a private key, producing fixed-length Ed448 signatures.KeyUsage.VERIFY: Contexts that verify Ed448 signatures using the corresponding public key.
Key material
Ed448KeyGenSpec: Generation of new key pairs with defined parameters.Ed448PublicKeySpec: Encoded form of Ed448 public keys (X.509 format).Ed448PrivateKeySpec: Encoded form of Ed448 private keys (PKCS#8 format).
Thread-safety
Instances of this class are immutable and safe to reuse across threads. Context objects created through capabilities are not necessarily thread-safe.
// Example: generate a key pair and sign data
CryptoAlgorithm ed448 = new Ed448Algorithm();
KeyPair kp = ed448.generateKeyPair(Ed448KeyGenSpec.defaultSpec());
SignatureContext signer = ed448.create(KeyUsage.SIGN, kp.getPrivate(), null);
byte[] sig = signer.sign(data);
SignatureContext verifier = ed448.create(KeyUsage.VERIFY, kp.getPublic(), null);
boolean ok = verifier.verify(data, sig);
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class zeroecho.core.CryptoAlgorithm
CryptoAlgorithm.AsymBuilderInfo, CryptoAlgorithm.SymBuilderInfo -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class zeroecho.core.alg.AbstractCryptoAlgorithm
capabilityMethods inherited from class zeroecho.core.CryptoAlgorithm
addCapability, asymmetricBuildersInfo, asymmetricKeyBuilder, bind, create, displayName, generateKeyPair, generateKeyPair, generateSecret, id, importPrivate, importPublic, importSecret, listCapabilities, priority, providerName, registerAsymmetricKeyBuilder, registerSymmetricKeyBuilder, roles, supports, symmetricBuildersInfo, symmetricKeyBuilder
-
Constructor Details
-
Ed448Algorithm
public Ed448Algorithm()Constructs and wires the Ed448 algorithm definition.The constructor registers:
- Roles:
KeyUsage.SIGNusingSignatureContextwith aPrivateKeyandVoidSpec(no additional parameters).KeyUsage.VERIFYusingSignatureContextwith aPublicKeyandVoidSpec.
- Asymmetric key builders:
Ed448KeyGenSpecviaEd448KeyGenBuilder, defaulting toEd448KeyGenSpec.defaultSpec().Ed448PublicKeySpecviaEd448PublicKeyBuilder.Ed448PrivateKeySpecviaEd448PrivateKeyBuilder.
No exceptions are thrown by this constructor. Any provider initialization needed for signing or verification is deferred to the creation of
SignatureContextinstances.// Example: instantiate and obtain a signer CryptoAlgorithm ed448 = new Ed448Algorithm(); SignatureContext signer = ed448.create(KeyUsage.SIGN, privateKey, null); - Roles:
-