Create off-line card encryption key with the right size.
authorWerner Koch <wk@gnupg.org>
Thu, 8 Nov 2012 14:59:47 +0000 (15:59 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 8 Nov 2012 14:59:47 +0000 (15:59 +0100)
commit64e7c237db1eb5f463f4b810b09eda232da83676
treefc44d8ea51f30f52321c4e24c7fceb77c4e0afef
parentb1eac93431c377805984210a8ef76f5c314c8a5f
Create off-line card encryption key with the right size.

* g10/keygen.c (gen_card_key_with_backup): Get the size of the key
from the card.
--

Formerly the off-line encryption key was created with a fixed length
of 1024 bit.  With this change the key is created as expected.

GnuPG-bug-id: 1230
g10/keygen.c