diff options
author | Werner Koch <wk@gnupg.org> | 2011-01-31 15:44:24 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-01-31 15:44:24 +0100 |
commit | 328a642aa5ed971870a2667b06307f760fa251dc (patch) | |
tree | 04fc123c7eedea823eeaeefaf56f19ce7598d2bd /g10/pubkey-enc.c | |
parent | Reworked the ECC changes to better fit into the Libgcrypt API. (diff) | |
download | gnupg2-328a642aa5ed971870a2667b06307f760fa251dc.tar.xz gnupg2-328a642aa5ed971870a2667b06307f760fa251dc.zip |
Fixed the ECC interface to Libgcrypt to be ABI compatible with the previous version.
Quite some changes were needed but in the end we have less code than
before. Instead of trying to do everything with MPIs and pass them
back and forth between Libgcrypt and GnuPG, we know use the
S-expression based interface and make heavy use of our opaque MPI
feature.
Encryption, decryption, signing and verification work with
self-generared keys.
Import and export does not yet work; thus it was not possible to check
the test keys at https://sites.google.com/site/brainhub/pgpecckeys .
Diffstat (limited to '')
-rw-r--r-- | g10/pubkey-enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/pubkey-enc.c b/g10/pubkey-enc.c index 43f5419db..d45b4a217 100644 --- a/g10/pubkey-enc.c +++ b/g10/pubkey-enc.c @@ -176,7 +176,7 @@ get_it (PKT_pubkey_enc *enc, DEK *dek, PKT_public_key *sk, u32 *keyid) if (!enc->data[0] || !enc->data[1]) err = gpg_error (GPG_ERR_BAD_MPI); else - err = gcry_sexp_build (&s_data, NULL, "(enc-val(ecdh(a%m)(b%m)))", + err = gcry_sexp_build (&s_data, NULL, "(enc-val(ecdh(s%m)(e%m)))", enc->data[0], enc->data[1]); } else |