From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel,gmane.comp.lib.gnulib.bugs Subject: Re: Move sha1 to C? Date: Tue, 24 May 2011 12:09:22 +0800 Message-ID: References: <4DDADB67.1090904@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306210180 21604 80.91.229.12 (24 May 2011 04:09:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 04:09:40 +0000 (UTC) Cc: Bug-gnulib , Stefan Monnier , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 24 06:09:36 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 1QOiw4-0001kI-5A for ged-emacs-devel@m.gmane.org; Tue, 24 May 2011 06:09:36 +0200 Original-Received: from localhost ([::1]:36443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOiw3-00044R-Hc for ged-emacs-devel@m.gmane.org; Tue, 24 May 2011 00:09:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOiw1-00044K-8a for emacs-devel@gnu.org; Tue, 24 May 2011 00:09:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOiw0-0003WT-9F for emacs-devel@gnu.org; Tue, 24 May 2011 00:09:33 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:61397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOiw0-0003WL-3P; Tue, 24 May 2011 00:09:32 -0400 Original-Received: by pwi12 with SMTP id 12so3898808pwi.0 for ; Mon, 23 May 2011 21:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=vDjc2n1u/ZQ2n6kDKUg3mMNeQciKMJ/re8yqnpQqtc0=; b=yHsT/i6JD3KmyuyByYrBzbZAOIAuP1pvif1d5oqdM8v67uMnxUMKDoyTtwLALvHn7J evVwNgMHUIfa0PVB+cis2aIBmE28HdxzgBMdtjJxlud6oSloeNK7SuFqkEz6WNSFxAoB +FSmPjXogIpBUN51sNVRvH3astWrVLOJDPwic= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=oDMjkLALPufqjuwgjo+csRlozTKJ+TvWIxLM0z9mDmsLJHD5sycrfAq2FXcHLCgFPj csWewfCouiSovzdHZFNFwG5VUh7Z6AoEDys/HybT5pTMGmC4Xk78PDs32EeTwMZ/8GEf j1jG8Sze7/vA4ghYf2rNqJw72hSIofdnV6k+Q= Original-Received: by 10.68.39.36 with SMTP id m4mr2526232pbk.419.1306210171019; Mon, 23 May 2011 21:09:31 -0700 (PDT) Original-Received: from th041094.ip.tsinghua.edu.cn ([114.249.29.150]) by mx.google.com with ESMTPS id q5sm4751604pbp.65.2011.05.23.21.09.26 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 May 2011 21:09:29 -0700 (PDT) In-Reply-To: <4DDADB67.1090904@cs.ucla.edu> (Paul Eggert's message of "Mon, 23 May 2011 15:10:47 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.7) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.41 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:139670 gmane.comp.lib.gnulib.bugs:26790 Archived-At: On 2011-05-24 06:10 +0800, Paul Eggert wrote: > My guess is that's due to a bit of unportable code in gnulib-tool, > which I just fixed as follows. Could you please try it again? If > that doesn't work, I can push the sha1 gnulib code into the Emacs > trunk myself, but I'd rather get it working for everybody. Thanks. It works smoothly now. BTW, md5sum is not available on OSX. I alias md5 to md5sum and the script seems to run without any problem. man md5: ---------------- SYNOPSIS md5 [-pqrtx] [-s string] [file ...] DESCRIPTION The md5 utility takes as input a message of arbitrary length and produces as output a ``fingerprint'' or ``message digest'' of the input. It is conjectured that it is computationally infeasible to produce two messages having the same message digest, or to produce any message having a given prespecified target message digest. The MD5 algorithm is intended for digital signature applications, where a large file must be ``compressed'' in a secure manner before being encrypted with a private (secret) key under a public-key cryptosystem such as RSA. MD5 has not yet (2001-09-03) been broken, but sufficient attacks have been made that its security is in some doubt. The attacks on MD5 are in the nature of finding ``collisions'' -- that is, multiple inputs which hash to the same value; it is still unlikely for an attacker to be able to determine the exact original input given a hash value. The following options may be used in any combination and must precede any files named on the command line. The hexadecimal checksum of each file listed on the command line is printed after the options are processed. -s string Print a checksum of the given string. -p Echo stdin to stdout and append the checksum to stdout. -q Quiet mode - only the checksum is printed out. Overrides the -r option. -r Reverses the format of the output. This helps with visual diffs. Does nothing when combined with the -ptx options. -t Run a built-in time trial. -x Run a built-in test script.