// System.out.println("hashdata: "+HBCIUtils.data2hex(retArray));
// hash-verfahren h�ngt von rdh-profil ab
MessageDigest dig;
SignatureParamSpec hashSpec=((AbstractRDHPassport)(passport)).getSignatureParamSpec();
String provider=hashSpec.getProvider();
if (provider!=null) {
dig=MessageDigest.getInstance(hashSpec.getHashAlg(), provider);
} else {
dig=MessageDigest.getInstance(hashSpec.getHashAlg());
}
return dig.digest(retArray);
} catch (Exception e) {
throw new HBCI_Exception("*** error while calculating hash value",e);
}