mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
sm: Fix pwri.
* sm/decrypt.c (pwri_parse_pbkdf2): Use int for digest algo. (pwri_decrypt): Use int for cipher algo and digest algo. -- Fixes-commit: 02029f9eab87e9fd667829dfb083846275576398 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
3f33c7ffcc
commit
100c954ab0
@ -428,7 +428,7 @@ static gpg_error_t
|
||||
pwri_parse_pbkdf2 (const unsigned char *der, size_t derlen,
|
||||
unsigned char const **r_salt, unsigned int *r_saltlen,
|
||||
unsigned long *r_iterations,
|
||||
enum gcry_md_algos *r_digest)
|
||||
int *r_digest)
|
||||
{
|
||||
gpg_error_t err;
|
||||
size_t objlen, hdrlen;
|
||||
@ -540,7 +540,7 @@ pwri_decrypt (ctrl_t ctrl, gcry_sexp_t enc_val,
|
||||
unsigned int ekeylen;
|
||||
unsigned char kek[32];
|
||||
unsigned int keklen;
|
||||
enum gcry_cipher_algos encr_algo;
|
||||
int encr_algo;
|
||||
enum gcry_cipher_modes encr_mode;
|
||||
gcry_cipher_hd_t encr_hd = NULL;
|
||||
unsigned char *result = NULL;
|
||||
@ -549,7 +549,7 @@ pwri_decrypt (ctrl_t ctrl, gcry_sexp_t enc_val,
|
||||
const unsigned char *salt; /* Points int dparm. */
|
||||
unsigned int saltlen;
|
||||
unsigned long iterations;
|
||||
enum gcry_md_algos digest_algo;
|
||||
int digest_algo;
|
||||
char *passphrase = NULL;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user