mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
added polarrssl wrapper sketch to emv_tols
This commit is contained in:
parent
4532932727
commit
b0b162ea7a
3 changed files with 4 additions and 3 deletions
|
@ -110,6 +110,7 @@ CMDSRCS = crapto1/crapto1.c\
|
||||||
ui.c \
|
ui.c \
|
||||||
cmddata.c \
|
cmddata.c \
|
||||||
lfdemod.c \
|
lfdemod.c \
|
||||||
|
emv/crypto_polarssl.c\
|
||||||
emv/crypto.c\
|
emv/crypto.c\
|
||||||
emv/emv_pk.c\
|
emv/emv_pk.c\
|
||||||
emv/emv_pki.c\
|
emv/emv_pki.c\
|
||||||
|
|
|
@ -26,12 +26,10 @@ static struct crypto_backend *crypto_backend;
|
||||||
|
|
||||||
static bool crypto_init(void)
|
static bool crypto_init(void)
|
||||||
{
|
{
|
||||||
//const char *driver;
|
|
||||||
|
|
||||||
if (crypto_backend)
|
if (crypto_backend)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// crypto_backend = crypto_nettle_init(); TODO!!!!!
|
crypto_backend = crypto_polarssl_init();
|
||||||
|
|
||||||
if (!crypto_backend)
|
if (!crypto_backend)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -45,4 +45,6 @@ struct crypto_backend {
|
||||||
struct crypto_pk *(*pk_genkey)(enum crypto_algo_pk pk, va_list vl);
|
struct crypto_pk *(*pk_genkey)(enum crypto_algo_pk pk, va_list vl);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct crypto_backend *crypto_polarssl_init(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue