Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mars/xlog/crypt/log_crypt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ namespace xlog {

const static int TEA_BLOCK_LEN = 8;

#ifndef XLOG_NO_CRYPT
static void __TeaEncrypt(uint32_t* v, uint32_t* k) {
uint32_t v0 = v[0], v1 = v[1], sum = 0, i;
const static uint32_t delta = 0x9e3779b9;
Expand All @@ -53,6 +54,7 @@ static void __TeaEncrypt(uint32_t* v, uint32_t* k) {
v[0] = v0;
v[1] = v1;
}
#endif

static uint16_t __GetSeq(bool _is_async) {
if (!_is_async) {
Expand Down