Length of public exponent in OpenPGP card specification

View: New views
2 Messages — Rating Filter:   Alert me  

Length of public exponent in OpenPGP card specification

by Klaus Flittner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

in the specification[1] the algorithm attributes contain a field for
the length of the public exponent. The available implementation of the
card[2] has a fixed value of 32 bits, but key import accepts a value of
65537 (17 bits) and key generation also produces only keys with e of
65537. What is the use of this field then?

Regards
 Klaus Flittner

[1] http://www.g10code.com/docs/openpgp-card-2.0.pdf
[2] http://shop.kernelconcepts.de/product_info.php?cPath=1_26&products_id=42

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@...
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

Re: Length of public exponent in OpenPGP card specification

by Werner Koch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 27 Sep 2009 00:50, klaus@... said:

> in the specification[1] the algorithm attributes contain a field for
> the length of the public exponent. The available implementation of the
> card[2] has a fixed value of 32 bits, but key import accepts a value of
> 65537 (17 bits) and key generation also produces only keys with e of
> 65537. What is the use of this field then?

It is the size of the variable describing the length of the exponent.
For example you need 17 bits to express 65537, thus it first easily into
32 bits.


Salam-Shalom,

   Werner

--
Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@...
http://lists.gnupg.org/mailman/listinfo/gnupg-devel