Class ECDHN

java.lang.Object
com.jcraft.jsch.jce.ECDHN
All Implemented Interfaces:
ECDH
Direct Known Subclasses:
ECDH256, ECDH384, ECDH521

public class ECDHN
extends java.lang.Object
implements ECDH
  • Constructor Summary

    Constructors
    Constructor Description
    ECDHN()  
  • Method Summary

    Modifier and Type Method Description
    byte[] getQ()  
    byte[] getSecret​(byte[] r, byte[] s)  
    void init​(int size)  
    boolean validate​(byte[] r, byte[] s)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ECDHN

      public ECDHN()
  • Method Details

    • init

      public void init​(int size) throws java.lang.Exception
      Specified by:
      init in interface ECDH
      Throws:
      java.lang.Exception
    • getQ

      public byte[] getQ() throws java.lang.Exception
      Specified by:
      getQ in interface ECDH
      Throws:
      java.lang.Exception
    • getSecret

      public byte[] getSecret​(byte[] r, byte[] s) throws java.lang.Exception
      Specified by:
      getSecret in interface ECDH
      Throws:
      java.lang.Exception
    • validate

      public boolean validate​(byte[] r, byte[] s) throws java.lang.Exception
      Specified by:
      validate in interface ECDH
      Throws:
      java.lang.Exception