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

Unified Diff: nss/lib/freebl/mpi/mpprime.c

Issue 1843333003: Update NSPR to 4.12 and NSS to 3.23 on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@master
Patch Set: Created 4 years, 9 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/mpi/mpprime.c
diff --git a/nss/lib/freebl/mpi/mpprime.c b/nss/lib/freebl/mpi/mpprime.c
index 9b97fb2063d6fa061e98a3477f7626614bbc88db..e6f00996c6c990df0acb345b682193cbe40bc8e9 100644
--- a/nss/lib/freebl/mpi/mpprime.c
+++ b/nss/lib/freebl/mpi/mpprime.c
@@ -297,7 +297,7 @@ mp_err mpp_pprime(mp_int *a, int nt)
for(iter = 0; iter < nt; iter++) {
/* Choose a random value for 1 < x < a */
- s_mp_pad(&x, USED(a));
+ MP_CHECKOK( s_mp_pad(&x, USED(a)) );
mpp_random(&x);
MP_CHECKOK( mp_mod(&x, a, &x) );
if(mp_cmp_d(&x, 1) <= 0) {
« no previous file with comments | « nss/lib/freebl/mpi/mpmontg.c ('k') | nss/lib/freebl/poly1305.h » ('j') | nss/lib/util/secoid.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698