gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnutls-dev] bug in _gnutls_pkcs1_rsa_encrypt


From: Werner Koch
Subject: Re: [gnutls-dev] bug in _gnutls_pkcs1_rsa_encrypt
Date: Wed, 18 Aug 2004 11:33:47 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

On Tue, 17 Aug 2004 23:19:51 +0200, Matthias Urlichs said:

>> k += k/128; /* better get some more */

> This line doesn't make sense, IMHO.

The idea is that when requesting K new random bytes to replace zero
bytes of the initial random string, we request a few bytes more so
that we have some spare random bytes in case the K new bytes contain
zero bytes.

Agreed, requesting just one extra byte for replacing 128 zero bytes is
too less. 

  Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]