diff options
author | NIIBE Yutaka <[email protected]> | 2021-12-10 06:39:32 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2021-12-10 06:43:28 +0000 |
commit | 61ac580a2075564bc775b6764a239dad5e336251 (patch) | |
tree | faccf5e0dea7b9c4a7dc7b9c29e4f6e564280d7e /g10/pkglue.h | |
parent | gpg: Fix function prototype to match declaration. (diff) | |
download | gnupg-61ac580a2075564bc775b6764a239dad5e336251.tar.gz gnupg-61ac580a2075564bc775b6764a239dad5e336251.zip |
gpg: Emit compatible Ed25519 signature.
* g10/pkglue.c (sexp_extract_param_sos_nlz): New.
* g10/pkglue.h: Add the declaration.
* g10/sign.c (do_sign): Use sexp_extract_param_sos_nlz for Ed25519.
--
Ed25519 signature in GnuPG 2.2 has no leading zeros.
GnuPG-bug-id: 5331
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/pkglue.h')
-rw-r--r-- | g10/pkglue.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/pkglue.h b/g10/pkglue.h index 308e54f9a..abeddb811 100644 --- a/g10/pkglue.h +++ b/g10/pkglue.h @@ -26,6 +26,8 @@ gcry_mpi_t get_mpi_from_sexp (gcry_sexp_t sexp, const char *item, int mpifmt); gpg_error_t sexp_extract_param_sos (gcry_sexp_t sexp, const char *param, gcry_mpi_t *r_sos); +gpg_error_t sexp_extract_param_sos_nlz (gcry_sexp_t sexp, const char *param, + gcry_mpi_t *r_sos); int pk_verify (pubkey_algo_t algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey); |