From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: About Guile crypto support Date: Wed, 06 Feb 2013 21:58:40 +0800 Organization: HFG Message-ID: <1360159120.2754.76.camel@Renee-desktop.suse> References: <1359896146.2754.19.camel@Renee-desktop.suse> <871ucvof60.fsf@gnu.org> <1360032192.2754.61.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1360159144 14603 80.91.229.3 (6 Feb 2013 13:59:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2013 13:59:04 +0000 (UTC) Cc: Ludovic =?ISO-8859-1?Q?Court=E8s?= , guile-devel To: Noah Lavine Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Feb 06 14:59:25 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U35X2-0003Tu-SZ for guile-devel@m.gmane.org; Wed, 06 Feb 2013 14:59:25 +0100 Original-Received: from localhost ([::1]:41009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U35Wk-0002ue-9p for guile-devel@m.gmane.org; Wed, 06 Feb 2013 08:59:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U35Wh-0002ty-Ax for guile-devel@gnu.org; Wed, 06 Feb 2013 08:59:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U35Wc-0004Ps-IJ for guile-devel@gnu.org; Wed, 06 Feb 2013 08:59:03 -0500 Original-Received: from mail-da0-f51.google.com ([209.85.210.51]:41347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U35WW-0004Oo-Fc; Wed, 06 Feb 2013 08:58:52 -0500 Original-Received: by mail-da0-f51.google.com with SMTP id n15so665202dad.24 for ; Wed, 06 Feb 2013 05:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:cc:date:in-reply-to :references:organization:content-type:x-mailer:mime-version :content-transfer-encoding; bh=d4nIj0+g9D4l5jMUyylmDmNP/2oaFLhzSCmgLvrozZQ=; b=In/s4joMLK1jxJxeHsW2nDhdSnGtOcA5j3ljp2oaQVu2O7HGHxzx8lw+IJdj6ddkDK 26XbJRxDCm/H+omvlUAigUhN+TxjqbQXQt1JCSifrcoQhhwPVtxW2HcvWRAZffZKGVKy r2J8sepo8wNtdTI/tXY9xdMBcU9AvargwLBr5qKH6RK3b5tv3GoLnjewunyrxBkj+Wph LIG6HoXBKoZtV6GcTqA4hPloHAIFsaA3wZrkkHqyTDGjarzYG5DuMrGqba/UJkGGD5XS g9n01g0sZcfTgCZFc/pRP3F750WTCmuRWNKS1Yfv37sbeBaCkJbgTrFIVil5X7LA1udT cfTQ== X-Received: by 10.66.87.67 with SMTP id v3mr76060290paz.63.1360159131143; Wed, 06 Feb 2013 05:58:51 -0800 (PST) Original-Received: from [10.100.36.122] (li335-136.members.linode.com. [96.126.102.136]) by mx.google.com with ESMTPS id e6sm37955071paw.16.2013.02.06.05.58.45 (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 06 Feb 2013 05:58:49 -0800 (PST) In-Reply-To: X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.51 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15691 Archived-At: hi Noah! On Mon, 2013-02-04 at 21:57 -0500, Noah Lavine wrote: > Hello, > > > I was just thinking about this, and I was wondering, can you hash an > arbitrary Guile object? And if so, what do you hash? (I mean, > algorithms like SHA-1 are defined on sequences of bits, as I > understand it. So what collection of bits do you hash?) And is the > hash recursive? (I.e. is it an equal?-hash, an eqv?-hash, or an > eq?-hash.) > > > If I understand the conversation correctly, the answer is yes, and > that you hash the bit representation that Guile uses internally, and > it is an equal?-hash. Is that accurate? > According to our talking about this topic, I'll explain something ;-P My goal is not to hash arbitrary object. As I said, I'm dealing with Server-design and web-framework, so what I need is to hash bytevectors and strings. Since Guile2 uses character-string instead of byte-string, I have to mention strings separately. > Thanks! > Thanks, > Noah > > > On Mon, Feb 4, 2013 at 9:43 PM, Nala Ginrut > wrote: > On Tue, 2013-02-05 at 00:03 +0100, Ludovic Courtès wrote: > > Nala Ginrut skribis: > > > > > As mentioned in another thread about digest algorithm > support in Guile, > > > my plan is use part of implementation of libgcrypt and > make a wrapper, > > > then put into libguile. > > > > We probably don’t want Guile to depend on libgcrypt. > > > > > No, I didn't mean to use libgcrypt directly, I just suggested > reuse part > of libgcrypt code(only the common digest algorithm) and make > wrapper, > then put the C code in libguile. > > > So, instead, I’d suggest choosing the best of the 10 gcrypt > FFI bindings > > already mentioned ;-), and putting it in the guildhall. > > > > If you want to go further, you (or its authors) could submit > it for > > inclusion in libgcrypt proper. > > > > > The gcrypt-guile project is doing so, I'll help it if I can. > But my original thought is orthogonal with gcrypt-guile, just > put some > common digest algorithm in libguile rather than a full-stack > crypto-lib. > > My suggest opposed by many guys, since they don't think > md5/sha are very > common things. ;-) > But I'm dealing with server & web framework development, so I > need > digest so much, and maybe it's no so common. > I'll let this topic alone, till others found they have same > requirements, or just forget about it. ;-D > > > Thanks, > > Ludo’. > > > > > > > > >