From: pwpiwi Date: Mon, 26 Jun 2017 05:50:57 +0000 (+0200) Subject: Merge pull request #337 from Proxmark/iceman1001-patch-4 X-Git-Tag: v3.1.0~202 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/893d0fcc493c9786b553bf9c2455be8a4926bebe?hp=06ed826c0149e3982b6cf1047034ae4088cbfbed Merge pull request #337 from Proxmark/iceman1001-patch-4 Iceman1001 patch 4 --- diff --git a/armsrc/aes.c b/armsrc/aes.c index a199d04b..0a3f893d 100644 --- a/armsrc/aes.c +++ b/armsrc/aes.c @@ -1152,7 +1152,7 @@ int main() if( AesCtxIni(&ctx, iv, key, KEY128, CBC) < 0) printf("init error\n"); - if (AesEncrypt(&ctx, databuf, databuf, sizeof databuf) < 0) + if (AesEncrypt(&ctx, databuf, databuf, sizeof(databuf) ) < 0) printf("error in encryption\n"); // initialize context and decrypt cipher at other end @@ -1160,11 +1160,11 @@ int main() if( AesCtxIni(&ctx, iv, key, KEY128, CBC) < 0) printf("init error\n"); - if (AesDecrypt(&ctx, databuf, databuf, sizeof databuf) < 0) + if (AesDecrypt(&ctx, databuf, databuf, sizeof(databuf) ) < 0) printf("error in decryption\n"); printf("%s\n", databuf); return 0; } -#endif \ No newline at end of file +#endif