OLD | NEW |
1 /* | 1 /* |
2 * sha512.c - implementation of SHA224, SHA256, SHA384 and SHA512 | 2 * sha512.c - implementation of SHA224, SHA256, SHA384 and SHA512 |
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 | 7 |
9 #ifdef FREEBL_NO_DEPEND | 8 #ifdef FREEBL_NO_DEPEND |
10 #include "stubs.h" | 9 #include "stubs.h" |
11 #endif | 10 #endif |
12 | 11 |
13 #include "prcpucfg.h" | 12 #include "prcpucfg.h" |
14 #if defined(NSS_X86) || defined(SHA_NO_LONG_LONG) | 13 #if defined(NSS_X86) || defined(SHA_NO_LONG_LONG) |
15 #define NOUNROLL512 1 | 14 #define NOUNROLL512 1 |
16 #undef HAVE_LONG_LONG | 15 #undef HAVE_LONG_LONG |
17 #endif | 16 #endif |
(...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1590 } | 1589 } |
1591 printf("done\n"); | 1590 printf("done\n"); |
1592 } | 1591 } |
1593 return 0; | 1592 return 0; |
1594 } | 1593 } |
1595 | 1594 |
1596 void *PORT_Alloc(size_t len) { return malloc(len); } | 1595 void *PORT_Alloc(size_t len) { return malloc(len); } |
1597 void PORT_Free(void *ptr) { free(ptr); } | 1596 void PORT_Free(void *ptr) { free(ptr); } |
1598 void PORT_ZFree(void *ptr, size_t len) { memset(ptr, 0, len); free(ptr); } | 1597 void PORT_ZFree(void *ptr, size_t len) { memset(ptr, 0, len); free(ptr); } |
1599 #endif | 1598 #endif |
OLD | NEW |