Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Tiny AES C
Commits
6acd6539
Commit
6acd6539
authored
Jun 03, 2014
by
kokke
Browse files
Update aes.c
parent
cde9cf2e
Changes
1
Show whitespace changes
Inline
Side-by-side
aes.c
View file @
6acd6539
...
@@ -179,10 +179,10 @@ static void KeyExpansion()
...
@@ -179,10 +179,10 @@ static void KeyExpansion()
tempa
[
3
]
=
getSBoxValue
(
tempa
[
3
]);
tempa
[
3
]
=
getSBoxValue
(
tempa
[
3
]);
}
}
}
}
RoundKey
[
i
*
4
]
=
RoundKey
[(
i
-
Nk
)
*
4
]
^
tempa
[
0
];
RoundKey
[
i
*
4
]
=
RoundKey
[(
i
-
Nk
)
*
4
]
^
tempa
[
0
];
RoundKey
[
(
i
*
4
)
+
1
]
=
RoundKey
[(
i
-
Nk
)
*
(
4
+
1
)
]
^
tempa
[
1
];
RoundKey
[
i
*
4
+
1
]
=
RoundKey
[(
i
-
Nk
)
*
4
+
1
]
^
tempa
[
1
];
RoundKey
[
(
i
*
4
)
+
2
]
=
RoundKey
[(
i
-
Nk
)
*
(
4
+
2
)
]
^
tempa
[
2
];
RoundKey
[
i
*
4
+
2
]
=
RoundKey
[(
i
-
Nk
)
*
4
+
2
]
^
tempa
[
2
];
RoundKey
[
(
i
*
4
)
+
3
]
=
RoundKey
[(
i
-
Nk
)
*
(
4
+
3
)
]
^
tempa
[
3
];
RoundKey
[
i
*
4
+
3
]
=
RoundKey
[(
i
-
Nk
)
*
4
+
3
]
^
tempa
[
3
];
}
}
}
}
...
...
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