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
4a88cb05
Commit
4a88cb05
authored
Mar 09, 2015
by
andot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused assignment.
parent
1180839f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
xxtea.c
xxtea.c
+3
-3
No files found.
xxtea.c
View file @
4a88cb05
...
...
@@ -10,7 +10,7 @@
| |
| Code Authors: Chen fei <cf850118@163.com> |
| Ma Bingyao <mabingyao@gmail.com> |
| LastModified: Mar
9, 2015
|
| LastModified: Mar
10, 2015
|
| |
\**********************************************************/
...
...
@@ -151,7 +151,7 @@ static uint8_t * xxtea_to_ubyte_array(const uint32_t * data, size_t len, int inc
static
uint32_t
*
xxtea_uint_encrypt
(
uint32_t
*
data
,
size_t
len
,
uint32_t
*
key
)
{
uint32_t
n
=
(
uint32_t
)
len
-
1
;
uint32_t
z
=
data
[
n
],
y
=
data
[
0
]
,
p
,
q
=
6
+
52
/
(
n
+
1
),
sum
=
0
,
e
;
uint32_t
z
=
data
[
n
],
y
,
p
,
q
=
6
+
52
/
(
n
+
1
),
sum
=
0
,
e
;
if
(
n
<
1
)
return
data
;
...
...
@@ -173,7 +173,7 @@ static uint32_t * xxtea_uint_encrypt(uint32_t * data, size_t len, uint32_t * key
static
uint32_t
*
xxtea_uint_decrypt
(
uint32_t
*
data
,
size_t
len
,
uint32_t
*
key
)
{
uint32_t
n
=
(
uint32_t
)
len
-
1
;
uint32_t
z
=
data
[
n
]
,
y
=
data
[
0
],
p
,
q
=
6
+
52
/
(
n
+
1
),
sum
=
q
*
DELTA
,
e
;
uint32_t
z
,
y
=
data
[
0
],
p
,
q
=
6
+
52
/
(
n
+
1
),
sum
=
q
*
DELTA
,
e
;
if
(
n
<
1
)
return
data
;
...
...
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