| 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: sha512.c,v 1.21 2012/07/27 20:00:39 wtc%google.com Exp $ */ | 7 /* $Id: sha512.c,v 1.20 2012/04/25 14:49:43 gerv%gerv.net Exp $ */ |
| 8 | 8 |
| 9 #ifdef FREEBL_NO_DEPEND | 9 #ifdef FREEBL_NO_DEPEND |
| 10 #include "stubs.h" | 10 #include "stubs.h" |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 #include "prcpucfg.h" | 13 #include "prcpucfg.h" |
| 14 #if defined(NSS_X86) || defined(SHA_NO_LONG_LONG) | 14 #if defined(NSS_X86) || defined(SHA_NO_LONG_LONG) |
| 15 #define NOUNROLL512 1 | 15 #define NOUNROLL512 1 |
| 16 #undef HAVE_LONG_LONG | 16 #undef HAVE_LONG_LONG |
| 17 #endif | 17 #endif |
| (...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1509 } | 1509 } |
| 1510 printf("done\n"); | 1510 printf("done\n"); |
| 1511 } | 1511 } |
| 1512 return 0; | 1512 return 0; |
| 1513 } | 1513 } |
| 1514 | 1514 |
| 1515 void *PORT_Alloc(size_t len) { return malloc(len); } | 1515 void *PORT_Alloc(size_t len) { return malloc(len); } |
| 1516 void PORT_Free(void *ptr) { free(ptr); } | 1516 void PORT_Free(void *ptr) { free(ptr); } |
| 1517 void PORT_ZFree(void *ptr, size_t len) { memset(ptr, 0, len); free(ptr); } | 1517 void PORT_ZFree(void *ptr, size_t len) { memset(ptr, 0, len); free(ptr); } |
| 1518 #endif | 1518 #endif |
| OLD | NEW |