Class ECDHN

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

public class ECDHN extends Object implements ECDH
  • Field Details

  • Constructor Details

    • ECDHN

      public ECDHN()
  • Method Details

    • init

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

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

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

      public boolean validate(byte[] r, byte[] s) throws Exception
      Specified by:
      validate in interface ECDH
      Throws:
      Exception
    • toPoint

      private byte[] toPoint(byte[] r_array, byte[] s_array)
    • insert0

      private byte[] insert0(byte[] buf)
    • chop0

      private byte[] chop0(byte[] buf)
    • bzero

      private void bzero(byte[] buf)