Update card-gids.c to support 3072 & 4096 RSA key sizes

This commit is contained in:
Benjamin DELPY 2019-12-18 22:01:28 +01:00 committed by Frank Morgner
parent 187d908feb
commit b59456b6e4
1 changed files with 2 additions and 0 deletions

View File

@ -667,6 +667,8 @@ static int gids_init(sc_card_t * card)
/* fix me: add other algorithms when the gids specification will tell how to extract the algo id from the FCP */
_sc_card_add_rsa_alg(card, 1024, flags, 0);
_sc_card_add_rsa_alg(card, 2048, flags, 0);
_sc_card_add_rsa_alg(card, 3072, flags, 0);
_sc_card_add_rsa_alg(card, 4096, flags, 0);
return SC_SUCCESS;
}