doPut(checksumFile, checksumDestination);
}
private byte[] createChecksumFile(File src, String algorithm, int checksumlength) {
HashValue hash = HashUtil.createHash(src, algorithm);
String formattedHashString = formatHashString(hash.asHexString(), checksumlength);
try {
return formattedHashString.getBytes("US-ASCII");
} catch (UnsupportedEncodingException e) {
throw UncheckedException.throwAsUncheckedException(e);
}