(byte[] digestBits)
| 188 | return out.toString(); |
| 189 | } |
| 190 | public static String getDigestHex(byte[] digestBits) { |
| 191 | StringBuffer out = new StringBuffer(); |
| 192 | for (int i = 0; i < digestBits.length; i++) { |
| 193 | out.append(StringUtils.hexByteToString(digestBits[i])); |
| 194 | } |
| 195 | return out.toString(); |
| 196 | } |
| 197 | // Puts the specified word (val) into the buffer (buf) at position off using big endian byte ordering |
| 198 | public static void putWordBE(byte[] buf, int off, int val) { |
| 199 | buf[off] = (byte) ((val >> 8) & 0x000000FF); |
no test coverage detected