mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 13:23:25 -07:00
parent
7f2114d845
commit
d8e61a3004
1 changed files with 3 additions and 3 deletions
|
@ -1152,7 +1152,7 @@ int main()
|
||||||
if( AesCtxIni(&ctx, iv, key, KEY128, CBC) < 0)
|
if( AesCtxIni(&ctx, iv, key, KEY128, CBC) < 0)
|
||||||
printf("init error\n");
|
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");
|
printf("error in encryption\n");
|
||||||
|
|
||||||
// initialize context and decrypt cipher at other end
|
// initialize context and decrypt cipher at other end
|
||||||
|
@ -1160,7 +1160,7 @@ int main()
|
||||||
if( AesCtxIni(&ctx, iv, key, KEY128, CBC) < 0)
|
if( AesCtxIni(&ctx, iv, key, KEY128, CBC) < 0)
|
||||||
printf("init error\n");
|
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("error in decryption\n");
|
||||||
|
|
||||||
printf("%s\n", databuf);
|
printf("%s\n", databuf);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue