return value;
}
private StandardStringDigester getDigester(final CipherAlgorithm cipherAlgorithm) {
StandardStringDigester digester = new StandardStringDigester();
if (cipherAlgorithm.getAlgorithm().startsWith("S-")) {
// Salted ...
digester.setAlgorithm(cipherAlgorithm.getAlgorithm().replaceFirst("S\\-", ""));
digester.setIterations(saltIterations);
digester.setSaltSizeBytes(saltSizeBytes);
digester.setInvertPositionOfPlainSaltInEncryptionResults(ipopsier);
digester.setInvertPositionOfSaltInMessageBeforeDigesting(iposimbd);
digester.setUseLenientSaltSizeCheck(ulssc);
} else {
// Not salted ...
digester.setAlgorithm(cipherAlgorithm.getAlgorithm());
digester.setIterations(1);
digester.setSaltSizeBytes(0);
}
digester.setStringOutputType(CommonUtils.STRING_OUTPUT_TYPE_HEXADECIMAL);
return digester;
}