Package org.vngx.jsch.algorithm

Examples of org.vngx.jsch.algorithm.SignatureDSA.verify()


      // Create SignatureDSA instance for verifying server host
      SignatureDSA sig = AlgorithmManager.getManager().createAlgorithm(Algorithms.SIGNATURE_DSS, _session);
      sig.setPubKey(y, p, q, g);
      sig.update(_H);
      return sig.verify(signatureOfH);
    } catch(Exception e) {
      throw new KexException("Failed to verify host key (DSA)", e);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.