mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
Compat lua compile as cpp (#1568)
* Compat lua compile as cpp * Compat lua compile as cpp
This commit is contained in:
@@ -263,11 +263,11 @@ lsha1(lua_State *L) {
|
||||
#define BLOCKSIZE 64
|
||||
|
||||
static inline void
|
||||
xor_key(uint8_t key[BLOCKSIZE], uint32_t xor) {
|
||||
xor_key(uint8_t key[BLOCKSIZE], uint32_t xor_) {
|
||||
int i;
|
||||
for (i=0;i<BLOCKSIZE;i+=sizeof(uint32_t)) {
|
||||
uint32_t * k = (uint32_t *)&key[i];
|
||||
*k ^= xor;
|
||||
*k ^= xor_;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user