]> git.cryptolib.org Git - avr-crypto-lib.git/blob - seed_sbox.h
b2a7d12a223db302885f3c524f43fce2f731fe9b
[avr-crypto-lib.git] / seed_sbox.h
1 /**
2  * \file        seed_sbox.h
3  * \author      Daniel Otte 
4  * \date        2007-06-1
5  * \brief       sboxes and constants for seed
6  * \par License 
7  * GPL
8  * 
9  */
10  
11 #ifndef SEED_SBOX_H_
12 #define SEED_SBOX_H_
13
14 #include <stdint.h>
15 #include <avr/pgmspace.h>
16
17 uint8_t seed_sbox1[256] PROGMEM ={
18         169,  133,  214,  211,   84,   29,  172,   37, 
19          93,   67,   24,   30,   81,  252,  202,   99, 
20          40,   68,   32,  157,  224,  226,  200,   23, 
21         165,  143,    3,  123,  187,   19,  210,  238, 
22         112,  140,   63,  168,   50,  221,  246,  116, 
23         236,  149,   11,   87,   92,   91,  189,    1, 
24          36,   28,  115,  152,   16,  204,  242,  217, 
25          44,   231, 114,  131,  155,  209,  134,  201, 
26          96,   80,  163,  235,   13,  182,  158,   79, 
27         183,   90,  198,  120,  166,   18,  175,  213, 
28          97,  195,  180,   65,   82,  125,  141,    8, 
29          31,  153,    0,   25,    4,   83,  247,  225, 
30         253,  118,   47,   39,  176,  139,   14,  171, 
31         162,  110,  147,   77,  105,  124,    9,   10, 
32         191,  239,  243,  197,  135,   20,  254,  100, 
33         222,   46,   75,   26,    6,   33,  107,  102, 
34           2,  245,  146,  138,   12,  179,  126,  208, 
35         122,   71,  150,  229,   38,  128,  173,  223, 
36         161,   48,   55,  174,   54,   21,   34,   56, 
37         244,  167,   69,   76,  129,  233,  132,  151, 
38          53,  203,  206,   60,  113,   17,  199,  137, 
39         117,  251,  218,  248,  148,   89,  130,  196, 
40         255,   73,   57,  103,  192,  207,  215,  184, 
41          15,  142,   66,   35,  145,  108,  219,  164, 
42          52,  241,   72,  194,  111,   61,   45,   64, 
43         190,   62,  188,  193,  170,  186,   78,   85, 
44          59,  220,  104,  127,  156,  216,   74,   86, 
45         119,  160,  237,   70,  181,   43,  101,  250, 
46         227,  185,  177,  159,   94,  249,  230,  178, 
47          49,  234,  109,   95,  228,  240,  205,  136, 
48          22,   58,   88,  212,   98,   41,    7,   51, 
49         232,   27,    5,  121,  144,  106,   42,  154
50 };
51
52 uint8_t seed_sbox2[256] PROGMEM ={
53          56,  232,   45,  166,  207,  222,  179,  184, 
54         175,   96,   85,  199,   68,  111,  107,   91, 
55         195,   98,   51,  181,   41,  160,  226,  167, 
56         211,  145,   17,    6,   28,  188,   54,   75, 
57         239,  136,  108,  168,   23,  196,   22,  244, 
58         194,   69,  225,  214,   63,   61,  142,  152, 
59          40,   78,  246,   62,  165,  249,   13,  223, 
60         216,   43,  102,  122,   39,   47,  241,  114, 
61          66,  212,   65,  192,  115,  103,  172,  139, 
62         247,  173,  128,   31,  202,   44,  170,   52, 
63         210,   11,  238,  233,   93,  148,   24,  248, 
64          87,  174,    8,  197,   19,  205,  134,  185, 
65         255,  125,  193,   49,  245,  138,  106,  177, 
66         209,   32,  215,    2,   34,    4,  104,  113, 
67           7,  219,  157,  153,   97,  190,  230,   89, 
68         221,   81,  144,  220,  154,  163,  171,  208, 
69         129,   15,   71,   26,  227,  236,  141,  191, 
70         150,  123,   92,  162,  161,   99,   35,   77, 
71         200,  158,  156,   58,   12,   46,  186,  110, 
72         159,   90,  242,  146,  243,   73,  120,  204, 
73          21,  251,  112,  117,  127,   53,   16,    3, 
74         100,  109,  198,  116,  213,  180,  234,    9, 
75         118,   25,  254,   64,   18,  224,  189,    5, 
76         250,    1,  240,   42,   94,  169,   86,   67, 
77         133,   20,  137,  155,  176,  229,   72,  121, 
78         151,  252,   30,  130,   33,  140,   27,   95, 
79         119,   84,  178,   29,   37,   79,    0,   70, 
80         237,   88,   82,  235,  126,  218,  201,  253, 
81          48,  149,  101,   60,  182,  228,  187,  124, 
82          14,   80,   57,   38,   50,  132,  105,  147, 
83          55,  231,   36,  164,  203,   83,   10,  135, 
84         217,   76,  131,  143,  206,   59,   74,  183 
85 };
86
87 /* key constants */
88 /*
89 uint32_t seed_kc[16] PROGMEM ={
90         0x9e3779b9, 
91         0x3c6ef373,
92         0x78dde6e6, 
93         0xf1bbcdcc, 
94         0xe3779b99, 
95         0xc6ef3733, 
96         0x8dde6e67, 
97         0x1bbcdccf, 
98         0x3779b99e,
99         0x6ef3733c,     
100         0xdde6e678,
101         0xbbcdccf1,
102         0x779b99e3,
103         0xef3733c6,
104         0xde6e678d,
105         0xbcdccf1b
106 };
107 // */
108 /* key constants (mal andersrum) */
109 // /*
110 uint32_t seed_kc[16] PROGMEM ={
111         0xb979379e, 
112         0x73f36e3c,
113         0xe6e6dd78, 
114         0xcccdbbf1, 
115         0x999b77e3, 
116         0x3337efc6, 
117         0x676ede8d, 
118         0xcfdcbc1b, 
119         0x9eb97937,
120         0x3c73f36e,     
121         0x78e6e6dd,
122         0xf1cccdbb,
123         0xe3999b77,
124         0xc63337ef,
125         0x8d676ede,
126         0x1bcfdcbc
127 };
128 // */
129 #endif /*SEED_SBOX_H_*/