- ssc is a BIGNUM, since its size can be up to 16 bytes (not 16 bits as before)
- protected le is now encoded as octet string (not as unsigned integer anymore)
- sc_format_asn1_entry was fet with wrong pointers (lebuf instead of *lebuf
and formatted_data instead of *formatted_data
Added some debug output.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@60 96b47cad-a561-4643-ad3b-153ac7d7599c
- pace.c: bugfix: don't increment ssc when resetting it.
- sm.c/.h: wrote wrapper sm_transmit_apdu
- sm.c: removed sm error handling, should be done by sc_check_sw
- sm.c/ccid.c/pace.c: added qualifier "static" to local functions
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@58 96b47cad-a561-4643-ad3b-153ac7d7599c
- pace.c (EstablishPACEChannel) Fixed initialisation of authentication_ctx.
(pace_test) Fixed usage of SC_TEST_RET and initialisation of select apdu for
EF.CardSecurity.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@55 96b47cad-a561-4643-ad3b-153ac7d7599c
(untested). struct sm_ctx needs external cipher and authentication
implementations. Here only routines for encryption/decryption/authentication
with PACE are given.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@54 96b47cad-a561-4643-ad3b-153ac7d7599c
dynamic data object
- added more debug messages
- bugfix: get_ef_card_access didn't fetch the whole file
- bugfix: set mse set at apdu type to case 3
- bugfix: only send the plain value (without tag/length) of the
PACE_MSE_SET_AT object
- bugfix: fixed general authenticate cla byte and set apdu type to
case 4
- sanity checks in sc_transmit_apdu forbid the required apdu format of
general authenticate so it had to be reimplemented in
my_transmit_apdu. apdu.c/apdu.h are mainly copied from opensc.
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@44 96b47cad-a561-4643-ad3b-153ac7d7599c
- bugfix in debug_ossl
- more generic aproach to select EF.CardAccess
- EF.CardAccess is read sequencially, to get a correct send sequence counter
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@42 96b47cad-a561-4643-ad3b-153ac7d7599c
- changed functions to pass pointers instead of structs and using realloc
instead of malloc to reduce memory overhead/usage
- changed functions to return opensc-errors to pass printout-debugging to the
top level
- included functionality of get_RDR_to_PC_Parameters in
perform_PC_to_RDR_GetParamters
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@31 96b47cad-a561-4643-ad3b-153ac7d7599c
- Support for 4 slots per reader
- abstraction of user interface
- interactive pin verification
- BCD encoding of PIN
- Support for new readers (OpenCT)
- automatically skip to a reader with a card
- added defines
- changed interface of ccid_initialize
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@23 96b47cad-a561-4643-ad3b-153ac7d7599c