MCPcopy Create free account
hub / github.com/demoth/jake2 / engineUpdate

Method engineUpdate

qcommon/src/main/java/jake2/qcommon/MD4.java:109–116  ·  view source on GitHub ↗

Continues an MD4 message digest using the input byte.

(byte b)

Source from the content-addressed store, hash-verified

107 * Continues an MD4 message digest using the input byte.
108 */
109 public void engineUpdate(byte b) {
110 // compute number of bytes still unhashed; ie. present in buffer
111 int i = (int) (count % BLOCK_LENGTH);
112 count++; // update number of bytes
113 buffer[i] = b;
114 if (i == BLOCK_LENGTH - 1)
115 transform(buffer, 0);
116 }
117
118 /**
119 * MD4 block update operation.

Callers 3

testMethod · 0.95
engineDigestMethod · 0.95
Com_BlockChecksumMethod · 0.95

Calls 1

transformMethod · 0.95

Tested by 1

testMethod · 0.76