OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 /* | |
5 * $Id$ | |
6 */ | |
7 | 4 |
8 #ifndef _CAMELLIA_H_ | 5 #ifndef _CAMELLIA_H_ |
9 #define _CAMELLIA_H_ 1 | 6 #define _CAMELLIA_H_ 1 |
10 | 7 |
11 #define CAMELLIA_BLOCK_SIZE 16 /* bytes */ | 8 #define CAMELLIA_BLOCK_SIZE 16 /* bytes */ |
12 #define CAMELLIA_MIN_KEYSIZE 16 /* bytes */ | 9 #define CAMELLIA_MIN_KEYSIZE 16 /* bytes */ |
13 #define CAMELLIA_MAX_KEYSIZE 32 /* bytes */ | 10 #define CAMELLIA_MAX_KEYSIZE 32 /* bytes */ |
14 | 11 |
15 #define CAMELLIA_MAX_EXPANDEDKEY (34*2) /* 32bit unit */ | 12 #define CAMELLIA_MAX_EXPANDEDKEY (34*2) /* 32bit unit */ |
16 | 13 |
(...skipping 20 matching lines...) Expand all Loading... |
37 */ | 34 */ |
38 struct CamelliaContextStr | 35 struct CamelliaContextStr |
39 { | 36 { |
40 PRUint32 keysize; /* bytes */ | 37 PRUint32 keysize; /* bytes */ |
41 CamelliaFunc *worker; | 38 CamelliaFunc *worker; |
42 PRUint32 expandedKey[CAMELLIA_MAX_EXPANDEDKEY]; | 39 PRUint32 expandedKey[CAMELLIA_MAX_EXPANDEDKEY]; |
43 PRUint8 iv[CAMELLIA_BLOCK_SIZE]; | 40 PRUint8 iv[CAMELLIA_BLOCK_SIZE]; |
44 }; | 41 }; |
45 | 42 |
46 #endif /* _CAMELLIA_H_ */ | 43 #endif /* _CAMELLIA_H_ */ |
OLD | NEW |