Package: opensc / 0.14.0-2
Metadata
Package | Version | Patches format |
---|---|---|
opensc | 0.14.0-2 | 3.0 (quilt) |
Patch series
view the series filePatch | File delta | Description |
---|---|---|
0001 belpic_Support_2k_cards.patch | (download) |
src/libopensc/card-belpic.c |
84 81 + 3 - 0 ! |
[patch] belpic: support 2k cards Recent BELPIC cards (issued since March 2014) have a validity of 10 years (rather than 5 as before), and therefore also increased the key size from 1024 bits to 2048 bits. Key size can be detected by checking the applet version, for which we have to issue a "GetCardData" command. If the applet is version 0x17 or higher, keys are 2048 bits. Use #defines rather than magic numbers Keeps the code slightly more readable. While we're at it, refactor slightly so that the code which issues the GET CARD DATA command doesn't just keep the applet version, but also makes other things available. This latter in preparation of setting the serial number. |
1