Code example for MessageDigest

Methods: digestgetDigestLength

0
    } 
     
    public void digest(boolean reset, byte[] buffer, int offset) {
	if(reset != true) throw new UnsupportedOperationException();
	try { 
	    digest.digest(buffer, offset, digest.getDigestLength());
	} catch (DigestException e) {
	    throw new IllegalStateException(e.toString());
	} 
    } 
     
//     protected final int blockIndex() { 
// 	return (int)((count / 8) & 63); 
//     } 
     
//     public void finish() { 
// 	byte bits[] = new byte[8]; 
//         int i, j; 
//         for (i = 0; i < 8; i++) { 
//             bits[i] = (byte)((count >>> (((7 - i) << 3))) & 0xff); 
Contextual code suggestions in your IDE  Get Codota for Java