[tools/mkimage]: upgrade and build from the u-boot source
[openwrt.git] / package / ubsec_ssb / src / hmachack.h
1 /*
2 * until we find a cleaner way, include the BSD md5/sha1 code
3 * here
4 */
5 #define HMAC_HACK 1
6 #ifdef HMAC_HACK
7 #define LITTLE_ENDIAN 1234
8 #define BIG_ENDIAN 4321
9 #ifdef __LITTLE_ENDIAN
10 #define BYTE_ORDER LITTLE_ENDIAN
11 #endif
12 #ifdef __BIG_ENDIAN
13 #define BYTE_ORDER BIG_ENDIAN
14 #endif
15
16 u_int8_t hmac_ipad_buffer[64] = {
17 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
18 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
19 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
20 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
21 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
22 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
23 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
24 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36
25 };
26
27 u_int8_t hmac_opad_buffer[64] = {
28 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C,
29 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C,
30 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C,
31 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C,
32 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C,
33 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C,
34 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C,
35 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C, 0x5C
36 };
37 #endif /* HMAC_HACK */
38
This page took 0.041267 seconds and 5 git commands to generate.