mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-07 05:31:17 -07:00
Iceman's script aes fix #93
Thanks Iceman (note I did not have a tag to double test this one. :)
This commit is contained in:
parent
e9b8d0dd6e
commit
bdfb62b405
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ static int l_aes(lua_State *L)
|
||||||
|
|
||||||
aes_context ctx;
|
aes_context ctx;
|
||||||
aes_init(&ctx);
|
aes_init(&ctx);
|
||||||
aes_setkey_enc(&ctx,(const unsigned char *)p_key,128);
|
aes_setkey_dec(&ctx, aes_key, 128);
|
||||||
aes_crypt_cbc(&ctx,AES_DECRYPT,sizeof(indata), iv, indata,outdata );
|
aes_crypt_cbc(&ctx,AES_DECRYPT,sizeof(indata), iv, indata,outdata );
|
||||||
//Push decrypted array as a string
|
//Push decrypted array as a string
|
||||||
lua_pushlstring(L,(const char *)&outdata, sizeof(outdata));
|
lua_pushlstring(L,(const char *)&outdata, sizeof(outdata));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue