aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/gcrypt
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-04-29 09:51:37 +0200
committerMartin Willi <martin@revosec.ch>2010-04-29 09:51:37 +0200
commiteadbc3da2fb47a1b095f269a49889eab329e735e (patch)
treed6bd1386db90b9a6826d5ef2dd08ad585b75b0bf /src/libstrongswan/plugins/gcrypt
parentdd04a68f220cfca8a1d7dc0bce0605b306bb2f95 (diff)
downloadstrongswan-eadbc3da2fb47a1b095f269a49889eab329e735e.tar.bz2
strongswan-eadbc3da2fb47a1b095f269a49889eab329e735e.tar.xz
Fixed RSA key generation with gcrypt
Diffstat (limited to 'src/libstrongswan/plugins/gcrypt')
-rw-r--r--src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c b/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c
index a1d237bcd..2cb13c5f3 100644
--- a/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c
+++ b/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c
@@ -342,7 +342,7 @@ static bool get_encoding(private_gcrypt_rsa_private_key_t *this,
gcry_mpi_sub_ui(q, q, 1);
exp2 = gcry_mpi_new(gcry_pk_get_nbits(this->key));
- gcry_mpi_mod(exp1, d, q);
+ gcry_mpi_mod(exp2, d, q);
gcry_mpi_release(q);
err = gcry_mpi_aprint(GCRYMPI_FMT_USG, &cexp1.ptr, &cexp1.len, exp1)