From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Adding sha256 and sha512 to C? Date: Sat, 28 May 2011 10:25:12 +0300 Message-ID: <83mxi7b82v.fsf@gnu.org> References: <19936.26998.559386.371174@priss.frightenedpiglet.com> <4DE072EE.4030303@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1306567546 19934 80.91.229.12 (28 May 2011 07:25:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 May 2011 07:25:46 +0000 (UTC) Cc: sand@blarg.net, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 28 09:25:41 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QQDu0-0007pw-Eh for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 09:25:40 +0200 Original-Received: from localhost ([::1]:39874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQDtz-0006PS-Pa for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 03:25:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQDtw-0006PC-LO for emacs-devel@gnu.org; Sat, 28 May 2011 03:25:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQDtv-0007LY-Qk for emacs-devel@gnu.org; Sat, 28 May 2011 03:25:36 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:63345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQDtv-0007LN-KT for emacs-devel@gnu.org; Sat, 28 May 2011 03:25:35 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LLW00M009R4GZ00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sat, 28 May 2011 10:25:10 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.221.158]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LLW00M0O9XVFP40@a-mtaout23.012.net.il>; Sat, 28 May 2011 10:25:10 +0300 (IDT) In-reply-to: <4DE072EE.4030303@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139819 Archived-At: > Date: Fri, 27 May 2011 20:58:38 -0700 > From: Paul Eggert > Cc: emacs-devel@gnu.org > > On 05/27/11 20:18, sand@blarg.net wrote: > > The gnulib crypto library also has sha256 and sha512 > > functions; is there any objection to adding those as well? > > Sounds good, but rather than continue to add crypto functions > wouldn't it be better to have a single function parameterized by the > algorithm name? I agree with Paul: the API he proposes makes much more sense.