diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2021-07-23 11:15:47 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2021-07-23 11:15:47 +0900 |
commit | 51307b1ceaa752d5a737b06ab0217d310faea403 (patch) | |
tree | f6e1a82fea0fd90b76cac925526f209baa31bcba /cipher/pubkey-util.c | |
parent | 652e115e10f2bd53d1e1fbe161c2528f4ca89012 (diff) | |
download | libgcrypt-51307b1ceaa752d5a737b06ab0217d310faea403.tar.gz |
cipher: Extend RSA-PSS internal function.
* cipher/pubkey-internal.h (_gcry_rsa_pss_encode): Change the API.
* cipher/pubkey-util.c (_gcry_pk_util_data_to_mpi): Follow the change.
* cipher/rsa-common.c (_gcry_rsa_pss_encode): Support internal hashing.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'cipher/pubkey-util.c')
-rw-r--r-- | cipher/pubkey-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/pubkey-util.c b/cipher/pubkey-util.c index 7ed8a55c..9c6c1e16 100644 --- a/cipher/pubkey-util.c +++ b/cipher/pubkey-util.c @@ -1082,9 +1082,9 @@ _gcry_pk_util_data_to_mpi (gcry_sexp_t input, gcry_mpi_t *ret_mpi, /* Encode the data. (NBITS-1 is due to 8.1.1, step 1.) */ rc = _gcry_rsa_pss_encode (ret_mpi, ctx->nbits - 1, - ctx->hash_algo, + ctx->hash_algo, ctx->saltlen, 1, value, valuelen, - ctx->saltlen, random_override); + random_override); xfree (random_override); } } |