This commit is contained in:
merlokk 2021-06-15 13:36:01 +03:00
commit a5b5a147c9
3 changed files with 3 additions and 4 deletions

View file

@ -110,7 +110,7 @@ int CIPURSESelect(bool ActivateField, bool LeaveFieldON, uint8_t *Result, size_t
uint8_t data[] = {0x41, 0x44, 0x20, 0x46, 0x31}; uint8_t data[] = {0x41, 0x44, 0x20, 0x46, 0x31};
CipurseCClearContext(&cipurseContext); CipurseCClearContext(&cipurseContext);
return EMVSelect(ECC_CONTACTLESS, ActivateField, LeaveFieldON, data, sizeof(data), Result, MaxResultLen, ResultLen, sw, NULL); return EMVSelect(CC_CONTACTLESS, ActivateField, LeaveFieldON, data, sizeof(data), Result, MaxResultLen, ResultLen, sw, NULL);
} }
int CIPURSEChallenge(uint8_t *Result, size_t MaxResultLen, size_t *ResultLen, uint16_t *sw) { int CIPURSEChallenge(uint8_t *Result, size_t MaxResultLen, size_t *ResultLen, uint16_t *sw) {

View file

@ -12,10 +12,9 @@
#define __CIPURSECORE_H__ #define __CIPURSECORE_H__
#include "common.h" #include "common.h"
#include "emv/apduinfo.h"
#include <jansson.h> #include <jansson.h>
#include "emv/apduinfo.h" // sAPDU #include "iso7816/apduinfo.h" // sAPDU
#include "cipurse/cipursecrypto.h" #include "cipurse/cipursecrypto.h"

View file

@ -12,7 +12,7 @@
#define __CIPURSECRYPTO_H__ #define __CIPURSECRYPTO_H__
#include "common.h" #include "common.h"
#include "emv/apduinfo.h" // sAPDU #include "iso7816/apduinfo.h" // sAPDU
#define CIPURSE_KVV_LENGTH 4 #define CIPURSE_KVV_LENGTH 4
#define CIPURSE_AES_KEY_LENGTH 16 #define CIPURSE_AES_KEY_LENGTH 16