Commit b86af9e2 authored by Niels Möller's avatar Niels Möller

(q_table): Use a const pointer array.

Rev: src/nettle/twofish.c:1.7
parent 72e63b91
......@@ -199,10 +199,11 @@ compute_s(uint32_t m1, uint32_t m2)
* of the function h, cf. figure 2 of the twofish paper.
*/
static const uint8_t * q_table[4][5] = { { q1, q1, q0, q0, q1 },
{ q0, q1, q1, q0, q0 },
{ q0, q0, q0, q1, q1 },
{ q1, q0, q1, q1, q0 } };
static const uint8_t * const q_table[4][5] =
{ { q1, q1, q0, q0, q1 },
{ q0, q1, q1, q0, q0 },
{ q0, q0, q0, q1, q1 },
{ q1, q0, q1, q1, q0 } };
/* The matrix MDS as specified in section 4.3.2 of the twofish paper. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment