3 This file is part of the ARM-Crypto-Lib.
4 Copyright (C) 2006-2011 Daniel Otte (daniel.otte@rub.de)
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 * \brief sboxes and constants for seed
31 const uint8_t seed_sbox1[256] ={
32 169, 133, 214, 211, 84, 29, 172, 37,
33 93, 67, 24, 30, 81, 252, 202, 99,
34 40, 68, 32, 157, 224, 226, 200, 23,
35 165, 143, 3, 123, 187, 19, 210, 238,
36 112, 140, 63, 168, 50, 221, 246, 116,
37 236, 149, 11, 87, 92, 91, 189, 1,
38 36, 28, 115, 152, 16, 204, 242, 217,
39 44, 231, 114, 131, 155, 209, 134, 201,
40 96, 80, 163, 235, 13, 182, 158, 79,
41 183, 90, 198, 120, 166, 18, 175, 213,
42 97, 195, 180, 65, 82, 125, 141, 8,
43 31, 153, 0, 25, 4, 83, 247, 225,
44 253, 118, 47, 39, 176, 139, 14, 171,
45 162, 110, 147, 77, 105, 124, 9, 10,
46 191, 239, 243, 197, 135, 20, 254, 100,
47 222, 46, 75, 26, 6, 33, 107, 102,
48 2, 245, 146, 138, 12, 179, 126, 208,
49 122, 71, 150, 229, 38, 128, 173, 223,
50 161, 48, 55, 174, 54, 21, 34, 56,
51 244, 167, 69, 76, 129, 233, 132, 151,
52 53, 203, 206, 60, 113, 17, 199, 137,
53 117, 251, 218, 248, 148, 89, 130, 196,
54 255, 73, 57, 103, 192, 207, 215, 184,
55 15, 142, 66, 35, 145, 108, 219, 164,
56 52, 241, 72, 194, 111, 61, 45, 64,
57 190, 62, 188, 193, 170, 186, 78, 85,
58 59, 220, 104, 127, 156, 216, 74, 86,
59 119, 160, 237, 70, 181, 43, 101, 250,
60 227, 185, 177, 159, 94, 249, 230, 178,
61 49, 234, 109, 95, 228, 240, 205, 136,
62 22, 58, 88, 212, 98, 41, 7, 51,
63 232, 27, 5, 121, 144, 106, 42, 154
66 const uint8_t seed_sbox2[256] ={
67 56, 232, 45, 166, 207, 222, 179, 184,
68 175, 96, 85, 199, 68, 111, 107, 91,
69 195, 98, 51, 181, 41, 160, 226, 167,
70 211, 145, 17, 6, 28, 188, 54, 75,
71 239, 136, 108, 168, 23, 196, 22, 244,
72 194, 69, 225, 214, 63, 61, 142, 152,
73 40, 78, 246, 62, 165, 249, 13, 223,
74 216, 43, 102, 122, 39, 47, 241, 114,
75 66, 212, 65, 192, 115, 103, 172, 139,
76 247, 173, 128, 31, 202, 44, 170, 52,
77 210, 11, 238, 233, 93, 148, 24, 248,
78 87, 174, 8, 197, 19, 205, 134, 185,
79 255, 125, 193, 49, 245, 138, 106, 177,
80 209, 32, 215, 2, 34, 4, 104, 113,
81 7, 219, 157, 153, 97, 190, 230, 89,
82 221, 81, 144, 220, 154, 163, 171, 208,
83 129, 15, 71, 26, 227, 236, 141, 191,
84 150, 123, 92, 162, 161, 99, 35, 77,
85 200, 158, 156, 58, 12, 46, 186, 110,
86 159, 90, 242, 146, 243, 73, 120, 204,
87 21, 251, 112, 117, 127, 53, 16, 3,
88 100, 109, 198, 116, 213, 180, 234, 9,
89 118, 25, 254, 64, 18, 224, 189, 5,
90 250, 1, 240, 42, 94, 169, 86, 67,
91 133, 20, 137, 155, 176, 229, 72, 121,
92 151, 252, 30, 130, 33, 140, 27, 95,
93 119, 84, 178, 29, 37, 79, 0, 70,
94 237, 88, 82, 235, 126, 218, 201, 253,
95 48, 149, 101, 60, 182, 228, 187, 124,
96 14, 80, 57, 38, 50, 132, 105, 147,
97 55, 231, 36, 164, 203, 83, 10, 135,
98 217, 76, 131, 143, 206, 59, 74, 183
102 const uint32_t seed_kc[16] ={