OpenPGP: fix algorithms & key lengths calculation

Also include forgotten DO C3 in keylength calculation.
It contains the parameters for the authentication key.

Signed-off-by: Peter Marschall <peter@adpm.de>
This commit is contained in:
Peter Marschall 2011-05-31 14:16:21 +02:00
parent 9863072845
commit 01e63424f5
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ pgp_get_card_features(sc_card_t *card)
}
/* get supported algorithms & key lengths from "algorithm attributes" DOs */
for (i = 0x00c1; i < 0x0c3; i++) {
for (i = 0x00c1; i <= 0x00c3; i++) {
unsigned long flags;
/* Is this correct? */