Bugfixes:
- 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
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <linux/usb/ch9.h>
|
||||
#include <opensc/opensc.h>
|
||||
#include <openssl/pace.h>
|
||||
#include <openssl/bn.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -44,7 +45,7 @@ extern "C" {
|
||||
struct pace_sm_ctx {
|
||||
int protocol;
|
||||
/* XXX SSC is up to 16 Bytes long, not only 16 Bits */
|
||||
uint16_t ssc;
|
||||
BIGNUM *ssc;
|
||||
const BUF_MEM *key_mac;
|
||||
const BUF_MEM *key_enc;
|
||||
PACE_CTX *ctx;
|
||||
|
||||
Reference in New Issue
Block a user