all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: "ken manheimer" <ken.manheimer@gmail.com>
Cc: 486@emacsbugs.donarmstrong.com
Subject: bug#486: pgg-gpg.el - pgg-gpg-process-region timing problem
Date: Sat, 02 Aug 2008 10:51:24 -0400	[thread overview]
Message-ID: <87d4krv5ar.fsf@stupidchicken.com> (raw)

> i am not sure how to proceed with this problem.  as demonstrated by
> the pggprob.el script, i consistently get encryption and decryption
> problems without the contrived delay in my pgg-gpg-process-region
> patch.  (the problem does not happen if i just do a regular
> pgg-decrypt - i think the crucial thing is that a symmetric passphrase
> is being passed into pgg-gpg-process-region.)

I haven't been able to reproduce this problem, so let me make sure I
understand your recipe correctly.

First, I create a buffer with the following contents

(setq passphrase "a"
      verifier "-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.6 (GNU/Linux)

jA0EAwMCo72fNGB1rNxgySv+rxdkPv46nVxQ5fg4yT78ldgVcDseD7Mre4Fhjifn
VTA1/PdmetVfFb9+
=MXF6
-----END PGP MESSAGE-----"
      count 0)

(defun decrypt (passphrase text)
  (with-current-buffer (get-buffer-create "*pgg-test*")
    (erase-buffer)
    (insert text)
    (pgg-decrypt nil nil passphrase)))

Then, I eval the buffer with M-x eval-buffer.

Finally, I do

 M-: (decrypt passphrase verifier) RET

This consistently gives me the message `208' in the echo area.  I don't
see a nil result, but that's what you see, correct?






             reply	other threads:[~2008-08-02 14:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-02 14:51 Chong Yidong [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-06-22 17:37 pgg-gpg.el - pgg-gpg-process-region timing problem ken manheimer
2008-06-26 16:16 ` bug#486: " ken manheimer

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=87d4krv5ar.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=486@emacsbugs.donarmstrong.com \
    --cc=ken.manheimer@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.