Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
xxtea-c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
xxtea-c
Commits
c995869f
Commit
c995869f
authored
Mar 03, 2015
by
andot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved Fix key.
parent
6ba543bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
xxtea.c
xxtea.c
+2
-2
No files found.
xxtea.c
View file @
c995869f
...
@@ -29,11 +29,11 @@ typedef unsigned __int32 uint32_t;
...
@@ -29,11 +29,11 @@ typedef unsigned __int32 uint32_t;
#define DELTA 0x9e3779b9
#define DELTA 0x9e3779b9
#define FIXED_KEY \
#define FIXED_KEY \
size_t
i
,
j
;
\
size_t
i
;
\
uint8_t
fixed_key
[
16
];
\
uint8_t
fixed_key
[
16
];
\
memcpy
(
fixed_key
,
key
,
16
);
\
memcpy
(
fixed_key
,
key
,
16
);
\
for
(
i
=
0
;
(
i
<
16
)
&&
(
fixed_key
[
i
]
!=
0
);
++
i
);
\
for
(
i
=
0
;
(
i
<
16
)
&&
(
fixed_key
[
i
]
!=
0
);
++
i
);
\
for
(
j
=
i
+
1
;
j
<
16
;
++
j
)
fixed_key
[
j
]
=
0
;
\
for
(
++
i
;
i
<
16
;
++
i
)
fixed_key
[
i
]
=
0
;
\
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment