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:
parent
9863072845
commit
01e63424f5
|
@ -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? */
|
||||
|
|
Loading…
Reference in New Issue