public final class EdDSAContext extends Object implements AlgorithmParameterSpec
To set the context for verification and signing, first create an instance of
this class and then call
AbstractEdDSASignature.engineSetParameter(AlgorithmParameterSpec)
to
set the context:
byte[] ctx = ...; Signature eddsa = Signature.createInstance("Ed25519ctx", ECCelerate.getInstance()); EdDSAContext context = new EdDSAContext(ctx); eddsa.setParameter(context);
References:
[1] S. Josefsson, I. Liusvaara, "Edwards-curve Digital Signature Algorithm (EdDSA)", https://tools.ietf.org/html/rfc8032
Constructor and Description |
---|
EdDSAContext()
Creates an empty context.
|
EdDSAContext(byte[] context) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContext()
Returns the context.
|
int |
getLength()
Returns the length of the context.
|
Copyright © 2011–2022 Stiftung SIC. All rights reserved.