From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: libnettle/libhogweed WIP Date: Wed, 26 Jul 2017 23:48:05 +0300 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: <87r2znntaq.fsf@lifelogs.com> <87o9u8q4a5.fsf@lifelogs.com> <83tw3xbklg.fsf@gnu.org> <87zictm415.fsf@lifelogs.com> <83podoqchd.fsf@gnu.org> <87podnnbi2.fsf@lifelogs.com> <8760ewi3rw.fsf@lifelogs.com> <87r2xjgilq.fsf@lifelogs.com> <83iniug7ql.fsf@gnu.org> <87fudyhkhy.fsf@lifelogs.com> <8360euf4d3.fsf@gnu.org> <87r2xhfsre.fsf@lifelogs.com> <83o9slecp0.fsf@gnu.org> <83zibw96r9.fsf@gnu.org> <83h8xz5jxw.fsf@gnu.org> <83a83r5hb4.fsf@gnu.org> <838tjb58wd.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501102145 28368 195.159.176.226 (26 Jul 2017 20:49:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Jul 2017 20:49:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 26 22:49:00 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daTEo-00071x-J6 for ged-emacs-devel@m.gmane.org; Wed, 26 Jul 2017 22:48:58 +0200 Original-Received: from localhost ([::1]:39931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daTEu-0003NG-8s for ged-emacs-devel@m.gmane.org; Wed, 26 Jul 2017 16:49:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daTEI-0003NA-KH for emacs-devel@gnu.org; Wed, 26 Jul 2017 16:48:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daTED-0004Ww-Sp for emacs-devel@gnu.org; Wed, 26 Jul 2017 16:48:26 -0400 Original-Received: from [195.159.176.226] (port=38955 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1daTED-0004WL-MO for emacs-devel@gnu.org; Wed, 26 Jul 2017 16:48:21 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1daTE1-0004Tj-Kw for emacs-devel@gnu.org; Wed, 26 Jul 2017 22:48:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 33 Original-X-Complaints-To: usenet@blaine.gmane.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Cancel-Lock: sha1:fOhdUn8ItsAdDO3Ekci39XPOMns= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217059 Archived-At: On Wed, 26 Jul 2017 21:51:30 +0300 Eli Zaretskii wrote: EZ> I don't know. Since no one else reported the same problem, perhaps EZ> it's something specific to my local configuration, although I doubt EZ> that. Yes, I also think it's likely to be a real problem, that's why I've spent a lot of time on it. But it seems to only occur on that platform. Do you have a way to test with a newer GnuTLS release? Is there anything in the code that looks suspicious to you? I've looked it over several times and don't see how it could be causing garbage data. Maybe the storage math is wrong somehow? Can you trace the exact point at which the GnuTLS functions are called on encryption and decryption? ret = ((encrypting ? gnutls_aead_cipher_encrypt : gnutls_aead_cipher_decrypt) (acipher, vdata, vsize, aead_auth_data, aead_auth_size, cipher_tag_size, idata, isize, storage, &storage_length)); Do those numbers match up with the cipher parameters? (:cipher-id 16 :type gnutls-symmetric-cipher :cipher-aead-capable t :cipher-tagsize 16 :cipher-blocksize 16 :cipher-keysize 32 :cipher-ivsize 12) EZ> I offer my help. What would you like me to do, try, find out? Just EZ> ask. Did the information I provided already give any clues, or any EZ> leads, or any ideas for further tinkering? Your information was thorough but didn't tell me where the error is in the Emacs code, and I don't yet know how to reproduce it. Ted