diff options
| author | ame <[email protected]> | 2024-04-05 22:15:55 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-04-05 22:15:55 -0500 |
| commit | b8c10dac99316974d142c530356ad5cd8fdf9afa (patch) | |
| tree | b91c803a9a3ed3b391166684f0ac940c44977f17 /src/hash/xor.c | |
| parent | 18657b5d226f5fe20ea049308b5078fd188ae96c (diff) | |
+ + final fixes
Diffstat (limited to 'src/hash/xor.c')
| -rw-r--r-- | src/hash/xor.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/hash/xor.c b/src/hash/xor.c index 1785414..f2e4ff0 100644 --- a/src/hash/xor.c +++ b/src/hash/xor.c @@ -24,10 +24,7 @@ uint8_t xor8(uint8_t* aa, size_t len){ common_hash_init_update(xor8); int l_xor8_final(lua_State* L){ - lua_pushstring(L, "ud"); - lua_gettable(L, 1); - - struct xor8_hash* a = (struct xor8_hash*)lua_touserdata(L, -1); + struct xor8_hash* a = (struct xor8_hash*)lua_touserdata(L, 1); uint8_t u = xor8_final(a); char digest[8]; sprintf(digest,"%02x",u); |
