aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2017-03-08 12:58:41 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2017-03-08 12:58:41 +0100
commitb64a634adeda3659ea34429854f79e3d9ece3957 (patch)
treef5e7313a321b27e8a1708a9348c1f84b380f2218 /id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols
parent30db55cc7a7a9bfa67b321e66bb8d1b1abf7afc9 (diff)
downloadmoa-id-spss-b64a634adeda3659ea34429854f79e3d9ece3957.tar.gz
moa-id-spss-b64a634adeda3659ea34429854f79e3d9ece3957.tar.bz2
moa-id-spss-b64a634adeda3659ea34429854f79e3d9ece3957.zip
update hash algorithm for ECC signing keys to SHA256
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/AbstractCredentialProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/AbstractCredentialProvider.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/AbstractCredentialProvider.java
index df4866c30..af9ba0180 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/AbstractCredentialProvider.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/AbstractCredentialProvider.java
@@ -200,7 +200,7 @@ public abstract class AbstractCredentialProvider {
signer.setSignatureAlgorithm(SignatureConstants.ALGO_ID_SIGNATURE_RSA_SHA256);
} else if (privatekey instanceof ECPrivateKey) {
- signer.setSignatureAlgorithm(SignatureConstants.ALGO_ID_SIGNATURE_ECDSA_SHA1);
+ signer.setSignatureAlgorithm(SignatureConstants.ALGO_ID_SIGNATURE_ECDSA_SHA256);
} else {
Logger.warn("Could NOT evaluate the Private-Key type from " + credentials.getEntityId() + " credential.");