diff --git a/client/Makefile b/client/Makefile index 4a4dd65a..0bd2f927 100644 --- a/client/Makefile +++ b/client/Makefile @@ -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\ diff --git a/client/emv/crypto.c b/client/emv/crypto.c index a40e1a6b..c8ced6d4 100644 --- a/client/emv/crypto.c +++ b/client/emv/crypto.c @@ -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; diff --git a/client/emv/crypto_backend.h b/client/emv/crypto_backend.h index 79273c0a..a815ae11 100644 --- a/client/emv/crypto_backend.h +++ b/client/emv/crypto_backend.h @@ -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