diff options
author | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-05-03 19:08:55 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-05-03 19:08:55 +0300 |
commit | b4a25d37cc48097ed8784f0708ec546b680f6b39 (patch) | |
tree | 6618b7c19ceec2e3b763e53fadd02f4a5e64f8bb | |
parent | b7af7a77f9c967ab5a25d144489ae1fefc70f4ea (diff) | |
download | gnutls-b4a25d37cc48097ed8784f0708ec546b680f6b39.tar.gz |
fixes in public key decryption (affecting signing)
-rw-r--r-- | lib/gnutls_pk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c index ead75f18d8..51728a3003 100644 --- a/lib/gnutls_pk.c +++ b/lib/gnutls_pk.c @@ -305,6 +305,9 @@ _gnutls_pkcs1_rsa_decrypt (gnutls_datum_t * plaintext, _gnutls_free_datum( plaintext); return GNUTLS_E_DECRYPTION_FAILED; } + + memmove(plaintext->data, &plaintext->data[i], esize - i); + plaintext->size = esize - i; return 0; } |