OLD | NEW |
1 /* | 1 /* |
2 * aeskeywrap.c - implement AES Key Wrap algorithm from RFC 3394 | 2 * aeskeywrap.c - implement AES Key Wrap algorithm from RFC 3394 |
3 * | 3 * |
4 * This Source Code Form is subject to the terms of the Mozilla Public | 4 * This Source Code Form is subject to the terms of the Mozilla Public |
5 * License, v. 2.0. If a copy of the MPL was not distributed with this | 5 * License, v. 2.0. If a copy of the MPL was not distributed with this |
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
7 /* $Id$ */ | |
8 | |
9 /* $Id$ */ | |
10 | 7 |
11 #ifdef FREEBL_NO_DEPEND | 8 #ifdef FREEBL_NO_DEPEND |
12 #include "stubs.h" | 9 #include "stubs.h" |
13 #endif | 10 #endif |
14 | 11 |
15 #include "prcpucfg.h" | 12 #include "prcpucfg.h" |
16 #if defined(IS_LITTLE_ENDIAN) || defined(SHA_NO_LONG_LONG) | 13 #if defined(IS_LITTLE_ENDIAN) || defined(SHA_NO_LONG_LONG) |
17 #define BIG_ENDIAN_WITH_64_BIT_REGISTERS 0 | 14 #define BIG_ENDIAN_WITH_64_BIT_REGISTERS 0 |
18 #else | 15 #else |
19 #define BIG_ENDIAN_WITH_64_BIT_REGISTERS 1 | 16 #define BIG_ENDIAN_WITH_64_BIT_REGISTERS 1 |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 if (pOutputLen) | 373 if (pOutputLen) |
377 *pOutputLen = 0; | 374 *pOutputLen = 0; |
378 } | 375 } |
379 } else if (pOutputLen) { | 376 } else if (pOutputLen) { |
380 *pOutputLen = 0; | 377 *pOutputLen = 0; |
381 } | 378 } |
382 PORT_ZFree(R, inputLen); | 379 PORT_ZFree(R, inputLen); |
383 return s; | 380 return s; |
384 } | 381 } |
385 #undef A | 382 #undef A |
OLD | NEW |