From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.devel Subject: Re: About Guile crypto support Date: Mon, 4 Feb 2013 21:57:38 -0500 Message-ID: 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: multipart/alternative; boundary=e89a8f83902951182704d4f15ff2 X-Trace: ger.gmane.org 1360033067 23143 80.91.229.3 (5 Feb 2013 02:57:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2013 02:57:47 +0000 (UTC) Cc: =?ISO-8859-1?Q?Ludovic_Court=E8s?= , guile-devel To: Nala Ginrut Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Feb 05 03:58:07 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 1U2YjV-0007Qj-7e for guile-devel@m.gmane.org; Tue, 05 Feb 2013 03:58:05 +0100 Original-Received: from localhost ([::1]:40383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2YjC-0008SA-Op for guile-devel@m.gmane.org; Mon, 04 Feb 2013 21:57:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2Yj9-0008S4-1K for guile-devel@gnu.org; Mon, 04 Feb 2013 21:57:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2Yj5-0002Gc-Rp for guile-devel@gnu.org; Mon, 04 Feb 2013 21:57:42 -0500 Original-Received: from mail-ie0-x229.google.com ([2607:f8b0:4001:c03::229]:54120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2Yj5-0002G3-FW; Mon, 04 Feb 2013 21:57:39 -0500 Original-Received: by mail-ie0-f169.google.com with SMTP id 13so4785045iea.0 for ; Mon, 04 Feb 2013 18:57:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=n9/3TQkc6j5+n4tOvS9i5+Qzal5rV/QS9hOXamOatsc=; b=jAvapJeYll61qzZgTAqvd7oENsPw9qQhf/Pepv5aLq9GEsPq4cczS82jsKeKUAhzbw b3zrDZFWUESwb+6IVspkiE5PS1DMFNtyhoQ4mnD8zG+J4Bgkw9/W2Yuht6YVDa0hmOM/ GMU1RhunurgjhhKFNl6DL0hL3TqtFP9F/Lai8RNoUXC+CPeWsPv5IoxTs3AUqc26PbKC eHAyzzHoFm2WC9etjymTt1OP+I6Tl+a/S1frsrvZv8wXzyPjh65G6JmTgKhsYw8lpici 5Vv4ucbCTZ4TNKr35wJ1GDFsGy1cs7uJMVf8yxw1zhc8HQn778F80lpb54VR95f3kNzV A2dg== X-Received: by 10.50.163.35 with SMTP id yf3mr10545781igb.60.1360033058199; Mon, 04 Feb 2013 18:57:38 -0800 (PST) Original-Received: by 10.64.143.233 with HTTP; Mon, 4 Feb 2013 18:57:38 -0800 (PST) In-Reply-To: <1360032192.2754.61.camel@Renee-desktop.suse> X-Google-Sender-Auth: vEnZlHlUjgcoJDnFFio6MALcYeo X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::229 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:15685 Archived-At: --e89a8f83902951182704d4f15ff2 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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? 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=E8s wrote: > > Nala Ginrut skribis: > > > > > As mentioned in another thread about digest algorithm support in Guil= e, > > > my plan is use part of implementation of libgcrypt and make a wrapper= , > > > then put into libguile. > > > > We probably don=92t 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=92d suggest choosing the best of the 10 gcrypt FFI bindi= ngs > > 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=92. > > > > > > > > --e89a8f83902951182704d4f15ff2 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Hello,

I was just thinking about = this, and I was wondering, can you hash an arbitrary Guile object? And if s= o, what do you hash? (I mean, algorithms like SHA-1 are defined on sequence= s 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 use= s internally, and it is an equal?-hash. Is that accurate?

Thanks,
Noah


On Mon, Feb 4, 2013 at 9:43= PM, Nala Ginrut <nalaginrut@gmail.com> wrote:
On Tue, 2013-02-05 at 00:0= 3 +0100, Ludovic Court=E8s wrote:
> Nala Ginrut <nalaginrut@gma= il.com> skribis:
>
> > As mentioned in another thread about digest algorithm support in = Guile,
> > my plan is use part of implementation of libgcrypt and make a wra= pper,
> > then put into libguile.
>
> We probably don=92t want Guile to depend on libgcrypt.
>

No, I didn't mean to use libgcrypt directly, I just suggested reu= se part
of libgcrypt code(only the common digest algorithm) and make wrapper,
then put the C code in libguile.

> So, instead, I=92d suggest choosing the best of the 10 gcrypt FFI bind= ings
> 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 ver= y
common things. ;-)
But I'm dealing with server & web framework development, so I need<= br> 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=92.
>
>




--e89a8f83902951182704d4f15ff2--