mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-23 06:25:28 -07:00
move emv crypto tests to folder client/emv/test
This commit is contained in:
parent
7c79e952b7
commit
eba3b97a16
14 changed files with 27 additions and 24 deletions
|
@ -115,17 +115,17 @@ CMDSRCS = crapto1/crapto1.c\
|
||||||
emv/emv_pk.c\
|
emv/emv_pk.c\
|
||||||
emv/emv_pki.c\
|
emv/emv_pki.c\
|
||||||
emv/emv_pki_priv.c\
|
emv/emv_pki_priv.c\
|
||||||
emv/cryptotest.c\
|
emv/test/cryptotest.c\
|
||||||
emv/apduinfo.c\
|
emv/apduinfo.c\
|
||||||
emv/dump.c\
|
emv/dump.c\
|
||||||
emv/tlv.c\
|
emv/tlv.c\
|
||||||
emv/emv_tags.c\
|
emv/emv_tags.c\
|
||||||
emv/dol.c\
|
emv/dol.c\
|
||||||
emv/emvcore.c\
|
emv/emvcore.c\
|
||||||
emv/crypto_test.c\
|
emv/test/crypto_test.c\
|
||||||
emv/sda_test.c\
|
emv/test/sda_test.c\
|
||||||
emv/dda_test.c\
|
emv/test/dda_test.c\
|
||||||
emv/cda_test.c\
|
emv/test/cda_test.c\
|
||||||
emv/cmdemv.c\
|
emv/cmdemv.c\
|
||||||
cmdhf.c \
|
cmdhf.c \
|
||||||
cmdhf14a.c \
|
cmdhf14a.c \
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "cmdemv.h"
|
#include "cmdemv.h"
|
||||||
#include "cryptotest.h"
|
#include "test/cryptotest.h"
|
||||||
|
|
||||||
int UsageCmdHFEMVSelect(void) {
|
int UsageCmdHFEMVSelect(void) {
|
||||||
PrintAndLog("HELP : Executes select applet command:\n");
|
PrintAndLog("HELP : Executes select applet command:\n");
|
||||||
|
@ -437,7 +437,7 @@ int CmdHFEMVExec(const char *cmd) {
|
||||||
TLV_ADD(0x9F66, "\x26\x00\x00\x00"); // qVSDC
|
TLV_ADD(0x9F66, "\x26\x00\x00\x00"); // qVSDC
|
||||||
break;
|
break;
|
||||||
case TT_CDA:
|
case TT_CDA:
|
||||||
TLV_ADD(0x9F66, "\x86\x80\x00\x00"); // CDA
|
TLV_ADD(0x9F66, "\x26\x80\x00\x00"); // CDA
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
TLV_ADD(0x9F66, "\x26\x00\x00\x00"); // qVSDC
|
TLV_ADD(0x9F66, "\x26\x00\x00\x00"); // qVSDC
|
||||||
|
|
|
@ -178,6 +178,9 @@ static struct crypto_pk *crypto_pk_polarssl_genkey_rsa(va_list vl)
|
||||||
unsigned int nbits = va_arg(vl, unsigned int);
|
unsigned int nbits = va_arg(vl, unsigned int);
|
||||||
unsigned int exp = va_arg(vl, unsigned int);
|
unsigned int exp = va_arg(vl, unsigned int);
|
||||||
|
|
||||||
|
if (transient) {
|
||||||
|
}
|
||||||
|
|
||||||
int res = rsa_gen_key(&cp->ctx, &myrand, NULL, nbits, exp);
|
int res = rsa_gen_key(&cp->ctx, &myrand, NULL, nbits, exp);
|
||||||
if (res) {
|
if (res) {
|
||||||
fprintf(stderr, "PolarSSL private key generation error res=%x exp=%d nbits=%d.\n", res * -1, exp, nbits);
|
fprintf(stderr, "PolarSSL private key generation error res=%x exp=%d nbits=%d.\n", res * -1, exp, nbits);
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "emv_pk.h"
|
#include "../emv_pk.h"
|
||||||
#include "crypto.h"
|
#include "../crypto.h"
|
||||||
#include "dump.h"
|
#include "../dump.h"
|
||||||
#include "tlv.h"
|
#include "../tlv.h"
|
||||||
#include "emv_pki.h"
|
#include "../emv_pki.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
|
@ -17,8 +17,8 @@
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "crypto.h"
|
#include "../crypto.h"
|
||||||
#include "dump.h"
|
#include "../dump.h"
|
||||||
#include "util_posix.h"
|
#include "util_posix.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
|
@ -19,11 +19,11 @@
|
||||||
|
|
||||||
#include "dda_test.h"
|
#include "dda_test.h"
|
||||||
|
|
||||||
#include "emv_pk.h"
|
#include "../emv_pk.h"
|
||||||
#include "crypto.h"
|
#include "../crypto.h"
|
||||||
#include "dump.h"
|
#include "../dump.h"
|
||||||
#include "tlv.h"
|
#include "../tlv.h"
|
||||||
#include "emv_pki.h"
|
#include "../emv_pki.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
|
@ -17,11 +17,11 @@
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "emv_pk.h"
|
#include "../emv_pk.h"
|
||||||
#include "crypto.h"
|
#include "../crypto.h"
|
||||||
#include "dump.h"
|
#include "../dump.h"
|
||||||
#include "tlv.h"
|
#include "../tlv.h"
|
||||||
#include "emv_pki.h"
|
#include "../emv_pki.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
0
client/obj/emv/test/.dummy
Normal file
0
client/obj/emv/test/.dummy
Normal file
Loading…
Add table
Add a link
Reference in a new issue