Package org.spongycastle.crypto

Examples of org.spongycastle.crypto.Digest.update()


 
    public static byte[] ripemd160(byte[] message) {
      Digest digest = new RIPEMD160Digest();
        if (message != null) {
          byte[] resBuf = new byte[digest.getDigestSize()];
          digest.update(message, 0, message.length);
          digest.doFinal(resBuf, 0);
          return resBuf;
      }
      throw new NullPointerException("Can't hash a NULL value");
    }
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.