Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: mozilla/security/nss/lib/freebl/sha512.c

Issue 11359091: Update NSS to NSS 3.14 pre-release snapshot 2012-06-26 01:00:00 PDT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Remove the RCS Id from nss-shvfy-const.patch Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698