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
d7301a55
Commit
d7301a55
authored
Feb 07, 2016
by
Ma Bingyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update xxtea.c
parent
edf88a3b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
xxtea.c
xxtea.c
+9
-3
No files found.
xxtea.c
View file @
d7301a55
...
...
@@ -10,7 +10,7 @@
| |
| Code Authors: Chen fei <cf850118@163.com> |
| Ma Bingyao <mabingyao@gmail.com> |
| LastModified:
Mar 10, 2015
|
| LastModified:
Feb 7, 2016
|
| |
\**********************************************************/
...
...
@@ -94,7 +94,10 @@ typedef unsigned __int32 uint32_t;
static
uint32_t
*
xxtea_to_uint_array
(
const
uint8_t
*
data
,
size_t
len
,
int
inc_len
,
size_t
*
out_len
)
{
uint32_t
*
out
;
size_t
i
,
n
;
#if !(defined(BYTE_ORDER) && (BYTE_ORDER == LITTLE_ENDIAN))
size_t
i
;
#endif
size_t
n
;
n
=
(((
len
&
3
)
==
0
)
?
(
len
>>
2
)
:
((
len
>>
2
)
+
1
));
...
...
@@ -122,7 +125,10 @@ static uint32_t * xxtea_to_uint_array(const uint8_t * data, size_t len, int inc_
static
uint8_t
*
xxtea_to_ubyte_array
(
const
uint32_t
*
data
,
size_t
len
,
int
inc_len
,
size_t
*
out_len
)
{
uint8_t
*
out
;
size_t
i
,
m
,
n
;
#if !(defined(BYTE_ORDER) && (BYTE_ORDER == LITTLE_ENDIAN))
size_t
i
;
#endif
size_t
m
,
n
;
n
=
len
<<
2
;
...
...
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