diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2017-03-08 12:58:41 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2017-03-08 12:58:41 +0100 |
commit | b64a634adeda3659ea34429854f79e3d9ece3957 (patch) | |
tree | f5e7313a321b27e8a1708a9348c1f84b380f2218 /id | |
parent | 30db55cc7a7a9bfa67b321e66bb8d1b1abf7afc9 (diff) | |
download | moa-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')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/AbstractCredentialProvider.java | 2 |
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."); |