mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 <gniibe@fsij.org>
This commit is contained in:
parent
2b11851624
commit
47c1c329ed
5 changed files with 151 additions and 16 deletions
|
@ -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*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue