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

Unified Diff: nss/mozilla/security/nss/lib/freebl/mpi/mp_gf2m-priv.h

Issue 10919163: Add GCM, CTR, and CTS modes to AES. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Fix comments as rsleevi suggested, fix a 32-bit bug and miscellaneous issues Created 8 years, 3 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/mozilla/security/nss/lib/freebl/mpi/mp_gf2m-priv.h
===================================================================
--- nss/mozilla/security/nss/lib/freebl/mpi/mp_gf2m-priv.h (revision 155503)
+++ nss/mozilla/security/nss/lib/freebl/mpi/mp_gf2m-priv.h (working copy)
@@ -46,8 +46,14 @@
#if defined(MP_USE_UINT_DIGIT)
#define MP_DIGIT_BITS 32
+/* enable fast divide and mod operations on MP_DIGIT_BITS */
+#define MP_DIGIT_BITS_LOG_2 5
+#define MP_DIGIT_BITS_MASK 0x1f
#else
#define MP_DIGIT_BITS 64
+/* enable fast divide and mod operations on MP_DIGIT_BITS */
+#define MP_DIGIT_BITS_LOG_2 6
+#define MP_DIGIT_BITS_MASK 0x3f
#endif
/* Platform-specific macros for fast binary polynomial squaring. */

Powered by Google App Engine
This is Rietveld 408576698