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, 11 Jun 2011 18:24:51 +0300 Message-ID: <834o3wbdbw.fsf@gnu.org> References: <19936.26998.559386.371174@priss.frightenedpiglet.com> <4DE072EE.4030303@cs.ucla.edu> <83mxi7b82v.fsf@gnu.org> <838vt8bxwh.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1307805919 13144 80.91.229.12 (11 Jun 2011 15:25:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Jun 2011 15:25:19 +0000 (UTC) Cc: sand@blarg.net, eggert@cs.ucla.edu, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 11 17:25:15 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 1QVQ3k-0001eb-54 for ged-emacs-devel@m.gmane.org; Sat, 11 Jun 2011 17:25:12 +0200 Original-Received: from localhost ([::1]:60224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVQ3j-0002WC-CC for ged-emacs-devel@m.gmane.org; Sat, 11 Jun 2011 11:25:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVQ3Q-0002Vu-Gj for emacs-devel@gnu.org; Sat, 11 Jun 2011 11:24:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVQ3O-0008TX-5u for emacs-devel@gnu.org; Sat, 11 Jun 2011 11:24:52 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:45293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVQ3N-0008T0-OI for emacs-devel@gnu.org; Sat, 11 Jun 2011 11:24:49 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LMM00C00TBN0400@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 11 Jun 2011 18:24:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.164.125]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LMM00CW4TH90600@a-mtaout20.012.net.il>; Sat, 11 Jun 2011 18:24:47 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 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:140379 Archived-At: > From: Leo > Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org, monnier@iro.umontreal.ca, sand@blarg.net > Date: Sat, 11 Jun 2011 20:37:36 +0800 > > On 2011-06-11 16:00 +0800, Eli Zaretskii wrote: > [snipped 5 lines] > >> Could people comment on the attached patch which implements sha-2? > > > > Why 3 different functions? Why not one? > > How do you mean? Like this: (sha2 OBJECT &optional BEG END BINARY ALGORITHM) where ALGORITHM can be sha-224, sha-256, etc. (We could have ALGORITHM the 3rd argument, if keeping a signature compatible with sha1 is not important.)