From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.devel Subject: Re: About Guile crypto support Date: Mon, 4 Feb 2013 11:35:03 +0800 Message-ID: References: <1359896146.2754.19.camel@Renee-desktop.suse> <1359947520.2754.27.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1359948920 19283 80.91.229.3 (4 Feb 2013 03:35:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2013 03:35:20 +0000 (UTC) Cc: guile-devel@gnu.org To: Nala Ginrut Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Feb 04 04:35:40 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 1U2CqK-0004bL-EG for guile-devel@m.gmane.org; Mon, 04 Feb 2013 04:35:40 +0100 Original-Received: from localhost ([::1]:40765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2Cq1-0001uq-Uu for guile-devel@m.gmane.org; Sun, 03 Feb 2013 22:35:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2Cpv-0001uQ-SL for guile-devel@gnu.org; Sun, 03 Feb 2013 22:35:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2Cpk-000165-FY for guile-devel@gnu.org; Sun, 03 Feb 2013 22:35:15 -0500 Original-Received: from ie-in-x0233.1e100.net ([2607:f8b0:4001:c03::233]:41955 helo=mail-ie0-x233.google.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2Cpk-00012N-BU for guile-devel@gnu.org; Sun, 03 Feb 2013 22:35:04 -0500 Original-Received: by mail-ie0-f179.google.com with SMTP id k11so3991933iea.10 for ; Sun, 03 Feb 2013 19:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=NOy87ak672BUdGspA0lCZVT+mXkzFerPIXfp5hM5Tuw=; b=kbXfNLav8SCWBKmatLs5Zh6EiPA0ciq6QzV8g9AhEbXK80S3QJMNDBkxqr6L00j3LW UTQ6SwV+mAxkf5iaQatPWmSD0UN+yswgaHJG4UJTNFdGR6GijQ2PbhRYu1Wi89Cra5y0 6V/5D1xdeC6TW0Y0eZL1ct3F1kZxZ0muKUfQwXgQ+8M0+7UIFC/BZf6CfCp8zvGnO97X mFDOvYJZho2vyJXBQOmTt26We88Ke0Fk2EoJoTulyPxX1ses6vQDIGqQ8rA2s4tLSPwz 64rBN1TwcOxwodpza5MvmxY/nvepBIFTqtWPEfTpTCu5o7VwEGrDbV4P7Nc/F3nTGQyx HkBw== X-Received: by 10.50.88.136 with SMTP id bg8mr4123281igb.96.1359948903341; Sun, 03 Feb 2013 19:35:03 -0800 (PST) Original-Received: by 10.64.76.51 with HTTP; Sun, 3 Feb 2013 19:35:03 -0800 (PST) In-Reply-To: <1359947520.2754.27.camel@Renee-desktop.suse> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::233 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:15679 Archived-At: On 4 February 2013 11:12, Nala Ginrut wrote: >> If your goal is only to provide crypto. support to Guile programs, >> then time is better spent providing a wrapper to the existing library. >> Concerns about adding an external dependency do not hold much weight >> next to the advantages of directly using the library; =E2=80=9Cdon't rep= eat >> yourself=E2=80=9D, and all that. >> > > That's my aim, nowadays a language should provide md5/sha1 at least > since they are very common. > >> Perhaps you are aware that there an extension for gcrypt under >> development, with modules for the hash and randomize functions: >> . >> > > I have a similar project too: > https://gitorious.org/nacre/libgcrypt-guile > The other project is much further along, providing direct bindings to gcrypt and has a convenience form (quick-hash ALGORITHM DATA). Suggest to continue working there rather than duplicating efforting. Taking a quick look at your code, there are some problems that immediately stand out. The calls to gcry_control should not be in mda, being repeated on every call; libgcrypt documents even specify that language bindings should not handle init, which is a task for the application. > Write a lib-wrapper is another story, guys who needs more specific > feature(efficiency/security) could use these packages from guildhall. > But my opinion is to provide the common digest API in ice-9, many guys > asked such a questions, and I suggested them use my libgcrypt-guile, but > I can't answer why Guile doesn't has these common API. So I decide to > add them. > > What do you think? Personally I would work with the existing gcrypt-guile project. It is LGPL and anyone who needs such functionality can easily import it. As mentioned above, it already provides the quick-hash form which I believe is what you are looking for. I also don't any pressing need to move this in to the core Guile distribution when it is freely available as an addon. But I see that we disagreed on this same point with your colorized module as well :-) Regards