Fix ECDH parameter (cofactor is alsway 1)

This commit is contained in:
Arnaud Fontaine
2016-11-21 18:29:54 +01:00
parent b3f8ab7bc5
commit 34c2d638d5
2 changed files with 2 additions and 2 deletions

View File

@@ -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),