Package org.bouncycastle.jcajce.spec
Class EdDSASigParameterSpec
java.lang.Object
org.bouncycastle.jcajce.spec.EdDSASigParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
ParameterSpec for EdDSA signature to allow for context and preHash.
-
Constructor Summary
ConstructorsConstructorDescriptionEdDSASigParameterSpec
(boolean preHash) Base constructor.EdDSASigParameterSpec
(boolean preHash, byte[] context) Base constructor. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Return the context to be used for the signature.
-
Constructor Details
-
EdDSASigParameterSpec
public EdDSASigParameterSpec(boolean preHash) Base constructor.- Parameters:
preHash
- whether or not the signature is a preHash one.
-
EdDSASigParameterSpec
public EdDSASigParameterSpec(boolean preHash, byte[] context) Base constructor.- Parameters:
preHash
- whether or not the signature is a preHash one.context
- context to be added to the signature calculation.
-
-
Method Details
-
getContext
public byte[] getContext()Return the context to be used for the signature.- Returns:
- the signature context.
-