Chromium Code Reviews| 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)); |