diff options
author | Andrey Jivsov <[email protected]> | 2011-01-13 05:14:45 +0000 |
---|---|---|
committer | Andrey Jivsov <[email protected]> | 2011-01-13 05:14:45 +0000 |
commit | b73d8ed06ffef8d2fd70ab2e48da9ef515472fe9 (patch) | |
tree | 1f9b06bf3bbf7647235f6080dca2abcb013f35b5 /agent/cvt-openpgp.c | |
parent | 'g10/gpg2 --encrypt --debug 15 -r ecdsa -a -o _e.asc _' and 'g10/gpg2 --deb... (diff) | |
download | gnupg-b73d8ed06ffef8d2fd70ab2e48da9ef515472fe9.tar.gz gnupg-b73d8ed06ffef8d2fd70ab2e48da9ef515472fe9.zip |
Fixed key generation with P-521. Confirmed that signature generation and verification work.
Diffstat (limited to '')
-rw-r--r-- | agent/cvt-openpgp.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/agent/cvt-openpgp.c b/agent/cvt-openpgp.c index 3dba79ebd..73c31f786 100644 --- a/agent/cvt-openpgp.c +++ b/agent/cvt-openpgp.c @@ -27,7 +27,6 @@ #include "agent.h" #include "i18n.h" #include "cvt-openpgp.h" -#include "../include/cipher.h" /* for PUBKEY_ALGO_ECDSA, PUBKEY_ALGO_ECDH */ /* Helper to pass data via the callback to do_unprotect. */ @@ -50,12 +49,7 @@ struct try_do_unprotect_arg_s gcry_sexp_t *r_key; }; -/* TODO: it is also in misc, which is not linked with the agent */ -static int -map_pk_openpgp_to_gcry (int algo) -{ - return (algo==PUBKEY_ALGO_ECDSA ? GCRY_PK_ECDSA : (algo==PUBKEY_ALGO_ECDH ? GCRY_PK_ECDH : algo)); -} + /* Compute the keygrip from the public key and store it at GRIP. */ static gpg_error_t |