diff options
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUConnector.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUConnector.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUConnector.java index c9e3fce..8f75d03 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUConnector.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUConnector.java @@ -394,7 +394,7 @@ public class BKUConnector implements LocalConnector ver_temp_str = ver_temp_str.replaceFirst("CertAlgReplace", cert_alg);
ver_temp_str = ver_temp_str.replaceFirst("TemplateQualifyingPropertiesReplace", sig_prop_str);
- byte[] sig_prop_code = CodingHelper.buildDigest(sig_prop_str.getBytes("UTF-8"));
+ byte[] sig_prop_code = CodingHelper.buildDigest(sig_prop_str.getBytes("UTF-8"), "sha1");
// TODO hotfix - already deprecated
if (neue_bku)
@@ -416,7 +416,7 @@ public class BKUConnector implements LocalConnector logger_.debug("\n--------------------- ETSI properties string to be hashed: stop ---------------------");
final byte [] bytes_to_be_hashed = string_to_be_hashed.getBytes("UTF-8");
- sig_prop_code = CodingHelper.buildDigest(bytes_to_be_hashed);
+ sig_prop_code = CodingHelper.buildDigest(bytes_to_be_hashed, "sha1");
}
String sig_prop_hash = CodingHelper.encodeBase64(sig_prop_code);
@@ -432,7 +432,7 @@ public class BKUConnector implements LocalConnector ver_temp_str = ver_temp_str.replaceFirst("SignatureValueReplace", sigObject.getSignationValue());
ver_temp_str = ver_temp_str.replaceFirst("X509CertificateReplace", x509_cert_string);
byte[] data_value = normalizedText.getBytes("UTF-8");
- byte[] data_value_hash = CodingHelper.buildDigest(data_value);
+ byte[] data_value_hash = CodingHelper.buildDigest(data_value, "sha1");
String object_data_hash = CodingHelper.encodeBase64(data_value_hash);
// String object_data = new String(data_value);
if (logger_.isDebugEnabled())
|