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 /* $Id$ */ | |
5 | 4 |
6 #ifndef _RIJNDAEL_H_ | 5 #ifndef _RIJNDAEL_H_ |
7 #define _RIJNDAEL_H_ 1 | 6 #define _RIJNDAEL_H_ 1 |
8 | 7 |
9 #include "blapii.h" | 8 #include "blapii.h" |
10 | 9 |
11 #define RIJNDAEL_MIN_BLOCKSIZE 16 /* bytes */ | 10 #define RIJNDAEL_MIN_BLOCKSIZE 16 /* bytes */ |
12 #define RIJNDAEL_MAX_BLOCKSIZE 32 /* bytes */ | 11 #define RIJNDAEL_MAX_BLOCKSIZE 32 /* bytes */ |
13 | 12 |
14 typedef SECStatus AESBlockFunc(AESContext *cx, | 13 typedef SECStatus AESBlockFunc(AESContext *cx, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 /* NOTE: The offsets of iv and expandedKey are hardcoded in intel-aes.s. | 58 /* NOTE: The offsets of iv and expandedKey are hardcoded in intel-aes.s. |
60 * Don't add new members before them without updating intel-aes.s. */ | 59 * Don't add new members before them without updating intel-aes.s. */ |
61 unsigned char iv[RIJNDAEL_MAX_BLOCKSIZE]; | 60 unsigned char iv[RIJNDAEL_MAX_BLOCKSIZE]; |
62 PRUint32 expandedKey[RIJNDAEL_MAX_EXP_KEY_SIZE]; | 61 PRUint32 expandedKey[RIJNDAEL_MAX_EXP_KEY_SIZE]; |
63 freeblDestroyFunc destroy; | 62 freeblDestroyFunc destroy; |
64 void *worker_cx; | 63 void *worker_cx; |
65 PRBool isBlock; | 64 PRBool isBlock; |
66 }; | 65 }; |
67 | 66 |
68 #endif /* _RIJNDAEL_H_ */ | 67 #endif /* _RIJNDAEL_H_ */ |
OLD | NEW |