Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
b86af9e2
Commit
b86af9e2
authored
Oct 05, 2004
by
Niels Möller
Browse files
(q_table): Use a const pointer array.
Rev: src/nettle/twofish.c:1.7
parent
72e63b91
Changes
1
Show whitespace changes
Inline
Side-by-side
twofish.c
View file @
b86af9e2
...
@@ -199,7 +199,8 @@ compute_s(uint32_t m1, uint32_t m2)
...
@@ -199,7 +199,8 @@ compute_s(uint32_t m1, uint32_t m2)
* of the function h, cf. figure 2 of the twofish paper.
* of the function h, cf. figure 2 of the twofish paper.
*/
*/
static
const
uint8_t
*
q_table
[
4
][
5
]
=
{
{
q1
,
q1
,
q0
,
q0
,
q1
},
static
const
uint8_t
*
const
q_table
[
4
][
5
]
=
{
{
q1
,
q1
,
q0
,
q0
,
q1
},
{
q0
,
q1
,
q1
,
q0
,
q0
},
{
q0
,
q1
,
q1
,
q0
,
q0
},
{
q0
,
q0
,
q0
,
q1
,
q1
},
{
q0
,
q0
,
q0
,
q1
,
q1
},
{
q1
,
q0
,
q1
,
q1
,
q0
}
};
{
q1
,
q0
,
q1
,
q1
,
q0
}
};
...
...
Write
Preview
Supports
Markdown
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