Fix ECDH parameter (cofactor is alsway 1)
This commit is contained in:
parent
b3f8ab7bc5
commit
34c2d638d5
@ -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),
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user