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

Unified Diff: mozilla/security/nss/lib/freebl/gcm.c

Issue 12668022: Make CKM_AES_GCM usable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 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: mozilla/security/nss/lib/freebl/gcm.c
===================================================================
--- mozilla/security/nss/lib/freebl/gcm.c (revision 182578)
+++ mozilla/security/nss/lib/freebl/gcm.c (working copy)
@@ -230,7 +230,7 @@
PORT_SetError(SEC_ERROR_LIBRARY_FAILURE);
return SECFailure;
}
- gcm_reverse(T, X, blocksize);
+ gcm_reverse(T, tmp_buf, blocksize);
wtc 2013/03/26 18:24:46 The original code passes |X| as the second argumen
wtc 2013/03/26 18:41:56 If this bug in gcm_getX() only affects the zero-le
return SECSuccess;
}
@@ -575,11 +575,11 @@
if (rv != SECSuccess) {
return SECFailure;
}
- rv = gcmHash_Sync(ghash, blocksize);
- if (rv != SECSuccess) {
- return SECFailure;
- }
}
+ rv = gcmHash_Sync(ghash, blocksize);
+ if (rv != SECSuccess) {
+ return SECFailure;
+ }
wtc 2013/03/26 18:24:46 This change is not necessary (because ghash->count
return SECSuccess;
}

Powered by Google App Engine
This is Rietveld 408576698