added polarrssl wrapper sketch to emv_tols

This commit is contained in:
merlokk 2017-12-04 19:10:43 +02:00
commit b0b162ea7a
3 changed files with 4 additions and 3 deletions

View file

@ -110,6 +110,7 @@ CMDSRCS = crapto1/crapto1.c\
ui.c \
cmddata.c \
lfdemod.c \
emv/crypto_polarssl.c\
emv/crypto.c\
emv/emv_pk.c\
emv/emv_pki.c\

View file

@ -26,12 +26,10 @@ static struct crypto_backend *crypto_backend;
static bool crypto_init(void)
{
//const char *driver;
if (crypto_backend)
return true;
// crypto_backend = crypto_nettle_init(); TODO!!!!!
crypto_backend = crypto_polarssl_init();
if (!crypto_backend)
return false;

View file

@ -45,4 +45,6 @@ struct crypto_backend {
struct crypto_pk *(*pk_genkey)(enum crypto_algo_pk pk, va_list vl);
};
struct crypto_backend *crypto_polarssl_init(void);
#endif