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/gpg-agent.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 'agent/gpg-agent.c')
-rw-r--r-- | agent/gpg-agent.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index ca150b471..d85283a5e 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -51,6 +51,7 @@ #include "gc-opt-flags.h" #include "exechelp.h" #include "asshelp.h" +#include "../include/cipher.h" /* for PUBKEY_ALGO_ECDSA, PUBKEY_ALGO_ECDH */ enum cmd_and_opt_values { aNull = 0, @@ -2301,3 +2302,10 @@ check_for_running_agent (int silent, int mode) assuan_release (ctx); return 0; } + +/* TODO: it is also in misc, which is not linked with the agent */ +int +map_pk_openpgp_to_gcry (int algo) +{ + return (algo==PUBKEY_ALGO_ECDSA ? GCRY_PK_ECDSA : (algo==PUBKEY_ALGO_ECDH ? GCRY_PK_ECDH : algo)); +} |