java.lang.Object
net.i2p.crypto.eddsa.spec.EdDSAPublicKeySpec
All Implemented Interfaces:
KeySpec

public class EdDSAPublicKeySpecextends Object implements KeySpec
EdDSA public key specification.
  • Field Details

  • Constructor Details

    • EdDSAPublicKeySpec

      public EdDSAPublicKeySpec(byte[] pk, EdDSAParameterSpec spec)
      Create a new EdDSA public key specification from a byte array.
      Parameters:
      pk - the public key
      spec - the parameter specification for this key
      Throws:
      IllegalArgumentException - if key length is wrong
    • EdDSAPublicKeySpec

      public EdDSAPublicKeySpec(GroupElement aPoint, EdDSAParameterSpec spec)
      Public key specification from a group element.
      Parameters:
      aPoint - The public key group element.
      spec - The parameter specification for this key.
  • Method Details

    • getA

      public GroupElement getA()
      Returns the public key group element.
      Returns:
      the public key group element
    • getNegativeA

      public GroupElement getNegativeA()
      Returns the negation of the public key group element. The result is lazily computed and cached.
      Returns:
      the negated public key group element
    • getParams

      public EdDSAParameterSpec getParams()
      Returns the parameter specification for this key.
      Returns:
      the parameter specification