Class EdDSASigParameterSpec

java.lang.Object
org.bouncycastle.jcajce.spec.EdDSASigParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class EdDSASigParameterSpec extends Object implements AlgorithmParameterSpec
ParameterSpec for EdDSA signature to allow for context and preHash.
  • 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.