Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: devel

[PATCH] change decrypt to support larger keys with openpgp card (was: OpenPGP card and 4096 bit keys)

 

 

GnuPG devel RSS feed   Index | Next | Previous | View Threaded


klaus at flittner

Nov 8, 2009, 6:46 AM

Post #1 of 2 (486 views)
Permalink
[PATCH] change decrypt to support larger keys with openpgp card (was: OpenPGP card and 4096 bit keys)

Werner Koch <wk [at] gnupg> said:

> On Mon, 19 Oct 2009 19:55, klaus [at] flittner said:
> > 2. Change the protocol used for genkey and decrypt
> > - genkey would then return the publich key like readkey as s-expression
> > - decrypt would inquire the encrypted message instead of a setdata
> > before the call of decrypt
>
> Right. However, the change will be easier: We send the key using
> several status lines.
>
> This will go into GnuPG 2.1 as time permits.

Attached you find a patch which addresses the decrypt issue.
It changes the setdata command of scdaemon to support chaining.
The first part of the data is transfered like before. If there is more
data it can be concatenated to the first using
SETDATA --more [data]

The two callers of PKDECRYPT (in g10/call-agent.c and agent/call-scd.c)
are changed to use this chaining mechanism.

Regards
Klaus Flittner
Attachments: pkdecrypt.patch (3.71 KB)


wk at gnupg

Nov 9, 2009, 8:53 AM

Post #2 of 2 (452 views)
Permalink
Re: [PATCH] change decrypt to support larger keys with openpgp card [In reply to]

On Sun, 8 Nov 2009 15:46, klaus [at] flittner said:

> Attached you find a patch which addresses the decrypt issue.
> It changes the setdata command of scdaemon to support chaining.

Sorry, I can't apply such a patch without having a copyright assigment
to the FSF. It is not an urgent feature, though.


Salam-Shalom,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

GnuPG devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.