Package org.vngx.jsch.algorithm

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


      case SSH_DSS: {
        try {
          SignatureDSA dsa = AlgorithmManager.getManager().createAlgorithm(Algorithms.SIGNATURE_DSS);
          dsa.setPrvKey(_prvKeyDSA, _pDSA, _qDSA, _gDSA);
          dsa.update(data);
          byte[] sig = dsa.sign();
          byte[] buffer = new byte[KeyType.SSH_DSS.toString().length() + 4 + sig.length + 4];
          Buffer buf = new Buffer(buffer);
          buf.putString(KeyType.SSH_DSS.getBytes());
          buf.putString(sig);
          return buffer;
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.