Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Hamish D <dmishd@gmail.com>
To: sup-devel@rubyforge.org
Subject: Re: [sup-devel] [PATCH] Converted crypto to use the gpgme gem
Date: Mon, 8 Nov 2010 11:21:12 +0000	[thread overview]
Message-ID: <AANLkTinXwKiJqgKyFrrcVV21a8j8hV=fw4QcvDLhtM8E@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinrSAheJb2F4Xw9AmgXcGLxeQh0_MEnuTSATye_@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1839 bytes --]

Best hang fire on this patch. It appears to crash when verifying a signature
when the public key is not available. I'm investigating the problem and how
to fix it cleanly and I'll resubmit once I've done that.

Hamish

On Nov 6, 2010 8:08 PM, "Hamish D" <dmishd@gmail.com> wrote:

I often find that loading long threads of encrypted messages (I have
several of over 10 messages and one of nearly 40) leads to lots of
flickering as the console replaces sup, sup comes back, the console
comes back again ... It is also very slow, and involves writing
decrypted messages to disk (if only temporarily) which could be a
security hole. So I've looked about and found the gpgme gem which
provides an API to use, and allows decryption entirely in memory.

So I've rewritten lib/sup/crypto.rb to use gpgme. The functionality is
pretty much the same. Things I'm aware of that are different:

* we can't set the signature algorithm, so we have to use whatever is
set in the user's preferences
* the gpg-args hook has been replaced by the gpg-options hook

Other than that I think it is the same, although it took some work to
get the signature output to be the same. The other main difference is
that it's much faster and nicer now :)

It could do with some testing - I don't have much in the way of
messages that cause gpg to complain, so if you do, please try opening
those messages with this code and see if the behaviour is reasonable -
no crashes, given messages about why your message was bad etc.

Also I guess I should ask if people are happy to use this gem. Is it
hard to use on Macs? I guess I could rewrite this patch so it falls
back to the gpg binary if gpgme is not available ...

To install this patch on Debian/Ubuntu you can either

* apt-get install libgpgme-ruby
* apt-get install libgpgme11-dev; gem install gpgme

Hamish Downer

[-- Attachment #1.2: Type: text/html, Size: 2134 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel

  reply	other threads:[~2010-11-08 11:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-06 20:08 Hamish D
2010-11-08 11:21 ` Hamish D [this message]
2010-11-08 22:32   ` Hamish D
2010-11-11  9:09     ` Gaudenz Steinlin
2010-11-11 17:25       ` Hamish D
2010-11-16 11:42         ` Gaudenz Steinlin
2010-11-16 14:20           ` Hamish D
2010-11-16 18:36             ` Gaudenz Steinlin
2010-11-16 23:05               ` Hamish D
2010-11-28 22:51                 ` Hamish D
2010-11-29  9:41                   ` Gaudenz Steinlin
2010-11-30  6:22                     ` Tero Tilus
2010-12-01  8:37                       ` Gaudenz Steinlin
2010-12-06 23:31                     ` Hamish D
2010-12-23 18:43                       ` Rich Lane
2011-01-19  3:11                         ` Rich Lane
2011-01-30 23:57                     ` Hamish D
2011-01-30 23:59                       ` Hamish D
2011-01-19 16:12                   ` Alvaro Herrera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTinXwKiJqgKyFrrcVV21a8j8hV=fw4QcvDLhtM8E@mail.gmail.com' \
    --to=dmishd@gmail.com \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox