Continues an MD4 message digest using the input byte.
(byte b)
| 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. |