From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel Subject: Re: Move sha1.el and hex-util.el from lisp/gnus/ to lisp/net/ Date: Mon, 25 Oct 2004 16:23:23 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098714277 28526 80.91.229.6 (25 Oct 2004 14:24:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Oct 2004 14:24:37 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 25 16:24:30 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CM5lt-00012V-00 for ; Mon, 25 Oct 2004 16:24:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM5tW-0007xB-Px for ged-emacs-devel@m.gmane.org; Mon, 25 Oct 2004 10:32:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CM5tL-0007vw-Jz for emacs-devel@gnu.org; Mon, 25 Oct 2004 10:32:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CM5tK-0007vH-G7 for emacs-devel@gnu.org; Mon, 25 Oct 2004 10:32:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CM5tK-0007v1-Bx for emacs-devel@gnu.org; Mon, 25 Oct 2004 10:32:10 -0400 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CM5lD-0003P5-SE for emacs-devel@gnu.org; Mon, 25 Oct 2004 10:23:48 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CM5lD-000850-00 for ; Mon, 25 Oct 2004 16:23:47 +0200 Original-Received: from c494102a.s-bi.bostream.se ([217.215.27.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Oct 2004 16:23:47 +0200 Original-Received: from jas by c494102a.s-bi.bostream.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Oct 2004 16:23:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c494102a.s-bi.bostream.se Mail-Copies-To: nobody User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:dvK2SUNV0QMh0YXTm/Hn18DeUks= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.emacs.devel:28917 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28917 Richard Stallman writes: > I think moving sha1.el is a good idea. It may as well be documented > near were MD5 is documented. OK. > The file sha1.el needs hex-util.el, which is a small file to hex > encode strings. > > These functions don't seem useful enough to make generally available, > but you could rename them and include them in sha1.el. The functions in hex-util.el are used by hmac-md5.el, sasl-cram.el, sasl-digest.el, and sha1.el in Gnus CVS. Further, at least rfc2104.el contain re-implementation of the functionality in hex-util.el. Changing the calls in hmac-md5.el and sasl*.el to call sha1 functions seem wrong. Is there a "hex" coding system, or some more native way to hex encode some data? If not, I believe hex-util.el do make sense.