ByteArrayOutputStream bos = null;
AlgorithmParameterSpec[] datastore = param.getNestedParams();
bos = new ByteArrayOutputStream();
for (int i = 0; i < datastore.length; i++) {
DigestAlgorithmParameter dataP = (DigestAlgorithmParameter) datastore[i];
byte[] tmpData = valueOf(dataP);
bos.write(tmpData, 0, tmpData.length);
if (param.getDelimiter() != null && (i + 1 < datastore.length)) {
bos.write(param.getDelimiter(), 0, param.getDelimiter().length);
}