diff --git a/src/fr/anssi/smartpgp/PGPKey.java b/src/fr/anssi/smartpgp/PGPKey.java index cc6a8f3..13efb66 100644 --- a/src/fr/anssi/smartpgp/PGPKey.java +++ b/src/fr/anssi/smartpgp/PGPKey.java @@ -810,7 +810,7 @@ public final class PGPKey { } ++off; - final KeyAgreement ka = KeyAgreement.getInstance(KeyAgreement.ALG_EC_SVDP_DHC_PLAIN, false); + final KeyAgreement ka = KeyAgreement.getInstance(KeyAgreement.ALG_EC_SVDP_DH_PLAIN, false); ka.init(priv); final short len = ka.generateSecret(buf, off, (short)(lc - off), diff --git a/src/fr/anssi/smartpgp/SecureMessaging.java b/src/fr/anssi/smartpgp/SecureMessaging.java index bbcca0e..3229313 100644 --- a/src/fr/anssi/smartpgp/SecureMessaging.java +++ b/src/fr/anssi/smartpgp/SecureMessaging.java @@ -169,7 +169,7 @@ public final class SecureMessaging { return 0; } - final KeyAgreement ka = KeyAgreement.getInstance(KeyAgreement.ALG_EC_SVDP_DHC_PLAIN, false); + final KeyAgreement ka = KeyAgreement.getInstance(KeyAgreement.ALG_EC_SVDP_DH_PLAIN, false); ka.init(eskcard);