chg: @piwi's code cleanup and some more.

ref: https://github.com/Proxmark/proxmark3/commit/43534cbad22da2db2e1b59f9e08f0cadfe0d8d54
This commit is contained in:
iceman1001 committed 2017-02-23 00:03:10 +01:00
1 parent b4762e2712
commit 9c624f67b3
31 files changed
+176 -183

No files matched your search

+2 -2
View File
@@ -145,7 +145,7 @@ static int l_nonce2key(lua_State *L){
uint8_t dest_key[8];
num_to_bytes(key,sizeof(dest_key),dest_key);
//printf("Pushing to lua stack: %012"llx"\n",key);
//printf("Pushing to lua stack: %012" PRIx64 "\n",key);
lua_pushlstring(L,(const char *) dest_key,sizeof(dest_key));
return 2; //Two return values
@@ -531,7 +531,7 @@ static int l_hardnested(lua_State *L){
uint8_t dest_key[6];
num_to_bytes(foundkey, sizeof(dest_key), dest_key);
//printf("Pushing to lua stack: %012"llx"\n",key);
//printf("Pushing to lua stack: %012" PRIx64 "\n",key);
lua_pushlstring(L, (const char *) dest_key, sizeof(dest_key));
return 2; //Two return values
}