[PATCH] change decrypt to support larger keys with openpgp card (was: OpenPGP card and 4096 bit keys)
klaus at flittner.org
Sun Nov 8 15:46:52 CET 2009
Werner Koch <wk at gnupg.org> said:
> On Mon, 19 Oct 2009 19:55, klaus at flittner.org 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3804 bytes
Desc: not available
More information about the Gnupg-devel