diff options
author | NIIBE Yutaka <[email protected]> | 2020-06-05 01:35:33 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-06-05 01:35:33 +0000 |
commit | 47c1c329ed823a562185f86e98ac903605104f11 (patch) | |
tree | 76c582e259525accb38469b6c3be455f883ac99b /agent/agent.h | |
parent | agent: For ECC, use opaque MPI for key representation. (diff) | |
download | gnupg-47c1c329ed823a562185f86e98ac903605104f11.tar.gz gnupg-47c1c329ed823a562185f86e98ac903605104f11.zip |
agent,ecc: Use of opaque MPI for ECC, fixup 'd'.
* agent/Makefile.am: Add sexp-secret.c.
* agent/agent.h: New function declarations.
* agent/sexp-secret.c: New.
* agent/findkey.c (agent_key_from_file): Use sexp_sscan_private_key.
* agent/protect-tool.c (read_and_unprotect): Fix up private part,
calling fixup_when_ecc_private_key.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/agent.h')
-rw-r--r-- | agent/agent.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h index 90d8f5c73..857dffef6 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -642,4 +642,9 @@ extract_private_key (gcry_sexp_t s_key, int req_private_key_data, gcry_mpi_t *mpi_array, int arraysize, gcry_sexp_t *r_curve, gcry_sexp_t *r_flags); +/*-- sexp-secret.c --*/ +gpg_error_t fixup_when_ecc_private_key (unsigned char *buf, size_t *buflen_p); +gpg_error_t sexp_sscan_private_key (gcry_sexp_t *result, size_t *r_erroff, + unsigned char *buf); + #endif /*AGENT_H*/ |