diff options
author | Werner Koch <[email protected]> | 2024-04-12 08:43:12 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-04-12 08:43:12 +0000 |
commit | 6f94fe01a9e187512300f272ae61ecc0a34454e2 (patch) | |
tree | b6f56f65d863b0370bb2b77178a3b5f28d494192 /g10/pkglue.h | |
parent | gpg: Changed internal data format for Kyber. (diff) | |
download | gnupg-6f94fe01a9e187512300f272ae61ecc0a34454e2.tar.gz gnupg-6f94fe01a9e187512300f272ae61ecc0a34454e2.zip |
gpg: Simplify the pk_encrypt function interface.
* g10/pkglue.c (pk_encrypt): Remove superfluous arguments and reanem
variable rc to err.
* g10/encrypt.c (write_pubkey_enc): Adjust for this change.
--
We used to pass PK as well as information which could be taken
directly from PK. Using ERR instead of RC is just for more uniform
naming of variables.
Diffstat (limited to 'g10/pkglue.h')
-rw-r--r-- | g10/pkglue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/pkglue.h b/g10/pkglue.h index abeddb811..609c17b49 100644 --- a/g10/pkglue.h +++ b/g10/pkglue.h @@ -31,8 +31,8 @@ gpg_error_t sexp_extract_param_sos_nlz (gcry_sexp_t sexp, const char *param, int pk_verify (pubkey_algo_t algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey); -int pk_encrypt (pubkey_algo_t algo, gcry_mpi_t *resarr, gcry_mpi_t data, - PKT_public_key *pk, gcry_mpi_t *pkey); +gpg_error_t pk_encrypt (PKT_public_key *pk, gcry_mpi_t data, + gcry_mpi_t *resarr); int pk_check_secret_key (pubkey_algo_t algo, gcry_mpi_t *skey); |