gnutls-devel
[Top][All Lists]
Advanced

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

Re: [gnutls-dev] GNUTLS_E_INTERNAL_ERROR in _gnutls_ciphertext2compresse


From: Nikos Mavrogiannopoulos
Subject: Re: [gnutls-dev] GNUTLS_E_INTERNAL_ERROR in _gnutls_ciphertext2compressed
Date: Thu, 15 Nov 2007 16:21:46 +0200

I was talking about this patch (quite big):
http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=a923cc605a40cf73dbb40de0ac46978674e388fd
and use gnutls_session_enable_compatibility_mode() on your server.

On Nov 15, 2007 4:06 PM, Ludovic Courtès <address@hidden> wrote:
> With the attached patch against 2.0.1 (your 2 fixes + additional
> `gnutlsassert's) and `NULL' encryption, I nailed it down to this part
> of `gnutls_cipher.c':
>
>   /* This one was introduced to avoid a timing attack against the TLS
>    * 1.0 protocol.
>    */
>   if (pad_failed != 0)
>     {
>       gnutls_assert (); /* <-- This is where we fail */
>       return pad_failed;
>     }
>
> That's the first `assert' I see, which seems to indicate that PAD_FAILED
> was set here:
>
>    /* Check the pading bytes (TLS 1.x)
>     */
>    if (ver >= GNUTLS_TLS1 && pad_failed == 0)
>      for (i = 2; i < pad; i++)
>        {
>          if (ciphertext.data[ciphertext.size - i] !=
>              ciphertext.data[ciphertext.size - 1])
>            pad_failed = GNUTLS_E_DECRYPTION_FAILED;
>        }
>
> It's pretty hard for me to debug this on a Nokia so I hope you'll come
> up with a bright idea.  :-)
>
> Thanks,
> Ludovic.
>
>
> _______________________________________________
> Gnutls-dev mailing list
> address@hidden
> http://lists.gnupg.org/mailman/listinfo/gnutls-dev
>
>



reply via email to

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