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

Unified Diff: nss/lib/freebl/ecl/ecp_256_32.c

Issue 13898013: Update NSS to NSS_3_15_BETA2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: nss/lib/freebl/ecl/ecp_256_32.c
===================================================================
--- nss/lib/freebl/ecl/ecp_256_32.c (revision 195639)
+++ nss/lib/freebl/ecl/ecp_256_32.c (working copy)
@@ -10,7 +10,6 @@
#include "mpi.h"
#include "mpi-priv.h"
#include "ecp.h"
-#include "secport.h"
typedef PRUint8 u8;
typedef PRUint32 u32;
@@ -1365,7 +1364,6 @@
* that we cannot avoid: if |n| is sufficiently small it may be one or more
* words too short and we'll copy less data.
*/
- PORT_Assert(MP_USED(n) * sizeof(mp_digit) <= 32);
wtc 2013/04/23 00:58:05 In the NSS upstream, it is difficult for this file
agl 2013/04/24 22:27:00 I think this is fine.
memset(out_scalar, 0, 32);
#ifdef IS_LITTLE_ENDIAN
memcpy(out_scalar, MP_DIGITS(n), MP_USED(n) * sizeof(mp_digit));
« no previous file with comments | « nss/lib/freebl/ecl/ecp_256.c ('k') | nss/lib/freebl/ecl/ecp_384.c » ('j') | nss/lib/ssl/sslerr.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698