summaryrefslogtreecommitdiff
path: root/lib/gnutls_pk.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-05-30 12:45:08 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-06-03 19:55:01 +0200
commitf35940429378d756fe0867d7d982e37723ab2fa9 (patch)
treee2e590244a7d29ca2778ec404d291c60c74b481e /lib/gnutls_pk.c
parent0cf9987b56d4a8723352012a59f1011a0ce9b2b9 (diff)
downloadgnutls-f35940429378d756fe0867d7d982e37723ab2fa9.tar.gz
Nettle library can now parse the PGP integers. Except for SHA-224/384/512
nettle seems to be fully working now.
Diffstat (limited to 'lib/gnutls_pk.c')
-rw-r--r--lib/gnutls_pk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c
index 982186550c..b262eb0f95 100644
--- a/lib/gnutls_pk.c
+++ b/lib/gnutls_pk.c
@@ -612,10 +612,9 @@ gnutls_pk_params_release (gnutls_pk_params_st * p)
int _gnutls_calc_rsa_exp(bigint_t* params, unsigned int params_size)
{
-int ret;
bigint_t tmp = _gnutls_mpi_alloc_like(params[0]);
- if (params_size < RSA_PRIVATE_PARAMS)
+ if (params_size < RSA_PRIVATE_PARAMS-2)
{
gnutls_assert();
return GNUTLS_E_INTERNAL_ERROR;