diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-12-11 16:36:00 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-12-11 16:36:00 +0000 |
commit | 72f80dd4ef80569aca91e4991576d3d0f1954e55 (patch) | |
tree | fd9ad2c2e4ddff3d33a01577fec4249c0ec963fe | |
parent | 4ef06931f254c1fc93e3ba85014c4367cdd44f00 (diff) | |
download | gnutls-72f80dd4ef80569aca91e4991576d3d0f1954e55.tar.gz |
*** empty log message ***
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | lib/gnutls_int.h | 1 | ||||
-rw-r--r-- | lib/gnutls_pk.c | 9 |
4 files changed, 7 insertions, 7 deletions
@@ -1,3 +1,6 @@ +Version ?.?.? +- Corrected bug in new integer formatting (now we use the old again) + Version 0.2.91 (10/12/2001) - Fixes in MPI handling (fixes possible bug with signed integers) - Removed name indication extension @@ -1,3 +1,4 @@ +Werner Koch <wk@gnupg.org> Tarun Upadhyay <tarun@poboxes.com> Neil Spring <nspring@saavie.org> Paul Sheer <psheer@icon.co.za> diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index 23b2038d03..d517b1ff49 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -35,7 +35,6 @@ #define DEBUG */ - /* It might be a good idea to replace int with void* * here. */ diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c index 85842e7fc7..a906547917 100644 --- a/lib/gnutls_pk.c +++ b/lib/gnutls_pk.c @@ -108,7 +108,7 @@ int _gnutls_pkcs1_rsa_encrypt(gnutls_datum * ciphertext, gnutls_datum plaintext, return ret; } - _gnutls_mpi_print_raw( NULL, &psize, res); + _gnutls_mpi_print( NULL, &psize, res); ciphertext->data = gnutls_malloc(psize); if (ciphertext->data == NULL) { @@ -116,7 +116,7 @@ int _gnutls_pkcs1_rsa_encrypt(gnutls_datum * ciphertext, gnutls_datum plaintext, _gnutls_mpi_release(&res); return GNUTLS_E_MEMORY_ERROR; } - _gnutls_mpi_print_raw( ciphertext->data, &psize, res); + _gnutls_mpi_print( ciphertext->data, &psize, res); ciphertext->size = psize; _gnutls_mpi_release(&res); @@ -140,15 +140,12 @@ int _gnutls_pkcs1_rsa_decrypt(gnutls_sdatum * plaintext, gnutls_datum ciphertext k = gcry_mpi_get_nbits(n) / 8; esize = ciphertext.size; - /* here we have a problem if the integer has leading zeros. - * However this is STRICT PKCS1. - */ if (esize != k) { gnutls_assert(); return GNUTLS_E_PK_DECRYPTION_FAILED; } - if (_gnutls_mpi_scan_raw(&c, ciphertext.data, &esize) != 0) { + if (_gnutls_mpi_scan(&c, ciphertext.data, &esize) != 0) { gnutls_assert(); return GNUTLS_E_MPI_SCAN_FAILED; } |