Package gnu.crypto.hash

Examples of gnu.crypto.hash.RipeMD160


        }
    }
   
    final byte[] ripemd160Hash(String p) {
        //ripemd 160 hash
        final RipeMD160 ripemd160 = new RipeMD160();
        final byte[] data = p.getBytes();
        ripemd160.update(data, 0, data.length);
        final byte[] hash = ripemd160.digest();
        return hash;
    }
View Full Code Here


    buffer[setLength] = (byte)keyType;   
    int keyLength = key.write(buffer, setLength + 1);

    // Run additional 16% faster using direct class versus
    // HashFactory.getInstance("RIPEMD-160").
    RipeMD160 hash = new RipeMD160();
    hash.update(buffer, 0, setLength);
    hash.update(buffer, setLength, keyLength + 1);
    return hash.digest();
  }
View Full Code Here

    buffer[setLength] = (byte)keyType;   
    int keyLength = key.write(buffer, setLength + 1);

    // Run additional 16% faster using direct class versus
    // HashFactory.getInstance("RIPEMD-160").
    RipeMD160 hash = new RipeMD160();
    hash.update(buffer, 0, setLength);
    hash.update(buffer, setLength, keyLength + 1);
    return hash.digest();
  }
View Full Code Here

    buffer[setLength] = (byte)keyType;   
    int keyLength = key.write(buffer, setLength + 1);

    // Run additional 16% faster using direct class versus
    // HashFactory.getInstance("RIPEMD-160").
    RipeMD160 hash = new RipeMD160();
    hash.update(buffer, 0, setLength);
    hash.update(buffer, setLength, keyLength + 1);
    return hash.digest();
  }
View Full Code Here

    buffer[setLength] = (byte)keyType;   
    int keyLength = key.write(buffer, setLength + 1);

    // Run additional 16% faster using direct class versus
    // HashFactory.getInstance("RIPEMD-160").
    RipeMD160 hash = new RipeMD160();
    hash.update(buffer, 0, setLength);
    hash.update(buffer, setLength, keyLength + 1);
    return hash.digest();
  }
View Full Code Here

    buffer[setLength] = (byte)keyType;   
    int keyLength = key.write(buffer, setLength + 1);

    // Run additional 16% faster using direct class versus
    // HashFactory.getInstance("RIPEMD-160").
    RipeMD160 hash = new RipeMD160();
    hash.update(buffer, 0, setLength);
    hash.update(buffer, setLength, keyLength + 1);
    return hash.digest();
  }
View Full Code Here

TOP

Related Classes of gnu.crypto.hash.RipeMD160

Copyright © 2018 www.massapicom. 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.