diff options
Diffstat (limited to 'libs/nss/src/lib')
282 files changed, 39290 insertions, 2712 deletions
diff --git a/libs/nss/src/lib/Makefile b/libs/nss/src/lib/Makefile index 8eedad0b2..6e26e3241 100644 --- a/libs/nss/src/lib/Makefile +++ b/libs/nss/src/lib/Makefile @@ -4,94 +4,106 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -####################################################################### -# (1) Include initial platform-independent assignments (MANDATORY). # -####################################################################### - -include manifest.mn - -####################################################################### -# (2) Include "global" configuration information. (OPTIONAL) # -####################################################################### +CORE_DEPTH = .. +DEPTH = .. include $(CORE_DEPTH)/coreconf/config.mk -####################################################################### -# (3) Include "component" configuration information. (OPTIONAL) # -####################################################################### - - - -####################################################################### -# (4) Include "local" platform-dependent assignments (OPTIONAL). # -####################################################################### +# This "jungle" of conditionals evaluates which DIRS to build! +# The main reason for it is AFAIK /automation/taskcluster/scripts/split.sh +# +# The fundamental organisation is: +# if NSS_BUILD_UTIL_ONLY +# else +# if NSS_BUILD_SOFTOKEN_ONLY +# else # build "all" the rest of NSS +# endif +# +# But there is even some build (NSS_BUILD_WITHOUT_SOFTOKEN), which +# depends on a previous partial build! +# +# FWIW, the dependencies are sorted and "compacted" instead of single +# lines for smaller patches, as these probably won't change much and +# it's easier to read this way. + +# Building softoken (and freebl) only requires that the paths +# to the locations where the util headers and libraries were +# previously installed by a prior util-only build - likely in +# in a system location that varies with the distribution. This +# cannot be addressed here and requires that downstream package +# mantainers add suitable modifications. Building full nss will +# not have that problem as everything is available. ifndef USE_SYSTEM_ZLIB -ZLIB_SRCDIR = zlib # Add the zlib directory to DIRS. +ZLIB_SRCDIR = zlib endif ifndef MOZILLA_CLIENT ifndef NSS_USE_SYSTEM_SQLITE -SQLITE_SRCDIR = sqlite # Add the sqlite directory to DIRS. -endif +SQLITE_SRCDIR = sqlite endif -ifndef MOZILLA_CLIENT ifeq ($(OS_ARCH),Linux) -SYSINIT_SRCDIR = sysinit # Add the sysinit directory to DIRS. -endif +SYSINIT_SRCDIR = sysinit endif +endif # MOZILLA_CLIENT ifndef NSS_DISABLE_DBM -DBM_SRCDIR = dbm # Add the dbm directory to DIRS. -endif - -ifeq ($(NSS_BUILD_UTIL_ONLY),1) -SYSINIT_SRCDIR= +DBM_SRCDIR = dbm endif ifndef NSS_DISABLE_LIBPKIX -LIBPKIX_SRCDIR = libpkix # Add the libpkix directory to DIRS. +LIBPKIX_SRCDIR = libpkix endif -####################################################################### -# (5) Execute "global" rules. (OPTIONAL) # -####################################################################### - -include $(CORE_DEPTH)/coreconf/rules.mk - -####################################################################### -# (6) Execute "component" rules. (OPTIONAL) # -####################################################################### - - - -####################################################################### -# (7) Execute "local" rules. (OPTIONAL). # -####################################################################### - ifeq ($(NSS_BUILD_UTIL_ONLY),1) UTIL_SRCDIR = util - FREEBL_SRCDIR = - SOFTOKEN_SRCDIR = + else ifeq ($(NSS_BUILD_SOFTOKEN_ONLY),1) - UTIL_SRCDIR = - FREEBL_SRCDIR = freebl - SOFTOKEN_SRCDIR = softoken + FREEBL_SRCDIR = freebl + SOFTOKEN_SRCDIR = softoken else - ifeq ($(NSS_BUILD_WITHOUT_SOFTOKEN),1) - # Not included when building nss without softoken - # This build type uses the build results of the prior - # NSS_BUILD_UTIL_ONLY and NSS_BUILD_SOFTOKEN_ONLY builds - UTIL_SRCDIR = - FREEBL_SRCDIR = - SOFTOKEN_SRCDIR = - else - # default is to include all - UTIL_SRCDIR = util + # Not included when building nss without softoken + # This build type uses the build results of the prior + # NSS_BUILD_UTIL_ONLY and NSS_BUILD_SOFTOKEN_ONLY builds + ifneq ($(NSS_BUILD_WITHOUT_SOFTOKEN),1) FREEBL_SRCDIR = freebl SOFTOKEN_SRCDIR = softoken + UTIL_SRCDIR = util endif endif -endif + + SOFTOKEN_SRCDIRS = \ + $(DBM_SRCDIR) $(FREEBL_SRCDIR) $(SOFTOKEN_SRCDIR) \ + $(SQLITE_SRCDIR) $(NULL) + + ifneq (,$(FREEBL_SRCDIR)) + $(FREEBL_SRCDIR): $(UTIL_SRCDIR) + endif + + ifneq (,$(SOFTOKEN_SRCDIR)) + $(SOFTOKEN_SRCDIR): $(DBM_SRCDIR) $(FREEBL_SRCDIR) $(SQLITE_SRCDIR) $(UTIL_SRCDIR) + endif + + ifndef NSS_BUILD_SOFTOKEN_ONLY + NSS_SRCDIRS = \ + base certdb certhigh ckfw crmf cryptohi dev jar $(LIBPKIX_SRCDIR) \ + nss pk11wrap pkcs12 pkcs7 pki smime ssl $(SYSINIT_SRCDIR) $(ZLIB_SRCDIR) + + ifneq (,$(SYSINIT_SRCDIR)) + $(SYSINIT_SRCDIR): $(UTIL_SRCDIR) + endif + + nss: base certdb certhigh cryptohi dev $(LIBPKIX_SRCDIR) pk11wrap pki $(UTIL_SRCDIR) + smime: nss pkcs7 pkcs12 + ssl: nss + ckfw: nss + + endif # !NSS_BUILD_SOFTOKEN_ONLY +endif # !NSS_BUILD_UTIL_ONLY + +DIRS = \ + $(NSS_SRCDIRS) $(SOFTOKEN_SRCDIRS) $(UTIL_SRCDIR) $(NULL) + +include $(CORE_DEPTH)/coreconf/rules.mk diff --git a/libs/nss/src/lib/base/Makefile b/libs/nss/src/lib/base/Makefile index fc78ae92c..3f49eaa45 100644 --- a/libs/nss/src/lib/base/Makefile +++ b/libs/nss/src/lib/base/Makefile @@ -4,8 +4,11 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. include manifest.mn + include $(CORE_DEPTH)/coreconf/config.mk -include config.mk -include $(CORE_DEPTH)/coreconf/rules.mk -export:: private_export +ifdef BUILD_IDG +DEFINES += -DNSSDEBUG +endif + +include $(CORE_DEPTH)/coreconf/rules.mk diff --git a/libs/nss/src/lib/base/config.mk b/libs/nss/src/lib/base/config.mk deleted file mode 100644 index 2676cd537..000000000 --- a/libs/nss/src/lib/base/config.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -ifdef BUILD_IDG -DEFINES += -DNSSDEBUG -endif - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/base/manifest.mn b/libs/nss/src/lib/base/manifest.mn index da3a0f336..6c4b2db98 100644 --- a/libs/nss/src/lib/base/manifest.mn +++ b/libs/nss/src/lib/base/manifest.mn @@ -33,6 +33,7 @@ CSRCS = \ REQUIRES = nspr LIBRARY_NAME = nssb +SHARED_LIBRARY = $(NULL) # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/certdb/Makefile b/libs/nss/src/lib/certdb/Makefile index 36524f56a..bb8877285 100644 --- a/libs/nss/src/lib/certdb/Makefile +++ b/libs/nss/src/lib/certdb/Makefile @@ -26,8 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk - ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # ####################################################################### @@ -44,5 +42,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/certdb/certdb.c b/libs/nss/src/lib/certdb/certdb.c index 0796fe5d7..4a713b6d7 100644 --- a/libs/nss/src/lib/certdb/certdb.c +++ b/libs/nss/src/lib/certdb/certdb.c @@ -2908,16 +2908,27 @@ CERT_LockCertTrust(const CERTCertificate *cert) PZ_Lock(certTrustLock); } -static PZLock *certTempPermLock = NULL; +static PZLock *certTempPermCertLock = NULL; /* - * Acquire the cert temp/perm lock + * Acquire the cert temp/perm/nssCert lock */ void CERT_LockCertTempPerm(const CERTCertificate *cert) { - PORT_Assert(certTempPermLock != NULL); - PZ_Lock(certTempPermLock); + PORT_Assert(certTempPermCertLock != NULL); + PZ_Lock(certTempPermCertLock); +} + +/* Maybe[Lock, Unlock] variants are only to be used by + * CERT_DestroyCertificate, since an application could + * call this after NSS_Shutdown destroys cert locks. */ +void +CERT_MaybeLockCertTempPerm(const CERTCertificate *cert) +{ + if (certTempPermCertLock) { + PZ_Lock(certTempPermCertLock); + } } SECStatus @@ -2941,10 +2952,10 @@ cert_InitLocks(void) } } - if (certTempPermLock == NULL) { - certTempPermLock = PZ_NewLock(nssILockCertDB); - PORT_Assert(certTempPermLock != NULL); - if (!certTempPermLock) { + if (certTempPermCertLock == NULL) { + certTempPermCertLock = PZ_NewLock(nssILockCertDB); + PORT_Assert(certTempPermCertLock != NULL); + if (!certTempPermCertLock) { PZ_DestroyLock(certTrustLock); PZ_DestroyLock(certRefCountLock); certRefCountLock = NULL; @@ -2977,10 +2988,10 @@ cert_DestroyLocks(void) rv = SECFailure; } - PORT_Assert(certTempPermLock != NULL); - if (certTempPermLock) { - PZ_DestroyLock(certTempPermLock); - certTempPermLock = NULL; + PORT_Assert(certTempPermCertLock != NULL); + if (certTempPermCertLock) { + PZ_DestroyLock(certTempPermCertLock); + certTempPermCertLock = NULL; } else { rv = SECFailure; } @@ -2999,16 +3010,24 @@ CERT_UnlockCertTrust(const CERTCertificate *cert) } /* - * Free the temp/perm lock + * Free the temp/perm/nssCert lock */ void CERT_UnlockCertTempPerm(const CERTCertificate *cert) { - PORT_Assert(certTempPermLock != NULL); - PRStatus prstat = PZ_Unlock(certTempPermLock); + PORT_Assert(certTempPermCertLock != NULL); + PRStatus prstat = PZ_Unlock(certTempPermCertLock); PORT_AssertArg(prstat == PR_SUCCESS); } +void +CERT_MaybeUnlockCertTempPerm(const CERTCertificate *cert) +{ + if (certTempPermCertLock) { + PZ_Unlock(certTempPermCertLock); + } +} + /* * Get the StatusConfig data for this handle */ diff --git a/libs/nss/src/lib/certdb/config.mk b/libs/nss/src/lib/certdb/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/certdb/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/certdb/manifest.mn b/libs/nss/src/lib/certdb/manifest.mn index 28548f467..4a8c5c40a 100644 --- a/libs/nss/src/lib/certdb/manifest.mn +++ b/libs/nss/src/lib/certdb/manifest.mn @@ -35,6 +35,7 @@ CSRCS = \ $(NULL) LIBRARY_NAME = certdb +SHARED_LIBRARY = $(NULL) # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/certdb/stanpcertdb.c b/libs/nss/src/lib/certdb/stanpcertdb.c index e2a668bb1..8e1cf279a 100644 --- a/libs/nss/src/lib/certdb/stanpcertdb.c +++ b/libs/nss/src/lib/certdb/stanpcertdb.c @@ -32,6 +32,9 @@ #include "dev.h" #include "secmodi.h" +extern void CERT_MaybeLockCertTempPerm(const CERTCertificate *cert); +extern void CERT_MaybeUnlockCertTempPerm(const CERTCertificate *cert); + PRBool SEC_CertNicknameConflict(const char *nickname, const SECItem *derSubject, CERTCertDBHandle *handle) @@ -311,7 +314,9 @@ __CERT_AddTempCertToPerm(CERTCertificate *cert, char *nickname, nssPKIObject_AddInstance(&c->object, permInstance); nssTrustDomain_AddCertsToCache(STAN_GetDefaultTrustDomain(), &c, 1); /* reset the CERTCertificate fields */ + CERT_LockCertTempPerm(cert); cert->nssCertificate = NULL; + CERT_UnlockCertTempPerm(cert); cert = STAN_GetCERTCertificateOrRelease(c); /* should return same pointer */ if (!cert) { CERT_MapStanError(); @@ -808,9 +813,17 @@ CERT_DestroyCertificate(CERTCertificate *cert) /* don't use STAN_GetNSSCertificate because we don't want to * go to the trouble of translating the CERTCertificate into * an NSSCertificate just to destroy it. If it hasn't been done - * yet, don't do it at all. - */ + * yet, don't do it at all + * + * cert->nssCertificate contains its own locks and refcount, but as it + * may be NULL, the pointer itself must be guarded by some other lock. + * Rather than creating a new global lock for only this purpose, share + * an existing global lock that happens to be taken near the write in + * fill_CERTCertificateFields(). The longer-term goal is to refactor + * all these global locks to be certificate-scoped. */ + CERT_MaybeLockCertTempPerm(cert); NSSCertificate *tmp = cert->nssCertificate; + CERT_MaybeUnlockCertTempPerm(cert); if (tmp) { /* delete the NSSCertificate */ NSSCertificate_Destroy(tmp); diff --git a/libs/nss/src/lib/certhigh/Makefile b/libs/nss/src/lib/certhigh/Makefile index a2f0cf7d5..bb8877285 100644 --- a/libs/nss/src/lib/certhigh/Makefile +++ b/libs/nss/src/lib/certhigh/Makefile @@ -26,8 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### --include config.mk - ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # ####################################################################### @@ -44,5 +42,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/certhigh/certvfypkix.c b/libs/nss/src/lib/certhigh/certvfypkix.c index a536c21c0..95d88b53f 100644 --- a/libs/nss/src/lib/certhigh/certvfypkix.c +++ b/libs/nss/src/lib/certhigh/certvfypkix.c @@ -411,7 +411,7 @@ cleanup: static PKIX_Error * cert_CreatePkixProcessingParams( CERTCertificate *cert, - PRBool checkSig, /* not used yet. See bug 391476 */ + PRBool checkSig, PRTime time, void *wincx, PRBool useArena, @@ -441,15 +441,12 @@ cert_CreatePkixProcessingParams( *pplContext = plContext; -#ifdef PKIX_NOTDEF /* Functions should be implemented in patch for 390532 */ PKIX_CHECK( pkix_pl_NssContext_SetCertSignatureCheck(checkSig, (PKIX_PL_NssContext *)plContext), PKIX_NSSCONTEXTSETCERTSIGNCHECKFAILED); -#endif /* PKIX_NOTDEF */ - PKIX_CHECK( PKIX_ProcessingParams_Create(&procParams, plContext), PKIX_PROCESSINGPARAMSCREATEFAILED); diff --git a/libs/nss/src/lib/certhigh/config.mk b/libs/nss/src/lib/certhigh/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/certhigh/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/certhigh/manifest.mn b/libs/nss/src/lib/certhigh/manifest.mn index ed9b9108a..b843e0686 100644 --- a/libs/nss/src/lib/certhigh/manifest.mn +++ b/libs/nss/src/lib/certhigh/manifest.mn @@ -29,6 +29,7 @@ CSRCS = \ $(NULL) LIBRARY_NAME = certhi +SHARED_LIBRARY = $(NULL) # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/ckfw/Makefile b/libs/nss/src/lib/ckfw/Makefile index 2902bef48..effa9abce 100644 --- a/libs/nss/src/lib/ckfw/Makefile +++ b/libs/nss/src/lib/ckfw/Makefile @@ -4,9 +4,12 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. include manifest.mn + include $(CORE_DEPTH)/coreconf/config.mk -include config.mk -include $(CORE_DEPTH)/coreconf/rules.mk + +ifdef BUILD_IDG +DEFINES += -DNSSDEBUG +endif ifdef NOTDEF # was ifdef MOZILLA_CLIENT NSS_BUILD_CAPI = 1 @@ -25,7 +28,6 @@ endif # nssck.api: ck.api ckapi.perl # $(PERL) ckapi.perl ck.api -export:: private_export # can't do this in manifest.mn because OS_TARGET isn't defined there. ifeq (,$(filter-out WINNT WIN95,$(OS_TARGET))) @@ -33,3 +35,5 @@ ifdef NSS_BUILD_CAPI DIRS += capi endif endif + +include $(CORE_DEPTH)/coreconf/rules.mk diff --git a/libs/nss/src/lib/ckfw/builtins/Makefile b/libs/nss/src/lib/ckfw/builtins/Makefile index 22726e286..2a633d289 100644 --- a/libs/nss/src/lib/ckfw/builtins/Makefile +++ b/libs/nss/src/lib/ckfw/builtins/Makefile @@ -5,7 +5,24 @@ include manifest.mn include $(CORE_DEPTH)/coreconf/config.mk -include config.mk + +ifdef BUILD_IDG +DEFINES += -DNSSDEBUG +endif + +# Needed for compilation of $(OBJDIR)/certdata.c +INCLUDES += -I. + +# +# To create a loadable module on Darwin, we must use -bundle. +# +ifeq ($(OS_TARGET),Darwin) +DSO_LDOPTS = -bundle +endif + +ifdef USE_GCOV +DSO_LDOPTS += --coverage +endif EXTRA_LIBS = \ $(DIST)/lib/$(LIB_PREFIX)nssckfw.$(LIB_SUFFIX) \ @@ -49,6 +66,5 @@ ifndef NSS_CERTDATA_TXT NSS_CERTDATA_TXT = certdata.txt endif -$(OBJDIR)/certdata.c: $(NSS_CERTDATA_TXT) certdata.perl - @$(MAKE_OBJDIR) +$(OBJDIR)/certdata.c: $(NSS_CERTDATA_TXT) certdata.perl | $$(@D)/d $(PERL) certdata.perl $(NSS_CERTDATA_TXT) $@ diff --git a/libs/nss/src/lib/ckfw/builtins/config.mk b/libs/nss/src/lib/ckfw/builtins/config.mk deleted file mode 100644 index 6bd62f155..000000000 --- a/libs/nss/src/lib/ckfw/builtins/config.mk +++ /dev/null @@ -1,38 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only shared libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(SHARED_LIBRARY) -LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - -ifeq (,$(filter-out WIN%,$(OS_TARGET))) - SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) - RES = $(OBJDIR)/$(LIBRARY_NAME).res - RESNAME = $(LIBRARY_NAME).rc -endif - -ifdef BUILD_IDG - DEFINES += -DNSSDEBUG -endif - -# Needed for compilation of $(OBJDIR)/certdata.c -INCLUDES += -I. - -# -# To create a loadable module on Darwin, we must use -bundle. -# -ifeq ($(OS_TARGET),Darwin) -DSO_LDOPTS = -bundle -endif - -ifdef USE_GCOV -DSO_LDOPTS += --coverage -endif diff --git a/libs/nss/src/lib/ckfw/builtins/manifest.mn b/libs/nss/src/lib/ckfw/builtins/manifest.mn index 5e6740f89..74718dbab 100644 --- a/libs/nss/src/lib/ckfw/builtins/manifest.mn +++ b/libs/nss/src/lib/ckfw/builtins/manifest.mn @@ -5,10 +5,11 @@ CORE_DEPTH = ../../.. -DIRS = testlib +DIRS = . testlib + +testlib: . MODULE = nss -MAPFILE = $(OBJDIR)/nssckbi.def EXPORTS = \ nssckbi.h \ @@ -30,3 +31,6 @@ CSRCS = \ REQUIRES = nspr LIBRARY_NAME = nssckbi +MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def +LIBRARY = $(NULL) +IMPORT_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/ckfw/builtins/nssckbi.h b/libs/nss/src/lib/ckfw/builtins/nssckbi.h index ed02913c3..23269845a 100644 --- a/libs/nss/src/lib/ckfw/builtins/nssckbi.h +++ b/libs/nss/src/lib/ckfw/builtins/nssckbi.h @@ -46,8 +46,8 @@ * It's recommend to switch back to 0 after having reached version 98/99. */ #define NSS_BUILTINS_LIBRARY_VERSION_MAJOR 2 -#define NSS_BUILTINS_LIBRARY_VERSION_MINOR 40 -#define NSS_BUILTINS_LIBRARY_VERSION "2.40" +#define NSS_BUILTINS_LIBRARY_VERSION_MINOR 44 +#define NSS_BUILTINS_LIBRARY_VERSION "2.44" /* These version numbers detail the semantic changes to the ckfw engine. */ #define NSS_BUILTINS_HARDWARE_VERSION_MAJOR 1 diff --git a/libs/nss/src/lib/ckfw/builtins/testlib/Makefile b/libs/nss/src/lib/ckfw/builtins/testlib/Makefile index 0f3d6c449..9eb29ddfa 100644 --- a/libs/nss/src/lib/ckfw/builtins/testlib/Makefile +++ b/libs/nss/src/lib/ckfw/builtins/testlib/Makefile @@ -4,8 +4,26 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. include manifest.mn + include $(CORE_DEPTH)/coreconf/config.mk -include config.mk + +ifdef BUILD_IDG +DEFINES += -DNSSDEBUG +endif + +# Needed for compilation of $(OBJDIR)/certdata.c +INCLUDES += -I. + +# +# To create a loadable module on Darwin, we must use -bundle. +# +ifeq ($(OS_TARGET),Darwin) +DSO_LDOPTS = -bundle +endif + +ifdef USE_GCOV +DSO_LDOPTS += --coverage +endif EXTRA_LIBS = \ $(DIST)/lib/$(LIB_PREFIX)nssckfw.$(LIB_SUFFIX) \ @@ -52,7 +70,6 @@ ifndef NSS_CERTDATA-TESTLIB_TXT NSS_CERTDATA-TESTLIB_TXT = certdata-testlib.txt endif -$(OBJDIR)/certdata-testlib.c: $(NSS_CERTDATA-TESTLIB_TXT) - @$(MAKE_OBJDIR) +$(OBJDIR)/certdata-testlib.c: $(NSS_CERTDATA-TESTLIB_TXT) | $$(@D)/d $(PERL) ../certdata.perl $(NSS_CERTDATA-TESTLIB_TXT) $@ diff --git a/libs/nss/src/lib/ckfw/builtins/testlib/config.mk b/libs/nss/src/lib/ckfw/builtins/testlib/config.mk deleted file mode 100644 index 39a39dae9..000000000 --- a/libs/nss/src/lib/ckfw/builtins/testlib/config.mk +++ /dev/null @@ -1,38 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only shared libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(SHARED_LIBRARY) -LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - -ifeq (,$(filter-out WIN%,$(OS_TARGET))) - SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) - RES = $(OBJDIR)/$(LIBRARY_NAME).res - RESNAME = $(LIBRARY_NAME).rc -endif - -ifdef BUILD_IDG - DEFINES += -DNSSDEBUG -endif - -# Needed for compilation of $(OBJDIR)/certdata.c -INCLUDES += -I. - -# -# To create a loadable module on Darwin, we must use -bundle. -# -ifeq ($(OS_TARGET),Darwin) -DSO_LDOPTS = -bundle -endif - -ifdef USE_GCOV -DSO_LDOPTS += --coverage -endif diff --git a/libs/nss/src/lib/ckfw/builtins/testlib/manifest.mn b/libs/nss/src/lib/ckfw/builtins/testlib/manifest.mn index 4500a903e..e840a8869 100644 --- a/libs/nss/src/lib/ckfw/builtins/testlib/manifest.mn +++ b/libs/nss/src/lib/ckfw/builtins/testlib/manifest.mn @@ -23,3 +23,4 @@ CSRCS = \ REQUIRES = nspr LIBRARY_NAME = nssckbi-testlib +LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/ckfw/capi/Makefile b/libs/nss/src/lib/ckfw/capi/Makefile index 81780d2f3..3949d18e2 100644 --- a/libs/nss/src/lib/ckfw/capi/Makefile +++ b/libs/nss/src/lib/ckfw/capi/Makefile @@ -5,7 +5,17 @@ include manifest.mn include $(CORE_DEPTH)/coreconf/config.mk -include config.mk + +ifdef BUILD_IDG +DEFINES += -DNSSDEBUG +endif + +# +# To create a loadable module on Darwin, we must use -bundle. +# +ifeq ($(OS_TARGET),Darwin) +DSO_LDOPTS = -bundle +endif EXTRA_LIBS = \ $(DIST)/lib/$(LIB_PREFIX)nssckfw.$(LIB_SUFFIX) \ @@ -60,8 +70,7 @@ DSO_LDOPTS = -bM:SRE -bh:4 -bnoentry EXTRA_DSO_LDOPTS = -lc MKSHLIB = xlC $(DSO_LDOPTS) -$(SHARED_LIBRARY): $(OBJS) - @$(MAKE_OBJDIR) +$(SHARED_LIBRARY): $(OBJS) | $$(@D)/d rm -f $@ $(MKSHLIB) -o $@ $(OBJS) $(EXTRA_LIBS) $(EXTRA_DSO_LDOPTS) chmod +x $@ @@ -71,5 +80,3 @@ endif ifeq ($(OS_TARGET)$(OS_RELEASE), AIX4.2) LD += -G endif - - diff --git a/libs/nss/src/lib/ckfw/capi/config.mk b/libs/nss/src/lib/ckfw/capi/config.mk deleted file mode 100644 index ec0a86271..000000000 --- a/libs/nss/src/lib/ckfw/capi/config.mk +++ /dev/null @@ -1,31 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only shared libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(SHARED_LIBRARY) -LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - -ifeq (,$(filter-out WIN%,$(OS_TARGET))) - SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) - RES = $(OBJDIR)/$(LIBRARY_NAME).res - RESNAME = $(LIBRARY_NAME).rc -endif - -ifdef BUILD_IDG - DEFINES += -DNSSDEBUG -endif - -# -# To create a loadable module on Darwin, we must use -bundle. -# -ifeq ($(OS_TARGET),Darwin) -DSO_LDOPTS = -bundle -endif diff --git a/libs/nss/src/lib/ckfw/capi/manifest.mn b/libs/nss/src/lib/ckfw/capi/manifest.mn index 38effd759..c1003d00e 100644 --- a/libs/nss/src/lib/ckfw/capi/manifest.mn +++ b/libs/nss/src/lib/ckfw/capi/manifest.mn @@ -6,7 +6,6 @@ CORE_DEPTH = ../../../.. MODULE = nss -MAPFILE = $(OBJDIR)/nsscapi.def EXPORTS = \ nsscapi.h \ @@ -29,5 +28,8 @@ CSRCS = \ REQUIRES = nspr LIBRARY_NAME = nsscapi +MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def +LIBRARY = $(NULL) +IMPORT_LIBRARY = $(NULL) #EXTRA_SHARED_LIBS = -L$(DIST)/lib -lnssckfw -lnssb -lplc4 -lplds4 diff --git a/libs/nss/src/lib/ckfw/config.mk b/libs/nss/src/lib/ckfw/config.mk deleted file mode 100644 index a3ed5aed2..000000000 --- a/libs/nss/src/lib/ckfw/config.mk +++ /dev/null @@ -1,25 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -ifdef BUILD_IDG -DEFINES += -DNSSDEBUG -endif - -# -# Hack to see if everything still builds -# - - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - - diff --git a/libs/nss/src/lib/ckfw/dbm/Makefile b/libs/nss/src/lib/ckfw/dbm/Makefile index 07ae9676a..3c4ab7e7a 100644 --- a/libs/nss/src/lib/ckfw/dbm/Makefile +++ b/libs/nss/src/lib/ckfw/dbm/Makefile @@ -4,6 +4,10 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. include manifest.mn -include config.mk include $(CORE_DEPTH)/coreconf/config.mk + +ifdef BUILD_IDG +DEFINES += -DNSSDEBUG +endif + include $(CORE_DEPTH)/coreconf/rules.mk diff --git a/libs/nss/src/lib/ckfw/dbm/config.mk b/libs/nss/src/lib/ckfw/dbm/config.mk deleted file mode 100644 index a1991e5f4..000000000 --- a/libs/nss/src/lib/ckfw/dbm/config.mk +++ /dev/null @@ -1,8 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -ifdef BUILD_IDG -DEFINES += -DNSSDEBUG -endif diff --git a/libs/nss/src/lib/ckfw/dbm/manifest.mn b/libs/nss/src/lib/ckfw/dbm/manifest.mn index 1f87f4353..ec773755d 100644 --- a/libs/nss/src/lib/ckfw/dbm/manifest.mn +++ b/libs/nss/src/lib/ckfw/dbm/manifest.mn @@ -21,5 +21,6 @@ CSRCS = \ REQUIRES = dbm nspr LIBRARY_NAME = nssckdbm +LIBRARY = $(NULL) EXTRA_SHARED_LIBS = -L$(DIST)/lib -lnssckfw -lnssb -ldbm -lnspr4 -lplc4 -lplds4 diff --git a/libs/nss/src/lib/ckfw/manifest.mn b/libs/nss/src/lib/ckfw/manifest.mn index 4f798ad61..f0395b38f 100644 --- a/libs/nss/src/lib/ckfw/manifest.mn +++ b/libs/nss/src/lib/ckfw/manifest.mn @@ -5,7 +5,9 @@ CORE_DEPTH = ../.. -DIRS = builtins +DIRS = . builtins + +builtins: . PRIVATE_EXPORTS = \ ck.h \ @@ -48,6 +50,7 @@ CSRCS = \ REQUIRES = nspr LIBRARY_NAME = nssckfw +SHARED_LIBRARY = $(NULL) # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/crmf/Makefile b/libs/nss/src/lib/crmf/Makefile index a774a9566..609d4adef 100644 --- a/libs/nss/src/lib/crmf/Makefile +++ b/libs/nss/src/lib/crmf/Makefile @@ -27,8 +27,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk - ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # ####################################################################### @@ -46,4 +44,3 @@ include $(CORE_DEPTH)/coreconf/rules.mk ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/crmf/config.mk b/libs/nss/src/lib/crmf/config.mk deleted file mode 100644 index dc39ee4d6..000000000 --- a/libs/nss/src/lib/crmf/config.mk +++ /dev/null @@ -1,16 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/crmf/manifest.mn b/libs/nss/src/lib/crmf/manifest.mn index 9f177b9ca..8c687ea24 100644 --- a/libs/nss/src/lib/crmf/manifest.mn +++ b/libs/nss/src/lib/crmf/manifest.mn @@ -41,6 +41,7 @@ CSRCS = crmfenc.c \ $(NULL) LIBRARY_NAME = crmf +SHARED_LIBRARY = $(NULL) # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/cryptohi/Makefile b/libs/nss/src/lib/cryptohi/Makefile index 71ae761e4..aae54b1e0 100644 --- a/libs/nss/src/lib/cryptohi/Makefile +++ b/libs/nss/src/lib/cryptohi/Makefile @@ -26,8 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### --include config.mk - ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # ####################################################################### @@ -45,5 +43,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/cryptohi/config.mk b/libs/nss/src/lib/cryptohi/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/cryptohi/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/cryptohi/keyi.h b/libs/nss/src/lib/cryptohi/keyi.h index b746d3c8d..707e11ade 100644 --- a/libs/nss/src/lib/cryptohi/keyi.h +++ b/libs/nss/src/lib/cryptohi/keyi.h @@ -17,6 +17,9 @@ KeyType seckey_GetKeyType(SECOidTag pubKeyOid); SECStatus sec_DecodeSigAlg(const SECKEYPublicKey *key, SECOidTag sigAlg, const SECItem *param, SECOidTag *encalg, SECOidTag *hashalg); +/* just get the 'encryption' oid from the combined signature oid */ +SECOidTag sec_GetEncAlgFromSigAlg(SECOidTag sigAlg); + /* extract the RSA-PSS hash algorithms and salt length from * parameters, taking into account of the default implications. * diff --git a/libs/nss/src/lib/cryptohi/manifest.mn b/libs/nss/src/lib/cryptohi/manifest.mn index 896c7ad12..6b1a546dd 100644 --- a/libs/nss/src/lib/cryptohi/manifest.mn +++ b/libs/nss/src/lib/cryptohi/manifest.mn @@ -9,6 +9,7 @@ MODULE = nss REQUIRES = nssutil LIBRARY_NAME = cryptohi +SHARED_LIBRARY = $(NULL) EXPORTS = \ cryptohi.h \ diff --git a/libs/nss/src/lib/cryptohi/secsign.c b/libs/nss/src/lib/cryptohi/secsign.c index 125dfd913..c46b2b1e4 100644 --- a/libs/nss/src/lib/cryptohi/secsign.c +++ b/libs/nss/src/lib/cryptohi/secsign.c @@ -31,6 +31,7 @@ sgn_NewContext(SECOidTag alg, SECItem *params, SECKEYPrivateKey *key) SGNContext *cx; SECOidTag hashalg, signalg; KeyType keyType; + PRUint32 policyFlags; SECStatus rv; /* OK, map a PKCS #7 hash and encrypt algorithm into @@ -44,7 +45,7 @@ sgn_NewContext(SECOidTag alg, SECItem *params, SECKEYPrivateKey *key) rv = sec_DecodeSigAlg(NULL, alg, params, &signalg, &hashalg); if (rv != SECSuccess) { PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); - return 0; + return NULL; } keyType = seckey_GetKeyType(signalg); @@ -53,7 +54,19 @@ sgn_NewContext(SECOidTag alg, SECItem *params, SECKEYPrivateKey *key) !((key->keyType == dsaKey) && (keyType == fortezzaKey)) && !((key->keyType == rsaKey) && (keyType == rsaPssKey))) { PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); - return 0; + return NULL; + } + /* check the policy on the hash algorithm */ + if ((NSS_GetAlgorithmPolicy(hashalg, &policyFlags) == SECFailure) || + !(policyFlags & NSS_USE_ALG_IN_ANY_SIGNATURE)) { + PORT_SetError(SEC_ERROR_SIGNATURE_ALGORITHM_DISABLED); + return NULL; + } + /* check the policy on the encryption algorithm */ + if ((NSS_GetAlgorithmPolicy(signalg, &policyFlags) == SECFailure) || + !(policyFlags & NSS_USE_ALG_IN_ANY_SIGNATURE)) { + PORT_SetError(SEC_ERROR_SIGNATURE_ALGORITHM_DISABLED); + return NULL; } cx = (SGNContext *)PORT_ZAlloc(sizeof(SGNContext)); @@ -452,9 +465,27 @@ SGN_Digest(SECKEYPrivateKey *privKey, SECItem digder; PLArenaPool *arena = 0; SGNDigestInfo *di = 0; + SECOidTag enctag; + PRUint32 policyFlags; result->data = 0; + /* check the policy on the hash algorithm */ + if ((NSS_GetAlgorithmPolicy(algtag, &policyFlags) == SECFailure) || + !(policyFlags & NSS_USE_ALG_IN_ANY_SIGNATURE)) { + PORT_SetError(SEC_ERROR_SIGNATURE_ALGORITHM_DISABLED); + return SECFailure; + } + /* check the policy on the encryption algorithm */ + enctag = sec_GetEncAlgFromSigAlg( + SEC_GetSignatureAlgorithmOidTag(privKey->keyType, algtag)); + if ((enctag == SEC_OID_UNKNOWN) || + (NSS_GetAlgorithmPolicy(enctag, &policyFlags) == SECFailure) || + !(policyFlags & NSS_USE_ALG_IN_ANY_SIGNATURE)) { + PORT_SetError(SEC_ERROR_SIGNATURE_ALGORITHM_DISABLED); + return SECFailure; + } + if (privKey->keyType == rsaKey) { arena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE); diff --git a/libs/nss/src/lib/cryptohi/secvfy.c b/libs/nss/src/lib/cryptohi/secvfy.c index aa3d6778c..2540a544c 100644 --- a/libs/nss/src/lib/cryptohi/secvfy.c +++ b/libs/nss/src/lib/cryptohi/secvfy.c @@ -217,6 +217,56 @@ const SEC_ASN1Template hashParameterTemplate[] = }; /* + * Get just the encryption algorithm from the signature algorithm + */ +SECOidTag +sec_GetEncAlgFromSigAlg(SECOidTag sigAlg) +{ + /* get the "encryption" algorithm */ + switch (sigAlg) { + case SEC_OID_PKCS1_RSA_ENCRYPTION: + case SEC_OID_PKCS1_MD2_WITH_RSA_ENCRYPTION: + case SEC_OID_PKCS1_MD5_WITH_RSA_ENCRYPTION: + case SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION: + case SEC_OID_ISO_SHA_WITH_RSA_SIGNATURE: + case SEC_OID_ISO_SHA1_WITH_RSA_SIGNATURE: + case SEC_OID_PKCS1_SHA224_WITH_RSA_ENCRYPTION: + case SEC_OID_PKCS1_SHA256_WITH_RSA_ENCRYPTION: + case SEC_OID_PKCS1_SHA384_WITH_RSA_ENCRYPTION: + case SEC_OID_PKCS1_SHA512_WITH_RSA_ENCRYPTION: + return SEC_OID_PKCS1_RSA_ENCRYPTION; + case SEC_OID_PKCS1_RSA_PSS_SIGNATURE: + return SEC_OID_PKCS1_RSA_PSS_SIGNATURE; + + /* what about normal DSA? */ + case SEC_OID_ANSIX9_DSA_SIGNATURE_WITH_SHA1_DIGEST: + case SEC_OID_BOGUS_DSA_SIGNATURE_WITH_SHA1_DIGEST: + case SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA224_DIGEST: + case SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA256_DIGEST: + return SEC_OID_ANSIX9_DSA_SIGNATURE; + case SEC_OID_MISSI_DSS: + case SEC_OID_MISSI_KEA_DSS: + case SEC_OID_MISSI_KEA_DSS_OLD: + case SEC_OID_MISSI_DSS_OLD: + return SEC_OID_MISSI_DSS; + case SEC_OID_ANSIX962_ECDSA_SHA1_SIGNATURE: + case SEC_OID_ANSIX962_ECDSA_SHA224_SIGNATURE: + case SEC_OID_ANSIX962_ECDSA_SHA256_SIGNATURE: + case SEC_OID_ANSIX962_ECDSA_SHA384_SIGNATURE: + case SEC_OID_ANSIX962_ECDSA_SHA512_SIGNATURE: + case SEC_OID_ANSIX962_ECDSA_SIGNATURE_RECOMMENDED_DIGEST: + case SEC_OID_ANSIX962_ECDSA_SIGNATURE_SPECIFIED_DIGEST: + return SEC_OID_ANSIX962_EC_PUBLIC_KEY; + /* we don't implement MD4 hashes */ + case SEC_OID_PKCS1_MD4_WITH_RSA_ENCRYPTION: + default: + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); + break; + } + return SEC_OID_UNKNOWN; +} + +/* * Pulls the hash algorithm, signing algorithm, and key type out of a * composite algorithm. * @@ -229,15 +279,16 @@ const SEC_ASN1Template hashParameterTemplate[] = */ SECStatus sec_DecodeSigAlg(const SECKEYPublicKey *key, SECOidTag sigAlg, - const SECItem *param, SECOidTag *encalg, SECOidTag *hashalg) + const SECItem *param, SECOidTag *encalgp, SECOidTag *hashalg) { int len; PLArenaPool *arena; SECStatus rv; SECItem oid; + SECOidTag encalg; PR_ASSERT(hashalg != NULL); - PR_ASSERT(encalg != NULL); + PR_ASSERT(encalgp != NULL); switch (sigAlg) { /* We probably shouldn't be generating MD2 signatures either */ @@ -354,52 +405,13 @@ sec_DecodeSigAlg(const SECKEYPublicKey *key, SECOidTag sigAlg, PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); return SECFailure; } - /* get the "encryption" algorithm */ - switch (sigAlg) { - case SEC_OID_PKCS1_RSA_ENCRYPTION: - case SEC_OID_PKCS1_MD2_WITH_RSA_ENCRYPTION: - case SEC_OID_PKCS1_MD5_WITH_RSA_ENCRYPTION: - case SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION: - case SEC_OID_ISO_SHA_WITH_RSA_SIGNATURE: - case SEC_OID_ISO_SHA1_WITH_RSA_SIGNATURE: - case SEC_OID_PKCS1_SHA224_WITH_RSA_ENCRYPTION: - case SEC_OID_PKCS1_SHA256_WITH_RSA_ENCRYPTION: - case SEC_OID_PKCS1_SHA384_WITH_RSA_ENCRYPTION: - case SEC_OID_PKCS1_SHA512_WITH_RSA_ENCRYPTION: - *encalg = SEC_OID_PKCS1_RSA_ENCRYPTION; - break; - case SEC_OID_PKCS1_RSA_PSS_SIGNATURE: - *encalg = SEC_OID_PKCS1_RSA_PSS_SIGNATURE; - break; - /* what about normal DSA? */ - case SEC_OID_ANSIX9_DSA_SIGNATURE_WITH_SHA1_DIGEST: - case SEC_OID_BOGUS_DSA_SIGNATURE_WITH_SHA1_DIGEST: - case SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA224_DIGEST: - case SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA256_DIGEST: - *encalg = SEC_OID_ANSIX9_DSA_SIGNATURE; - break; - case SEC_OID_MISSI_DSS: - case SEC_OID_MISSI_KEA_DSS: - case SEC_OID_MISSI_KEA_DSS_OLD: - case SEC_OID_MISSI_DSS_OLD: - *encalg = SEC_OID_MISSI_DSS; - break; - case SEC_OID_ANSIX962_ECDSA_SHA1_SIGNATURE: - case SEC_OID_ANSIX962_ECDSA_SHA224_SIGNATURE: - case SEC_OID_ANSIX962_ECDSA_SHA256_SIGNATURE: - case SEC_OID_ANSIX962_ECDSA_SHA384_SIGNATURE: - case SEC_OID_ANSIX962_ECDSA_SHA512_SIGNATURE: - case SEC_OID_ANSIX962_ECDSA_SIGNATURE_RECOMMENDED_DIGEST: - case SEC_OID_ANSIX962_ECDSA_SIGNATURE_SPECIFIED_DIGEST: - *encalg = SEC_OID_ANSIX962_EC_PUBLIC_KEY; - break; - /* we don't implement MD4 hashes */ - case SEC_OID_PKCS1_MD4_WITH_RSA_ENCRYPTION: - default: - PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); - return SECFailure; + encalg = sec_GetEncAlgFromSigAlg(sigAlg); + if (encalg == SEC_OID_UNKNOWN) { + return SECFailure; } + *encalgp = encalg; + return SECSuccess; } @@ -423,6 +435,7 @@ vfy_CreateContext(const SECKEYPublicKey *key, const SECItem *sig, SECStatus rv; unsigned int sigLen; KeyType type; + PRUint32 policyFlags; /* make sure the encryption algorithm matches the key type */ /* RSA-PSS algorithm can be used with both rsaKey and rsaPssKey */ @@ -433,6 +446,13 @@ vfy_CreateContext(const SECKEYPublicKey *key, const SECItem *sig, return NULL; } + /* check the policy on the encryption algorithm */ + if ((NSS_GetAlgorithmPolicy(encAlg, &policyFlags) == SECFailure) || + !(policyFlags & NSS_USE_ALG_IN_ANY_SIGNATURE)) { + PORT_SetError(SEC_ERROR_SIGNATURE_ALGORITHM_DISABLED); + return NULL; + } + cx = (VFYContext *)PORT_ZAlloc(sizeof(VFYContext)); if (cx == NULL) { goto loser; @@ -493,6 +513,14 @@ vfy_CreateContext(const SECKEYPublicKey *key, const SECItem *sig, /* error set by HASH_GetHashTypeByOidTag */ goto loser; } + /* check the policy on the hash algorithm. Do this after + * the rsa decode because some uses of this function get hash implicitly + * from the RSA signature itself. */ + if ((NSS_GetAlgorithmPolicy(cx->hashAlg, &policyFlags) == SECFailure) || + !(policyFlags & NSS_USE_ALG_IN_ANY_SIGNATURE)) { + PORT_SetError(SEC_ERROR_SIGNATURE_ALGORITHM_DISABLED); + goto loser; + } if (hash) { *hash = cx->hashAlg; @@ -688,10 +716,10 @@ VFY_EndWithSignature(VFYContext *cx, SECItem *sig) &cx->pkcs1RSADigestInfoLen, cx->key, sig, cx->wincx); - PORT_Assert(cx->hashAlg == hashid); if (rv != SECSuccess) { return SECFailure; } + PORT_Assert(cx->hashAlg == hashid); } return verifyPKCS1DigestInfo(cx, &digest); } diff --git a/libs/nss/src/lib/dbm/include/Makefile b/libs/nss/src/lib/dbm/include/Makefile index 4c9e4e939..21bb3b39f 100644 --- a/libs/nss/src/lib/dbm/include/Makefile +++ b/libs/nss/src/lib/dbm/include/Makefile @@ -44,4 +44,3 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/dbm/src/config.mk b/libs/nss/src/lib/dbm/src/config.mk index eab180540..7ce86f8c5 100644 --- a/libs/nss/src/lib/dbm/src/config.mk +++ b/libs/nss/src/lib/dbm/src/config.mk @@ -11,12 +11,6 @@ DEFINES += -DMEMMOVE -D__DBINTERFACE_PRIVATE # are specifed as dependencies within rules.mk. # -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PURE_LIBRARY = -PROGRAM = - ifdef SHARED_LIBRARY ifeq (,$(filter-out WIN%,$(OS_TARGET))) DLLBASE=/BASE:0x30000000 diff --git a/libs/nss/src/lib/dbm/src/manifest.mn b/libs/nss/src/lib/dbm/src/manifest.mn index 119044407..8b1ad694a 100644 --- a/libs/nss/src/lib/dbm/src/manifest.mn +++ b/libs/nss/src/lib/dbm/src/manifest.mn @@ -26,3 +26,4 @@ CSRCS = db.c \ $(NULL) LIBRARY_NAME = dbm +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/dev/Makefile b/libs/nss/src/lib/dev/Makefile index d88eb2807..f41333402 100644 --- a/libs/nss/src/lib/dev/Makefile +++ b/libs/nss/src/lib/dev/Makefile @@ -4,8 +4,13 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. include manifest.mn + include $(CORE_DEPTH)/coreconf/config.mk -include config.mk + +ifdef BUILD_IDG +DEFINES += -DNSSDEBUG +endif + include $(CORE_DEPTH)/coreconf/rules.mk # On AIX 4.3, IBM xlC_r compiler (version 3.6.6) cannot compile @@ -14,11 +19,9 @@ include $(CORE_DEPTH)/coreconf/rules.mk ifeq ($(OS_TARGET)$(OS_RELEASE),AIX4.3) ifeq ($(USE_64),1) ifndef BUILD_OPT -$(OBJDIR)/ckhelper.o: ckhelper.c - @$(MAKE_OBJDIR) +$(OBJDIR)/ckhelper.o: ckhelper.c | $$(@D)/d $(CC) -o $@ -c -O2 $(CFLAGS) $< endif endif endif -export:: private_export diff --git a/libs/nss/src/lib/dev/config.mk b/libs/nss/src/lib/dev/config.mk deleted file mode 100644 index 2676cd537..000000000 --- a/libs/nss/src/lib/dev/config.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -ifdef BUILD_IDG -DEFINES += -DNSSDEBUG -endif - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/dev/devslot.c b/libs/nss/src/lib/dev/devslot.c index 5021408bf..3f4e54e06 100644 --- a/libs/nss/src/lib/dev/devslot.c +++ b/libs/nss/src/lib/dev/devslot.c @@ -171,11 +171,12 @@ nssSlot_IsTokenPresent( nssSlot_EnterMonitor(slot); ckrv = CKAPI(epv)->C_GetSlotInfo(slot->slotID, &slotInfo); - nssSlot_ExitMonitor(slot); if (ckrv != CKR_OK) { - slot->token->base.name[0] = 0; /* XXX */ + if (slot->token) { + slot->token->base.name[0] = 0; /* XXX */ + } isPresent = PR_FALSE; - goto done; + goto done; /* slot lock held */ } slot->ckFlags = slotInfo.flags; /* check for the presence of the token */ @@ -183,10 +184,11 @@ nssSlot_IsTokenPresent( if (!slot->token) { /* token was never present */ isPresent = PR_FALSE; - goto done; + goto done; /* slot lock held */ } session = nssToken_GetDefaultSession(slot->token); if (session) { + nssSlot_ExitMonitor(slot); nssSession_EnterMonitor(session); /* token is not present */ if (session->handle != CK_INVALID_HANDLE) { @@ -196,6 +198,12 @@ nssSlot_IsTokenPresent( session->handle = CK_INVALID_HANDLE; } nssSession_ExitMonitor(session); + nssSlot_EnterMonitor(slot); + if (!slot->token) { + /* Check token presence after re-acquiring lock */ + isPresent = PR_FALSE; + goto done; /* slot lock held */ + } } if (slot->token->base.name[0] != 0) { /* notify the high-level cache that the token is removed */ @@ -206,14 +214,23 @@ nssSlot_IsTokenPresent( /* clear the token cache */ nssToken_Remove(slot->token); isPresent = PR_FALSE; - goto done; + goto done; /* slot lock held */ + } + if (!slot->token) { + /* This should not occur, based on the fact that the + * below calls will dereference NULL otherwise. */ + PORT_Assert(0); + isPresent = PR_FALSE; + goto done; /* slot lock held */ } + /* token is present, use the session info to determine if the card * has been removed and reinserted. */ session = nssToken_GetDefaultSession(slot->token); if (session) { PRBool tokenRemoved; + nssSlot_ExitMonitor(slot); nssSession_EnterMonitor(session); if (session->handle != CK_INVALID_HANDLE) { CK_SESSION_INFO sessionInfo; @@ -227,10 +244,16 @@ nssSlot_IsTokenPresent( } tokenRemoved = (session->handle == CK_INVALID_HANDLE); nssSession_ExitMonitor(session); + nssSlot_EnterMonitor(slot); /* token not removed, finished */ if (!tokenRemoved) { isPresent = PR_TRUE; - goto done; + goto done; /* slot lock held */ + } + if (!slot->token) { + /* Check token presence after re-acquiring lock */ + isPresent = PR_FALSE; + goto done; /* slot lock held */ } } /* the token has been removed, and reinserted, or the slot contains @@ -248,6 +271,7 @@ nssSlot_IsTokenPresent( isPresent = PR_FALSE; } done: + nssSlot_ExitMonitor(slot); /* Once we've set up the condition variable, * Before returning, it's necessary to: * 1) Set the lastTokenPingTime so that any other threads waiting on this diff --git a/libs/nss/src/lib/dev/devt.h b/libs/nss/src/lib/dev/devt.h index 0f6d9e49a..06a57ad05 100644 --- a/libs/nss/src/lib/dev/devt.h +++ b/libs/nss/src/lib/dev/devt.h @@ -96,6 +96,9 @@ struct NSSSlotStr { }; struct nssSessionStr { + /* Must not hold slot->lock when taking lock. + * See ordering in nssSlot_IsTokenPresent. + */ PZLock *lock; CK_SESSION_HANDLE handle; NSSSlot *slot; diff --git a/libs/nss/src/lib/dev/manifest.mn b/libs/nss/src/lib/dev/manifest.mn index 45c7509fc..449ae58e3 100644 --- a/libs/nss/src/lib/dev/manifest.mn +++ b/libs/nss/src/lib/dev/manifest.mn @@ -15,9 +15,6 @@ PRIVATE_EXPORTS = \ nssdev.h \ $(NULL) -EXPORTS = \ - $(NULL) - MODULE = nss CSRCS = \ @@ -30,6 +27,7 @@ CSRCS = \ REQUIRES = nspr LIBRARY_NAME = nssdev +SHARED_LIBRARY = $(NULL) # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/freebl/Makefile b/libs/nss/src/lib/freebl/Makefile index 3e75dbff7..2851474b9 100644 --- a/libs/nss/src/lib/freebl/Makefile +++ b/libs/nss/src/lib/freebl/Makefile @@ -120,25 +120,43 @@ else endif endif ifeq ($(CPU_ARCH),aarch64) - DEFINES += -DUSE_HW_AES - EXTRA_SRCS += aes-armv8.c gcm-aarch64.c + ifdef CC_IS_CLANG + DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2 + EXTRA_SRCS += aes-armv8.c gcm-aarch64.c sha1-armv8.c sha256-armv8.c + else ifeq (1,$(CC_IS_GCC)) + # GCC versions older than 4.9 don't support ARM AES. The check + # is done in two parts, first allows "major.minor" == "4.9", + # and then rejects any major versions prior to 5. Note that + # there has been no GCC 4.10, as it was renamed to GCC 5. + ifneq (,$(filter 4.9,$(word 1,$(GCC_VERSION)).$(word 2,$(GCC_VERSION)))) + DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2 + EXTRA_SRCS += aes-armv8.c gcm-aarch64.c sha1-armv8.c sha256-armv8.c + endif + ifeq (,$(filter 0 1 2 3 4,$(word 1,$(GCC_VERSION)))) + DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2 + EXTRA_SRCS += aes-armv8.c gcm-aarch64.c sha1-armv8.c sha256-armv8.c + endif + endif endif ifeq ($(CPU_ARCH),arm) ifndef NSS_DISABLE_ARM32_NEON EXTRA_SRCS += gcm-arm32-neon.c endif ifdef CC_IS_CLANG - DEFINES += -DUSE_HW_AES - EXTRA_SRCS += aes-armv8.c + DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2 + EXTRA_SRCS += aes-armv8.c sha1-armv8.c sha256-armv8.c else ifeq (1,$(CC_IS_GCC)) - # Old compiler doesn't support ARM AES. + # GCC versions older than 4.9 don't support ARM AES. The check + # is done in two parts, first allows "major.minor" == "4.9", + # and then rejects any major versions prior to 5. Note that + # there has been no GCC 4.10, as it was renamed to GCC 5. ifneq (,$(filter 4.9,$(word 1,$(GCC_VERSION)).$(word 2,$(GCC_VERSION)))) - DEFINES += -DUSE_HW_AES - EXTRA_SRCS += aes-armv8.c + DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2 + EXTRA_SRCS += aes-armv8.c sha1-armv8.c sha256-armv8.c endif ifeq (,$(filter 0 1 2 3 4,$(word 1,$(GCC_VERSION)))) - DEFINES += -DUSE_HW_AES - EXTRA_SRCS += aes-armv8.c + DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2 + EXTRA_SRCS += aes-armv8.c sha1-armv8.c sha256-armv8.c endif endif endif @@ -198,6 +216,7 @@ else ifdef BUILD_OPT OPTIMIZER += -Ox # maximum optimization for freebl endif +ifeq ($(CPU_ARCH),x86_64) ASFILES = arcfour-amd64-masm.asm mpi_amd64_masm.asm mp_comba_amd64_masm.asm DEFINES += -DNSS_BEVAND_ARCFOUR -DMPI_AMD64 -DMP_ASSEMBLY_MULTIPLY DEFINES += -DNSS_USE_COMBA @@ -215,6 +234,7 @@ else endif endif endif +endif ifeq ($(OS_TARGET),IRIX) ifeq ($(USE_N32),1) @@ -230,7 +250,12 @@ endif endif ifeq ($(OS_TARGET),Darwin) -ifeq ($(CPU_ARCH),x86) +ifeq ($(CPU_ARCH),x86_64) + ASFILES = mpi_amd64_common.s + DEFINES += -DMPI_AMD64 -DMP_IS_LITTLE_ENDIAN + DEFINES += -DMP_ASSEMBLY_MULTIPLY -DNSS_USE_COMBA + MPI_SRCS += mpi_amd64.c mp_comba.c +else ifeq ($(CPU_ARCH),x86) ASFILES = mpi_sse2.s DEFINES += -DMP_USE_UINT_DIGIT DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE @@ -240,7 +265,8 @@ endif # Darwin ifeq ($(OS_TARGET),Linux) ifeq ($(CPU_ARCH),x86_64) - ASFILES = arcfour-amd64-gas.s mpi_amd64_gas.s + # Lower case s on mpi_amd64_common due to make implicit rules. + ASFILES = arcfour-amd64-gas.s mpi_amd64_common.s ASFLAGS += -fPIC -Wa,--noexecstack DEFINES += -DNSS_BEVAND_ARCFOUR -DMPI_AMD64 -DMP_ASSEMBLY_MULTIPLY DEFINES += -DNSS_USE_COMBA @@ -480,7 +506,7 @@ else ifeq ($(USE_64),1) # Solaris for AMD64 ifdef NS_USE_GCC - ASFILES = arcfour-amd64-gas.s mpi_amd64_gas.s + ASFILES = arcfour-amd64-gas.s mpi_amd64_common.s ASFLAGS += -march=opteron -m64 -fPIC MPI_SRCS += mp_comba.c # comment the next four lines to turn off Intel HW acceleration @@ -529,12 +555,16 @@ ifneq ($(shell $(CC) -? 2>&1 >/dev/null </dev/null | sed -e 's/:.*//;1q'),lcc) HAVE_INT128_SUPPORT = 1 DEFINES += -DHAVE_INT128_SUPPORT endif - ifneq (,$(filter 4.8 4.9,$(word 1,$(GCC_VERSION)).$(word 2,$(GCC_VERSION)))) + ifneq (,$(filter 0 1 2 3,$(word 1,$(GCC_VERSION)))) NSS_DISABLE_AVX2 = 1 endif + ifeq (4,$(word 1,$(GCC_VERSION))) + ifeq (,$(filter 8 9,$(word 2,$(GCC_VERSION)))) + NSS_DISABLE_AVX2 = 1 + endif + endif ifeq (,$(filter 0 1 2 3 4,$(word 1,$(GCC_VERSION)))) HAVE_INT128_SUPPORT = 1 - NSS_DISABLE_AVX2 = 0 DEFINES += -DHAVE_INT128_SUPPORT endif endif @@ -549,9 +579,8 @@ ifndef NSS_DISABLE_CHACHAPOLY ifeq ($(CPU_ARCH),x86_64) ifndef NSS_DISABLE_AVX2 EXTRA_SRCS += Hacl_Poly1305_256.c Hacl_Chacha20_Vec256.c Hacl_Chacha20Poly1305_256.c - else - EXTRA_SRCS += Hacl_Poly1305_128.c Hacl_Chacha20_Vec128.c Hacl_Chacha20Poly1305_128.c endif # NSS_DISABLE_AVX2 + EXTRA_SRCS += Hacl_Poly1305_128.c Hacl_Chacha20_Vec128.c Hacl_Chacha20Poly1305_128.c endif # x86_64 VERIFIED_SRCS += Hacl_Poly1305_32.c Hacl_Chacha20.c Hacl_Chacha20Poly1305_32.c @@ -582,19 +611,18 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export rijndael_tables: $(CC) -o $(OBJDIR)/make_rijndael_tab rijndael_tables.c \ $(DEFINES) $(INCLUDES) $(OBJDIR)/libfreebl.a $(OBJDIR)/make_rijndael_tab -vpath %.h mpi ecl verified -vpath %.c mpi ecl verified +vpath %.h mpi ecl verified deprecated +vpath %.c mpi ecl verified deprecated vpath %.S mpi ecl vpath %.s mpi ecl vpath %.asm mpi ecl -INCLUDES += -Impi -Iecl -Iverified -Iverified/kremlin/include -Iverified/kremlin/kremlib/dist/minimal +INCLUDES += -Impi -Iecl -Iverified -Iverified/kremlin/include -Iverified/kremlin/kremlib/dist/minimal -Ideprecated DEFINES += -DMP_API_COMPATIBLE @@ -621,12 +649,10 @@ $(OBJDIR)/ldvector$(OBJ_SUFFIX) $(OBJDIR)/loader$(OBJ_SUFFIX) : loader.h ifeq ($(SYSV_SPARC),1) -$(OBJDIR)/mpv_sparcv8.o $(OBJDIR)/mpv_sparcv8x.o $(OBJDIR)/montmulfv8.o : $(OBJDIR)/%.o : %.s - @$(MAKE_OBJDIR) +$(OBJDIR)/mpv_sparcv8.o $(OBJDIR)/mpv_sparcv8x.o $(OBJDIR)/montmulfv8.o : $(OBJDIR)/%.o : %.s | $$(@D)/d $(SOLARIS_AS) -o $@ $(SOLARIS_AS_FLAGS) $< -$(OBJDIR)/mpv_sparcv9.o $(OBJDIR)/montmulfv9.o : $(OBJDIR)/%.o : %.s - @$(MAKE_OBJDIR) +$(OBJDIR)/mpv_sparcv9.o $(OBJDIR)/montmulfv9.o : $(OBJDIR)/%.o : %.s | $$(@D)/d $(SOLARIS_AS) -o $@ $(SOLARIS_AS_FLAGS) $< $(OBJDIR)/mpmontg.o: mpmontg.c montmulf.h @@ -637,103 +663,35 @@ ifndef FREEBL_CHILD_BUILD # Parent build. This is where we decide which shared libraries to build -ifdef FREEBL_BUILD_SINGLE_SHLIB - -################### Single shared lib stuff ######################### -SINGLE_SHLIB_DIR = $(OBJDIR)/$(OS_TARGET)_SINGLE_SHLIB -ALL_TRASH += $(SINGLE_SHLIB_DIR) - -$(SINGLE_SHLIB_DIR): - -mkdir -p $(SINGLE_SHLIB_DIR) +# too suppress the SINGLE_SHLIB override warning +FREEBL_OBJDIRS := -release_md libs:: $(SINGLE_SHLIB_DIR) - $(MAKE) FREEBL_CHILD_BUILD=1 \ - OBJDIR=$(SINGLE_SHLIB_DIR) $@ -######################## common stuff ######################### +define target_freebl_SHLIB +ifdef $(2) +$(1)_DIR = $$(OBJDIR)/$$(OS_TARGET)_$(1) +ALL_TRASH += $$($(1)_DIR) +ifeq (,$$(filter $$($(1)_DIR)/d,$$(FREEBL_OBJDIRS))) +FREEBL_OBJDIRS += $$($(1)_DIR)/d endif -ifdef NEED_STUB_BUILD -SINGLE_SHLIB_DIR = $(OBJDIR)/$(OS_TARGET)_SINGLE_SHLIB -ALL_TRASH += $(SINGLE_SHLIB_DIR) -$(SINGLE_SHLIB_DIR): - -mkdir $(SINGLE_SHLIB_DIR) - -release_md libs:: $(SINGLE_SHLIB_DIR) - $(MAKE) FREEBL_CHILD_BUILD=1 USE_STUB_BUILD=1 \ - OBJDIR=$(SINGLE_SHLIB_DIR) $@ +release_md:: freebl_$(2) +libs: freebl_$(2) +freebl_$(2): | $$($(1)_DIR)/d + $$(MAKE) FREEBL_CHILD_BUILD=1 $(3)=1 OBJDIR=$$($(1)_DIR) libs endif +endef # target_freebl_SHLIB -# multiple shared libraries - -######################## ABI32_FPU stuff ######################### -ifdef HAVE_ABI32_FPU -ABI32_FPU_DIR = $(OBJDIR)/$(OS_TARGET)_ABI32_FPU -ALL_TRASH += $(ABI32_FPU_DIR) +target_freebl_ABI = $(call target_freebl_SHLIB,$(1),HAVE_$(1),USE_$(1)) -$(ABI32_FPU_DIR): - -mkdir $(ABI32_FPU_DIR) - -release_md libs:: $(ABI32_FPU_DIR) - $(MAKE) FREEBL_CHILD_BUILD=1 USE_ABI32_FPU=1 \ - OBJDIR=$(ABI32_FPU_DIR) $@ -endif +$(eval $(call target_freebl_SHLIB,SINGLE_SHLIB,FREEBL_BUILD_SINGLE_SHLIB,NEEDED_DUMMY)) +$(eval $(call target_freebl_SHLIB,SINGLE_SHLIB,NEED_STUB_BUILD,USE_STUB_BUILD)) -######################## ABI32_INT32 stuff ######################### -ifdef HAVE_ABI32_INT32 -ABI32_INT32_DIR = $(OBJDIR)/$(OS_TARGET)_ABI32_INT32 -ALL_TRASH += $(ABI32_INT32_DIR) - -$(ABI32_INT32_DIR): - -mkdir $(ABI32_INT32_DIR) - -release_md libs:: $(ABI32_INT32_DIR) - $(MAKE) FREEBL_CHILD_BUILD=1 USE_ABI32_INT32=1 \ - OBJDIR=$(ABI32_INT32_DIR) $@ -endif - -######################## ABI32_INT64 stuff ######################### -ifdef HAVE_ABI32_INT64 -ABI32_INT64_DIR = $(OBJDIR)/$(OS_TARGET)_ABI32_INT64 -ALL_TRASH += $(ABI32_INT64_DIR) - -$(ABI32_INT64_DIR): - -mkdir $(ABI32_INT64_DIR) - -release_md libs:: $(ABI32_INT64_DIR) - $(MAKE) FREEBL_CHILD_BUILD=1 USE_ABI32_INT64=1\ - OBJDIR=$(ABI32_INT64_DIR) $@ -endif - -######################## END of 32-bit stuff ######################### - -# above is 32-bit builds, below is 64-bit builds - -######################## ABI64_FPU stuff ######################### -ifdef HAVE_ABI64_FPU -ABI64_FPU_DIR = $(OBJDIR)/$(OS_TARGET)_ABI64_FPU -ALL_TRASH += $(ABI64_FPU_DIR) - -$(ABI64_FPU_DIR): - -mkdir $(ABI64_FPU_DIR) - -release_md libs:: $(ABI64_FPU_DIR) - $(MAKE) FREEBL_CHILD_BUILD=1 USE_ABI64_FPU=1 \ - OBJDIR=$(ABI64_FPU_DIR) $@ -endif - -######################## ABI64_INT stuff ######################### -ifdef HAVE_ABI64_INT -ABI64_INT_DIR = $(OBJDIR)/$(OS_TARGET)_ABI64_INT -ALL_TRASH += $(ABI64_INT_DIR) - -$(ABI64_INT_DIR): - -mkdir $(ABI64_INT_DIR) - -release_md libs:: $(ABI64_INT_DIR) - $(MAKE) FREEBL_CHILD_BUILD=1 USE_ABI64_INT=1 \ - OBJDIR=$(ABI64_INT_DIR) $@ -endif +$(eval $(call target_freebl_ABI,ABI32_FPU)) +$(eval $(call target_freebl_ABI,ABI32_INT32)) +$(eval $(call target_freebl_ABI,ABI32_INT64)) +$(eval $(call target_freebl_ABI,ABI64_FPU)) +$(eval $(call target_freebl_ABI,ABI64_INT)) endif # FREEBL_CHILD_BUILD @@ -742,8 +700,7 @@ endif # FREEBL_CHILD_BUILD # ANSI C's strict aliasing rules. ifeq ($(OS_TARGET),Linux) ifneq ($(CPU_ARCH),x86) -$(OBJDIR)/$(PROG_PREFIX)desblapi$(OBJ_SUFFIX): desblapi.c - @$(MAKE_OBJDIR) +$(OBJDIR)/$(PROG_PREFIX)desblapi$(OBJ_SUFFIX): desblapi.c | $$(@D)/d ifdef NEED_ABSOLUTE_PATH $(CC) -o $@ -c $(CFLAGS) -fno-strict-aliasing $(call core_abspath,$<) else @@ -781,13 +738,18 @@ ifeq ($(CPU_ARCH),arm) # Confusingly, __SOFTFP__ is the name of the define for the softfloat ABI, not for the softfp ABI. USES_SOFTFLOAT_ABI := $(shell $(CC) -o - -E -dM - $(CFLAGS) < /dev/null | grep __SOFTFP__ > /dev/null && echo 1) $(OBJDIR)/$(PROG_PREFIX)aes-armv8$(OBJ_SUFFIX): CFLAGS += -march=armv8-a -mfpu=crypto-neon-fp-armv8$(if $(USES_SOFTFLOAT_ABI), -mfloat-abi=softfp) +$(OBJDIR)/$(PROG_PREFIX)sha1-armv8$(OBJ_SUFFIX): CFLAGS += -march=armv8-a -mfpu=crypto-neon-fp-armv8$(if $(USES_SOFTFLOAT_ABI), -mfloat-abi=softfp) +$(OBJDIR)/$(PROG_PREFIX)sha256-armv8$(OBJ_SUFFIX): CFLAGS += -march=armv8-a -mfpu=crypto-neon-fp-armv8$(if $(USES_SOFTFLOAT_ABI), -mfloat-abi=softfp) ifndef NSS_DISABLE_ARM32_NEON $(OBJDIR)/$(PROG_PREFIX)gcm-arm32-neon$(OBJ_SUFFIX): CFLAGS += -mfpu=neon$(if $(USES_SOFTFLOAT_ABI), -mfloat-abi=softfp) endif endif + ifeq ($(CPU_ARCH),aarch64) $(OBJDIR)/$(PROG_PREFIX)aes-armv8$(OBJ_SUFFIX): CFLAGS += -march=armv8-a+crypto $(OBJDIR)/$(PROG_PREFIX)gcm-aarch64$(OBJ_SUFFIX): CFLAGS += -march=armv8-a+crypto +$(OBJDIR)/$(PROG_PREFIX)sha1-armv8$(OBJ_SUFFIX): CFLAGS += -march=armv8-a+crypto +$(OBJDIR)/$(PROG_PREFIX)sha256-armv8$(OBJ_SUFFIX): CFLAGS += -march=armv8-a+crypto endif ifeq ($(CPU_ARCH),ppc) diff --git a/libs/nss/src/lib/freebl/aes-x86.c b/libs/nss/src/lib/freebl/aes-x86.c index 508fcc650..0cebb202a 100644 --- a/libs/nss/src/lib/freebl/aes-x86.c +++ b/libs/nss/src/lib/freebl/aes-x86.c @@ -146,7 +146,7 @@ rijndael_native_encryptBlock(AESContext *cx, unsigned char *output, const unsigned char *input) { - int i; + unsigned int i; pre_align __m128i m post_align = _mm_loadu_si128((__m128i *)input); m = _mm_xor_si128(m, cx->k.keySchedule[0]); for (i = 1; i < cx->Nr; ++i) { diff --git a/libs/nss/src/lib/freebl/aeskeywrap.c b/libs/nss/src/lib/freebl/aeskeywrap.c index 84ef80302..09c0667c7 100644 --- a/libs/nss/src/lib/freebl/aeskeywrap.c +++ b/libs/nss/src/lib/freebl/aeskeywrap.c @@ -9,6 +9,8 @@ #include "stubs.h" #endif +#include <stddef.h> + #include "prcpucfg.h" #if defined(IS_LITTLE_ENDIAN) || defined(SHA_NO_LONG_LONG) #define BIG_ENDIAN_WITH_64_BIT_REGISTERS 0 @@ -199,7 +201,7 @@ set_t(unsigned char *pt, unsigned long t) static void encode_PRUint32_BE(unsigned char *data, PRUint32 val) { - int i; + size_t i; for (i = 0; i < sizeof(PRUint32); i++) { data[i] = PORT_GET_BYTE_BE(val, i, sizeof(PRUint32)); } @@ -209,7 +211,7 @@ static PRUint32 decode_PRUint32_BE(unsigned char *data) { PRUint32 val = 0; - int i; + size_t i; for (i = 0; i < sizeof(PRUint32); i++) { val = (val << PR_BITS_PER_BYTE) | data[i]; diff --git a/libs/nss/src/lib/freebl/altivec-types.h b/libs/nss/src/lib/freebl/altivec-types.h index 807a44db4..118a7e087 100644 --- a/libs/nss/src/lib/freebl/altivec-types.h +++ b/libs/nss/src/lib/freebl/altivec-types.h @@ -16,8 +16,10 @@ typedef __vector unsigned short vec_u16; typedef __vector signed short vec_s16; typedef __vector unsigned int vec_u32; typedef __vector signed int vec_s32; +#ifdef __VSX__ typedef __vector unsigned long long vec_u64; typedef __vector signed long long vec_s64; +#endif typedef __vector float vec_f; #endif diff --git a/libs/nss/src/lib/freebl/blapi.h b/libs/nss/src/lib/freebl/blapi.h index 8fc2aca21..6f806884e 100644 --- a/libs/nss/src/lib/freebl/blapi.h +++ b/libs/nss/src/lib/freebl/blapi.h @@ -380,6 +380,9 @@ extern SECStatus KEA_Derive(SECItem *prime, */ extern PRBool KEA_Verify(SECItem *Y, SECItem *prime, SECItem *subPrime); +/* verify a value is prime */ +PRBool KEA_PrimeCheck(SECItem *prime); + /**************************************** * J-PAKE key transport */ diff --git a/libs/nss/src/lib/freebl/blapii.h b/libs/nss/src/lib/freebl/blapii.h index deeda59c6..e3177097f 100644 --- a/libs/nss/src/lib/freebl/blapii.h +++ b/libs/nss/src/lib/freebl/blapii.h @@ -60,10 +60,10 @@ SEC_END_PROTOS #endif /* Alignment helpers. */ -#if defined(_WINDOWS) && defined(NSS_X86_OR_X64) +#if defined(_MSC_VER) #define pre_align __declspec(align(16)) #define post_align -#elif defined(NSS_X86_OR_X64) +#elif defined(__GNUC__) #define pre_align #define post_align __attribute__((aligned(16))) #else @@ -85,6 +85,7 @@ SECStatus generate_prime(mp_int *prime, int primeLen); /* Freebl state. */ PRBool aesni_support(); PRBool clmul_support(); +PRBool sha_support(); PRBool avx_support(); PRBool avx2_support(); PRBool ssse3_support(); diff --git a/libs/nss/src/lib/freebl/blinit.c b/libs/nss/src/lib/freebl/blinit.c index db7d1eab1..2f2a476d0 100644 --- a/libs/nss/src/lib/freebl/blinit.c +++ b/libs/nss/src/lib/freebl/blinit.c @@ -30,6 +30,7 @@ static PRCallOnceType coFreeblInit; /* State variables. */ static PRBool aesni_support_ = PR_FALSE; static PRBool clmul_support_ = PR_FALSE; +static PRBool sha_support_ = PR_FALSE; static PRBool avx_support_ = PR_FALSE; static PRBool avx2_support_ = PR_FALSE; static PRBool ssse3_support_ = PR_FALSE; @@ -83,6 +84,7 @@ check_xcr0_ymm() #define EBX_AVX2 (1 << 5) #define EBX_BMI1 (1 << 3) #define EBX_BMI2 (1 << 8) +#define EBX_SHA (1 << 29) #define ECX_FMA (1 << 12) #define ECX_MOVBE (1 << 22) #define ECX_SSSE3 (1 << 9) @@ -99,6 +101,7 @@ CheckX86CPUSupport() unsigned long eax7, ebx7, ecx7, edx7; char *disable_hw_aes = PR_GetEnvSecure("NSS_DISABLE_HW_AES"); char *disable_pclmul = PR_GetEnvSecure("NSS_DISABLE_PCLMUL"); + char *disable_hw_sha = PR_GetEnvSecure("NSS_DISABLE_HW_SHA"); char *disable_avx = PR_GetEnvSecure("NSS_DISABLE_AVX"); char *disable_avx2 = PR_GetEnvSecure("NSS_DISABLE_AVX2"); char *disable_ssse3 = PR_GetEnvSecure("NSS_DISABLE_SSSE3"); @@ -108,6 +111,7 @@ CheckX86CPUSupport() freebl_cpuid(7, &eax7, &ebx7, &ecx7, &edx7); aesni_support_ = (PRBool)((ecx & ECX_AESNI) != 0 && disable_hw_aes == NULL); clmul_support_ = (PRBool)((ecx & ECX_CLMUL) != 0 && disable_pclmul == NULL); + sha_support_ = (PRBool)((ebx7 & EBX_SHA) != 0 && disable_hw_sha == NULL); /* For AVX we check AVX, OSXSAVE, and XSAVE * as well as XMM and YMM state. */ avx_support_ = (PRBool)((ecx & AVX_BITS) == AVX_BITS) && check_xcr0_ymm() && @@ -232,6 +236,8 @@ CheckARMSupport() arm_neon_support_ = PR_GetEnvSecure("NSS_DISABLE_ARM_NEON") == NULL; arm_aes_support_ &= PR_GetEnvSecure("NSS_DISABLE_HW_AES") == NULL; arm_pmull_support_ &= PR_GetEnvSecure("NSS_DISABLE_PMULL") == NULL; + arm_sha1_support_ &= PR_GetEnvSecure("NSS_DISABLE_HW_SHA1") == NULL; + arm_sha2_support_ &= PR_GetEnvSecure("NSS_DISABLE_HW_SHA2") == NULL; } #endif /* defined(__aarch64__) */ @@ -355,6 +361,8 @@ CheckARMSupport() arm_sha2_support_ = hwcaps & HWCAP2_SHA2; } arm_neon_support_ = GetNeonSupport(); + arm_sha1_support_ &= PR_GetEnvSecure("NSS_DISABLE_HW_SHA1") == NULL; + arm_sha2_support_ &= PR_GetEnvSecure("NSS_DISABLE_HW_SHA2") == NULL; } #endif /* defined(__arm__) */ @@ -399,6 +407,11 @@ clmul_support() return clmul_support_; } PRBool +sha_support() +{ + return sha_support_; +} +PRBool avx_support() { return avx_support_; diff --git a/libs/nss/src/lib/freebl/chacha20poly1305.c b/libs/nss/src/lib/freebl/chacha20poly1305.c index 970c6436d..5c294a9ea 100644 --- a/libs/nss/src/lib/freebl/chacha20poly1305.c +++ b/libs/nss/src/lib/freebl/chacha20poly1305.c @@ -81,7 +81,7 @@ ChaCha20Poly1305_InitContext(ChaCha20Poly1305Context *ctx, PORT_SetError(SEC_ERROR_BAD_KEY); return SECFailure; } - if (tagLen == 0 || tagLen > 16) { + if (tagLen != 16) { PORT_SetError(SEC_ERROR_INPUT_LEN); return SECFailure; } diff --git a/libs/nss/src/lib/freebl/cmac.c b/libs/nss/src/lib/freebl/cmac.c index 5c6728c83..222cef1b4 100644 --- a/libs/nss/src/lib/freebl/cmac.c +++ b/libs/nss/src/lib/freebl/cmac.c @@ -24,7 +24,7 @@ struct CMACContextStr { union { AESContext *aes; } cipher; - int blockSize; + unsigned int blockSize; /* Internal keys which are conditionally used by the algorithm. Derived * from encrypting the NULL block. We leave the storing of (and the @@ -210,7 +210,7 @@ SECStatus CMAC_Update(CMACContext *ctx, const unsigned char *data, unsigned int data_len) { - int data_index = 0; + unsigned int data_index = 0; if (ctx == NULL) { PORT_SetError(SEC_ERROR_INVALID_ARGS); return SECFailure; diff --git a/libs/nss/src/lib/freebl/config.mk b/libs/nss/src/lib/freebl/config.mk index 918a66363..a4182a418 100644 --- a/libs/nss/src/lib/freebl/config.mk +++ b/libs/nss/src/lib/freebl/config.mk @@ -47,10 +47,6 @@ endif ifeq (,$(filter-out WIN%,$(OS_TARGET))) -# don't want the 32 in the shared library name -SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) - -RES = $(OBJDIR)/$(LIBRARY_NAME).res RESNAME = freebl.rc ifdef NS_USE_GCC diff --git a/libs/nss/src/lib/freebl/alg2268.c b/libs/nss/src/lib/freebl/deprecated/alg2268.c index 54c6f4dff..ac9736309 100644 --- a/libs/nss/src/lib/freebl/alg2268.c +++ b/libs/nss/src/lib/freebl/deprecated/alg2268.c @@ -6,11 +6,11 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifdef FREEBL_NO_DEPEND -#include "stubs.h" +#include "../stubs.h" #endif -#include "blapi.h" -#include "blapii.h" +#include "../blapi.h" +#include "../blapii.h" #include "secerr.h" #ifdef XP_UNIX_XXX #include <stddef.h> /* for ptrdiff_t */ diff --git a/libs/nss/src/lib/freebl/seed.c b/libs/nss/src/lib/freebl/deprecated/seed.c index b3b3690e1..fd27bbd0e 100644 --- a/libs/nss/src/lib/freebl/seed.c +++ b/libs/nss/src/lib/freebl/deprecated/seed.c @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifdef FREEBL_NO_DEPEND -#include "stubs.h" +#include "../stubs.h" #endif #include <stdio.h> diff --git a/libs/nss/src/lib/freebl/seed.h b/libs/nss/src/lib/freebl/deprecated/seed.h index 717a1e74e..717a1e74e 100644 --- a/libs/nss/src/lib/freebl/seed.h +++ b/libs/nss/src/lib/freebl/deprecated/seed.h diff --git a/libs/nss/src/lib/freebl/dh.c b/libs/nss/src/lib/freebl/dh.c index b2d6d7430..aa3a3ee32 100644 --- a/libs/nss/src/lib/freebl/dh.c +++ b/libs/nss/src/lib/freebl/dh.c @@ -17,6 +17,7 @@ #include "blapii.h" #include "secitem.h" #include "mpi.h" +#include "mpprime.h" #include "secmpi.h" #define KEA_DERIVED_SECRET_LEN 128 @@ -78,7 +79,7 @@ DH_GenParam(int primeLen, DHParams **params) CHECK_MPI_OK(mp_init(&h)); CHECK_MPI_OK(mp_init(&psub1)); CHECK_MPI_OK(mp_init(&test)); - /* generate prime with MPI, uses Miller-Rabin to generate strong prime. */ + /* generate prime with MPI, uses Miller-Rabin to generate safe prime. */ CHECK_SEC_OK(generate_prime(&p, primeLen)); /* construct Sophie-Germain prime q = (p-1)/2. */ CHECK_MPI_OK(mp_sub_d(&p, 1, &psub1)); @@ -257,17 +258,17 @@ DH_Derive(SECItem *publicValue, } /* - * We check to make sure that ZZ is not equal to 1 or -1 mod p. + * We check to make sure that ZZ is not equal to 0, 1 or -1 mod p. * This helps guard against small subgroup attacks, since an attacker - * using a subgroup of size N will produce 1 or -1 with probability 1/N. + * using a subgroup of size N will produce 0, 1 or -1 with probability 1/N. * When the protocol is executed within a properly large subgroup, the * probability of this result will be negligibly small. For example, - * with a strong prime of the form 2p+1, the probability will be 1/p. + * with a safe prime of the form 2q+1, the probability will be 1/q. * * We return MP_BADARG because this is probably the result of a bad * public value or a bad prime having been provided. */ - if (mp_cmp_d(&ZZ, 1) == 0 || + if (mp_cmp_d(&ZZ, 0) == 0 || mp_cmp_d(&ZZ, 1) == 0 || mp_cmp(&ZZ, &psub1) == 0) { err = MP_BADARG; goto cleanup; @@ -413,6 +414,35 @@ cleanup: return SECSuccess; } +/* Test counts based on the fact the prime and subprime + * were given to us */ +static int +dh_prime_testcount(int prime_length) +{ + if (prime_length < 1024) { + return 50; + } else if (prime_length < 2048) { + return 40; + } else if (prime_length < 3072) { + return 56; + } + return 64; +} + +PRBool +KEA_PrimeCheck(SECItem *prime) +{ + mp_int p; + mp_err err = 0; + MP_DIGITS(&p) = 0; + CHECK_MPI_OK(mp_init(&p)); + SECITEM_TO_MPINT(*prime, &p); + CHECK_MPI_OK(mpp_pprime(&p, dh_prime_testcount(prime->len))); +cleanup: + mp_clear(&p); + return err ? PR_FALSE : PR_TRUE; +} + PRBool KEA_Verify(SECItem *Y, SECItem *prime, SECItem *subPrime) { diff --git a/libs/nss/src/lib/freebl/ec.c b/libs/nss/src/lib/freebl/ec.c index 12330193a..7f4e903a0 100644 --- a/libs/nss/src/lib/freebl/ec.c +++ b/libs/nss/src/lib/freebl/ec.c @@ -62,7 +62,7 @@ ec_points_mul(const ECParams *params, const mp_int *k1, const mp_int *k2, ECGroup *group = NULL; SECStatus rv = SECFailure; mp_err err = MP_OKAY; - int len; + unsigned int len; #if EC_DEBUG int i; @@ -96,7 +96,7 @@ ec_points_mul(const ECParams *params, const mp_int *k1, const mp_int *k2, #endif /* NOTE: We only support uncompressed points for now */ - len = (params->fieldID.size + 7) >> 3; + len = (((unsigned int)params->fieldID.size) + 7) >> 3; if (pointP != NULL) { if ((pointP->data[0] != EC_POINT_FORM_UNCOMPRESSED) || (pointP->len != (2 * len + 1))) { @@ -428,7 +428,7 @@ EC_ValidatePublicKey(ECParams *ecParams, SECItem *publicValue) ECGroup *group = NULL; SECStatus rv = SECFailure; mp_err err = MP_OKAY; - int len; + unsigned int len; if (!ecParams || ecParams->name == ECCurve_noName || !publicValue || !publicValue->len) { @@ -448,7 +448,7 @@ EC_ValidatePublicKey(ECParams *ecParams, SECItem *publicValue) } /* NOTE: We only support uncompressed points for now */ - len = (ecParams->fieldID.size + 7) >> 3; + len = (((unsigned int)ecParams->fieldID.size) + 7) >> 3; if (publicValue->data[0] != EC_POINT_FORM_UNCOMPRESSED) { PORT_SetError(SEC_ERROR_UNSUPPORTED_EC_POINT_FORM); return SECFailure; @@ -724,27 +724,6 @@ ECDSA_SignDigestWithSeed(ECPrivateKey *key, SECItem *signature, } /* - ** We do not want timing information to leak the length of k, - ** so we compute k*G using an equivalent scalar of fixed - ** bit-length. - ** Fix based on patch for ECDSA timing attack in the paper - ** by Billy Bob Brumley and Nicola Tuveri at - ** http://eprint.iacr.org/2011/232 - ** - ** How do we convert k to a value of a fixed bit-length? - ** k starts off as an integer satisfying 0 <= k < n. Hence, - ** n <= k+n < 2n, which means k+n has either the same number - ** of bits as n or one more bit than n. If k+n has the same - ** number of bits as n, the second addition ensures that the - ** final value has exactly one more bit than n. Thus, we - ** always end up with a value that exactly one more bit than n. - */ - CHECK_MPI_OK(mp_add(&k, &n, &k)); - if (mpl_significant_bits(&k) <= mpl_significant_bits(&n)) { - CHECK_MPI_OK(mp_add(&k, &n, &k)); - } - - /* ** ANSI X9.62, Section 5.3.2, Step 2 ** ** Compute kG diff --git a/libs/nss/src/lib/freebl/ecl/ecl-priv.h b/libs/nss/src/lib/freebl/ecl/ecl-priv.h index 21685599d..c1e0e856b 100644 --- a/libs/nss/src/lib/freebl/ecl/ecl-priv.h +++ b/libs/nss/src/lib/freebl/ecl/ecl-priv.h @@ -245,6 +245,8 @@ mp_err ec_group_set_gf2m233(ECGroup *group, ECCurveName name); /* Optimized point multiplication */ mp_err ec_group_set_gfp256_32(ECGroup *group, ECCurveName name); +mp_err ec_group_set_secp384r1(ECGroup *group, ECCurveName name); +mp_err ec_group_set_secp521r1(ECGroup *group, ECCurveName name); SECStatus ec_Curve25519_mul(PRUint8 *q, const PRUint8 *s, const PRUint8 *p); #endif /* __ecl_priv_h_ */ diff --git a/libs/nss/src/lib/freebl/ecl/ecl.c b/libs/nss/src/lib/freebl/ecl/ecl.c index ca87b490c..e34a73c66 100644 --- a/libs/nss/src/lib/freebl/ecl/ecl.c +++ b/libs/nss/src/lib/freebl/ecl/ecl.c @@ -164,6 +164,16 @@ construct_ecgroup(const ECCurveName name, mp_int irr, mp_int curvea, MP_CHECKOK(ec_group_set_gfp256(group, name)); MP_CHECKOK(ec_group_set_gfp256_32(group, name)); break; + case ECCurve_SECG_PRIME_384R1: + group = + ECGroup_consGFp(&irr, &curvea, &curveb, &genx, &geny, + &order, cofactor); + if (group == NULL) { + res = MP_UNDEF; + goto CLEANUP; + } + MP_CHECKOK(ec_group_set_secp384r1(group, name)); + break; case ECCurve_SECG_PRIME_521R1: group = ECGroup_consGFp(&irr, &curvea, &curveb, &genx, &geny, @@ -173,6 +183,7 @@ construct_ecgroup(const ECCurveName name, mp_int irr, mp_int curvea, goto CLEANUP; } MP_CHECKOK(ec_group_set_gfp521(group, name)); + MP_CHECKOK(ec_group_set_secp521r1(group, name)); break; default: /* use generic arithmetic */ diff --git a/libs/nss/src/lib/freebl/ecl/ecp_secp384r1.c b/libs/nss/src/lib/freebl/ecl/ecp_secp384r1.c new file mode 100644 index 000000000..87c27425a --- /dev/null +++ b/libs/nss/src/lib/freebl/ecl/ecp_secp384r1.c @@ -0,0 +1,19668 @@ +/* Autogenerated: ECCKiila https://gitlab.com/nisec/ecckiila */ +/*- + * MIT License + * + * Copyright (c) 2020 Luis Rivera-Zamarripa, Jesús-Javier Chi-Domínguez, Billy Bob Brumley + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +#if defined(__SIZEOF_INT128__) && !defined(PEDANTIC) + +#include <stdint.h> +#include <string.h> +#define LIMB_BITS 64 +#define LIMB_CNT 6 +/* Field elements */ +typedef uint64_t fe_t[LIMB_CNT]; +typedef uint64_t limb_t; + +#define fe_copy(d, s) memcpy(d, s, sizeof(fe_t)) +#define fe_set_zero(d) memset(d, 0, sizeof(fe_t)) + +/* Projective points */ +typedef struct { + fe_t X; + fe_t Y; + fe_t Z; +} pt_prj_t; + +/* Affine points */ +typedef struct { + fe_t X; + fe_t Y; +} pt_aff_t; + +/* BEGIN verbatim fiat code https://github.com/mit-plv/fiat-crypto */ +/*- + * MIT License + * + * Copyright (c) 2020 the fiat-crypto authors (see the AUTHORS file) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* Autogenerated: word_by_word_montgomery --static secp384r1 64 '2^384 - 2^128 - 2^96 + 2^32 - 1' */ +/* curve description: secp384r1 */ +/* machine_wordsize = 64 (from "64") */ +/* requested operations: (all) */ +/* m = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff (from "2^384 - 2^128 - 2^96 + 2^32 - 1") */ +/* */ +/* NOTE: In addition to the bounds specified above each function, all */ +/* functions synthesized for this Montgomery arithmetic require the */ +/* input to be strictly less than the prime modulus (m), and also */ +/* require the input to be in the unique saturated representation. */ +/* All functions also ensure that these two properties are true of */ +/* return values. */ +/* */ +/* Computed values: */ +/* eval z = z[0] + (z[1] << 64) + (z[2] << 128) + (z[3] << 192) + (z[4] << 256) + (z[5] << 0x140) */ +/* bytes_eval z = z[0] + (z[1] << 8) + (z[2] << 16) + (z[3] << 24) + (z[4] << 32) + (z[5] << 40) + (z[6] << 48) + (z[7] << 56) + (z[8] << 64) + (z[9] << 72) + (z[10] << 80) + (z[11] << 88) + (z[12] << 96) + (z[13] << 104) + (z[14] << 112) + (z[15] << 120) + (z[16] << 128) + (z[17] << 136) + (z[18] << 144) + (z[19] << 152) + (z[20] << 160) + (z[21] << 168) + (z[22] << 176) + (z[23] << 184) + (z[24] << 192) + (z[25] << 200) + (z[26] << 208) + (z[27] << 216) + (z[28] << 224) + (z[29] << 232) + (z[30] << 240) + (z[31] << 248) + (z[32] << 256) + (z[33] << 0x108) + (z[34] << 0x110) + (z[35] << 0x118) + (z[36] << 0x120) + (z[37] << 0x128) + (z[38] << 0x130) + (z[39] << 0x138) + (z[40] << 0x140) + (z[41] << 0x148) + (z[42] << 0x150) + (z[43] << 0x158) + (z[44] << 0x160) + (z[45] << 0x168) + (z[46] << 0x170) + (z[47] << 0x178) */ + +#include <stdint.h> +typedef unsigned char fiat_secp384r1_uint1; +typedef signed char fiat_secp384r1_int1; +typedef signed __int128 fiat_secp384r1_int128; +typedef unsigned __int128 fiat_secp384r1_uint128; + +#if (-1 & 3) != 3 +#error "This code only works on a two's complement system" +#endif + +/* + * The function fiat_secp384r1_addcarryx_u64 is an addition with carry. + * Postconditions: + * out1 = (arg1 + arg2 + arg3) mod 2^64 + * out2 = ⌊(arg1 + arg2 + arg3) / 2^64⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0xffffffffffffffff] + * arg3: [0x0 ~> 0xffffffffffffffff] + * Output Bounds: + * out1: [0x0 ~> 0xffffffffffffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp384r1_addcarryx_u64(uint64_t *out1, + fiat_secp384r1_uint1 *out2, + fiat_secp384r1_uint1 arg1, + uint64_t arg2, uint64_t arg3) +{ + fiat_secp384r1_uint128 x1; + uint64_t x2; + fiat_secp384r1_uint1 x3; + x1 = ((arg1 + (fiat_secp384r1_uint128)arg2) + arg3); + x2 = (uint64_t)(x1 & UINT64_C(0xffffffffffffffff)); + x3 = (fiat_secp384r1_uint1)(x1 >> 64); + *out1 = x2; + *out2 = x3; +} + +/* + * The function fiat_secp384r1_subborrowx_u64 is a subtraction with borrow. + * Postconditions: + * out1 = (-arg1 + arg2 + -arg3) mod 2^64 + * out2 = -⌊(-arg1 + arg2 + -arg3) / 2^64⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0xffffffffffffffff] + * arg3: [0x0 ~> 0xffffffffffffffff] + * Output Bounds: + * out1: [0x0 ~> 0xffffffffffffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp384r1_subborrowx_u64(uint64_t *out1, + fiat_secp384r1_uint1 *out2, + fiat_secp384r1_uint1 arg1, + uint64_t arg2, uint64_t arg3) +{ + fiat_secp384r1_int128 x1; + fiat_secp384r1_int1 x2; + uint64_t x3; + x1 = ((arg2 - (fiat_secp384r1_int128)arg1) - arg3); + x2 = (fiat_secp384r1_int1)(x1 >> 64); + x3 = (uint64_t)(x1 & UINT64_C(0xffffffffffffffff)); + *out1 = x3; + *out2 = (fiat_secp384r1_uint1)(0x0 - x2); +} + +/* + * The function fiat_secp384r1_mulx_u64 is a multiplication, returning the full double-width result. + * Postconditions: + * out1 = (arg1 * arg2) mod 2^64 + * out2 = ⌊arg1 * arg2 / 2^64⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0xffffffffffffffff] + * arg2: [0x0 ~> 0xffffffffffffffff] + * Output Bounds: + * out1: [0x0 ~> 0xffffffffffffffff] + * out2: [0x0 ~> 0xffffffffffffffff] + */ +static void +fiat_secp384r1_mulx_u64(uint64_t *out1, uint64_t *out2, + uint64_t arg1, uint64_t arg2) +{ + fiat_secp384r1_uint128 x1; + uint64_t x2; + uint64_t x3; + x1 = ((fiat_secp384r1_uint128)arg1 * arg2); + x2 = (uint64_t)(x1 & UINT64_C(0xffffffffffffffff)); + x3 = (uint64_t)(x1 >> 64); + *out1 = x2; + *out2 = x3; +} + +/* + * The function fiat_secp384r1_cmovznz_u64 is a single-word conditional move. + * Postconditions: + * out1 = (if arg1 = 0 then arg2 else arg3) + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0xffffffffffffffff] + * arg3: [0x0 ~> 0xffffffffffffffff] + * Output Bounds: + * out1: [0x0 ~> 0xffffffffffffffff] + */ +static void +fiat_secp384r1_cmovznz_u64(uint64_t *out1, + fiat_secp384r1_uint1 arg1, uint64_t arg2, + uint64_t arg3) +{ + fiat_secp384r1_uint1 x1; + uint64_t x2; + uint64_t x3; + x1 = (!(!arg1)); + x2 = ((fiat_secp384r1_int1)(0x0 - x1) & UINT64_C(0xffffffffffffffff)); + x3 = ((x2 & arg3) | ((~x2) & arg2)); + *out1 = x3; +} + +/* + * The function fiat_secp384r1_mul multiplies two field elements in the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * 0 ≤ eval arg2 < m + * Postconditions: + * eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) * eval (from_montgomery arg2)) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * arg2: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + */ +static void +fiat_secp384r1_mul(uint64_t out1[6], const uint64_t arg1[6], + const uint64_t arg2[6]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint64_t x8; + uint64_t x9; + uint64_t x10; + uint64_t x11; + uint64_t x12; + uint64_t x13; + uint64_t x14; + uint64_t x15; + uint64_t x16; + uint64_t x17; + uint64_t x18; + uint64_t x19; + fiat_secp384r1_uint1 x20; + uint64_t x21; + fiat_secp384r1_uint1 x22; + uint64_t x23; + fiat_secp384r1_uint1 x24; + uint64_t x25; + fiat_secp384r1_uint1 x26; + uint64_t x27; + fiat_secp384r1_uint1 x28; + uint64_t x29; + uint64_t x30; + uint64_t x31; + uint64_t x32; + uint64_t x33; + uint64_t x34; + uint64_t x35; + uint64_t x36; + uint64_t x37; + uint64_t x38; + uint64_t x39; + uint64_t x40; + uint64_t x41; + uint64_t x42; + uint64_t x43; + uint64_t x44; + fiat_secp384r1_uint1 x45; + uint64_t x46; + fiat_secp384r1_uint1 x47; + uint64_t x48; + fiat_secp384r1_uint1 x49; + uint64_t x50; + fiat_secp384r1_uint1 x51; + uint64_t x52; + fiat_secp384r1_uint1 x53; + uint64_t x54; + uint64_t x55; + fiat_secp384r1_uint1 x56; + uint64_t x57; + fiat_secp384r1_uint1 x58; + uint64_t x59; + fiat_secp384r1_uint1 x60; + uint64_t x61; + fiat_secp384r1_uint1 x62; + uint64_t x63; + fiat_secp384r1_uint1 x64; + uint64_t x65; + fiat_secp384r1_uint1 x66; + uint64_t x67; + fiat_secp384r1_uint1 x68; + uint64_t x69; + uint64_t x70; + uint64_t x71; + uint64_t x72; + uint64_t x73; + uint64_t x74; + uint64_t x75; + uint64_t x76; + uint64_t x77; + uint64_t x78; + uint64_t x79; + uint64_t x80; + uint64_t x81; + fiat_secp384r1_uint1 x82; + uint64_t x83; + fiat_secp384r1_uint1 x84; + uint64_t x85; + fiat_secp384r1_uint1 x86; + uint64_t x87; + fiat_secp384r1_uint1 x88; + uint64_t x89; + fiat_secp384r1_uint1 x90; + uint64_t x91; + uint64_t x92; + fiat_secp384r1_uint1 x93; + uint64_t x94; + fiat_secp384r1_uint1 x95; + uint64_t x96; + fiat_secp384r1_uint1 x97; + uint64_t x98; + fiat_secp384r1_uint1 x99; + uint64_t x100; + fiat_secp384r1_uint1 x101; + uint64_t x102; + fiat_secp384r1_uint1 x103; + uint64_t x104; + fiat_secp384r1_uint1 x105; + uint64_t x106; + uint64_t x107; + uint64_t x108; + uint64_t x109; + uint64_t x110; + uint64_t x111; + uint64_t x112; + uint64_t x113; + uint64_t x114; + uint64_t x115; + uint64_t x116; + uint64_t x117; + uint64_t x118; + uint64_t x119; + uint64_t x120; + fiat_secp384r1_uint1 x121; + uint64_t x122; + fiat_secp384r1_uint1 x123; + uint64_t x124; + fiat_secp384r1_uint1 x125; + uint64_t x126; + fiat_secp384r1_uint1 x127; + uint64_t x128; + fiat_secp384r1_uint1 x129; + uint64_t x130; + uint64_t x131; + fiat_secp384r1_uint1 x132; + uint64_t x133; + fiat_secp384r1_uint1 x134; + uint64_t x135; + fiat_secp384r1_uint1 x136; + uint64_t x137; + fiat_secp384r1_uint1 x138; + uint64_t x139; + fiat_secp384r1_uint1 x140; + uint64_t x141; + fiat_secp384r1_uint1 x142; + uint64_t x143; + fiat_secp384r1_uint1 x144; + uint64_t x145; + uint64_t x146; + uint64_t x147; + uint64_t x148; + uint64_t x149; + uint64_t x150; + uint64_t x151; + uint64_t x152; + uint64_t x153; + uint64_t x154; + uint64_t x155; + uint64_t x156; + uint64_t x157; + uint64_t x158; + fiat_secp384r1_uint1 x159; + uint64_t x160; + fiat_secp384r1_uint1 x161; + uint64_t x162; + fiat_secp384r1_uint1 x163; + uint64_t x164; + fiat_secp384r1_uint1 x165; + uint64_t x166; + fiat_secp384r1_uint1 x167; + uint64_t x168; + uint64_t x169; + fiat_secp384r1_uint1 x170; + uint64_t x171; + fiat_secp384r1_uint1 x172; + uint64_t x173; + fiat_secp384r1_uint1 x174; + uint64_t x175; + fiat_secp384r1_uint1 x176; + uint64_t x177; + fiat_secp384r1_uint1 x178; + uint64_t x179; + fiat_secp384r1_uint1 x180; + uint64_t x181; + fiat_secp384r1_uint1 x182; + uint64_t x183; + uint64_t x184; + uint64_t x185; + uint64_t x186; + uint64_t x187; + uint64_t x188; + uint64_t x189; + uint64_t x190; + uint64_t x191; + uint64_t x192; + uint64_t x193; + uint64_t x194; + uint64_t x195; + uint64_t x196; + uint64_t x197; + fiat_secp384r1_uint1 x198; + uint64_t x199; + fiat_secp384r1_uint1 x200; + uint64_t x201; + fiat_secp384r1_uint1 x202; + uint64_t x203; + fiat_secp384r1_uint1 x204; + uint64_t x205; + fiat_secp384r1_uint1 x206; + uint64_t x207; + uint64_t x208; + fiat_secp384r1_uint1 x209; + uint64_t x210; + fiat_secp384r1_uint1 x211; + uint64_t x212; + fiat_secp384r1_uint1 x213; + uint64_t x214; + fiat_secp384r1_uint1 x215; + uint64_t x216; + fiat_secp384r1_uint1 x217; + uint64_t x218; + fiat_secp384r1_uint1 x219; + uint64_t x220; + fiat_secp384r1_uint1 x221; + uint64_t x222; + uint64_t x223; + uint64_t x224; + uint64_t x225; + uint64_t x226; + uint64_t x227; + uint64_t x228; + uint64_t x229; + uint64_t x230; + uint64_t x231; + uint64_t x232; + uint64_t x233; + uint64_t x234; + uint64_t x235; + fiat_secp384r1_uint1 x236; + uint64_t x237; + fiat_secp384r1_uint1 x238; + uint64_t x239; + fiat_secp384r1_uint1 x240; + uint64_t x241; + fiat_secp384r1_uint1 x242; + uint64_t x243; + fiat_secp384r1_uint1 x244; + uint64_t x245; + uint64_t x246; + fiat_secp384r1_uint1 x247; + uint64_t x248; + fiat_secp384r1_uint1 x249; + uint64_t x250; + fiat_secp384r1_uint1 x251; + uint64_t x252; + fiat_secp384r1_uint1 x253; + uint64_t x254; + fiat_secp384r1_uint1 x255; + uint64_t x256; + fiat_secp384r1_uint1 x257; + uint64_t x258; + fiat_secp384r1_uint1 x259; + uint64_t x260; + uint64_t x261; + uint64_t x262; + uint64_t x263; + uint64_t x264; + uint64_t x265; + uint64_t x266; + uint64_t x267; + uint64_t x268; + uint64_t x269; + uint64_t x270; + uint64_t x271; + uint64_t x272; + uint64_t x273; + uint64_t x274; + fiat_secp384r1_uint1 x275; + uint64_t x276; + fiat_secp384r1_uint1 x277; + uint64_t x278; + fiat_secp384r1_uint1 x279; + uint64_t x280; + fiat_secp384r1_uint1 x281; + uint64_t x282; + fiat_secp384r1_uint1 x283; + uint64_t x284; + uint64_t x285; + fiat_secp384r1_uint1 x286; + uint64_t x287; + fiat_secp384r1_uint1 x288; + uint64_t x289; + fiat_secp384r1_uint1 x290; + uint64_t x291; + fiat_secp384r1_uint1 x292; + uint64_t x293; + fiat_secp384r1_uint1 x294; + uint64_t x295; + fiat_secp384r1_uint1 x296; + uint64_t x297; + fiat_secp384r1_uint1 x298; + uint64_t x299; + uint64_t x300; + uint64_t x301; + uint64_t x302; + uint64_t x303; + uint64_t x304; + uint64_t x305; + uint64_t x306; + uint64_t x307; + uint64_t x308; + uint64_t x309; + uint64_t x310; + uint64_t x311; + uint64_t x312; + fiat_secp384r1_uint1 x313; + uint64_t x314; + fiat_secp384r1_uint1 x315; + uint64_t x316; + fiat_secp384r1_uint1 x317; + uint64_t x318; + fiat_secp384r1_uint1 x319; + uint64_t x320; + fiat_secp384r1_uint1 x321; + uint64_t x322; + uint64_t x323; + fiat_secp384r1_uint1 x324; + uint64_t x325; + fiat_secp384r1_uint1 x326; + uint64_t x327; + fiat_secp384r1_uint1 x328; + uint64_t x329; + fiat_secp384r1_uint1 x330; + uint64_t x331; + fiat_secp384r1_uint1 x332; + uint64_t x333; + fiat_secp384r1_uint1 x334; + uint64_t x335; + fiat_secp384r1_uint1 x336; + uint64_t x337; + uint64_t x338; + uint64_t x339; + uint64_t x340; + uint64_t x341; + uint64_t x342; + uint64_t x343; + uint64_t x344; + uint64_t x345; + uint64_t x346; + uint64_t x347; + uint64_t x348; + uint64_t x349; + uint64_t x350; + uint64_t x351; + fiat_secp384r1_uint1 x352; + uint64_t x353; + fiat_secp384r1_uint1 x354; + uint64_t x355; + fiat_secp384r1_uint1 x356; + uint64_t x357; + fiat_secp384r1_uint1 x358; + uint64_t x359; + fiat_secp384r1_uint1 x360; + uint64_t x361; + uint64_t x362; + fiat_secp384r1_uint1 x363; + uint64_t x364; + fiat_secp384r1_uint1 x365; + uint64_t x366; + fiat_secp384r1_uint1 x367; + uint64_t x368; + fiat_secp384r1_uint1 x369; + uint64_t x370; + fiat_secp384r1_uint1 x371; + uint64_t x372; + fiat_secp384r1_uint1 x373; + uint64_t x374; + fiat_secp384r1_uint1 x375; + uint64_t x376; + uint64_t x377; + uint64_t x378; + uint64_t x379; + uint64_t x380; + uint64_t x381; + uint64_t x382; + uint64_t x383; + uint64_t x384; + uint64_t x385; + uint64_t x386; + uint64_t x387; + uint64_t x388; + uint64_t x389; + fiat_secp384r1_uint1 x390; + uint64_t x391; + fiat_secp384r1_uint1 x392; + uint64_t x393; + fiat_secp384r1_uint1 x394; + uint64_t x395; + fiat_secp384r1_uint1 x396; + uint64_t x397; + fiat_secp384r1_uint1 x398; + uint64_t x399; + uint64_t x400; + fiat_secp384r1_uint1 x401; + uint64_t x402; + fiat_secp384r1_uint1 x403; + uint64_t x404; + fiat_secp384r1_uint1 x405; + uint64_t x406; + fiat_secp384r1_uint1 x407; + uint64_t x408; + fiat_secp384r1_uint1 x409; + uint64_t x410; + fiat_secp384r1_uint1 x411; + uint64_t x412; + fiat_secp384r1_uint1 x413; + uint64_t x414; + uint64_t x415; + uint64_t x416; + uint64_t x417; + uint64_t x418; + uint64_t x419; + uint64_t x420; + uint64_t x421; + uint64_t x422; + uint64_t x423; + uint64_t x424; + uint64_t x425; + uint64_t x426; + uint64_t x427; + uint64_t x428; + fiat_secp384r1_uint1 x429; + uint64_t x430; + fiat_secp384r1_uint1 x431; + uint64_t x432; + fiat_secp384r1_uint1 x433; + uint64_t x434; + fiat_secp384r1_uint1 x435; + uint64_t x436; + fiat_secp384r1_uint1 x437; + uint64_t x438; + uint64_t x439; + fiat_secp384r1_uint1 x440; + uint64_t x441; + fiat_secp384r1_uint1 x442; + uint64_t x443; + fiat_secp384r1_uint1 x444; + uint64_t x445; + fiat_secp384r1_uint1 x446; + uint64_t x447; + fiat_secp384r1_uint1 x448; + uint64_t x449; + fiat_secp384r1_uint1 x450; + uint64_t x451; + fiat_secp384r1_uint1 x452; + uint64_t x453; + uint64_t x454; + fiat_secp384r1_uint1 x455; + uint64_t x456; + fiat_secp384r1_uint1 x457; + uint64_t x458; + fiat_secp384r1_uint1 x459; + uint64_t x460; + fiat_secp384r1_uint1 x461; + uint64_t x462; + fiat_secp384r1_uint1 x463; + uint64_t x464; + fiat_secp384r1_uint1 x465; + uint64_t x466; + fiat_secp384r1_uint1 x467; + uint64_t x468; + uint64_t x469; + uint64_t x470; + uint64_t x471; + uint64_t x472; + uint64_t x473; + x1 = (arg1[1]); + x2 = (arg1[2]); + x3 = (arg1[3]); + x4 = (arg1[4]); + x5 = (arg1[5]); + x6 = (arg1[0]); + fiat_secp384r1_mulx_u64(&x7, &x8, x6, (arg2[5])); + fiat_secp384r1_mulx_u64(&x9, &x10, x6, (arg2[4])); + fiat_secp384r1_mulx_u64(&x11, &x12, x6, (arg2[3])); + fiat_secp384r1_mulx_u64(&x13, &x14, x6, (arg2[2])); + fiat_secp384r1_mulx_u64(&x15, &x16, x6, (arg2[1])); + fiat_secp384r1_mulx_u64(&x17, &x18, x6, (arg2[0])); + fiat_secp384r1_addcarryx_u64(&x19, &x20, 0x0, x18, x15); + fiat_secp384r1_addcarryx_u64(&x21, &x22, x20, x16, x13); + fiat_secp384r1_addcarryx_u64(&x23, &x24, x22, x14, x11); + fiat_secp384r1_addcarryx_u64(&x25, &x26, x24, x12, x9); + fiat_secp384r1_addcarryx_u64(&x27, &x28, x26, x10, x7); + x29 = (x28 + x8); + fiat_secp384r1_mulx_u64(&x30, &x31, x17, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x32, &x33, x30, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x34, &x35, x30, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x36, &x37, x30, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x38, &x39, x30, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x40, &x41, x30, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x42, &x43, x30, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x44, &x45, 0x0, x43, x40); + fiat_secp384r1_addcarryx_u64(&x46, &x47, x45, x41, x38); + fiat_secp384r1_addcarryx_u64(&x48, &x49, x47, x39, x36); + fiat_secp384r1_addcarryx_u64(&x50, &x51, x49, x37, x34); + fiat_secp384r1_addcarryx_u64(&x52, &x53, x51, x35, x32); + x54 = (x53 + x33); + fiat_secp384r1_addcarryx_u64(&x55, &x56, 0x0, x17, x42); + fiat_secp384r1_addcarryx_u64(&x57, &x58, x56, x19, x44); + fiat_secp384r1_addcarryx_u64(&x59, &x60, x58, x21, x46); + fiat_secp384r1_addcarryx_u64(&x61, &x62, x60, x23, x48); + fiat_secp384r1_addcarryx_u64(&x63, &x64, x62, x25, x50); + fiat_secp384r1_addcarryx_u64(&x65, &x66, x64, x27, x52); + fiat_secp384r1_addcarryx_u64(&x67, &x68, x66, x29, x54); + fiat_secp384r1_mulx_u64(&x69, &x70, x1, (arg2[5])); + fiat_secp384r1_mulx_u64(&x71, &x72, x1, (arg2[4])); + fiat_secp384r1_mulx_u64(&x73, &x74, x1, (arg2[3])); + fiat_secp384r1_mulx_u64(&x75, &x76, x1, (arg2[2])); + fiat_secp384r1_mulx_u64(&x77, &x78, x1, (arg2[1])); + fiat_secp384r1_mulx_u64(&x79, &x80, x1, (arg2[0])); + fiat_secp384r1_addcarryx_u64(&x81, &x82, 0x0, x80, x77); + fiat_secp384r1_addcarryx_u64(&x83, &x84, x82, x78, x75); + fiat_secp384r1_addcarryx_u64(&x85, &x86, x84, x76, x73); + fiat_secp384r1_addcarryx_u64(&x87, &x88, x86, x74, x71); + fiat_secp384r1_addcarryx_u64(&x89, &x90, x88, x72, x69); + x91 = (x90 + x70); + fiat_secp384r1_addcarryx_u64(&x92, &x93, 0x0, x57, x79); + fiat_secp384r1_addcarryx_u64(&x94, &x95, x93, x59, x81); + fiat_secp384r1_addcarryx_u64(&x96, &x97, x95, x61, x83); + fiat_secp384r1_addcarryx_u64(&x98, &x99, x97, x63, x85); + fiat_secp384r1_addcarryx_u64(&x100, &x101, x99, x65, x87); + fiat_secp384r1_addcarryx_u64(&x102, &x103, x101, x67, x89); + fiat_secp384r1_addcarryx_u64(&x104, &x105, x103, x68, x91); + fiat_secp384r1_mulx_u64(&x106, &x107, x92, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x108, &x109, x106, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x110, &x111, x106, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x112, &x113, x106, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x114, &x115, x106, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x116, &x117, x106, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x118, &x119, x106, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x120, &x121, 0x0, x119, x116); + fiat_secp384r1_addcarryx_u64(&x122, &x123, x121, x117, x114); + fiat_secp384r1_addcarryx_u64(&x124, &x125, x123, x115, x112); + fiat_secp384r1_addcarryx_u64(&x126, &x127, x125, x113, x110); + fiat_secp384r1_addcarryx_u64(&x128, &x129, x127, x111, x108); + x130 = (x129 + x109); + fiat_secp384r1_addcarryx_u64(&x131, &x132, 0x0, x92, x118); + fiat_secp384r1_addcarryx_u64(&x133, &x134, x132, x94, x120); + fiat_secp384r1_addcarryx_u64(&x135, &x136, x134, x96, x122); + fiat_secp384r1_addcarryx_u64(&x137, &x138, x136, x98, x124); + fiat_secp384r1_addcarryx_u64(&x139, &x140, x138, x100, x126); + fiat_secp384r1_addcarryx_u64(&x141, &x142, x140, x102, x128); + fiat_secp384r1_addcarryx_u64(&x143, &x144, x142, x104, x130); + x145 = ((uint64_t)x144 + x105); + fiat_secp384r1_mulx_u64(&x146, &x147, x2, (arg2[5])); + fiat_secp384r1_mulx_u64(&x148, &x149, x2, (arg2[4])); + fiat_secp384r1_mulx_u64(&x150, &x151, x2, (arg2[3])); + fiat_secp384r1_mulx_u64(&x152, &x153, x2, (arg2[2])); + fiat_secp384r1_mulx_u64(&x154, &x155, x2, (arg2[1])); + fiat_secp384r1_mulx_u64(&x156, &x157, x2, (arg2[0])); + fiat_secp384r1_addcarryx_u64(&x158, &x159, 0x0, x157, x154); + fiat_secp384r1_addcarryx_u64(&x160, &x161, x159, x155, x152); + fiat_secp384r1_addcarryx_u64(&x162, &x163, x161, x153, x150); + fiat_secp384r1_addcarryx_u64(&x164, &x165, x163, x151, x148); + fiat_secp384r1_addcarryx_u64(&x166, &x167, x165, x149, x146); + x168 = (x167 + x147); + fiat_secp384r1_addcarryx_u64(&x169, &x170, 0x0, x133, x156); + fiat_secp384r1_addcarryx_u64(&x171, &x172, x170, x135, x158); + fiat_secp384r1_addcarryx_u64(&x173, &x174, x172, x137, x160); + fiat_secp384r1_addcarryx_u64(&x175, &x176, x174, x139, x162); + fiat_secp384r1_addcarryx_u64(&x177, &x178, x176, x141, x164); + fiat_secp384r1_addcarryx_u64(&x179, &x180, x178, x143, x166); + fiat_secp384r1_addcarryx_u64(&x181, &x182, x180, x145, x168); + fiat_secp384r1_mulx_u64(&x183, &x184, x169, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x185, &x186, x183, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x187, &x188, x183, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x189, &x190, x183, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x191, &x192, x183, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x193, &x194, x183, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x195, &x196, x183, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x197, &x198, 0x0, x196, x193); + fiat_secp384r1_addcarryx_u64(&x199, &x200, x198, x194, x191); + fiat_secp384r1_addcarryx_u64(&x201, &x202, x200, x192, x189); + fiat_secp384r1_addcarryx_u64(&x203, &x204, x202, x190, x187); + fiat_secp384r1_addcarryx_u64(&x205, &x206, x204, x188, x185); + x207 = (x206 + x186); + fiat_secp384r1_addcarryx_u64(&x208, &x209, 0x0, x169, x195); + fiat_secp384r1_addcarryx_u64(&x210, &x211, x209, x171, x197); + fiat_secp384r1_addcarryx_u64(&x212, &x213, x211, x173, x199); + fiat_secp384r1_addcarryx_u64(&x214, &x215, x213, x175, x201); + fiat_secp384r1_addcarryx_u64(&x216, &x217, x215, x177, x203); + fiat_secp384r1_addcarryx_u64(&x218, &x219, x217, x179, x205); + fiat_secp384r1_addcarryx_u64(&x220, &x221, x219, x181, x207); + x222 = ((uint64_t)x221 + x182); + fiat_secp384r1_mulx_u64(&x223, &x224, x3, (arg2[5])); + fiat_secp384r1_mulx_u64(&x225, &x226, x3, (arg2[4])); + fiat_secp384r1_mulx_u64(&x227, &x228, x3, (arg2[3])); + fiat_secp384r1_mulx_u64(&x229, &x230, x3, (arg2[2])); + fiat_secp384r1_mulx_u64(&x231, &x232, x3, (arg2[1])); + fiat_secp384r1_mulx_u64(&x233, &x234, x3, (arg2[0])); + fiat_secp384r1_addcarryx_u64(&x235, &x236, 0x0, x234, x231); + fiat_secp384r1_addcarryx_u64(&x237, &x238, x236, x232, x229); + fiat_secp384r1_addcarryx_u64(&x239, &x240, x238, x230, x227); + fiat_secp384r1_addcarryx_u64(&x241, &x242, x240, x228, x225); + fiat_secp384r1_addcarryx_u64(&x243, &x244, x242, x226, x223); + x245 = (x244 + x224); + fiat_secp384r1_addcarryx_u64(&x246, &x247, 0x0, x210, x233); + fiat_secp384r1_addcarryx_u64(&x248, &x249, x247, x212, x235); + fiat_secp384r1_addcarryx_u64(&x250, &x251, x249, x214, x237); + fiat_secp384r1_addcarryx_u64(&x252, &x253, x251, x216, x239); + fiat_secp384r1_addcarryx_u64(&x254, &x255, x253, x218, x241); + fiat_secp384r1_addcarryx_u64(&x256, &x257, x255, x220, x243); + fiat_secp384r1_addcarryx_u64(&x258, &x259, x257, x222, x245); + fiat_secp384r1_mulx_u64(&x260, &x261, x246, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x262, &x263, x260, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x264, &x265, x260, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x266, &x267, x260, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x268, &x269, x260, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x270, &x271, x260, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x272, &x273, x260, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x274, &x275, 0x0, x273, x270); + fiat_secp384r1_addcarryx_u64(&x276, &x277, x275, x271, x268); + fiat_secp384r1_addcarryx_u64(&x278, &x279, x277, x269, x266); + fiat_secp384r1_addcarryx_u64(&x280, &x281, x279, x267, x264); + fiat_secp384r1_addcarryx_u64(&x282, &x283, x281, x265, x262); + x284 = (x283 + x263); + fiat_secp384r1_addcarryx_u64(&x285, &x286, 0x0, x246, x272); + fiat_secp384r1_addcarryx_u64(&x287, &x288, x286, x248, x274); + fiat_secp384r1_addcarryx_u64(&x289, &x290, x288, x250, x276); + fiat_secp384r1_addcarryx_u64(&x291, &x292, x290, x252, x278); + fiat_secp384r1_addcarryx_u64(&x293, &x294, x292, x254, x280); + fiat_secp384r1_addcarryx_u64(&x295, &x296, x294, x256, x282); + fiat_secp384r1_addcarryx_u64(&x297, &x298, x296, x258, x284); + x299 = ((uint64_t)x298 + x259); + fiat_secp384r1_mulx_u64(&x300, &x301, x4, (arg2[5])); + fiat_secp384r1_mulx_u64(&x302, &x303, x4, (arg2[4])); + fiat_secp384r1_mulx_u64(&x304, &x305, x4, (arg2[3])); + fiat_secp384r1_mulx_u64(&x306, &x307, x4, (arg2[2])); + fiat_secp384r1_mulx_u64(&x308, &x309, x4, (arg2[1])); + fiat_secp384r1_mulx_u64(&x310, &x311, x4, (arg2[0])); + fiat_secp384r1_addcarryx_u64(&x312, &x313, 0x0, x311, x308); + fiat_secp384r1_addcarryx_u64(&x314, &x315, x313, x309, x306); + fiat_secp384r1_addcarryx_u64(&x316, &x317, x315, x307, x304); + fiat_secp384r1_addcarryx_u64(&x318, &x319, x317, x305, x302); + fiat_secp384r1_addcarryx_u64(&x320, &x321, x319, x303, x300); + x322 = (x321 + x301); + fiat_secp384r1_addcarryx_u64(&x323, &x324, 0x0, x287, x310); + fiat_secp384r1_addcarryx_u64(&x325, &x326, x324, x289, x312); + fiat_secp384r1_addcarryx_u64(&x327, &x328, x326, x291, x314); + fiat_secp384r1_addcarryx_u64(&x329, &x330, x328, x293, x316); + fiat_secp384r1_addcarryx_u64(&x331, &x332, x330, x295, x318); + fiat_secp384r1_addcarryx_u64(&x333, &x334, x332, x297, x320); + fiat_secp384r1_addcarryx_u64(&x335, &x336, x334, x299, x322); + fiat_secp384r1_mulx_u64(&x337, &x338, x323, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x339, &x340, x337, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x341, &x342, x337, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x343, &x344, x337, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x345, &x346, x337, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x347, &x348, x337, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x349, &x350, x337, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x351, &x352, 0x0, x350, x347); + fiat_secp384r1_addcarryx_u64(&x353, &x354, x352, x348, x345); + fiat_secp384r1_addcarryx_u64(&x355, &x356, x354, x346, x343); + fiat_secp384r1_addcarryx_u64(&x357, &x358, x356, x344, x341); + fiat_secp384r1_addcarryx_u64(&x359, &x360, x358, x342, x339); + x361 = (x360 + x340); + fiat_secp384r1_addcarryx_u64(&x362, &x363, 0x0, x323, x349); + fiat_secp384r1_addcarryx_u64(&x364, &x365, x363, x325, x351); + fiat_secp384r1_addcarryx_u64(&x366, &x367, x365, x327, x353); + fiat_secp384r1_addcarryx_u64(&x368, &x369, x367, x329, x355); + fiat_secp384r1_addcarryx_u64(&x370, &x371, x369, x331, x357); + fiat_secp384r1_addcarryx_u64(&x372, &x373, x371, x333, x359); + fiat_secp384r1_addcarryx_u64(&x374, &x375, x373, x335, x361); + x376 = ((uint64_t)x375 + x336); + fiat_secp384r1_mulx_u64(&x377, &x378, x5, (arg2[5])); + fiat_secp384r1_mulx_u64(&x379, &x380, x5, (arg2[4])); + fiat_secp384r1_mulx_u64(&x381, &x382, x5, (arg2[3])); + fiat_secp384r1_mulx_u64(&x383, &x384, x5, (arg2[2])); + fiat_secp384r1_mulx_u64(&x385, &x386, x5, (arg2[1])); + fiat_secp384r1_mulx_u64(&x387, &x388, x5, (arg2[0])); + fiat_secp384r1_addcarryx_u64(&x389, &x390, 0x0, x388, x385); + fiat_secp384r1_addcarryx_u64(&x391, &x392, x390, x386, x383); + fiat_secp384r1_addcarryx_u64(&x393, &x394, x392, x384, x381); + fiat_secp384r1_addcarryx_u64(&x395, &x396, x394, x382, x379); + fiat_secp384r1_addcarryx_u64(&x397, &x398, x396, x380, x377); + x399 = (x398 + x378); + fiat_secp384r1_addcarryx_u64(&x400, &x401, 0x0, x364, x387); + fiat_secp384r1_addcarryx_u64(&x402, &x403, x401, x366, x389); + fiat_secp384r1_addcarryx_u64(&x404, &x405, x403, x368, x391); + fiat_secp384r1_addcarryx_u64(&x406, &x407, x405, x370, x393); + fiat_secp384r1_addcarryx_u64(&x408, &x409, x407, x372, x395); + fiat_secp384r1_addcarryx_u64(&x410, &x411, x409, x374, x397); + fiat_secp384r1_addcarryx_u64(&x412, &x413, x411, x376, x399); + fiat_secp384r1_mulx_u64(&x414, &x415, x400, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x416, &x417, x414, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x418, &x419, x414, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x420, &x421, x414, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x422, &x423, x414, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x424, &x425, x414, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x426, &x427, x414, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x428, &x429, 0x0, x427, x424); + fiat_secp384r1_addcarryx_u64(&x430, &x431, x429, x425, x422); + fiat_secp384r1_addcarryx_u64(&x432, &x433, x431, x423, x420); + fiat_secp384r1_addcarryx_u64(&x434, &x435, x433, x421, x418); + fiat_secp384r1_addcarryx_u64(&x436, &x437, x435, x419, x416); + x438 = (x437 + x417); + fiat_secp384r1_addcarryx_u64(&x439, &x440, 0x0, x400, x426); + fiat_secp384r1_addcarryx_u64(&x441, &x442, x440, x402, x428); + fiat_secp384r1_addcarryx_u64(&x443, &x444, x442, x404, x430); + fiat_secp384r1_addcarryx_u64(&x445, &x446, x444, x406, x432); + fiat_secp384r1_addcarryx_u64(&x447, &x448, x446, x408, x434); + fiat_secp384r1_addcarryx_u64(&x449, &x450, x448, x410, x436); + fiat_secp384r1_addcarryx_u64(&x451, &x452, x450, x412, x438); + x453 = ((uint64_t)x452 + x413); + fiat_secp384r1_subborrowx_u64(&x454, &x455, 0x0, x441, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u64(&x456, &x457, x455, x443, + UINT64_C(0xffffffff00000000)); + fiat_secp384r1_subborrowx_u64(&x458, &x459, x457, x445, + UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_subborrowx_u64(&x460, &x461, x459, x447, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x462, &x463, x461, x449, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x464, &x465, x463, x451, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x466, &x467, x465, x453, 0x0); + fiat_secp384r1_cmovznz_u64(&x468, x467, x454, x441); + fiat_secp384r1_cmovznz_u64(&x469, x467, x456, x443); + fiat_secp384r1_cmovznz_u64(&x470, x467, x458, x445); + fiat_secp384r1_cmovznz_u64(&x471, x467, x460, x447); + fiat_secp384r1_cmovznz_u64(&x472, x467, x462, x449); + fiat_secp384r1_cmovznz_u64(&x473, x467, x464, x451); + out1[0] = x468; + out1[1] = x469; + out1[2] = x470; + out1[3] = x471; + out1[4] = x472; + out1[5] = x473; +} + +/* + * The function fiat_secp384r1_square squares a field element in the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) * eval (from_montgomery arg1)) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + */ +static void +fiat_secp384r1_square(uint64_t out1[6], const uint64_t arg1[6]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint64_t x8; + uint64_t x9; + uint64_t x10; + uint64_t x11; + uint64_t x12; + uint64_t x13; + uint64_t x14; + uint64_t x15; + uint64_t x16; + uint64_t x17; + uint64_t x18; + uint64_t x19; + fiat_secp384r1_uint1 x20; + uint64_t x21; + fiat_secp384r1_uint1 x22; + uint64_t x23; + fiat_secp384r1_uint1 x24; + uint64_t x25; + fiat_secp384r1_uint1 x26; + uint64_t x27; + fiat_secp384r1_uint1 x28; + uint64_t x29; + uint64_t x30; + uint64_t x31; + uint64_t x32; + uint64_t x33; + uint64_t x34; + uint64_t x35; + uint64_t x36; + uint64_t x37; + uint64_t x38; + uint64_t x39; + uint64_t x40; + uint64_t x41; + uint64_t x42; + uint64_t x43; + uint64_t x44; + fiat_secp384r1_uint1 x45; + uint64_t x46; + fiat_secp384r1_uint1 x47; + uint64_t x48; + fiat_secp384r1_uint1 x49; + uint64_t x50; + fiat_secp384r1_uint1 x51; + uint64_t x52; + fiat_secp384r1_uint1 x53; + uint64_t x54; + uint64_t x55; + fiat_secp384r1_uint1 x56; + uint64_t x57; + fiat_secp384r1_uint1 x58; + uint64_t x59; + fiat_secp384r1_uint1 x60; + uint64_t x61; + fiat_secp384r1_uint1 x62; + uint64_t x63; + fiat_secp384r1_uint1 x64; + uint64_t x65; + fiat_secp384r1_uint1 x66; + uint64_t x67; + fiat_secp384r1_uint1 x68; + uint64_t x69; + uint64_t x70; + uint64_t x71; + uint64_t x72; + uint64_t x73; + uint64_t x74; + uint64_t x75; + uint64_t x76; + uint64_t x77; + uint64_t x78; + uint64_t x79; + uint64_t x80; + uint64_t x81; + fiat_secp384r1_uint1 x82; + uint64_t x83; + fiat_secp384r1_uint1 x84; + uint64_t x85; + fiat_secp384r1_uint1 x86; + uint64_t x87; + fiat_secp384r1_uint1 x88; + uint64_t x89; + fiat_secp384r1_uint1 x90; + uint64_t x91; + uint64_t x92; + fiat_secp384r1_uint1 x93; + uint64_t x94; + fiat_secp384r1_uint1 x95; + uint64_t x96; + fiat_secp384r1_uint1 x97; + uint64_t x98; + fiat_secp384r1_uint1 x99; + uint64_t x100; + fiat_secp384r1_uint1 x101; + uint64_t x102; + fiat_secp384r1_uint1 x103; + uint64_t x104; + fiat_secp384r1_uint1 x105; + uint64_t x106; + uint64_t x107; + uint64_t x108; + uint64_t x109; + uint64_t x110; + uint64_t x111; + uint64_t x112; + uint64_t x113; + uint64_t x114; + uint64_t x115; + uint64_t x116; + uint64_t x117; + uint64_t x118; + uint64_t x119; + uint64_t x120; + fiat_secp384r1_uint1 x121; + uint64_t x122; + fiat_secp384r1_uint1 x123; + uint64_t x124; + fiat_secp384r1_uint1 x125; + uint64_t x126; + fiat_secp384r1_uint1 x127; + uint64_t x128; + fiat_secp384r1_uint1 x129; + uint64_t x130; + uint64_t x131; + fiat_secp384r1_uint1 x132; + uint64_t x133; + fiat_secp384r1_uint1 x134; + uint64_t x135; + fiat_secp384r1_uint1 x136; + uint64_t x137; + fiat_secp384r1_uint1 x138; + uint64_t x139; + fiat_secp384r1_uint1 x140; + uint64_t x141; + fiat_secp384r1_uint1 x142; + uint64_t x143; + fiat_secp384r1_uint1 x144; + uint64_t x145; + uint64_t x146; + uint64_t x147; + uint64_t x148; + uint64_t x149; + uint64_t x150; + uint64_t x151; + uint64_t x152; + uint64_t x153; + uint64_t x154; + uint64_t x155; + uint64_t x156; + uint64_t x157; + uint64_t x158; + fiat_secp384r1_uint1 x159; + uint64_t x160; + fiat_secp384r1_uint1 x161; + uint64_t x162; + fiat_secp384r1_uint1 x163; + uint64_t x164; + fiat_secp384r1_uint1 x165; + uint64_t x166; + fiat_secp384r1_uint1 x167; + uint64_t x168; + uint64_t x169; + fiat_secp384r1_uint1 x170; + uint64_t x171; + fiat_secp384r1_uint1 x172; + uint64_t x173; + fiat_secp384r1_uint1 x174; + uint64_t x175; + fiat_secp384r1_uint1 x176; + uint64_t x177; + fiat_secp384r1_uint1 x178; + uint64_t x179; + fiat_secp384r1_uint1 x180; + uint64_t x181; + fiat_secp384r1_uint1 x182; + uint64_t x183; + uint64_t x184; + uint64_t x185; + uint64_t x186; + uint64_t x187; + uint64_t x188; + uint64_t x189; + uint64_t x190; + uint64_t x191; + uint64_t x192; + uint64_t x193; + uint64_t x194; + uint64_t x195; + uint64_t x196; + uint64_t x197; + fiat_secp384r1_uint1 x198; + uint64_t x199; + fiat_secp384r1_uint1 x200; + uint64_t x201; + fiat_secp384r1_uint1 x202; + uint64_t x203; + fiat_secp384r1_uint1 x204; + uint64_t x205; + fiat_secp384r1_uint1 x206; + uint64_t x207; + uint64_t x208; + fiat_secp384r1_uint1 x209; + uint64_t x210; + fiat_secp384r1_uint1 x211; + uint64_t x212; + fiat_secp384r1_uint1 x213; + uint64_t x214; + fiat_secp384r1_uint1 x215; + uint64_t x216; + fiat_secp384r1_uint1 x217; + uint64_t x218; + fiat_secp384r1_uint1 x219; + uint64_t x220; + fiat_secp384r1_uint1 x221; + uint64_t x222; + uint64_t x223; + uint64_t x224; + uint64_t x225; + uint64_t x226; + uint64_t x227; + uint64_t x228; + uint64_t x229; + uint64_t x230; + uint64_t x231; + uint64_t x232; + uint64_t x233; + uint64_t x234; + uint64_t x235; + fiat_secp384r1_uint1 x236; + uint64_t x237; + fiat_secp384r1_uint1 x238; + uint64_t x239; + fiat_secp384r1_uint1 x240; + uint64_t x241; + fiat_secp384r1_uint1 x242; + uint64_t x243; + fiat_secp384r1_uint1 x244; + uint64_t x245; + uint64_t x246; + fiat_secp384r1_uint1 x247; + uint64_t x248; + fiat_secp384r1_uint1 x249; + uint64_t x250; + fiat_secp384r1_uint1 x251; + uint64_t x252; + fiat_secp384r1_uint1 x253; + uint64_t x254; + fiat_secp384r1_uint1 x255; + uint64_t x256; + fiat_secp384r1_uint1 x257; + uint64_t x258; + fiat_secp384r1_uint1 x259; + uint64_t x260; + uint64_t x261; + uint64_t x262; + uint64_t x263; + uint64_t x264; + uint64_t x265; + uint64_t x266; + uint64_t x267; + uint64_t x268; + uint64_t x269; + uint64_t x270; + uint64_t x271; + uint64_t x272; + uint64_t x273; + uint64_t x274; + fiat_secp384r1_uint1 x275; + uint64_t x276; + fiat_secp384r1_uint1 x277; + uint64_t x278; + fiat_secp384r1_uint1 x279; + uint64_t x280; + fiat_secp384r1_uint1 x281; + uint64_t x282; + fiat_secp384r1_uint1 x283; + uint64_t x284; + uint64_t x285; + fiat_secp384r1_uint1 x286; + uint64_t x287; + fiat_secp384r1_uint1 x288; + uint64_t x289; + fiat_secp384r1_uint1 x290; + uint64_t x291; + fiat_secp384r1_uint1 x292; + uint64_t x293; + fiat_secp384r1_uint1 x294; + uint64_t x295; + fiat_secp384r1_uint1 x296; + uint64_t x297; + fiat_secp384r1_uint1 x298; + uint64_t x299; + uint64_t x300; + uint64_t x301; + uint64_t x302; + uint64_t x303; + uint64_t x304; + uint64_t x305; + uint64_t x306; + uint64_t x307; + uint64_t x308; + uint64_t x309; + uint64_t x310; + uint64_t x311; + uint64_t x312; + fiat_secp384r1_uint1 x313; + uint64_t x314; + fiat_secp384r1_uint1 x315; + uint64_t x316; + fiat_secp384r1_uint1 x317; + uint64_t x318; + fiat_secp384r1_uint1 x319; + uint64_t x320; + fiat_secp384r1_uint1 x321; + uint64_t x322; + uint64_t x323; + fiat_secp384r1_uint1 x324; + uint64_t x325; + fiat_secp384r1_uint1 x326; + uint64_t x327; + fiat_secp384r1_uint1 x328; + uint64_t x329; + fiat_secp384r1_uint1 x330; + uint64_t x331; + fiat_secp384r1_uint1 x332; + uint64_t x333; + fiat_secp384r1_uint1 x334; + uint64_t x335; + fiat_secp384r1_uint1 x336; + uint64_t x337; + uint64_t x338; + uint64_t x339; + uint64_t x340; + uint64_t x341; + uint64_t x342; + uint64_t x343; + uint64_t x344; + uint64_t x345; + uint64_t x346; + uint64_t x347; + uint64_t x348; + uint64_t x349; + uint64_t x350; + uint64_t x351; + fiat_secp384r1_uint1 x352; + uint64_t x353; + fiat_secp384r1_uint1 x354; + uint64_t x355; + fiat_secp384r1_uint1 x356; + uint64_t x357; + fiat_secp384r1_uint1 x358; + uint64_t x359; + fiat_secp384r1_uint1 x360; + uint64_t x361; + uint64_t x362; + fiat_secp384r1_uint1 x363; + uint64_t x364; + fiat_secp384r1_uint1 x365; + uint64_t x366; + fiat_secp384r1_uint1 x367; + uint64_t x368; + fiat_secp384r1_uint1 x369; + uint64_t x370; + fiat_secp384r1_uint1 x371; + uint64_t x372; + fiat_secp384r1_uint1 x373; + uint64_t x374; + fiat_secp384r1_uint1 x375; + uint64_t x376; + uint64_t x377; + uint64_t x378; + uint64_t x379; + uint64_t x380; + uint64_t x381; + uint64_t x382; + uint64_t x383; + uint64_t x384; + uint64_t x385; + uint64_t x386; + uint64_t x387; + uint64_t x388; + uint64_t x389; + fiat_secp384r1_uint1 x390; + uint64_t x391; + fiat_secp384r1_uint1 x392; + uint64_t x393; + fiat_secp384r1_uint1 x394; + uint64_t x395; + fiat_secp384r1_uint1 x396; + uint64_t x397; + fiat_secp384r1_uint1 x398; + uint64_t x399; + uint64_t x400; + fiat_secp384r1_uint1 x401; + uint64_t x402; + fiat_secp384r1_uint1 x403; + uint64_t x404; + fiat_secp384r1_uint1 x405; + uint64_t x406; + fiat_secp384r1_uint1 x407; + uint64_t x408; + fiat_secp384r1_uint1 x409; + uint64_t x410; + fiat_secp384r1_uint1 x411; + uint64_t x412; + fiat_secp384r1_uint1 x413; + uint64_t x414; + uint64_t x415; + uint64_t x416; + uint64_t x417; + uint64_t x418; + uint64_t x419; + uint64_t x420; + uint64_t x421; + uint64_t x422; + uint64_t x423; + uint64_t x424; + uint64_t x425; + uint64_t x426; + uint64_t x427; + uint64_t x428; + fiat_secp384r1_uint1 x429; + uint64_t x430; + fiat_secp384r1_uint1 x431; + uint64_t x432; + fiat_secp384r1_uint1 x433; + uint64_t x434; + fiat_secp384r1_uint1 x435; + uint64_t x436; + fiat_secp384r1_uint1 x437; + uint64_t x438; + uint64_t x439; + fiat_secp384r1_uint1 x440; + uint64_t x441; + fiat_secp384r1_uint1 x442; + uint64_t x443; + fiat_secp384r1_uint1 x444; + uint64_t x445; + fiat_secp384r1_uint1 x446; + uint64_t x447; + fiat_secp384r1_uint1 x448; + uint64_t x449; + fiat_secp384r1_uint1 x450; + uint64_t x451; + fiat_secp384r1_uint1 x452; + uint64_t x453; + uint64_t x454; + fiat_secp384r1_uint1 x455; + uint64_t x456; + fiat_secp384r1_uint1 x457; + uint64_t x458; + fiat_secp384r1_uint1 x459; + uint64_t x460; + fiat_secp384r1_uint1 x461; + uint64_t x462; + fiat_secp384r1_uint1 x463; + uint64_t x464; + fiat_secp384r1_uint1 x465; + uint64_t x466; + fiat_secp384r1_uint1 x467; + uint64_t x468; + uint64_t x469; + uint64_t x470; + uint64_t x471; + uint64_t x472; + uint64_t x473; + x1 = (arg1[1]); + x2 = (arg1[2]); + x3 = (arg1[3]); + x4 = (arg1[4]); + x5 = (arg1[5]); + x6 = (arg1[0]); + fiat_secp384r1_mulx_u64(&x7, &x8, x6, (arg1[5])); + fiat_secp384r1_mulx_u64(&x9, &x10, x6, (arg1[4])); + fiat_secp384r1_mulx_u64(&x11, &x12, x6, (arg1[3])); + fiat_secp384r1_mulx_u64(&x13, &x14, x6, (arg1[2])); + fiat_secp384r1_mulx_u64(&x15, &x16, x6, (arg1[1])); + fiat_secp384r1_mulx_u64(&x17, &x18, x6, (arg1[0])); + fiat_secp384r1_addcarryx_u64(&x19, &x20, 0x0, x18, x15); + fiat_secp384r1_addcarryx_u64(&x21, &x22, x20, x16, x13); + fiat_secp384r1_addcarryx_u64(&x23, &x24, x22, x14, x11); + fiat_secp384r1_addcarryx_u64(&x25, &x26, x24, x12, x9); + fiat_secp384r1_addcarryx_u64(&x27, &x28, x26, x10, x7); + x29 = (x28 + x8); + fiat_secp384r1_mulx_u64(&x30, &x31, x17, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x32, &x33, x30, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x34, &x35, x30, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x36, &x37, x30, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x38, &x39, x30, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x40, &x41, x30, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x42, &x43, x30, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x44, &x45, 0x0, x43, x40); + fiat_secp384r1_addcarryx_u64(&x46, &x47, x45, x41, x38); + fiat_secp384r1_addcarryx_u64(&x48, &x49, x47, x39, x36); + fiat_secp384r1_addcarryx_u64(&x50, &x51, x49, x37, x34); + fiat_secp384r1_addcarryx_u64(&x52, &x53, x51, x35, x32); + x54 = (x53 + x33); + fiat_secp384r1_addcarryx_u64(&x55, &x56, 0x0, x17, x42); + fiat_secp384r1_addcarryx_u64(&x57, &x58, x56, x19, x44); + fiat_secp384r1_addcarryx_u64(&x59, &x60, x58, x21, x46); + fiat_secp384r1_addcarryx_u64(&x61, &x62, x60, x23, x48); + fiat_secp384r1_addcarryx_u64(&x63, &x64, x62, x25, x50); + fiat_secp384r1_addcarryx_u64(&x65, &x66, x64, x27, x52); + fiat_secp384r1_addcarryx_u64(&x67, &x68, x66, x29, x54); + fiat_secp384r1_mulx_u64(&x69, &x70, x1, (arg1[5])); + fiat_secp384r1_mulx_u64(&x71, &x72, x1, (arg1[4])); + fiat_secp384r1_mulx_u64(&x73, &x74, x1, (arg1[3])); + fiat_secp384r1_mulx_u64(&x75, &x76, x1, (arg1[2])); + fiat_secp384r1_mulx_u64(&x77, &x78, x1, (arg1[1])); + fiat_secp384r1_mulx_u64(&x79, &x80, x1, (arg1[0])); + fiat_secp384r1_addcarryx_u64(&x81, &x82, 0x0, x80, x77); + fiat_secp384r1_addcarryx_u64(&x83, &x84, x82, x78, x75); + fiat_secp384r1_addcarryx_u64(&x85, &x86, x84, x76, x73); + fiat_secp384r1_addcarryx_u64(&x87, &x88, x86, x74, x71); + fiat_secp384r1_addcarryx_u64(&x89, &x90, x88, x72, x69); + x91 = (x90 + x70); + fiat_secp384r1_addcarryx_u64(&x92, &x93, 0x0, x57, x79); + fiat_secp384r1_addcarryx_u64(&x94, &x95, x93, x59, x81); + fiat_secp384r1_addcarryx_u64(&x96, &x97, x95, x61, x83); + fiat_secp384r1_addcarryx_u64(&x98, &x99, x97, x63, x85); + fiat_secp384r1_addcarryx_u64(&x100, &x101, x99, x65, x87); + fiat_secp384r1_addcarryx_u64(&x102, &x103, x101, x67, x89); + fiat_secp384r1_addcarryx_u64(&x104, &x105, x103, x68, x91); + fiat_secp384r1_mulx_u64(&x106, &x107, x92, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x108, &x109, x106, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x110, &x111, x106, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x112, &x113, x106, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x114, &x115, x106, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x116, &x117, x106, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x118, &x119, x106, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x120, &x121, 0x0, x119, x116); + fiat_secp384r1_addcarryx_u64(&x122, &x123, x121, x117, x114); + fiat_secp384r1_addcarryx_u64(&x124, &x125, x123, x115, x112); + fiat_secp384r1_addcarryx_u64(&x126, &x127, x125, x113, x110); + fiat_secp384r1_addcarryx_u64(&x128, &x129, x127, x111, x108); + x130 = (x129 + x109); + fiat_secp384r1_addcarryx_u64(&x131, &x132, 0x0, x92, x118); + fiat_secp384r1_addcarryx_u64(&x133, &x134, x132, x94, x120); + fiat_secp384r1_addcarryx_u64(&x135, &x136, x134, x96, x122); + fiat_secp384r1_addcarryx_u64(&x137, &x138, x136, x98, x124); + fiat_secp384r1_addcarryx_u64(&x139, &x140, x138, x100, x126); + fiat_secp384r1_addcarryx_u64(&x141, &x142, x140, x102, x128); + fiat_secp384r1_addcarryx_u64(&x143, &x144, x142, x104, x130); + x145 = ((uint64_t)x144 + x105); + fiat_secp384r1_mulx_u64(&x146, &x147, x2, (arg1[5])); + fiat_secp384r1_mulx_u64(&x148, &x149, x2, (arg1[4])); + fiat_secp384r1_mulx_u64(&x150, &x151, x2, (arg1[3])); + fiat_secp384r1_mulx_u64(&x152, &x153, x2, (arg1[2])); + fiat_secp384r1_mulx_u64(&x154, &x155, x2, (arg1[1])); + fiat_secp384r1_mulx_u64(&x156, &x157, x2, (arg1[0])); + fiat_secp384r1_addcarryx_u64(&x158, &x159, 0x0, x157, x154); + fiat_secp384r1_addcarryx_u64(&x160, &x161, x159, x155, x152); + fiat_secp384r1_addcarryx_u64(&x162, &x163, x161, x153, x150); + fiat_secp384r1_addcarryx_u64(&x164, &x165, x163, x151, x148); + fiat_secp384r1_addcarryx_u64(&x166, &x167, x165, x149, x146); + x168 = (x167 + x147); + fiat_secp384r1_addcarryx_u64(&x169, &x170, 0x0, x133, x156); + fiat_secp384r1_addcarryx_u64(&x171, &x172, x170, x135, x158); + fiat_secp384r1_addcarryx_u64(&x173, &x174, x172, x137, x160); + fiat_secp384r1_addcarryx_u64(&x175, &x176, x174, x139, x162); + fiat_secp384r1_addcarryx_u64(&x177, &x178, x176, x141, x164); + fiat_secp384r1_addcarryx_u64(&x179, &x180, x178, x143, x166); + fiat_secp384r1_addcarryx_u64(&x181, &x182, x180, x145, x168); + fiat_secp384r1_mulx_u64(&x183, &x184, x169, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x185, &x186, x183, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x187, &x188, x183, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x189, &x190, x183, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x191, &x192, x183, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x193, &x194, x183, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x195, &x196, x183, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x197, &x198, 0x0, x196, x193); + fiat_secp384r1_addcarryx_u64(&x199, &x200, x198, x194, x191); + fiat_secp384r1_addcarryx_u64(&x201, &x202, x200, x192, x189); + fiat_secp384r1_addcarryx_u64(&x203, &x204, x202, x190, x187); + fiat_secp384r1_addcarryx_u64(&x205, &x206, x204, x188, x185); + x207 = (x206 + x186); + fiat_secp384r1_addcarryx_u64(&x208, &x209, 0x0, x169, x195); + fiat_secp384r1_addcarryx_u64(&x210, &x211, x209, x171, x197); + fiat_secp384r1_addcarryx_u64(&x212, &x213, x211, x173, x199); + fiat_secp384r1_addcarryx_u64(&x214, &x215, x213, x175, x201); + fiat_secp384r1_addcarryx_u64(&x216, &x217, x215, x177, x203); + fiat_secp384r1_addcarryx_u64(&x218, &x219, x217, x179, x205); + fiat_secp384r1_addcarryx_u64(&x220, &x221, x219, x181, x207); + x222 = ((uint64_t)x221 + x182); + fiat_secp384r1_mulx_u64(&x223, &x224, x3, (arg1[5])); + fiat_secp384r1_mulx_u64(&x225, &x226, x3, (arg1[4])); + fiat_secp384r1_mulx_u64(&x227, &x228, x3, (arg1[3])); + fiat_secp384r1_mulx_u64(&x229, &x230, x3, (arg1[2])); + fiat_secp384r1_mulx_u64(&x231, &x232, x3, (arg1[1])); + fiat_secp384r1_mulx_u64(&x233, &x234, x3, (arg1[0])); + fiat_secp384r1_addcarryx_u64(&x235, &x236, 0x0, x234, x231); + fiat_secp384r1_addcarryx_u64(&x237, &x238, x236, x232, x229); + fiat_secp384r1_addcarryx_u64(&x239, &x240, x238, x230, x227); + fiat_secp384r1_addcarryx_u64(&x241, &x242, x240, x228, x225); + fiat_secp384r1_addcarryx_u64(&x243, &x244, x242, x226, x223); + x245 = (x244 + x224); + fiat_secp384r1_addcarryx_u64(&x246, &x247, 0x0, x210, x233); + fiat_secp384r1_addcarryx_u64(&x248, &x249, x247, x212, x235); + fiat_secp384r1_addcarryx_u64(&x250, &x251, x249, x214, x237); + fiat_secp384r1_addcarryx_u64(&x252, &x253, x251, x216, x239); + fiat_secp384r1_addcarryx_u64(&x254, &x255, x253, x218, x241); + fiat_secp384r1_addcarryx_u64(&x256, &x257, x255, x220, x243); + fiat_secp384r1_addcarryx_u64(&x258, &x259, x257, x222, x245); + fiat_secp384r1_mulx_u64(&x260, &x261, x246, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x262, &x263, x260, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x264, &x265, x260, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x266, &x267, x260, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x268, &x269, x260, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x270, &x271, x260, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x272, &x273, x260, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x274, &x275, 0x0, x273, x270); + fiat_secp384r1_addcarryx_u64(&x276, &x277, x275, x271, x268); + fiat_secp384r1_addcarryx_u64(&x278, &x279, x277, x269, x266); + fiat_secp384r1_addcarryx_u64(&x280, &x281, x279, x267, x264); + fiat_secp384r1_addcarryx_u64(&x282, &x283, x281, x265, x262); + x284 = (x283 + x263); + fiat_secp384r1_addcarryx_u64(&x285, &x286, 0x0, x246, x272); + fiat_secp384r1_addcarryx_u64(&x287, &x288, x286, x248, x274); + fiat_secp384r1_addcarryx_u64(&x289, &x290, x288, x250, x276); + fiat_secp384r1_addcarryx_u64(&x291, &x292, x290, x252, x278); + fiat_secp384r1_addcarryx_u64(&x293, &x294, x292, x254, x280); + fiat_secp384r1_addcarryx_u64(&x295, &x296, x294, x256, x282); + fiat_secp384r1_addcarryx_u64(&x297, &x298, x296, x258, x284); + x299 = ((uint64_t)x298 + x259); + fiat_secp384r1_mulx_u64(&x300, &x301, x4, (arg1[5])); + fiat_secp384r1_mulx_u64(&x302, &x303, x4, (arg1[4])); + fiat_secp384r1_mulx_u64(&x304, &x305, x4, (arg1[3])); + fiat_secp384r1_mulx_u64(&x306, &x307, x4, (arg1[2])); + fiat_secp384r1_mulx_u64(&x308, &x309, x4, (arg1[1])); + fiat_secp384r1_mulx_u64(&x310, &x311, x4, (arg1[0])); + fiat_secp384r1_addcarryx_u64(&x312, &x313, 0x0, x311, x308); + fiat_secp384r1_addcarryx_u64(&x314, &x315, x313, x309, x306); + fiat_secp384r1_addcarryx_u64(&x316, &x317, x315, x307, x304); + fiat_secp384r1_addcarryx_u64(&x318, &x319, x317, x305, x302); + fiat_secp384r1_addcarryx_u64(&x320, &x321, x319, x303, x300); + x322 = (x321 + x301); + fiat_secp384r1_addcarryx_u64(&x323, &x324, 0x0, x287, x310); + fiat_secp384r1_addcarryx_u64(&x325, &x326, x324, x289, x312); + fiat_secp384r1_addcarryx_u64(&x327, &x328, x326, x291, x314); + fiat_secp384r1_addcarryx_u64(&x329, &x330, x328, x293, x316); + fiat_secp384r1_addcarryx_u64(&x331, &x332, x330, x295, x318); + fiat_secp384r1_addcarryx_u64(&x333, &x334, x332, x297, x320); + fiat_secp384r1_addcarryx_u64(&x335, &x336, x334, x299, x322); + fiat_secp384r1_mulx_u64(&x337, &x338, x323, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x339, &x340, x337, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x341, &x342, x337, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x343, &x344, x337, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x345, &x346, x337, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x347, &x348, x337, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x349, &x350, x337, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x351, &x352, 0x0, x350, x347); + fiat_secp384r1_addcarryx_u64(&x353, &x354, x352, x348, x345); + fiat_secp384r1_addcarryx_u64(&x355, &x356, x354, x346, x343); + fiat_secp384r1_addcarryx_u64(&x357, &x358, x356, x344, x341); + fiat_secp384r1_addcarryx_u64(&x359, &x360, x358, x342, x339); + x361 = (x360 + x340); + fiat_secp384r1_addcarryx_u64(&x362, &x363, 0x0, x323, x349); + fiat_secp384r1_addcarryx_u64(&x364, &x365, x363, x325, x351); + fiat_secp384r1_addcarryx_u64(&x366, &x367, x365, x327, x353); + fiat_secp384r1_addcarryx_u64(&x368, &x369, x367, x329, x355); + fiat_secp384r1_addcarryx_u64(&x370, &x371, x369, x331, x357); + fiat_secp384r1_addcarryx_u64(&x372, &x373, x371, x333, x359); + fiat_secp384r1_addcarryx_u64(&x374, &x375, x373, x335, x361); + x376 = ((uint64_t)x375 + x336); + fiat_secp384r1_mulx_u64(&x377, &x378, x5, (arg1[5])); + fiat_secp384r1_mulx_u64(&x379, &x380, x5, (arg1[4])); + fiat_secp384r1_mulx_u64(&x381, &x382, x5, (arg1[3])); + fiat_secp384r1_mulx_u64(&x383, &x384, x5, (arg1[2])); + fiat_secp384r1_mulx_u64(&x385, &x386, x5, (arg1[1])); + fiat_secp384r1_mulx_u64(&x387, &x388, x5, (arg1[0])); + fiat_secp384r1_addcarryx_u64(&x389, &x390, 0x0, x388, x385); + fiat_secp384r1_addcarryx_u64(&x391, &x392, x390, x386, x383); + fiat_secp384r1_addcarryx_u64(&x393, &x394, x392, x384, x381); + fiat_secp384r1_addcarryx_u64(&x395, &x396, x394, x382, x379); + fiat_secp384r1_addcarryx_u64(&x397, &x398, x396, x380, x377); + x399 = (x398 + x378); + fiat_secp384r1_addcarryx_u64(&x400, &x401, 0x0, x364, x387); + fiat_secp384r1_addcarryx_u64(&x402, &x403, x401, x366, x389); + fiat_secp384r1_addcarryx_u64(&x404, &x405, x403, x368, x391); + fiat_secp384r1_addcarryx_u64(&x406, &x407, x405, x370, x393); + fiat_secp384r1_addcarryx_u64(&x408, &x409, x407, x372, x395); + fiat_secp384r1_addcarryx_u64(&x410, &x411, x409, x374, x397); + fiat_secp384r1_addcarryx_u64(&x412, &x413, x411, x376, x399); + fiat_secp384r1_mulx_u64(&x414, &x415, x400, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x416, &x417, x414, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x418, &x419, x414, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x420, &x421, x414, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x422, &x423, x414, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x424, &x425, x414, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x426, &x427, x414, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x428, &x429, 0x0, x427, x424); + fiat_secp384r1_addcarryx_u64(&x430, &x431, x429, x425, x422); + fiat_secp384r1_addcarryx_u64(&x432, &x433, x431, x423, x420); + fiat_secp384r1_addcarryx_u64(&x434, &x435, x433, x421, x418); + fiat_secp384r1_addcarryx_u64(&x436, &x437, x435, x419, x416); + x438 = (x437 + x417); + fiat_secp384r1_addcarryx_u64(&x439, &x440, 0x0, x400, x426); + fiat_secp384r1_addcarryx_u64(&x441, &x442, x440, x402, x428); + fiat_secp384r1_addcarryx_u64(&x443, &x444, x442, x404, x430); + fiat_secp384r1_addcarryx_u64(&x445, &x446, x444, x406, x432); + fiat_secp384r1_addcarryx_u64(&x447, &x448, x446, x408, x434); + fiat_secp384r1_addcarryx_u64(&x449, &x450, x448, x410, x436); + fiat_secp384r1_addcarryx_u64(&x451, &x452, x450, x412, x438); + x453 = ((uint64_t)x452 + x413); + fiat_secp384r1_subborrowx_u64(&x454, &x455, 0x0, x441, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u64(&x456, &x457, x455, x443, + UINT64_C(0xffffffff00000000)); + fiat_secp384r1_subborrowx_u64(&x458, &x459, x457, x445, + UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_subborrowx_u64(&x460, &x461, x459, x447, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x462, &x463, x461, x449, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x464, &x465, x463, x451, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x466, &x467, x465, x453, 0x0); + fiat_secp384r1_cmovznz_u64(&x468, x467, x454, x441); + fiat_secp384r1_cmovznz_u64(&x469, x467, x456, x443); + fiat_secp384r1_cmovznz_u64(&x470, x467, x458, x445); + fiat_secp384r1_cmovznz_u64(&x471, x467, x460, x447); + fiat_secp384r1_cmovznz_u64(&x472, x467, x462, x449); + fiat_secp384r1_cmovznz_u64(&x473, x467, x464, x451); + out1[0] = x468; + out1[1] = x469; + out1[2] = x470; + out1[3] = x471; + out1[4] = x472; + out1[5] = x473; +} + +/* + * The function fiat_secp384r1_add adds two field elements in the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * 0 ≤ eval arg2 < m + * Postconditions: + * eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) + eval (from_montgomery arg2)) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * arg2: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + */ +static void +fiat_secp384r1_add(uint64_t out1[6], const uint64_t arg1[6], + const uint64_t arg2[6]) +{ + uint64_t x1; + fiat_secp384r1_uint1 x2; + uint64_t x3; + fiat_secp384r1_uint1 x4; + uint64_t x5; + fiat_secp384r1_uint1 x6; + uint64_t x7; + fiat_secp384r1_uint1 x8; + uint64_t x9; + fiat_secp384r1_uint1 x10; + uint64_t x11; + fiat_secp384r1_uint1 x12; + uint64_t x13; + fiat_secp384r1_uint1 x14; + uint64_t x15; + fiat_secp384r1_uint1 x16; + uint64_t x17; + fiat_secp384r1_uint1 x18; + uint64_t x19; + fiat_secp384r1_uint1 x20; + uint64_t x21; + fiat_secp384r1_uint1 x22; + uint64_t x23; + fiat_secp384r1_uint1 x24; + uint64_t x25; + fiat_secp384r1_uint1 x26; + uint64_t x27; + uint64_t x28; + uint64_t x29; + uint64_t x30; + uint64_t x31; + uint64_t x32; + fiat_secp384r1_addcarryx_u64(&x1, &x2, 0x0, (arg1[0]), (arg2[0])); + fiat_secp384r1_addcarryx_u64(&x3, &x4, x2, (arg1[1]), (arg2[1])); + fiat_secp384r1_addcarryx_u64(&x5, &x6, x4, (arg1[2]), (arg2[2])); + fiat_secp384r1_addcarryx_u64(&x7, &x8, x6, (arg1[3]), (arg2[3])); + fiat_secp384r1_addcarryx_u64(&x9, &x10, x8, (arg1[4]), (arg2[4])); + fiat_secp384r1_addcarryx_u64(&x11, &x12, x10, (arg1[5]), (arg2[5])); + fiat_secp384r1_subborrowx_u64(&x13, &x14, 0x0, x1, UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u64(&x15, &x16, x14, x3, + UINT64_C(0xffffffff00000000)); + fiat_secp384r1_subborrowx_u64(&x17, &x18, x16, x5, + UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_subborrowx_u64(&x19, &x20, x18, x7, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x21, &x22, x20, x9, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x23, &x24, x22, x11, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x25, &x26, x24, x12, 0x0); + fiat_secp384r1_cmovznz_u64(&x27, x26, x13, x1); + fiat_secp384r1_cmovznz_u64(&x28, x26, x15, x3); + fiat_secp384r1_cmovznz_u64(&x29, x26, x17, x5); + fiat_secp384r1_cmovznz_u64(&x30, x26, x19, x7); + fiat_secp384r1_cmovznz_u64(&x31, x26, x21, x9); + fiat_secp384r1_cmovznz_u64(&x32, x26, x23, x11); + out1[0] = x27; + out1[1] = x28; + out1[2] = x29; + out1[3] = x30; + out1[4] = x31; + out1[5] = x32; +} + +/* + * The function fiat_secp384r1_sub subtracts two field elements in the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * 0 ≤ eval arg2 < m + * Postconditions: + * eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) - eval (from_montgomery arg2)) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * arg2: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + */ +static void +fiat_secp384r1_sub(uint64_t out1[6], const uint64_t arg1[6], + const uint64_t arg2[6]) +{ + uint64_t x1; + fiat_secp384r1_uint1 x2; + uint64_t x3; + fiat_secp384r1_uint1 x4; + uint64_t x5; + fiat_secp384r1_uint1 x6; + uint64_t x7; + fiat_secp384r1_uint1 x8; + uint64_t x9; + fiat_secp384r1_uint1 x10; + uint64_t x11; + fiat_secp384r1_uint1 x12; + uint64_t x13; + uint64_t x14; + fiat_secp384r1_uint1 x15; + uint64_t x16; + fiat_secp384r1_uint1 x17; + uint64_t x18; + fiat_secp384r1_uint1 x19; + uint64_t x20; + fiat_secp384r1_uint1 x21; + uint64_t x22; + fiat_secp384r1_uint1 x23; + uint64_t x24; + fiat_secp384r1_uint1 x25; + fiat_secp384r1_subborrowx_u64(&x1, &x2, 0x0, (arg1[0]), (arg2[0])); + fiat_secp384r1_subborrowx_u64(&x3, &x4, x2, (arg1[1]), (arg2[1])); + fiat_secp384r1_subborrowx_u64(&x5, &x6, x4, (arg1[2]), (arg2[2])); + fiat_secp384r1_subborrowx_u64(&x7, &x8, x6, (arg1[3]), (arg2[3])); + fiat_secp384r1_subborrowx_u64(&x9, &x10, x8, (arg1[4]), (arg2[4])); + fiat_secp384r1_subborrowx_u64(&x11, &x12, x10, (arg1[5]), (arg2[5])); + fiat_secp384r1_cmovznz_u64(&x13, x12, 0x0, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_addcarryx_u64(&x14, &x15, 0x0, x1, + (x13 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u64(&x16, &x17, x15, x3, + (x13 & UINT64_C(0xffffffff00000000))); + fiat_secp384r1_addcarryx_u64(&x18, &x19, x17, x5, + (x13 & UINT64_C(0xfffffffffffffffe))); + fiat_secp384r1_addcarryx_u64(&x20, &x21, x19, x7, + (x13 & UINT64_C(0xffffffffffffffff))); + fiat_secp384r1_addcarryx_u64(&x22, &x23, x21, x9, + (x13 & UINT64_C(0xffffffffffffffff))); + fiat_secp384r1_addcarryx_u64(&x24, &x25, x23, x11, + (x13 & UINT64_C(0xffffffffffffffff))); + out1[0] = x14; + out1[1] = x16; + out1[2] = x18; + out1[3] = x20; + out1[4] = x22; + out1[5] = x24; +} + +/* + * The function fiat_secp384r1_opp negates a field element in the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * eval (from_montgomery out1) mod m = -eval (from_montgomery arg1) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + */ +static void +fiat_secp384r1_opp(uint64_t out1[6], const uint64_t arg1[6]) +{ + uint64_t x1; + fiat_secp384r1_uint1 x2; + uint64_t x3; + fiat_secp384r1_uint1 x4; + uint64_t x5; + fiat_secp384r1_uint1 x6; + uint64_t x7; + fiat_secp384r1_uint1 x8; + uint64_t x9; + fiat_secp384r1_uint1 x10; + uint64_t x11; + fiat_secp384r1_uint1 x12; + uint64_t x13; + uint64_t x14; + fiat_secp384r1_uint1 x15; + uint64_t x16; + fiat_secp384r1_uint1 x17; + uint64_t x18; + fiat_secp384r1_uint1 x19; + uint64_t x20; + fiat_secp384r1_uint1 x21; + uint64_t x22; + fiat_secp384r1_uint1 x23; + uint64_t x24; + fiat_secp384r1_uint1 x25; + fiat_secp384r1_subborrowx_u64(&x1, &x2, 0x0, 0x0, (arg1[0])); + fiat_secp384r1_subborrowx_u64(&x3, &x4, x2, 0x0, (arg1[1])); + fiat_secp384r1_subborrowx_u64(&x5, &x6, x4, 0x0, (arg1[2])); + fiat_secp384r1_subborrowx_u64(&x7, &x8, x6, 0x0, (arg1[3])); + fiat_secp384r1_subborrowx_u64(&x9, &x10, x8, 0x0, (arg1[4])); + fiat_secp384r1_subborrowx_u64(&x11, &x12, x10, 0x0, (arg1[5])); + fiat_secp384r1_cmovznz_u64(&x13, x12, 0x0, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_addcarryx_u64(&x14, &x15, 0x0, x1, + (x13 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u64(&x16, &x17, x15, x3, + (x13 & UINT64_C(0xffffffff00000000))); + fiat_secp384r1_addcarryx_u64(&x18, &x19, x17, x5, + (x13 & UINT64_C(0xfffffffffffffffe))); + fiat_secp384r1_addcarryx_u64(&x20, &x21, x19, x7, + (x13 & UINT64_C(0xffffffffffffffff))); + fiat_secp384r1_addcarryx_u64(&x22, &x23, x21, x9, + (x13 & UINT64_C(0xffffffffffffffff))); + fiat_secp384r1_addcarryx_u64(&x24, &x25, x23, x11, + (x13 & UINT64_C(0xffffffffffffffff))); + out1[0] = x14; + out1[1] = x16; + out1[2] = x18; + out1[3] = x20; + out1[4] = x22; + out1[5] = x24; +} + +/* + * The function fiat_secp384r1_from_montgomery translates a field element out of the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * eval out1 mod m = (eval arg1 * ((2^64)⁻¹ mod m)^6) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + */ +static void +fiat_secp384r1_from_montgomery(uint64_t out1[6], + const uint64_t arg1[6]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint64_t x8; + uint64_t x9; + uint64_t x10; + uint64_t x11; + uint64_t x12; + uint64_t x13; + uint64_t x14; + uint64_t x15; + uint64_t x16; + fiat_secp384r1_uint1 x17; + uint64_t x18; + fiat_secp384r1_uint1 x19; + uint64_t x20; + fiat_secp384r1_uint1 x21; + uint64_t x22; + fiat_secp384r1_uint1 x23; + uint64_t x24; + fiat_secp384r1_uint1 x25; + uint64_t x26; + fiat_secp384r1_uint1 x27; + uint64_t x28; + fiat_secp384r1_uint1 x29; + uint64_t x30; + fiat_secp384r1_uint1 x31; + uint64_t x32; + fiat_secp384r1_uint1 x33; + uint64_t x34; + fiat_secp384r1_uint1 x35; + uint64_t x36; + fiat_secp384r1_uint1 x37; + uint64_t x38; + fiat_secp384r1_uint1 x39; + uint64_t x40; + fiat_secp384r1_uint1 x41; + uint64_t x42; + fiat_secp384r1_uint1 x43; + uint64_t x44; + fiat_secp384r1_uint1 x45; + uint64_t x46; + fiat_secp384r1_uint1 x47; + uint64_t x48; + fiat_secp384r1_uint1 x49; + uint64_t x50; + fiat_secp384r1_uint1 x51; + uint64_t x52; + uint64_t x53; + uint64_t x54; + uint64_t x55; + uint64_t x56; + uint64_t x57; + uint64_t x58; + uint64_t x59; + uint64_t x60; + uint64_t x61; + uint64_t x62; + uint64_t x63; + uint64_t x64; + uint64_t x65; + uint64_t x66; + fiat_secp384r1_uint1 x67; + uint64_t x68; + fiat_secp384r1_uint1 x69; + uint64_t x70; + fiat_secp384r1_uint1 x71; + uint64_t x72; + fiat_secp384r1_uint1 x73; + uint64_t x74; + fiat_secp384r1_uint1 x75; + uint64_t x76; + fiat_secp384r1_uint1 x77; + uint64_t x78; + fiat_secp384r1_uint1 x79; + uint64_t x80; + fiat_secp384r1_uint1 x81; + uint64_t x82; + fiat_secp384r1_uint1 x83; + uint64_t x84; + fiat_secp384r1_uint1 x85; + uint64_t x86; + fiat_secp384r1_uint1 x87; + uint64_t x88; + fiat_secp384r1_uint1 x89; + uint64_t x90; + fiat_secp384r1_uint1 x91; + uint64_t x92; + fiat_secp384r1_uint1 x93; + uint64_t x94; + fiat_secp384r1_uint1 x95; + uint64_t x96; + fiat_secp384r1_uint1 x97; + uint64_t x98; + fiat_secp384r1_uint1 x99; + uint64_t x100; + fiat_secp384r1_uint1 x101; + uint64_t x102; + uint64_t x103; + uint64_t x104; + uint64_t x105; + uint64_t x106; + uint64_t x107; + uint64_t x108; + uint64_t x109; + uint64_t x110; + uint64_t x111; + uint64_t x112; + uint64_t x113; + uint64_t x114; + uint64_t x115; + uint64_t x116; + fiat_secp384r1_uint1 x117; + uint64_t x118; + fiat_secp384r1_uint1 x119; + uint64_t x120; + fiat_secp384r1_uint1 x121; + uint64_t x122; + fiat_secp384r1_uint1 x123; + uint64_t x124; + fiat_secp384r1_uint1 x125; + uint64_t x126; + fiat_secp384r1_uint1 x127; + uint64_t x128; + fiat_secp384r1_uint1 x129; + uint64_t x130; + fiat_secp384r1_uint1 x131; + uint64_t x132; + fiat_secp384r1_uint1 x133; + uint64_t x134; + fiat_secp384r1_uint1 x135; + uint64_t x136; + fiat_secp384r1_uint1 x137; + uint64_t x138; + fiat_secp384r1_uint1 x139; + uint64_t x140; + fiat_secp384r1_uint1 x141; + uint64_t x142; + fiat_secp384r1_uint1 x143; + uint64_t x144; + fiat_secp384r1_uint1 x145; + uint64_t x146; + fiat_secp384r1_uint1 x147; + uint64_t x148; + fiat_secp384r1_uint1 x149; + uint64_t x150; + fiat_secp384r1_uint1 x151; + uint64_t x152; + uint64_t x153; + uint64_t x154; + uint64_t x155; + uint64_t x156; + uint64_t x157; + uint64_t x158; + uint64_t x159; + uint64_t x160; + uint64_t x161; + uint64_t x162; + uint64_t x163; + uint64_t x164; + uint64_t x165; + uint64_t x166; + fiat_secp384r1_uint1 x167; + uint64_t x168; + fiat_secp384r1_uint1 x169; + uint64_t x170; + fiat_secp384r1_uint1 x171; + uint64_t x172; + fiat_secp384r1_uint1 x173; + uint64_t x174; + fiat_secp384r1_uint1 x175; + uint64_t x176; + fiat_secp384r1_uint1 x177; + uint64_t x178; + fiat_secp384r1_uint1 x179; + uint64_t x180; + fiat_secp384r1_uint1 x181; + uint64_t x182; + fiat_secp384r1_uint1 x183; + uint64_t x184; + fiat_secp384r1_uint1 x185; + uint64_t x186; + fiat_secp384r1_uint1 x187; + uint64_t x188; + fiat_secp384r1_uint1 x189; + uint64_t x190; + fiat_secp384r1_uint1 x191; + uint64_t x192; + fiat_secp384r1_uint1 x193; + uint64_t x194; + fiat_secp384r1_uint1 x195; + uint64_t x196; + fiat_secp384r1_uint1 x197; + uint64_t x198; + fiat_secp384r1_uint1 x199; + uint64_t x200; + fiat_secp384r1_uint1 x201; + uint64_t x202; + uint64_t x203; + uint64_t x204; + uint64_t x205; + uint64_t x206; + uint64_t x207; + uint64_t x208; + uint64_t x209; + uint64_t x210; + uint64_t x211; + uint64_t x212; + uint64_t x213; + uint64_t x214; + uint64_t x215; + uint64_t x216; + fiat_secp384r1_uint1 x217; + uint64_t x218; + fiat_secp384r1_uint1 x219; + uint64_t x220; + fiat_secp384r1_uint1 x221; + uint64_t x222; + fiat_secp384r1_uint1 x223; + uint64_t x224; + fiat_secp384r1_uint1 x225; + uint64_t x226; + fiat_secp384r1_uint1 x227; + uint64_t x228; + fiat_secp384r1_uint1 x229; + uint64_t x230; + fiat_secp384r1_uint1 x231; + uint64_t x232; + fiat_secp384r1_uint1 x233; + uint64_t x234; + fiat_secp384r1_uint1 x235; + uint64_t x236; + fiat_secp384r1_uint1 x237; + uint64_t x238; + fiat_secp384r1_uint1 x239; + uint64_t x240; + fiat_secp384r1_uint1 x241; + uint64_t x242; + fiat_secp384r1_uint1 x243; + uint64_t x244; + fiat_secp384r1_uint1 x245; + uint64_t x246; + fiat_secp384r1_uint1 x247; + uint64_t x248; + fiat_secp384r1_uint1 x249; + uint64_t x250; + fiat_secp384r1_uint1 x251; + uint64_t x252; + uint64_t x253; + uint64_t x254; + uint64_t x255; + uint64_t x256; + uint64_t x257; + uint64_t x258; + uint64_t x259; + uint64_t x260; + uint64_t x261; + uint64_t x262; + uint64_t x263; + uint64_t x264; + uint64_t x265; + uint64_t x266; + fiat_secp384r1_uint1 x267; + uint64_t x268; + fiat_secp384r1_uint1 x269; + uint64_t x270; + fiat_secp384r1_uint1 x271; + uint64_t x272; + fiat_secp384r1_uint1 x273; + uint64_t x274; + fiat_secp384r1_uint1 x275; + uint64_t x276; + fiat_secp384r1_uint1 x277; + uint64_t x278; + fiat_secp384r1_uint1 x279; + uint64_t x280; + fiat_secp384r1_uint1 x281; + uint64_t x282; + fiat_secp384r1_uint1 x283; + uint64_t x284; + fiat_secp384r1_uint1 x285; + uint64_t x286; + fiat_secp384r1_uint1 x287; + uint64_t x288; + fiat_secp384r1_uint1 x289; + uint64_t x290; + fiat_secp384r1_uint1 x291; + uint64_t x292; + fiat_secp384r1_uint1 x293; + uint64_t x294; + fiat_secp384r1_uint1 x295; + uint64_t x296; + fiat_secp384r1_uint1 x297; + uint64_t x298; + fiat_secp384r1_uint1 x299; + uint64_t x300; + fiat_secp384r1_uint1 x301; + uint64_t x302; + fiat_secp384r1_uint1 x303; + uint64_t x304; + uint64_t x305; + uint64_t x306; + uint64_t x307; + uint64_t x308; + uint64_t x309; + x1 = (arg1[0]); + fiat_secp384r1_mulx_u64(&x2, &x3, x1, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x4, &x5, x2, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x6, &x7, x2, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x8, &x9, x2, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x10, &x11, x2, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x12, &x13, x2, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x14, &x15, x2, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x16, &x17, 0x0, x15, x12); + fiat_secp384r1_addcarryx_u64(&x18, &x19, x17, x13, x10); + fiat_secp384r1_addcarryx_u64(&x20, &x21, x19, x11, x8); + fiat_secp384r1_addcarryx_u64(&x22, &x23, x21, x9, x6); + fiat_secp384r1_addcarryx_u64(&x24, &x25, x23, x7, x4); + fiat_secp384r1_addcarryx_u64(&x26, &x27, 0x0, x1, x14); + fiat_secp384r1_addcarryx_u64(&x28, &x29, x27, 0x0, x16); + fiat_secp384r1_addcarryx_u64(&x30, &x31, x29, 0x0, x18); + fiat_secp384r1_addcarryx_u64(&x32, &x33, x31, 0x0, x20); + fiat_secp384r1_addcarryx_u64(&x34, &x35, x33, 0x0, x22); + fiat_secp384r1_addcarryx_u64(&x36, &x37, x35, 0x0, x24); + fiat_secp384r1_addcarryx_u64(&x38, &x39, x37, 0x0, (x25 + x5)); + fiat_secp384r1_addcarryx_u64(&x40, &x41, 0x0, x28, (arg1[1])); + fiat_secp384r1_addcarryx_u64(&x42, &x43, x41, x30, 0x0); + fiat_secp384r1_addcarryx_u64(&x44, &x45, x43, x32, 0x0); + fiat_secp384r1_addcarryx_u64(&x46, &x47, x45, x34, 0x0); + fiat_secp384r1_addcarryx_u64(&x48, &x49, x47, x36, 0x0); + fiat_secp384r1_addcarryx_u64(&x50, &x51, x49, x38, 0x0); + fiat_secp384r1_mulx_u64(&x52, &x53, x40, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x54, &x55, x52, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x56, &x57, x52, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x58, &x59, x52, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x60, &x61, x52, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x62, &x63, x52, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x64, &x65, x52, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x66, &x67, 0x0, x65, x62); + fiat_secp384r1_addcarryx_u64(&x68, &x69, x67, x63, x60); + fiat_secp384r1_addcarryx_u64(&x70, &x71, x69, x61, x58); + fiat_secp384r1_addcarryx_u64(&x72, &x73, x71, x59, x56); + fiat_secp384r1_addcarryx_u64(&x74, &x75, x73, x57, x54); + fiat_secp384r1_addcarryx_u64(&x76, &x77, 0x0, x40, x64); + fiat_secp384r1_addcarryx_u64(&x78, &x79, x77, x42, x66); + fiat_secp384r1_addcarryx_u64(&x80, &x81, x79, x44, x68); + fiat_secp384r1_addcarryx_u64(&x82, &x83, x81, x46, x70); + fiat_secp384r1_addcarryx_u64(&x84, &x85, x83, x48, x72); + fiat_secp384r1_addcarryx_u64(&x86, &x87, x85, x50, x74); + fiat_secp384r1_addcarryx_u64(&x88, &x89, x87, ((uint64_t)x51 + x39), + (x75 + x55)); + fiat_secp384r1_addcarryx_u64(&x90, &x91, 0x0, x78, (arg1[2])); + fiat_secp384r1_addcarryx_u64(&x92, &x93, x91, x80, 0x0); + fiat_secp384r1_addcarryx_u64(&x94, &x95, x93, x82, 0x0); + fiat_secp384r1_addcarryx_u64(&x96, &x97, x95, x84, 0x0); + fiat_secp384r1_addcarryx_u64(&x98, &x99, x97, x86, 0x0); + fiat_secp384r1_addcarryx_u64(&x100, &x101, x99, x88, 0x0); + fiat_secp384r1_mulx_u64(&x102, &x103, x90, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x104, &x105, x102, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x106, &x107, x102, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x108, &x109, x102, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x110, &x111, x102, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x112, &x113, x102, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x114, &x115, x102, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x116, &x117, 0x0, x115, x112); + fiat_secp384r1_addcarryx_u64(&x118, &x119, x117, x113, x110); + fiat_secp384r1_addcarryx_u64(&x120, &x121, x119, x111, x108); + fiat_secp384r1_addcarryx_u64(&x122, &x123, x121, x109, x106); + fiat_secp384r1_addcarryx_u64(&x124, &x125, x123, x107, x104); + fiat_secp384r1_addcarryx_u64(&x126, &x127, 0x0, x90, x114); + fiat_secp384r1_addcarryx_u64(&x128, &x129, x127, x92, x116); + fiat_secp384r1_addcarryx_u64(&x130, &x131, x129, x94, x118); + fiat_secp384r1_addcarryx_u64(&x132, &x133, x131, x96, x120); + fiat_secp384r1_addcarryx_u64(&x134, &x135, x133, x98, x122); + fiat_secp384r1_addcarryx_u64(&x136, &x137, x135, x100, x124); + fiat_secp384r1_addcarryx_u64(&x138, &x139, x137, ((uint64_t)x101 + x89), + (x125 + x105)); + fiat_secp384r1_addcarryx_u64(&x140, &x141, 0x0, x128, (arg1[3])); + fiat_secp384r1_addcarryx_u64(&x142, &x143, x141, x130, 0x0); + fiat_secp384r1_addcarryx_u64(&x144, &x145, x143, x132, 0x0); + fiat_secp384r1_addcarryx_u64(&x146, &x147, x145, x134, 0x0); + fiat_secp384r1_addcarryx_u64(&x148, &x149, x147, x136, 0x0); + fiat_secp384r1_addcarryx_u64(&x150, &x151, x149, x138, 0x0); + fiat_secp384r1_mulx_u64(&x152, &x153, x140, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x154, &x155, x152, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x156, &x157, x152, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x158, &x159, x152, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x160, &x161, x152, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x162, &x163, x152, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x164, &x165, x152, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x166, &x167, 0x0, x165, x162); + fiat_secp384r1_addcarryx_u64(&x168, &x169, x167, x163, x160); + fiat_secp384r1_addcarryx_u64(&x170, &x171, x169, x161, x158); + fiat_secp384r1_addcarryx_u64(&x172, &x173, x171, x159, x156); + fiat_secp384r1_addcarryx_u64(&x174, &x175, x173, x157, x154); + fiat_secp384r1_addcarryx_u64(&x176, &x177, 0x0, x140, x164); + fiat_secp384r1_addcarryx_u64(&x178, &x179, x177, x142, x166); + fiat_secp384r1_addcarryx_u64(&x180, &x181, x179, x144, x168); + fiat_secp384r1_addcarryx_u64(&x182, &x183, x181, x146, x170); + fiat_secp384r1_addcarryx_u64(&x184, &x185, x183, x148, x172); + fiat_secp384r1_addcarryx_u64(&x186, &x187, x185, x150, x174); + fiat_secp384r1_addcarryx_u64(&x188, &x189, x187, ((uint64_t)x151 + x139), + (x175 + x155)); + fiat_secp384r1_addcarryx_u64(&x190, &x191, 0x0, x178, (arg1[4])); + fiat_secp384r1_addcarryx_u64(&x192, &x193, x191, x180, 0x0); + fiat_secp384r1_addcarryx_u64(&x194, &x195, x193, x182, 0x0); + fiat_secp384r1_addcarryx_u64(&x196, &x197, x195, x184, 0x0); + fiat_secp384r1_addcarryx_u64(&x198, &x199, x197, x186, 0x0); + fiat_secp384r1_addcarryx_u64(&x200, &x201, x199, x188, 0x0); + fiat_secp384r1_mulx_u64(&x202, &x203, x190, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x204, &x205, x202, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x206, &x207, x202, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x208, &x209, x202, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x210, &x211, x202, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x212, &x213, x202, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x214, &x215, x202, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x216, &x217, 0x0, x215, x212); + fiat_secp384r1_addcarryx_u64(&x218, &x219, x217, x213, x210); + fiat_secp384r1_addcarryx_u64(&x220, &x221, x219, x211, x208); + fiat_secp384r1_addcarryx_u64(&x222, &x223, x221, x209, x206); + fiat_secp384r1_addcarryx_u64(&x224, &x225, x223, x207, x204); + fiat_secp384r1_addcarryx_u64(&x226, &x227, 0x0, x190, x214); + fiat_secp384r1_addcarryx_u64(&x228, &x229, x227, x192, x216); + fiat_secp384r1_addcarryx_u64(&x230, &x231, x229, x194, x218); + fiat_secp384r1_addcarryx_u64(&x232, &x233, x231, x196, x220); + fiat_secp384r1_addcarryx_u64(&x234, &x235, x233, x198, x222); + fiat_secp384r1_addcarryx_u64(&x236, &x237, x235, x200, x224); + fiat_secp384r1_addcarryx_u64(&x238, &x239, x237, ((uint64_t)x201 + x189), + (x225 + x205)); + fiat_secp384r1_addcarryx_u64(&x240, &x241, 0x0, x228, (arg1[5])); + fiat_secp384r1_addcarryx_u64(&x242, &x243, x241, x230, 0x0); + fiat_secp384r1_addcarryx_u64(&x244, &x245, x243, x232, 0x0); + fiat_secp384r1_addcarryx_u64(&x246, &x247, x245, x234, 0x0); + fiat_secp384r1_addcarryx_u64(&x248, &x249, x247, x236, 0x0); + fiat_secp384r1_addcarryx_u64(&x250, &x251, x249, x238, 0x0); + fiat_secp384r1_mulx_u64(&x252, &x253, x240, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x254, &x255, x252, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x256, &x257, x252, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x258, &x259, x252, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x260, &x261, x252, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x262, &x263, x252, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x264, &x265, x252, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x266, &x267, 0x0, x265, x262); + fiat_secp384r1_addcarryx_u64(&x268, &x269, x267, x263, x260); + fiat_secp384r1_addcarryx_u64(&x270, &x271, x269, x261, x258); + fiat_secp384r1_addcarryx_u64(&x272, &x273, x271, x259, x256); + fiat_secp384r1_addcarryx_u64(&x274, &x275, x273, x257, x254); + fiat_secp384r1_addcarryx_u64(&x276, &x277, 0x0, x240, x264); + fiat_secp384r1_addcarryx_u64(&x278, &x279, x277, x242, x266); + fiat_secp384r1_addcarryx_u64(&x280, &x281, x279, x244, x268); + fiat_secp384r1_addcarryx_u64(&x282, &x283, x281, x246, x270); + fiat_secp384r1_addcarryx_u64(&x284, &x285, x283, x248, x272); + fiat_secp384r1_addcarryx_u64(&x286, &x287, x285, x250, x274); + fiat_secp384r1_addcarryx_u64(&x288, &x289, x287, ((uint64_t)x251 + x239), + (x275 + x255)); + fiat_secp384r1_subborrowx_u64(&x290, &x291, 0x0, x278, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u64(&x292, &x293, x291, x280, + UINT64_C(0xffffffff00000000)); + fiat_secp384r1_subborrowx_u64(&x294, &x295, x293, x282, + UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_subborrowx_u64(&x296, &x297, x295, x284, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x298, &x299, x297, x286, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x300, &x301, x299, x288, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x302, &x303, x301, x289, 0x0); + fiat_secp384r1_cmovznz_u64(&x304, x303, x290, x278); + fiat_secp384r1_cmovznz_u64(&x305, x303, x292, x280); + fiat_secp384r1_cmovznz_u64(&x306, x303, x294, x282); + fiat_secp384r1_cmovznz_u64(&x307, x303, x296, x284); + fiat_secp384r1_cmovznz_u64(&x308, x303, x298, x286); + fiat_secp384r1_cmovznz_u64(&x309, x303, x300, x288); + out1[0] = x304; + out1[1] = x305; + out1[2] = x306; + out1[3] = x307; + out1[4] = x308; + out1[5] = x309; +} + +/* + * The function fiat_secp384r1_to_montgomery translates a field element into the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * eval (from_montgomery out1) mod m = eval arg1 mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + */ +static void +fiat_secp384r1_to_montgomery(uint64_t out1[6], + const uint64_t arg1[6]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint64_t x8; + uint64_t x9; + uint64_t x10; + uint64_t x11; + uint64_t x12; + uint64_t x13; + uint64_t x14; + uint64_t x15; + fiat_secp384r1_uint1 x16; + uint64_t x17; + fiat_secp384r1_uint1 x18; + uint64_t x19; + fiat_secp384r1_uint1 x20; + uint64_t x21; + fiat_secp384r1_uint1 x22; + uint64_t x23; + uint64_t x24; + uint64_t x25; + uint64_t x26; + uint64_t x27; + uint64_t x28; + uint64_t x29; + uint64_t x30; + uint64_t x31; + uint64_t x32; + uint64_t x33; + uint64_t x34; + uint64_t x35; + uint64_t x36; + uint64_t x37; + fiat_secp384r1_uint1 x38; + uint64_t x39; + fiat_secp384r1_uint1 x40; + uint64_t x41; + fiat_secp384r1_uint1 x42; + uint64_t x43; + fiat_secp384r1_uint1 x44; + uint64_t x45; + fiat_secp384r1_uint1 x46; + uint64_t x47; + fiat_secp384r1_uint1 x48; + uint64_t x49; + fiat_secp384r1_uint1 x50; + uint64_t x51; + fiat_secp384r1_uint1 x52; + uint64_t x53; + fiat_secp384r1_uint1 x54; + uint64_t x55; + fiat_secp384r1_uint1 x56; + uint64_t x57; + fiat_secp384r1_uint1 x58; + uint64_t x59; + fiat_secp384r1_uint1 x60; + uint64_t x61; + uint64_t x62; + uint64_t x63; + uint64_t x64; + uint64_t x65; + uint64_t x66; + uint64_t x67; + uint64_t x68; + uint64_t x69; + fiat_secp384r1_uint1 x70; + uint64_t x71; + fiat_secp384r1_uint1 x72; + uint64_t x73; + fiat_secp384r1_uint1 x74; + uint64_t x75; + fiat_secp384r1_uint1 x76; + uint64_t x77; + fiat_secp384r1_uint1 x78; + uint64_t x79; + fiat_secp384r1_uint1 x80; + uint64_t x81; + fiat_secp384r1_uint1 x82; + uint64_t x83; + fiat_secp384r1_uint1 x84; + uint64_t x85; + fiat_secp384r1_uint1 x86; + uint64_t x87; + fiat_secp384r1_uint1 x88; + uint64_t x89; + uint64_t x90; + uint64_t x91; + uint64_t x92; + uint64_t x93; + uint64_t x94; + uint64_t x95; + uint64_t x96; + uint64_t x97; + uint64_t x98; + uint64_t x99; + uint64_t x100; + uint64_t x101; + uint64_t x102; + uint64_t x103; + fiat_secp384r1_uint1 x104; + uint64_t x105; + fiat_secp384r1_uint1 x106; + uint64_t x107; + fiat_secp384r1_uint1 x108; + uint64_t x109; + fiat_secp384r1_uint1 x110; + uint64_t x111; + fiat_secp384r1_uint1 x112; + uint64_t x113; + fiat_secp384r1_uint1 x114; + uint64_t x115; + fiat_secp384r1_uint1 x116; + uint64_t x117; + fiat_secp384r1_uint1 x118; + uint64_t x119; + fiat_secp384r1_uint1 x120; + uint64_t x121; + fiat_secp384r1_uint1 x122; + uint64_t x123; + fiat_secp384r1_uint1 x124; + uint64_t x125; + fiat_secp384r1_uint1 x126; + uint64_t x127; + uint64_t x128; + uint64_t x129; + uint64_t x130; + uint64_t x131; + uint64_t x132; + uint64_t x133; + uint64_t x134; + uint64_t x135; + fiat_secp384r1_uint1 x136; + uint64_t x137; + fiat_secp384r1_uint1 x138; + uint64_t x139; + fiat_secp384r1_uint1 x140; + uint64_t x141; + fiat_secp384r1_uint1 x142; + uint64_t x143; + fiat_secp384r1_uint1 x144; + uint64_t x145; + fiat_secp384r1_uint1 x146; + uint64_t x147; + fiat_secp384r1_uint1 x148; + uint64_t x149; + fiat_secp384r1_uint1 x150; + uint64_t x151; + fiat_secp384r1_uint1 x152; + uint64_t x153; + fiat_secp384r1_uint1 x154; + uint64_t x155; + uint64_t x156; + uint64_t x157; + uint64_t x158; + uint64_t x159; + uint64_t x160; + uint64_t x161; + uint64_t x162; + uint64_t x163; + uint64_t x164; + uint64_t x165; + uint64_t x166; + uint64_t x167; + uint64_t x168; + uint64_t x169; + fiat_secp384r1_uint1 x170; + uint64_t x171; + fiat_secp384r1_uint1 x172; + uint64_t x173; + fiat_secp384r1_uint1 x174; + uint64_t x175; + fiat_secp384r1_uint1 x176; + uint64_t x177; + fiat_secp384r1_uint1 x178; + uint64_t x179; + fiat_secp384r1_uint1 x180; + uint64_t x181; + fiat_secp384r1_uint1 x182; + uint64_t x183; + fiat_secp384r1_uint1 x184; + uint64_t x185; + fiat_secp384r1_uint1 x186; + uint64_t x187; + fiat_secp384r1_uint1 x188; + uint64_t x189; + fiat_secp384r1_uint1 x190; + uint64_t x191; + fiat_secp384r1_uint1 x192; + uint64_t x193; + uint64_t x194; + uint64_t x195; + uint64_t x196; + uint64_t x197; + uint64_t x198; + uint64_t x199; + uint64_t x200; + uint64_t x201; + fiat_secp384r1_uint1 x202; + uint64_t x203; + fiat_secp384r1_uint1 x204; + uint64_t x205; + fiat_secp384r1_uint1 x206; + uint64_t x207; + fiat_secp384r1_uint1 x208; + uint64_t x209; + fiat_secp384r1_uint1 x210; + uint64_t x211; + fiat_secp384r1_uint1 x212; + uint64_t x213; + fiat_secp384r1_uint1 x214; + uint64_t x215; + fiat_secp384r1_uint1 x216; + uint64_t x217; + fiat_secp384r1_uint1 x218; + uint64_t x219; + fiat_secp384r1_uint1 x220; + uint64_t x221; + uint64_t x222; + uint64_t x223; + uint64_t x224; + uint64_t x225; + uint64_t x226; + uint64_t x227; + uint64_t x228; + uint64_t x229; + uint64_t x230; + uint64_t x231; + uint64_t x232; + uint64_t x233; + uint64_t x234; + uint64_t x235; + fiat_secp384r1_uint1 x236; + uint64_t x237; + fiat_secp384r1_uint1 x238; + uint64_t x239; + fiat_secp384r1_uint1 x240; + uint64_t x241; + fiat_secp384r1_uint1 x242; + uint64_t x243; + fiat_secp384r1_uint1 x244; + uint64_t x245; + fiat_secp384r1_uint1 x246; + uint64_t x247; + fiat_secp384r1_uint1 x248; + uint64_t x249; + fiat_secp384r1_uint1 x250; + uint64_t x251; + fiat_secp384r1_uint1 x252; + uint64_t x253; + fiat_secp384r1_uint1 x254; + uint64_t x255; + fiat_secp384r1_uint1 x256; + uint64_t x257; + fiat_secp384r1_uint1 x258; + uint64_t x259; + uint64_t x260; + uint64_t x261; + uint64_t x262; + uint64_t x263; + uint64_t x264; + uint64_t x265; + uint64_t x266; + uint64_t x267; + fiat_secp384r1_uint1 x268; + uint64_t x269; + fiat_secp384r1_uint1 x270; + uint64_t x271; + fiat_secp384r1_uint1 x272; + uint64_t x273; + fiat_secp384r1_uint1 x274; + uint64_t x275; + fiat_secp384r1_uint1 x276; + uint64_t x277; + fiat_secp384r1_uint1 x278; + uint64_t x279; + fiat_secp384r1_uint1 x280; + uint64_t x281; + fiat_secp384r1_uint1 x282; + uint64_t x283; + fiat_secp384r1_uint1 x284; + uint64_t x285; + fiat_secp384r1_uint1 x286; + uint64_t x287; + uint64_t x288; + uint64_t x289; + uint64_t x290; + uint64_t x291; + uint64_t x292; + uint64_t x293; + uint64_t x294; + uint64_t x295; + uint64_t x296; + uint64_t x297; + uint64_t x298; + uint64_t x299; + uint64_t x300; + uint64_t x301; + fiat_secp384r1_uint1 x302; + uint64_t x303; + fiat_secp384r1_uint1 x304; + uint64_t x305; + fiat_secp384r1_uint1 x306; + uint64_t x307; + fiat_secp384r1_uint1 x308; + uint64_t x309; + fiat_secp384r1_uint1 x310; + uint64_t x311; + fiat_secp384r1_uint1 x312; + uint64_t x313; + fiat_secp384r1_uint1 x314; + uint64_t x315; + fiat_secp384r1_uint1 x316; + uint64_t x317; + fiat_secp384r1_uint1 x318; + uint64_t x319; + fiat_secp384r1_uint1 x320; + uint64_t x321; + fiat_secp384r1_uint1 x322; + uint64_t x323; + fiat_secp384r1_uint1 x324; + uint64_t x325; + uint64_t x326; + uint64_t x327; + uint64_t x328; + uint64_t x329; + uint64_t x330; + uint64_t x331; + uint64_t x332; + uint64_t x333; + fiat_secp384r1_uint1 x334; + uint64_t x335; + fiat_secp384r1_uint1 x336; + uint64_t x337; + fiat_secp384r1_uint1 x338; + uint64_t x339; + fiat_secp384r1_uint1 x340; + uint64_t x341; + fiat_secp384r1_uint1 x342; + uint64_t x343; + fiat_secp384r1_uint1 x344; + uint64_t x345; + fiat_secp384r1_uint1 x346; + uint64_t x347; + fiat_secp384r1_uint1 x348; + uint64_t x349; + fiat_secp384r1_uint1 x350; + uint64_t x351; + fiat_secp384r1_uint1 x352; + uint64_t x353; + uint64_t x354; + uint64_t x355; + uint64_t x356; + uint64_t x357; + uint64_t x358; + uint64_t x359; + uint64_t x360; + uint64_t x361; + uint64_t x362; + uint64_t x363; + uint64_t x364; + uint64_t x365; + uint64_t x366; + uint64_t x367; + fiat_secp384r1_uint1 x368; + uint64_t x369; + fiat_secp384r1_uint1 x370; + uint64_t x371; + fiat_secp384r1_uint1 x372; + uint64_t x373; + fiat_secp384r1_uint1 x374; + uint64_t x375; + fiat_secp384r1_uint1 x376; + uint64_t x377; + fiat_secp384r1_uint1 x378; + uint64_t x379; + fiat_secp384r1_uint1 x380; + uint64_t x381; + fiat_secp384r1_uint1 x382; + uint64_t x383; + fiat_secp384r1_uint1 x384; + uint64_t x385; + fiat_secp384r1_uint1 x386; + uint64_t x387; + fiat_secp384r1_uint1 x388; + uint64_t x389; + fiat_secp384r1_uint1 x390; + uint64_t x391; + fiat_secp384r1_uint1 x392; + uint64_t x393; + fiat_secp384r1_uint1 x394; + uint64_t x395; + fiat_secp384r1_uint1 x396; + uint64_t x397; + fiat_secp384r1_uint1 x398; + uint64_t x399; + fiat_secp384r1_uint1 x400; + uint64_t x401; + fiat_secp384r1_uint1 x402; + uint64_t x403; + fiat_secp384r1_uint1 x404; + uint64_t x405; + uint64_t x406; + uint64_t x407; + uint64_t x408; + uint64_t x409; + uint64_t x410; + x1 = (arg1[1]); + x2 = (arg1[2]); + x3 = (arg1[3]); + x4 = (arg1[4]); + x5 = (arg1[5]); + x6 = (arg1[0]); + fiat_secp384r1_mulx_u64(&x7, &x8, x6, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x9, &x10, x6, UINT64_C(0xfffffffe00000000)); + fiat_secp384r1_mulx_u64(&x11, &x12, x6, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x13, &x14, x6, UINT64_C(0xfffffffe00000001)); + fiat_secp384r1_addcarryx_u64(&x15, &x16, 0x0, x14, x11); + fiat_secp384r1_addcarryx_u64(&x17, &x18, x16, x12, x9); + fiat_secp384r1_addcarryx_u64(&x19, &x20, x18, x10, x7); + fiat_secp384r1_addcarryx_u64(&x21, &x22, x20, x8, x6); + fiat_secp384r1_mulx_u64(&x23, &x24, x13, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x25, &x26, x23, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x27, &x28, x23, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x29, &x30, x23, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x31, &x32, x23, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x33, &x34, x23, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x35, &x36, x23, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x37, &x38, 0x0, x36, x33); + fiat_secp384r1_addcarryx_u64(&x39, &x40, x38, x34, x31); + fiat_secp384r1_addcarryx_u64(&x41, &x42, x40, x32, x29); + fiat_secp384r1_addcarryx_u64(&x43, &x44, x42, x30, x27); + fiat_secp384r1_addcarryx_u64(&x45, &x46, x44, x28, x25); + fiat_secp384r1_addcarryx_u64(&x47, &x48, 0x0, x13, x35); + fiat_secp384r1_addcarryx_u64(&x49, &x50, x48, x15, x37); + fiat_secp384r1_addcarryx_u64(&x51, &x52, x50, x17, x39); + fiat_secp384r1_addcarryx_u64(&x53, &x54, x52, x19, x41); + fiat_secp384r1_addcarryx_u64(&x55, &x56, x54, x21, x43); + fiat_secp384r1_addcarryx_u64(&x57, &x58, x56, x22, x45); + fiat_secp384r1_addcarryx_u64(&x59, &x60, x58, 0x0, (x46 + x26)); + fiat_secp384r1_mulx_u64(&x61, &x62, x1, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x63, &x64, x1, UINT64_C(0xfffffffe00000000)); + fiat_secp384r1_mulx_u64(&x65, &x66, x1, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x67, &x68, x1, UINT64_C(0xfffffffe00000001)); + fiat_secp384r1_addcarryx_u64(&x69, &x70, 0x0, x68, x65); + fiat_secp384r1_addcarryx_u64(&x71, &x72, x70, x66, x63); + fiat_secp384r1_addcarryx_u64(&x73, &x74, x72, x64, x61); + fiat_secp384r1_addcarryx_u64(&x75, &x76, x74, x62, x1); + fiat_secp384r1_addcarryx_u64(&x77, &x78, 0x0, x49, x67); + fiat_secp384r1_addcarryx_u64(&x79, &x80, x78, x51, x69); + fiat_secp384r1_addcarryx_u64(&x81, &x82, x80, x53, x71); + fiat_secp384r1_addcarryx_u64(&x83, &x84, x82, x55, x73); + fiat_secp384r1_addcarryx_u64(&x85, &x86, x84, x57, x75); + fiat_secp384r1_addcarryx_u64(&x87, &x88, x86, x59, x76); + fiat_secp384r1_mulx_u64(&x89, &x90, x77, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x91, &x92, x89, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x93, &x94, x89, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x95, &x96, x89, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x97, &x98, x89, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x99, &x100, x89, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x101, &x102, x89, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x103, &x104, 0x0, x102, x99); + fiat_secp384r1_addcarryx_u64(&x105, &x106, x104, x100, x97); + fiat_secp384r1_addcarryx_u64(&x107, &x108, x106, x98, x95); + fiat_secp384r1_addcarryx_u64(&x109, &x110, x108, x96, x93); + fiat_secp384r1_addcarryx_u64(&x111, &x112, x110, x94, x91); + fiat_secp384r1_addcarryx_u64(&x113, &x114, 0x0, x77, x101); + fiat_secp384r1_addcarryx_u64(&x115, &x116, x114, x79, x103); + fiat_secp384r1_addcarryx_u64(&x117, &x118, x116, x81, x105); + fiat_secp384r1_addcarryx_u64(&x119, &x120, x118, x83, x107); + fiat_secp384r1_addcarryx_u64(&x121, &x122, x120, x85, x109); + fiat_secp384r1_addcarryx_u64(&x123, &x124, x122, x87, x111); + fiat_secp384r1_addcarryx_u64(&x125, &x126, x124, ((uint64_t)x88 + x60), + (x112 + x92)); + fiat_secp384r1_mulx_u64(&x127, &x128, x2, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x129, &x130, x2, UINT64_C(0xfffffffe00000000)); + fiat_secp384r1_mulx_u64(&x131, &x132, x2, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x133, &x134, x2, UINT64_C(0xfffffffe00000001)); + fiat_secp384r1_addcarryx_u64(&x135, &x136, 0x0, x134, x131); + fiat_secp384r1_addcarryx_u64(&x137, &x138, x136, x132, x129); + fiat_secp384r1_addcarryx_u64(&x139, &x140, x138, x130, x127); + fiat_secp384r1_addcarryx_u64(&x141, &x142, x140, x128, x2); + fiat_secp384r1_addcarryx_u64(&x143, &x144, 0x0, x115, x133); + fiat_secp384r1_addcarryx_u64(&x145, &x146, x144, x117, x135); + fiat_secp384r1_addcarryx_u64(&x147, &x148, x146, x119, x137); + fiat_secp384r1_addcarryx_u64(&x149, &x150, x148, x121, x139); + fiat_secp384r1_addcarryx_u64(&x151, &x152, x150, x123, x141); + fiat_secp384r1_addcarryx_u64(&x153, &x154, x152, x125, x142); + fiat_secp384r1_mulx_u64(&x155, &x156, x143, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x157, &x158, x155, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x159, &x160, x155, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x161, &x162, x155, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x163, &x164, x155, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x165, &x166, x155, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x167, &x168, x155, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x169, &x170, 0x0, x168, x165); + fiat_secp384r1_addcarryx_u64(&x171, &x172, x170, x166, x163); + fiat_secp384r1_addcarryx_u64(&x173, &x174, x172, x164, x161); + fiat_secp384r1_addcarryx_u64(&x175, &x176, x174, x162, x159); + fiat_secp384r1_addcarryx_u64(&x177, &x178, x176, x160, x157); + fiat_secp384r1_addcarryx_u64(&x179, &x180, 0x0, x143, x167); + fiat_secp384r1_addcarryx_u64(&x181, &x182, x180, x145, x169); + fiat_secp384r1_addcarryx_u64(&x183, &x184, x182, x147, x171); + fiat_secp384r1_addcarryx_u64(&x185, &x186, x184, x149, x173); + fiat_secp384r1_addcarryx_u64(&x187, &x188, x186, x151, x175); + fiat_secp384r1_addcarryx_u64(&x189, &x190, x188, x153, x177); + fiat_secp384r1_addcarryx_u64(&x191, &x192, x190, ((uint64_t)x154 + x126), + (x178 + x158)); + fiat_secp384r1_mulx_u64(&x193, &x194, x3, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x195, &x196, x3, UINT64_C(0xfffffffe00000000)); + fiat_secp384r1_mulx_u64(&x197, &x198, x3, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x199, &x200, x3, UINT64_C(0xfffffffe00000001)); + fiat_secp384r1_addcarryx_u64(&x201, &x202, 0x0, x200, x197); + fiat_secp384r1_addcarryx_u64(&x203, &x204, x202, x198, x195); + fiat_secp384r1_addcarryx_u64(&x205, &x206, x204, x196, x193); + fiat_secp384r1_addcarryx_u64(&x207, &x208, x206, x194, x3); + fiat_secp384r1_addcarryx_u64(&x209, &x210, 0x0, x181, x199); + fiat_secp384r1_addcarryx_u64(&x211, &x212, x210, x183, x201); + fiat_secp384r1_addcarryx_u64(&x213, &x214, x212, x185, x203); + fiat_secp384r1_addcarryx_u64(&x215, &x216, x214, x187, x205); + fiat_secp384r1_addcarryx_u64(&x217, &x218, x216, x189, x207); + fiat_secp384r1_addcarryx_u64(&x219, &x220, x218, x191, x208); + fiat_secp384r1_mulx_u64(&x221, &x222, x209, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x223, &x224, x221, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x225, &x226, x221, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x227, &x228, x221, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x229, &x230, x221, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x231, &x232, x221, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x233, &x234, x221, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x235, &x236, 0x0, x234, x231); + fiat_secp384r1_addcarryx_u64(&x237, &x238, x236, x232, x229); + fiat_secp384r1_addcarryx_u64(&x239, &x240, x238, x230, x227); + fiat_secp384r1_addcarryx_u64(&x241, &x242, x240, x228, x225); + fiat_secp384r1_addcarryx_u64(&x243, &x244, x242, x226, x223); + fiat_secp384r1_addcarryx_u64(&x245, &x246, 0x0, x209, x233); + fiat_secp384r1_addcarryx_u64(&x247, &x248, x246, x211, x235); + fiat_secp384r1_addcarryx_u64(&x249, &x250, x248, x213, x237); + fiat_secp384r1_addcarryx_u64(&x251, &x252, x250, x215, x239); + fiat_secp384r1_addcarryx_u64(&x253, &x254, x252, x217, x241); + fiat_secp384r1_addcarryx_u64(&x255, &x256, x254, x219, x243); + fiat_secp384r1_addcarryx_u64(&x257, &x258, x256, ((uint64_t)x220 + x192), + (x244 + x224)); + fiat_secp384r1_mulx_u64(&x259, &x260, x4, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x261, &x262, x4, UINT64_C(0xfffffffe00000000)); + fiat_secp384r1_mulx_u64(&x263, &x264, x4, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x265, &x266, x4, UINT64_C(0xfffffffe00000001)); + fiat_secp384r1_addcarryx_u64(&x267, &x268, 0x0, x266, x263); + fiat_secp384r1_addcarryx_u64(&x269, &x270, x268, x264, x261); + fiat_secp384r1_addcarryx_u64(&x271, &x272, x270, x262, x259); + fiat_secp384r1_addcarryx_u64(&x273, &x274, x272, x260, x4); + fiat_secp384r1_addcarryx_u64(&x275, &x276, 0x0, x247, x265); + fiat_secp384r1_addcarryx_u64(&x277, &x278, x276, x249, x267); + fiat_secp384r1_addcarryx_u64(&x279, &x280, x278, x251, x269); + fiat_secp384r1_addcarryx_u64(&x281, &x282, x280, x253, x271); + fiat_secp384r1_addcarryx_u64(&x283, &x284, x282, x255, x273); + fiat_secp384r1_addcarryx_u64(&x285, &x286, x284, x257, x274); + fiat_secp384r1_mulx_u64(&x287, &x288, x275, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x289, &x290, x287, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x291, &x292, x287, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x293, &x294, x287, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x295, &x296, x287, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x297, &x298, x287, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x299, &x300, x287, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x301, &x302, 0x0, x300, x297); + fiat_secp384r1_addcarryx_u64(&x303, &x304, x302, x298, x295); + fiat_secp384r1_addcarryx_u64(&x305, &x306, x304, x296, x293); + fiat_secp384r1_addcarryx_u64(&x307, &x308, x306, x294, x291); + fiat_secp384r1_addcarryx_u64(&x309, &x310, x308, x292, x289); + fiat_secp384r1_addcarryx_u64(&x311, &x312, 0x0, x275, x299); + fiat_secp384r1_addcarryx_u64(&x313, &x314, x312, x277, x301); + fiat_secp384r1_addcarryx_u64(&x315, &x316, x314, x279, x303); + fiat_secp384r1_addcarryx_u64(&x317, &x318, x316, x281, x305); + fiat_secp384r1_addcarryx_u64(&x319, &x320, x318, x283, x307); + fiat_secp384r1_addcarryx_u64(&x321, &x322, x320, x285, x309); + fiat_secp384r1_addcarryx_u64(&x323, &x324, x322, ((uint64_t)x286 + x258), + (x310 + x290)); + fiat_secp384r1_mulx_u64(&x325, &x326, x5, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x327, &x328, x5, UINT64_C(0xfffffffe00000000)); + fiat_secp384r1_mulx_u64(&x329, &x330, x5, UINT64_C(0x200000000)); + fiat_secp384r1_mulx_u64(&x331, &x332, x5, UINT64_C(0xfffffffe00000001)); + fiat_secp384r1_addcarryx_u64(&x333, &x334, 0x0, x332, x329); + fiat_secp384r1_addcarryx_u64(&x335, &x336, x334, x330, x327); + fiat_secp384r1_addcarryx_u64(&x337, &x338, x336, x328, x325); + fiat_secp384r1_addcarryx_u64(&x339, &x340, x338, x326, x5); + fiat_secp384r1_addcarryx_u64(&x341, &x342, 0x0, x313, x331); + fiat_secp384r1_addcarryx_u64(&x343, &x344, x342, x315, x333); + fiat_secp384r1_addcarryx_u64(&x345, &x346, x344, x317, x335); + fiat_secp384r1_addcarryx_u64(&x347, &x348, x346, x319, x337); + fiat_secp384r1_addcarryx_u64(&x349, &x350, x348, x321, x339); + fiat_secp384r1_addcarryx_u64(&x351, &x352, x350, x323, x340); + fiat_secp384r1_mulx_u64(&x353, &x354, x341, UINT64_C(0x100000001)); + fiat_secp384r1_mulx_u64(&x355, &x356, x353, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x357, &x358, x353, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x359, &x360, x353, UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_mulx_u64(&x361, &x362, x353, UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_mulx_u64(&x363, &x364, x353, UINT64_C(0xffffffff00000000)); + fiat_secp384r1_mulx_u64(&x365, &x366, x353, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u64(&x367, &x368, 0x0, x366, x363); + fiat_secp384r1_addcarryx_u64(&x369, &x370, x368, x364, x361); + fiat_secp384r1_addcarryx_u64(&x371, &x372, x370, x362, x359); + fiat_secp384r1_addcarryx_u64(&x373, &x374, x372, x360, x357); + fiat_secp384r1_addcarryx_u64(&x375, &x376, x374, x358, x355); + fiat_secp384r1_addcarryx_u64(&x377, &x378, 0x0, x341, x365); + fiat_secp384r1_addcarryx_u64(&x379, &x380, x378, x343, x367); + fiat_secp384r1_addcarryx_u64(&x381, &x382, x380, x345, x369); + fiat_secp384r1_addcarryx_u64(&x383, &x384, x382, x347, x371); + fiat_secp384r1_addcarryx_u64(&x385, &x386, x384, x349, x373); + fiat_secp384r1_addcarryx_u64(&x387, &x388, x386, x351, x375); + fiat_secp384r1_addcarryx_u64(&x389, &x390, x388, ((uint64_t)x352 + x324), + (x376 + x356)); + fiat_secp384r1_subborrowx_u64(&x391, &x392, 0x0, x379, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u64(&x393, &x394, x392, x381, + UINT64_C(0xffffffff00000000)); + fiat_secp384r1_subborrowx_u64(&x395, &x396, x394, x383, + UINT64_C(0xfffffffffffffffe)); + fiat_secp384r1_subborrowx_u64(&x397, &x398, x396, x385, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x399, &x400, x398, x387, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x401, &x402, x400, x389, + UINT64_C(0xffffffffffffffff)); + fiat_secp384r1_subborrowx_u64(&x403, &x404, x402, x390, 0x0); + fiat_secp384r1_cmovznz_u64(&x405, x404, x391, x379); + fiat_secp384r1_cmovznz_u64(&x406, x404, x393, x381); + fiat_secp384r1_cmovznz_u64(&x407, x404, x395, x383); + fiat_secp384r1_cmovznz_u64(&x408, x404, x397, x385); + fiat_secp384r1_cmovznz_u64(&x409, x404, x399, x387); + fiat_secp384r1_cmovznz_u64(&x410, x404, x401, x389); + out1[0] = x405; + out1[1] = x406; + out1[2] = x407; + out1[3] = x408; + out1[4] = x409; + out1[5] = x410; +} + +/* + * The function fiat_secp384r1_nonzero outputs a single non-zero word if the input is non-zero and zero otherwise. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * out1 = 0 ↔ eval (from_montgomery arg1) mod m = 0 + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * Output Bounds: + * out1: [0x0 ~> 0xffffffffffffffff] + */ +static void +fiat_secp384r1_nonzero(uint64_t *out1, const uint64_t arg1[6]) +{ + uint64_t x1; + x1 = ((arg1[0]) | + ((arg1[1]) | + ((arg1[2]) | + ((arg1[3]) | ((arg1[4]) | ((arg1[5]) | (uint64_t)0x0)))))); + *out1 = x1; +} + +/* + * The function fiat_secp384r1_selectznz is a multi-limb conditional select. + * Postconditions: + * eval out1 = (if arg1 = 0 then eval arg2 else eval arg3) + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * arg3: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + */ +static void +fiat_secp384r1_selectznz(uint64_t out1[6], + fiat_secp384r1_uint1 arg1, + const uint64_t arg2[6], + const uint64_t arg3[6]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + fiat_secp384r1_cmovznz_u64(&x1, arg1, (arg2[0]), (arg3[0])); + fiat_secp384r1_cmovznz_u64(&x2, arg1, (arg2[1]), (arg3[1])); + fiat_secp384r1_cmovznz_u64(&x3, arg1, (arg2[2]), (arg3[2])); + fiat_secp384r1_cmovznz_u64(&x4, arg1, (arg2[3]), (arg3[3])); + fiat_secp384r1_cmovznz_u64(&x5, arg1, (arg2[4]), (arg3[4])); + fiat_secp384r1_cmovznz_u64(&x6, arg1, (arg2[5]), (arg3[5])); + out1[0] = x1; + out1[1] = x2; + out1[2] = x3; + out1[3] = x4; + out1[4] = x5; + out1[5] = x6; +} + +/* + * The function fiat_secp384r1_to_bytes serializes a field element in the Montgomery domain to bytes in little-endian order. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * out1 = map (λ x, ⌊((eval arg1 mod m) mod 2^(8 * (x + 1))) / 2^(8 * x)⌋) [0..47] + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff]] + */ +static void +fiat_secp384r1_to_bytes(uint8_t out1[48], const uint64_t arg1[6]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint8_t x8; + uint64_t x9; + uint8_t x10; + uint64_t x11; + uint8_t x12; + uint64_t x13; + uint8_t x14; + uint64_t x15; + uint8_t x16; + uint64_t x17; + uint8_t x18; + uint8_t x19; + uint8_t x20; + uint8_t x21; + uint64_t x22; + uint8_t x23; + uint64_t x24; + uint8_t x25; + uint64_t x26; + uint8_t x27; + uint64_t x28; + uint8_t x29; + uint64_t x30; + uint8_t x31; + uint64_t x32; + uint8_t x33; + uint8_t x34; + uint8_t x35; + uint8_t x36; + uint64_t x37; + uint8_t x38; + uint64_t x39; + uint8_t x40; + uint64_t x41; + uint8_t x42; + uint64_t x43; + uint8_t x44; + uint64_t x45; + uint8_t x46; + uint64_t x47; + uint8_t x48; + uint8_t x49; + uint8_t x50; + uint8_t x51; + uint64_t x52; + uint8_t x53; + uint64_t x54; + uint8_t x55; + uint64_t x56; + uint8_t x57; + uint64_t x58; + uint8_t x59; + uint64_t x60; + uint8_t x61; + uint64_t x62; + uint8_t x63; + uint8_t x64; + uint8_t x65; + uint8_t x66; + uint64_t x67; + uint8_t x68; + uint64_t x69; + uint8_t x70; + uint64_t x71; + uint8_t x72; + uint64_t x73; + uint8_t x74; + uint64_t x75; + uint8_t x76; + uint64_t x77; + uint8_t x78; + uint8_t x79; + uint8_t x80; + uint8_t x81; + uint64_t x82; + uint8_t x83; + uint64_t x84; + uint8_t x85; + uint64_t x86; + uint8_t x87; + uint64_t x88; + uint8_t x89; + uint64_t x90; + uint8_t x91; + uint64_t x92; + uint8_t x93; + uint8_t x94; + uint8_t x95; + x1 = (arg1[5]); + x2 = (arg1[4]); + x3 = (arg1[3]); + x4 = (arg1[2]); + x5 = (arg1[1]); + x6 = (arg1[0]); + x7 = (x6 >> 8); + x8 = (uint8_t)(x6 & UINT8_C(0xff)); + x9 = (x7 >> 8); + x10 = (uint8_t)(x7 & UINT8_C(0xff)); + x11 = (x9 >> 8); + x12 = (uint8_t)(x9 & UINT8_C(0xff)); + x13 = (x11 >> 8); + x14 = (uint8_t)(x11 & UINT8_C(0xff)); + x15 = (x13 >> 8); + x16 = (uint8_t)(x13 & UINT8_C(0xff)); + x17 = (x15 >> 8); + x18 = (uint8_t)(x15 & UINT8_C(0xff)); + x19 = (uint8_t)(x17 >> 8); + x20 = (uint8_t)(x17 & UINT8_C(0xff)); + x21 = (uint8_t)(x19 & UINT8_C(0xff)); + x22 = (x5 >> 8); + x23 = (uint8_t)(x5 & UINT8_C(0xff)); + x24 = (x22 >> 8); + x25 = (uint8_t)(x22 & UINT8_C(0xff)); + x26 = (x24 >> 8); + x27 = (uint8_t)(x24 & UINT8_C(0xff)); + x28 = (x26 >> 8); + x29 = (uint8_t)(x26 & UINT8_C(0xff)); + x30 = (x28 >> 8); + x31 = (uint8_t)(x28 & UINT8_C(0xff)); + x32 = (x30 >> 8); + x33 = (uint8_t)(x30 & UINT8_C(0xff)); + x34 = (uint8_t)(x32 >> 8); + x35 = (uint8_t)(x32 & UINT8_C(0xff)); + x36 = (uint8_t)(x34 & UINT8_C(0xff)); + x37 = (x4 >> 8); + x38 = (uint8_t)(x4 & UINT8_C(0xff)); + x39 = (x37 >> 8); + x40 = (uint8_t)(x37 & UINT8_C(0xff)); + x41 = (x39 >> 8); + x42 = (uint8_t)(x39 & UINT8_C(0xff)); + x43 = (x41 >> 8); + x44 = (uint8_t)(x41 & UINT8_C(0xff)); + x45 = (x43 >> 8); + x46 = (uint8_t)(x43 & UINT8_C(0xff)); + x47 = (x45 >> 8); + x48 = (uint8_t)(x45 & UINT8_C(0xff)); + x49 = (uint8_t)(x47 >> 8); + x50 = (uint8_t)(x47 & UINT8_C(0xff)); + x51 = (uint8_t)(x49 & UINT8_C(0xff)); + x52 = (x3 >> 8); + x53 = (uint8_t)(x3 & UINT8_C(0xff)); + x54 = (x52 >> 8); + x55 = (uint8_t)(x52 & UINT8_C(0xff)); + x56 = (x54 >> 8); + x57 = (uint8_t)(x54 & UINT8_C(0xff)); + x58 = (x56 >> 8); + x59 = (uint8_t)(x56 & UINT8_C(0xff)); + x60 = (x58 >> 8); + x61 = (uint8_t)(x58 & UINT8_C(0xff)); + x62 = (x60 >> 8); + x63 = (uint8_t)(x60 & UINT8_C(0xff)); + x64 = (uint8_t)(x62 >> 8); + x65 = (uint8_t)(x62 & UINT8_C(0xff)); + x66 = (uint8_t)(x64 & UINT8_C(0xff)); + x67 = (x2 >> 8); + x68 = (uint8_t)(x2 & UINT8_C(0xff)); + x69 = (x67 >> 8); + x70 = (uint8_t)(x67 & UINT8_C(0xff)); + x71 = (x69 >> 8); + x72 = (uint8_t)(x69 & UINT8_C(0xff)); + x73 = (x71 >> 8); + x74 = (uint8_t)(x71 & UINT8_C(0xff)); + x75 = (x73 >> 8); + x76 = (uint8_t)(x73 & UINT8_C(0xff)); + x77 = (x75 >> 8); + x78 = (uint8_t)(x75 & UINT8_C(0xff)); + x79 = (uint8_t)(x77 >> 8); + x80 = (uint8_t)(x77 & UINT8_C(0xff)); + x81 = (uint8_t)(x79 & UINT8_C(0xff)); + x82 = (x1 >> 8); + x83 = (uint8_t)(x1 & UINT8_C(0xff)); + x84 = (x82 >> 8); + x85 = (uint8_t)(x82 & UINT8_C(0xff)); + x86 = (x84 >> 8); + x87 = (uint8_t)(x84 & UINT8_C(0xff)); + x88 = (x86 >> 8); + x89 = (uint8_t)(x86 & UINT8_C(0xff)); + x90 = (x88 >> 8); + x91 = (uint8_t)(x88 & UINT8_C(0xff)); + x92 = (x90 >> 8); + x93 = (uint8_t)(x90 & UINT8_C(0xff)); + x94 = (uint8_t)(x92 >> 8); + x95 = (uint8_t)(x92 & UINT8_C(0xff)); + out1[0] = x8; + out1[1] = x10; + out1[2] = x12; + out1[3] = x14; + out1[4] = x16; + out1[5] = x18; + out1[6] = x20; + out1[7] = x21; + out1[8] = x23; + out1[9] = x25; + out1[10] = x27; + out1[11] = x29; + out1[12] = x31; + out1[13] = x33; + out1[14] = x35; + out1[15] = x36; + out1[16] = x38; + out1[17] = x40; + out1[18] = x42; + out1[19] = x44; + out1[20] = x46; + out1[21] = x48; + out1[22] = x50; + out1[23] = x51; + out1[24] = x53; + out1[25] = x55; + out1[26] = x57; + out1[27] = x59; + out1[28] = x61; + out1[29] = x63; + out1[30] = x65; + out1[31] = x66; + out1[32] = x68; + out1[33] = x70; + out1[34] = x72; + out1[35] = x74; + out1[36] = x76; + out1[37] = x78; + out1[38] = x80; + out1[39] = x81; + out1[40] = x83; + out1[41] = x85; + out1[42] = x87; + out1[43] = x89; + out1[44] = x91; + out1[45] = x93; + out1[46] = x95; + out1[47] = x94; +} + +/* + * The function fiat_secp384r1_from_bytes deserializes a field element in the Montgomery domain from bytes in little-endian order. + * Preconditions: + * 0 ≤ bytes_eval arg1 < m + * Postconditions: + * eval out1 mod m = bytes_eval arg1 mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + */ +static void +fiat_secp384r1_from_bytes(uint64_t out1[6], + const uint8_t arg1[48]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint8_t x8; + uint64_t x9; + uint64_t x10; + uint64_t x11; + uint64_t x12; + uint64_t x13; + uint64_t x14; + uint64_t x15; + uint8_t x16; + uint64_t x17; + uint64_t x18; + uint64_t x19; + uint64_t x20; + uint64_t x21; + uint64_t x22; + uint64_t x23; + uint8_t x24; + uint64_t x25; + uint64_t x26; + uint64_t x27; + uint64_t x28; + uint64_t x29; + uint64_t x30; + uint64_t x31; + uint8_t x32; + uint64_t x33; + uint64_t x34; + uint64_t x35; + uint64_t x36; + uint64_t x37; + uint64_t x38; + uint64_t x39; + uint8_t x40; + uint64_t x41; + uint64_t x42; + uint64_t x43; + uint64_t x44; + uint64_t x45; + uint64_t x46; + uint64_t x47; + uint8_t x48; + uint64_t x49; + uint64_t x50; + uint64_t x51; + uint64_t x52; + uint64_t x53; + uint64_t x54; + uint64_t x55; + uint64_t x56; + uint64_t x57; + uint64_t x58; + uint64_t x59; + x1 = ((uint64_t)(arg1[47]) << 56); + x2 = ((uint64_t)(arg1[46]) << 48); + x3 = ((uint64_t)(arg1[45]) << 40); + x4 = ((uint64_t)(arg1[44]) << 32); + x5 = ((uint64_t)(arg1[43]) << 24); + x6 = ((uint64_t)(arg1[42]) << 16); + x7 = ((uint64_t)(arg1[41]) << 8); + x8 = (arg1[40]); + x9 = ((uint64_t)(arg1[39]) << 56); + x10 = ((uint64_t)(arg1[38]) << 48); + x11 = ((uint64_t)(arg1[37]) << 40); + x12 = ((uint64_t)(arg1[36]) << 32); + x13 = ((uint64_t)(arg1[35]) << 24); + x14 = ((uint64_t)(arg1[34]) << 16); + x15 = ((uint64_t)(arg1[33]) << 8); + x16 = (arg1[32]); + x17 = ((uint64_t)(arg1[31]) << 56); + x18 = ((uint64_t)(arg1[30]) << 48); + x19 = ((uint64_t)(arg1[29]) << 40); + x20 = ((uint64_t)(arg1[28]) << 32); + x21 = ((uint64_t)(arg1[27]) << 24); + x22 = ((uint64_t)(arg1[26]) << 16); + x23 = ((uint64_t)(arg1[25]) << 8); + x24 = (arg1[24]); + x25 = ((uint64_t)(arg1[23]) << 56); + x26 = ((uint64_t)(arg1[22]) << 48); + x27 = ((uint64_t)(arg1[21]) << 40); + x28 = ((uint64_t)(arg1[20]) << 32); + x29 = ((uint64_t)(arg1[19]) << 24); + x30 = ((uint64_t)(arg1[18]) << 16); + x31 = ((uint64_t)(arg1[17]) << 8); + x32 = (arg1[16]); + x33 = ((uint64_t)(arg1[15]) << 56); + x34 = ((uint64_t)(arg1[14]) << 48); + x35 = ((uint64_t)(arg1[13]) << 40); + x36 = ((uint64_t)(arg1[12]) << 32); + x37 = ((uint64_t)(arg1[11]) << 24); + x38 = ((uint64_t)(arg1[10]) << 16); + x39 = ((uint64_t)(arg1[9]) << 8); + x40 = (arg1[8]); + x41 = ((uint64_t)(arg1[7]) << 56); + x42 = ((uint64_t)(arg1[6]) << 48); + x43 = ((uint64_t)(arg1[5]) << 40); + x44 = ((uint64_t)(arg1[4]) << 32); + x45 = ((uint64_t)(arg1[3]) << 24); + x46 = ((uint64_t)(arg1[2]) << 16); + x47 = ((uint64_t)(arg1[1]) << 8); + x48 = (arg1[0]); + x49 = (x48 + (x47 + (x46 + (x45 + (x44 + (x43 + (x42 + x41))))))); + x50 = (x49 & UINT64_C(0xffffffffffffffff)); + x51 = (x8 + (x7 + (x6 + (x5 + (x4 + (x3 + (x2 + x1))))))); + x52 = (x16 + (x15 + (x14 + (x13 + (x12 + (x11 + (x10 + x9))))))); + x53 = (x24 + (x23 + (x22 + (x21 + (x20 + (x19 + (x18 + x17))))))); + x54 = (x32 + (x31 + (x30 + (x29 + (x28 + (x27 + (x26 + x25))))))); + x55 = (x40 + (x39 + (x38 + (x37 + (x36 + (x35 + (x34 + x33))))))); + x56 = (x55 & UINT64_C(0xffffffffffffffff)); + x57 = (x54 & UINT64_C(0xffffffffffffffff)); + x58 = (x53 & UINT64_C(0xffffffffffffffff)); + x59 = (x52 & UINT64_C(0xffffffffffffffff)); + out1[0] = x50; + out1[1] = x56; + out1[2] = x57; + out1[3] = x58; + out1[4] = x59; + out1[5] = x51; +} + +/* END verbatim fiat code */ + +/*- + * Finite field inversion via FLT. + * NB: this is not a real Fiat function, just named that way for consistency. + * Autogenerated: ecp/secp384r1/fe_inv.op3 + * custom repunit addition chain + */ +static void +fiat_secp384r1_inv(fe_t output, const fe_t t1) +{ + int i; + /* temporary variables */ + fe_t acc, t10, t170, t2, t20, t255, t30, t32, t4, t64, t8, t84, t85; + + fiat_secp384r1_square(acc, t1); + fiat_secp384r1_mul(t2, acc, t1); + fiat_secp384r1_square(acc, t2); + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t4, acc, t2); + fiat_secp384r1_square(acc, t4); + for (i = 0; i < 3; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t8, acc, t4); + fiat_secp384r1_square(acc, t8); + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t10, acc, t2); + fiat_secp384r1_square(acc, t10); + for (i = 0; i < 9; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t20, acc, t10); + fiat_secp384r1_square(acc, t20); + for (i = 0; i < 9; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t30, acc, t10); + fiat_secp384r1_square(acc, t30); + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t32, acc, t2); + fiat_secp384r1_square(acc, t32); + for (i = 0; i < 31; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t64, acc, t32); + fiat_secp384r1_square(acc, t64); + for (i = 0; i < 19; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t84, acc, t20); + fiat_secp384r1_square(acc, t84); + fiat_secp384r1_mul(t85, acc, t1); + fiat_secp384r1_square(acc, t85); + for (i = 0; i < 84; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t170, acc, t85); + fiat_secp384r1_square(acc, t170); + for (i = 0; i < 84; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t255, acc, t85); + fiat_secp384r1_square(acc, t255); + for (i = 0; i < 32; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(acc, acc, t32); + for (i = 0; i < 94; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(acc, acc, t30); + for (i = 0; i < 2; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(output, acc, t1); +} + +/* curve coefficient constants */ + +static const limb_t const_one[6] = { + UINT64_C(0xFFFFFFFF00000001), UINT64_C(0x00000000FFFFFFFF), + UINT64_C(0x0000000000000001), UINT64_C(0x0000000000000000), + UINT64_C(0x0000000000000000), UINT64_C(0x0000000000000000) +}; + +static const limb_t const_b[6] = { + UINT64_C(0x081188719D412DCC), UINT64_C(0xF729ADD87A4C32EC), + UINT64_C(0x77F2209B1920022E), UINT64_C(0xE3374BEE94938AE2), + UINT64_C(0xB62B21F41F022094), UINT64_C(0xCD08114B604FBFF9) +}; + +/* LUT for scalar multiplication by comb interleaving */ +static const pt_aff_t lut_cmb[21][16] = { + { + { { UINT64_C(0x3DD0756649C0B528), UINT64_C(0x20E378E2A0D6CE38), + UINT64_C(0x879C3AFC541B4D6E), UINT64_C(0x6454868459A30EFF), + UINT64_C(0x812FF723614EDE2B), UINT64_C(0x4D3AADC2299E1513) }, + { UINT64_C(0x23043DAD4B03A4FE), UINT64_C(0xA1BFA8BF7BB4A9AC), + UINT64_C(0x8BADE7562E83B050), UINT64_C(0xC6C3521968F4FFD9), + UINT64_C(0xDD8002263969A840), UINT64_C(0x2B78ABC25A15C5E9) } }, + { { UINT64_C(0x05E4DBE6C1DC4073), UINT64_C(0xC54EA9FFF04F779C), + UINT64_C(0x6B2034E9A170CCF0), UINT64_C(0x3A48D732D51C6C3E), + UINT64_C(0xE36F7E2D263AA470), UINT64_C(0xD283FE68E7C1C3AC) }, + { UINT64_C(0x7E284821C04EE157), UINT64_C(0x92D789A77AE0E36D), + UINT64_C(0x132663C04EF67446), UINT64_C(0x68012D5AD2E1D0B4), + UINT64_C(0xF6DB68B15102B339), UINT64_C(0x465465FC983292AF) } }, + { { UINT64_C(0xBB595EBA68F1F0DF), UINT64_C(0xC185C0CBCC873466), + UINT64_C(0x7F1EB1B5293C703B), UINT64_C(0x60DB2CF5AACC05E6), + UINT64_C(0xC676B987E2E8E4C6), UINT64_C(0xE1BB26B11D178FFB) }, + { UINT64_C(0x2B694BA07073FA21), UINT64_C(0x22C16E2E72F34566), + UINT64_C(0x80B61B3101C35B99), UINT64_C(0x4B237FAF982C0411), + UINT64_C(0xE6C5944024DE236D), UINT64_C(0x4DB1C9D6E209E4A3) } }, + { { UINT64_C(0xDF13B9D17D69222B), UINT64_C(0x4CE6415F874774B1), + UINT64_C(0x731EDCF8211FAA95), UINT64_C(0x5F4215D1659753ED), + UINT64_C(0xF893DB589DB2DF55), UINT64_C(0x932C9F811C89025B) }, + { UINT64_C(0x0996B2207706A61E), UINT64_C(0x135349D5A8641C79), + UINT64_C(0x65AAD76F50130844), UINT64_C(0x0FF37C0401FFF780), + UINT64_C(0xF57F238E693B0706), UINT64_C(0xD90A16B6AF6C9B3E) } }, + { { UINT64_C(0x2F5D200E2353B92F), UINT64_C(0xE35D87293FD7E4F9), + UINT64_C(0x26094833A96D745D), UINT64_C(0xDC351DC13CBFFF3F), + UINT64_C(0x26D464C6DAD54D6A), UINT64_C(0x5CAB1D1D53636C6A) }, + { UINT64_C(0xF2813072B18EC0B0), UINT64_C(0x3777E270D742AA2F), + UINT64_C(0x27F061C7033CA7C2), UINT64_C(0xA6ECACCC68EAD0D8), + UINT64_C(0x7D9429F4EE69A754), UINT64_C(0xE770633431E8F5C6) } }, + { { UINT64_C(0xC7708B19B68B8C7D), UINT64_C(0x4532077C44377ABA), + UINT64_C(0x0DCC67706CDAD64F), UINT64_C(0x01B8BF56147B6602), + UINT64_C(0xF8D89885F0561D79), UINT64_C(0x9C19E9FC7BA9C437) }, + { UINT64_C(0x764EB146BDC4BA25), UINT64_C(0x604FE46BAC144B83), + UINT64_C(0x3CE813298A77E780), UINT64_C(0x2E070F36FE9E682E), + UINT64_C(0x41821D0C3A53287A), UINT64_C(0x9AA62F9F3533F918) } }, + { { UINT64_C(0x9B7AEB7E75CCBDFB), UINT64_C(0xB25E28C5F6749A95), + UINT64_C(0x8A7A8E4633B7D4AE), UINT64_C(0xDB5203A8D9C1BD56), + UINT64_C(0xD2657265ED22DF97), UINT64_C(0xB51C56E18CF23C94) }, + { UINT64_C(0xF4D394596C3D812D), UINT64_C(0xD8E88F1A87CAE0C2), + UINT64_C(0x789A2A48CF4D0FE3), UINT64_C(0xB7FEAC2DFEC38D60), + UINT64_C(0x81FDBD1C3B490EC3), UINT64_C(0x4617ADB7CC6979E1) } }, + { { UINT64_C(0x446AD8884709F4A9), UINT64_C(0x2B7210E2EC3DABD8), + UINT64_C(0x83CCF19550E07B34), UINT64_C(0x59500917789B3075), + UINT64_C(0x0FC01FD4EB085993), UINT64_C(0xFB62D26F4903026B) }, + { UINT64_C(0x2309CC9D6FE989BB), UINT64_C(0x61609CBD144BD586), + UINT64_C(0x4B23D3A0DE06610C), UINT64_C(0xDDDC2866D898F470), + UINT64_C(0x8733FC41400C5797), UINT64_C(0x5A68C6FED0BC2716) } }, + { { UINT64_C(0x8903E1304B4A3CD0), UINT64_C(0x3EA4EA4C8FF1F43E), + UINT64_C(0xE6FC3F2AF655A10D), UINT64_C(0x7BE3737D524FFEFC), + UINT64_C(0x9F6928555330455E), UINT64_C(0x524F166EE475CE70) }, + { UINT64_C(0x3FCC69CD6C12F055), UINT64_C(0x4E23B6FFD5B9C0DA), + UINT64_C(0x49CE6993336BF183), UINT64_C(0xF87D6D854A54504A), + UINT64_C(0x25EB5DF1B3C2677A), UINT64_C(0xAC37986F55B164C9) } }, + { { UINT64_C(0x82A2ED4ABAA84C08), UINT64_C(0x22C4CC5F41A8C912), + UINT64_C(0xCA109C3B154AAD5E), UINT64_C(0x23891298FC38538E), + UINT64_C(0xB3B6639C539802AE), UINT64_C(0xFA0F1F450390D706) }, + { UINT64_C(0x46B78E5DB0DC21D0), UINT64_C(0xA8C72D3CC3DA2EAC), + UINT64_C(0x9170B3786FF2F643), UINT64_C(0x3F5A799BB67F30C3), + UINT64_C(0x15D1DC778264B672), UINT64_C(0xA1D47B23E9577764) } }, + { { UINT64_C(0x08265E510422CE2F), UINT64_C(0x88E0D496DD2F9E21), + UINT64_C(0x30128AA06177F75D), UINT64_C(0x2E59AB62BD9EBE69), + UINT64_C(0x1B1A0F6C5DF0E537), UINT64_C(0xAB16C626DAC012B5) }, + { UINT64_C(0x8014214B008C5DE7), UINT64_C(0xAA740A9E38F17BEA), + UINT64_C(0x262EBB498A149098), UINT64_C(0xB454111E8527CD59), + UINT64_C(0x266AD15AACEA5817), UINT64_C(0x21824F411353CCBA) } }, + { { UINT64_C(0xD1B4E74D12E3683B), UINT64_C(0x990ED20B569B8EF6), + UINT64_C(0xB9D3DD25429C0A18), UINT64_C(0x1C75B8AB2A351783), + UINT64_C(0x61E4CA2B905432F0), UINT64_C(0x80826A69EEA8F224) }, + { UINT64_C(0x7FC33A6BEC52ABAD), UINT64_C(0x0BCCA3F0A65E4813), + UINT64_C(0x7AD8A132A527CEBE), UINT64_C(0xF0138950EAF22C7E), + UINT64_C(0x282D2437566718C1), UINT64_C(0x9DFCCB0DE2212559) } }, + { { UINT64_C(0x1E93722758CE3B83), UINT64_C(0xBB280DFA3CB3FB36), + UINT64_C(0x57D0F3D2E2BE174A), UINT64_C(0x9BD51B99208ABE1E), + UINT64_C(0x3809AB50DE248024), UINT64_C(0xC29C6E2CA5BB7331) }, + { UINT64_C(0x9944FD2E61124F05), UINT64_C(0x83CCBC4E9009E391), + UINT64_C(0x01628F059424A3CC), UINT64_C(0xD6A2F51DEA8E4344), + UINT64_C(0xDA3E1A3D4CEBC96E), UINT64_C(0x1FE6FB42E97809DC) } }, + { { UINT64_C(0xA04482D2467D66E4), UINT64_C(0xCF1912934D78291D), + UINT64_C(0x8E0D4168482396F9), UINT64_C(0x7228E2D5D18F14D0), + UINT64_C(0x2F7E8D509C6A58FE), UINT64_C(0xE8CA780E373E5AEC) }, + { UINT64_C(0x42AAD1D61B68E9F8), UINT64_C(0x58A6D7F569E2F8F4), + UINT64_C(0xD779ADFE31DA1BEA), UINT64_C(0x7D26540638C85A85), + UINT64_C(0x67E67195D44D3CDF), UINT64_C(0x17820A0BC5134ED7) } }, + { { UINT64_C(0x019D6AC5D3021470), UINT64_C(0x25846B66780443D6), + UINT64_C(0xCE3C15ED55C97647), UINT64_C(0x3DC22D490E3FEB0F), + UINT64_C(0x2065B7CBA7DF26E4), UINT64_C(0xC8B00AE8187CEA1F) }, + { UINT64_C(0x1A5284A0865DDED3), UINT64_C(0x293C164920C83DE2), + UINT64_C(0xAB178D26CCE851B3), UINT64_C(0x8E6DB10B404505FB), + UINT64_C(0xF6F57E7190C82033), UINT64_C(0x1D2A1C015977F16C) } }, + { { UINT64_C(0xA39C89317C8906A4), UINT64_C(0xB6E7ECDD9E821EE6), + UINT64_C(0x2ECF8340F0DF4FE6), UINT64_C(0xD42F7DC953C14965), + UINT64_C(0x1AFB51A3E3BA8285), UINT64_C(0x6C07C4040A3305D1) }, + { UINT64_C(0xDAB83288127FC1DA), UINT64_C(0xBC0A699B374C4B08), + UINT64_C(0x402A9BAB42EB20DD), UINT64_C(0xD7DD464F045A7A1C), + UINT64_C(0x5B3D0D6D36BEECC4), UINT64_C(0x475A3E756398A19D) } }, + }, + { + { { UINT64_C(0x31BDB48372876AE8), UINT64_C(0xE3325D98961ED1BF), + UINT64_C(0x18C042469B6FC64D), UINT64_C(0x0DCC15FA15786B8C), + UINT64_C(0x81ACDB068E63DA4A), UINT64_C(0xD3A4B643DADA70FB) }, + { UINT64_C(0x46361AFEDEA424EB), UINT64_C(0xDC2D2CAE89B92970), + UINT64_C(0xF389B61B615694E6), UINT64_C(0x7036DEF1872951D2), + UINT64_C(0x40FD3BDAD93BADC7), UINT64_C(0x45AB6321380A68D3) } }, + { { UINT64_C(0x23C1F74481A2703A), UINT64_C(0x1A5D075CB9859136), + UINT64_C(0xA4F82C9D5AFD1BFD), UINT64_C(0xA3D1E9A4F89D76FE), + UINT64_C(0x964F705075702F80), UINT64_C(0x182BF349F56C089D) }, + { UINT64_C(0xE205FA8FBE0DA6E1), UINT64_C(0x32905EB90A40F8F3), + UINT64_C(0x331A1004356D4395), UINT64_C(0x58B78901FDBBDFDE), + UINT64_C(0xA52A15979BA00E71), UINT64_C(0xE0092E1F55497A30) } }, + { { UINT64_C(0x5562A85670EE8F39), UINT64_C(0x86B0C11764E52A9C), + UINT64_C(0xC19F317409C75B8C), UINT64_C(0x21C7CC3124923F80), + UINT64_C(0xE63FE47F8F5B291E), UINT64_C(0x3D6D3C050DC08B05) }, + { UINT64_C(0x58AE455EEE0C39A1), UINT64_C(0x78BEA4310AD97942), + UINT64_C(0x42C7C97F3EE3989C), UINT64_C(0xC1B03AF5F38759AE), + UINT64_C(0x1A673C75BCF46899), UINT64_C(0x4831B7D38D508C7D) } }, + { { UINT64_C(0x76512D1BC552E354), UINT64_C(0x2B7EB6DF273020FD), + UINT64_C(0xD1C73AA8025A5F25), UINT64_C(0x2ABA19295CBD2A40), + UINT64_C(0xB53CADC3C88D61C6), UINT64_C(0x7E66A95E098290F3) }, + { UINT64_C(0x72800ECBAF4C5073), UINT64_C(0x81F2725E9DC63FAF), + UINT64_C(0x14BF92A7282BA9D1), UINT64_C(0x90629672BD5F1BB2), + UINT64_C(0x362F68EBA97C6C96), UINT64_C(0xB1D3BB8B7EA9D601) } }, + { { UINT64_C(0x73878F7FA9C94429), UINT64_C(0xB35C3BC8456CA6D8), + UINT64_C(0xD96F0B3CF721923A), UINT64_C(0x28D8F06CE6D44FA1), + UINT64_C(0x94EFDCDCD5CD671A), UINT64_C(0x0299AB933F97D481) }, + { UINT64_C(0xB7CED6EA2FD1D324), UINT64_C(0xBD6832087E932EC2), + UINT64_C(0x24ED31FBCB755A6E), UINT64_C(0xA636098EE48781D2), + UINT64_C(0x8687C63CF0A4F297), UINT64_C(0xBB52344007478526) } }, + { { UINT64_C(0x2E5F741934124B56), UINT64_C(0x1F223AE14B3F02CA), + UINT64_C(0x6345B427E8336C7E), UINT64_C(0x92123E16F5D0E3D0), + UINT64_C(0xDAF0D14D45E79F3A), UINT64_C(0x6ACA67656F3BD0C6) }, + { UINT64_C(0xF6169FAB403813F4), UINT64_C(0x31DC39C0334A4C59), + UINT64_C(0x74C46753D589866D), UINT64_C(0x5741511D984C6A5D), + UINT64_C(0xF263128797FED2D3), UINT64_C(0x5687CA1B11614886) } }, + { { UINT64_C(0x076D902A33836D4B), UINT64_C(0xEC6C5C4324AFB557), + UINT64_C(0xA0FE2D1CA0516A0F), UINT64_C(0x6FB8D73700D22ECC), + UINT64_C(0xF1DE9077DAF1D7B3), UINT64_C(0xE4695F77D4C0C1EB) }, + { UINT64_C(0x5F0FD8A8B4375573), UINT64_C(0x762383595E50944F), + UINT64_C(0x65EA2F28635CD76F), UINT64_C(0x0854776925FDE7B0), + UINT64_C(0xB2345A2E51944304), UINT64_C(0x86EFA2F7A16C980D) } }, + { { UINT64_C(0x4CCBE2D0BF4D1D63), UINT64_C(0x32E33401397366D5), + UINT64_C(0xC83AFDDE71BDA2CE), UINT64_C(0x8DACE2AC478ED9E6), + UINT64_C(0x3AC6A559763FDD9E), UINT64_C(0x0FFDB04CB398558F) }, + { UINT64_C(0x6C1B99B2AFB9D6B8), UINT64_C(0x572BA39C27F815DD), + UINT64_C(0x9DE73EE70DBCF842), UINT64_C(0x2A3ED58929267B88), + UINT64_C(0xD46A7FD315EBBBB3), UINT64_C(0xD1D01863E29400C7) } }, + { { UINT64_C(0x8FB101D1E1F89EC5), UINT64_C(0xB87A1F53F8508042), + UINT64_C(0x28C8DB240ED7BEEF), UINT64_C(0x3940F845ACE8660A), + UINT64_C(0x4EACB619C6D453FD), UINT64_C(0x2E044C982BAD6160) }, + { UINT64_C(0x8792854880B16C02), UINT64_C(0xF0D4BEB3C0A9EB64), + UINT64_C(0xD785B4AFC183C195), UINT64_C(0x23AAB0E65E6C46EA), + UINT64_C(0x30F7E104A930FECA), UINT64_C(0x6A1A7B8BD55C10FB) } }, + { { UINT64_C(0xDA74EAEBDBFED1AA), UINT64_C(0xC8A59223DF0B025C), + UINT64_C(0x7EF7DC85D5B627F7), UINT64_C(0x02A13AE1197D7624), + UINT64_C(0x119E9BE12F785A9B), UINT64_C(0xC0B7572F00D6B219) }, + { UINT64_C(0x9B1E51266D4CAF30), UINT64_C(0xA16A51170A840BD1), + UINT64_C(0x5BE17B910E9CCF43), UINT64_C(0x5BDBEDDD69CF2C9C), + UINT64_C(0x9FFBFBCF4CF4F289), UINT64_C(0xE1A621836C355CE9) } }, + { { UINT64_C(0x056199D9A7B2FCCF), UINT64_C(0x51F2E7B6CE1D784E), + UINT64_C(0xA1D09C47339E2FF0), UINT64_C(0xC8E64890B836D0A9), + UINT64_C(0x2F781DCBC0D07EBE), UINT64_C(0x5CF3C2AD3ACF934C) }, + { UINT64_C(0xE55DB190A17E26AE), UINT64_C(0xC9C61E1F91245513), + UINT64_C(0x83D7E6CF61998C15), UINT64_C(0x4DB33C85E41D38E3), + UINT64_C(0x74D5F91DC2FEE43D), UINT64_C(0x7EBBDB4536BBC826) } }, + { { UINT64_C(0xE20EC7E9CB655A9D), UINT64_C(0x4977EB925C47D421), + UINT64_C(0xA237E12C3B9D72FA), UINT64_C(0xCAAEDBC1CBF7B145), + UINT64_C(0x5200F5B23B77AAA3), UINT64_C(0x32EDED55BDBE5380) }, + { UINT64_C(0x74E38A40E7C9B80A), UINT64_C(0x3A3F0CF8AB6DE911), + UINT64_C(0x56DCDD7AAD16AAF0), UINT64_C(0x3D2924498E861D5E), + UINT64_C(0xD6C61878985733E2), UINT64_C(0x2401FE7D6AA6CD5B) } }, + { { UINT64_C(0xABB3DC75B42E3686), UINT64_C(0xAE712419B4C57E61), + UINT64_C(0x2C565F72B21B009B), UINT64_C(0xA5F1DA2E710C3699), + UINT64_C(0x771099A0A5EBA59A), UINT64_C(0x4DA88F4AC10017A0) }, + { UINT64_C(0x987FFFD31927B56D), UINT64_C(0xB98CB8ECC4E33478), + UINT64_C(0xB224A971C2248166), UINT64_C(0x5470F554DE1DC794), + UINT64_C(0xD747CC24E31FF983), UINT64_C(0xB91745E9B5B22DAE) } }, + { { UINT64_C(0x6CCBFED072F34420), UINT64_C(0x95045E4DA53039D2), + UINT64_C(0x3B6C11545A793944), UINT64_C(0xAA114145DDB6B799), + UINT64_C(0xABC15CA4252B7637), UINT64_C(0x5745A35BA5744634) }, + { UINT64_C(0x05DC6BDEDA596FC0), UINT64_C(0xCD52C18CA8020881), + UINT64_C(0x03FA9F47D296BAD0), UINT64_C(0xD8E2C1297268E139), + UINT64_C(0x58C1A98D9EC450B0), UINT64_C(0x909638DADE48B20D) } }, + { { UINT64_C(0x7AFC30D49B7F8311), UINT64_C(0x82A0042242368EA3), + UINT64_C(0xBFF951986F5F9865), UINT64_C(0x9B24F612FC0A070F), + UINT64_C(0x22C06CF2620F489D), UINT64_C(0x3C7ED052780F7DBB) }, + { UINT64_C(0xDB87AB1834DAFE9B), UINT64_C(0x20C03B409C4BBCA1), + UINT64_C(0x5D718CF059A42341), UINT64_C(0x9863170669E84538), + UINT64_C(0x5557192BD27D64E1), UINT64_C(0x08B4EC52DA822766) } }, + { { UINT64_C(0xB2D986F6D66C1A59), UINT64_C(0x927DEB1678E0E423), + UINT64_C(0x9E673CDE49C3DEDC), UINT64_C(0xFA362D84F7ECB6CF), + UINT64_C(0x078E5F401BA17340), UINT64_C(0x934CA5D11F4E489C) }, + { UINT64_C(0xC03C073164EEF493), UINT64_C(0x631A353BD7931A7E), + UINT64_C(0x8E7CC3BB65DD74F1), UINT64_C(0xD55864C5702676A5), + UINT64_C(0x6D306AC4439F04BD), UINT64_C(0x58544F672BAFED57) } }, + }, + { + { { UINT64_C(0xB083BA6AEC074AEA), UINT64_C(0x46FAC5EF7F0B505B), + UINT64_C(0x95367A21FC82DC03), UINT64_C(0x227BE26A9D3679D8), + UINT64_C(0xC70F6D6C7E9724C0), UINT64_C(0xCD68C757F9EBEC0F) }, + { UINT64_C(0x29DDE03E8FF321B2), UINT64_C(0xF84AD7BB031939DC), + UINT64_C(0xDAF590C90F602F4B), UINT64_C(0x17C5288849722BC4), + UINT64_C(0xA8DF99F0089B22B6), UINT64_C(0xC21BC5D4E59B9B90) } }, + { { UINT64_C(0x4936C6A08A31973F), UINT64_C(0x54D442FA83B8C205), + UINT64_C(0x03AEE8B45714F2C6), UINT64_C(0x139BD6923F5AC25A), + UINT64_C(0x6A2E42BAB5B33794), UINT64_C(0x50FA11643FF7BBA9) }, + { UINT64_C(0xB61D8643F7E2C099), UINT64_C(0x2366C993BD5C6637), + UINT64_C(0x62110E1472EB77FA), UINT64_C(0x3D5B96F13B99C635), + UINT64_C(0x956ECF64F674C9F2), UINT64_C(0xC56F7E51EF2BA250) } }, + { { UINT64_C(0x246FFCB6FF602C1B), UINT64_C(0x1E1A1D746E1258E0), + UINT64_C(0xB4B43AE2250E6676), UINT64_C(0x95C1B5F0924CE5FA), + UINT64_C(0x2555795BEBD8C776), UINT64_C(0x4C1E03DCACD9D9D0) }, + { UINT64_C(0xE1D74AA69CE90C61), UINT64_C(0xA88C0769A9C4B9F9), + UINT64_C(0xDF74DF2795AF56DE), UINT64_C(0x24B10C5FB331B6F4), + UINT64_C(0xB0A6DF9A6559E137), UINT64_C(0x6ACC1B8FC06637F2) } }, + { { UINT64_C(0xBD8C086834B4E381), UINT64_C(0x278CACC730DFF271), + UINT64_C(0x87ED12DE02459389), UINT64_C(0x3F7D98FFDEF840B6), + UINT64_C(0x71EEE0CB5F0B56E1), UINT64_C(0x462B5C9BD8D9BE87) }, + { UINT64_C(0xE6B50B5A98094C0F), UINT64_C(0x26F3B274508C67CE), + UINT64_C(0x418B1BD17CB1F992), UINT64_C(0x607818ED4FF11827), + UINT64_C(0xE630D93A9B042C63), UINT64_C(0x38B9EFF38C779AE3) } }, + { { UINT64_C(0xE8767D36729C5431), UINT64_C(0xA8BD07C0BB94642C), + UINT64_C(0x0C11FC8E58F2E5B2), UINT64_C(0xD8912D48547533FE), + UINT64_C(0xAAE14F5E230D91FB), UINT64_C(0xC122051A676DFBA0) }, + { UINT64_C(0x9ED4501F5EA93078), UINT64_C(0x2758515CBD4BEE0A), + UINT64_C(0x97733C6C94D21F52), UINT64_C(0x139BCD6D4AD306A2), + UINT64_C(0x0AAECBDC298123CC), UINT64_C(0x102B8A311CB7C7C9) } }, + { { UINT64_C(0x22A28E59FAF46675), UINT64_C(0x1075730810A31E7D), + UINT64_C(0xC7EEAC842B4C2F4F), UINT64_C(0xBA370148B5EF5184), + UINT64_C(0x4A5A28668732E055), UINT64_C(0x14B8DCDCB887C36F) }, + { UINT64_C(0xDBA8C85C433F093D), UINT64_C(0x73DF549D1C9A201C), + UINT64_C(0x69AA0D7B70F927D8), UINT64_C(0xFA3A8685D7D2493A), + UINT64_C(0x6F48A2550A7F4013), UINT64_C(0xD20C8BF9DD393067) } }, + { { UINT64_C(0x4EC874EA81625E78), UINT64_C(0x8B8D8B5A3FBE9267), + UINT64_C(0xA3D9D1649421EC2F), UINT64_C(0x490E92D9880EA295), + UINT64_C(0x745D1EDCD8F3B6DA), UINT64_C(0x0116628B8F18BA03) }, + { UINT64_C(0x0FF6BCE0834EADCE), UINT64_C(0x464697F2000827F7), + UINT64_C(0x08DCCF84498D724E), UINT64_C(0x7896D3651E88304C), + UINT64_C(0xE63EBCCE135E3622), UINT64_C(0xFB942E8EDC007521) } }, + { { UINT64_C(0xBB155A66A3688621), UINT64_C(0xED2FD7CDF91B52A3), + UINT64_C(0x52798F5DEA20CB88), UINT64_C(0x069CE105373F7DD8), + UINT64_C(0xF9392EC78CA78F6B), UINT64_C(0xB3013E256B335169) }, + { UINT64_C(0x1D92F8006B11715C), UINT64_C(0xADD4050EFF9DC464), + UINT64_C(0x2AC226598465B84A), UINT64_C(0x2729D646465B2BD6), + UINT64_C(0x6202344AE4EFF9DD), UINT64_C(0x51F3198FCD9B90B9) } }, + { { UINT64_C(0x17CE54EFE5F0AE1D), UINT64_C(0x984E8204B09852AF), + UINT64_C(0x3365B37AC4B27A71), UINT64_C(0x720E3152A00E0A9C), + UINT64_C(0x3692F70D925BD606), UINT64_C(0xBE6E699D7BC7E9AB) }, + { UINT64_C(0xD75C041F4C89A3C0), UINT64_C(0x8B9F592D8DC100C0), + UINT64_C(0x30750F3AAD228F71), UINT64_C(0x1B9ECF84E8B17A11), + UINT64_C(0xDF2025620FBFA8A2), UINT64_C(0x45C811FCAA1B6D67) } }, + { { UINT64_C(0xEC5B84B71A5151F8), UINT64_C(0x118E59E8550AB2D2), + UINT64_C(0x2CCDEDA4049BD735), UINT64_C(0xC99CBA719CD62F0F), + UINT64_C(0x69B8040A62C9E4F8), UINT64_C(0x16F1A31A110B8283) }, + { UINT64_C(0x53F6380298E908A3), UINT64_C(0x308CB6EFD862F9DE), + UINT64_C(0xE185DAD8A521A95A), UINT64_C(0x4D8FE9A4097F75CA), + UINT64_C(0xD1ECCEC71CA07D53), UINT64_C(0x13DFA1DC0DB07E83) } }, + { { UINT64_C(0xDDAF9DC60F591A76), UINT64_C(0xE1A6D7CC1685F412), + UINT64_C(0x153DE557002B6E8D), UINT64_C(0x730C38BCC6DA37D9), + UINT64_C(0xAE1806220914B597), UINT64_C(0x84F98103DD8C3A0A) }, + { UINT64_C(0x369C53988DA205B0), UINT64_C(0xA3D95B813888A720), + UINT64_C(0x1F3F8BBFE10E2806), UINT64_C(0x48663DF54530D1F3), + UINT64_C(0x320523B43E377713), UINT64_C(0xE8B1A575C7894814) } }, + { { UINT64_C(0x330668712EE8EA07), UINT64_C(0xC6FB4EC560DA199D), + UINT64_C(0x33231860F4370A05), UINT64_C(0x7ABECE72C6DE4E26), + UINT64_C(0xDE8D4BD8EBDECE7A), UINT64_C(0xC90EE6571CBE93C7) }, + { UINT64_C(0x0246751B85AC2509), UINT64_C(0xD0EF142C30380245), + UINT64_C(0x086DF9C47C76E39C), UINT64_C(0x68F1304FB789FB56), + UINT64_C(0x23E4CB98A5E4BD56), UINT64_C(0x69A4C63C64663DCA) } }, + { { UINT64_C(0x6C72B6AF7CB34E63), UINT64_C(0x073C40CD6DFC23FE), + UINT64_C(0xBDEEE7A1C936693A), UINT64_C(0xBC858E806EFAD378), + UINT64_C(0xEAD719FFF5BE55D4), UINT64_C(0xC8C3238F04552F5F) }, + { UINT64_C(0x0952C068928D5784), UINT64_C(0x89DFDF2294C58F2B), + UINT64_C(0x332DEDF367502C50), UINT64_C(0x3ED2FA3AAC0BE258), + UINT64_C(0xAEDC9B8A7C5C8244), UINT64_C(0x43A761B9DC0EA34F) } }, + { { UINT64_C(0x8FD683A2CC5E21A5), UINT64_C(0x5F444C6EFBA2BB68), + UINT64_C(0x709ACD0EAF05586D), UINT64_C(0x8EFA54D2DE8FB348), + UINT64_C(0x35276B7134CFE29E), UINT64_C(0x77A06FCD941EAC8C) }, + { UINT64_C(0x5815792D928322DD), UINT64_C(0x82FF356B67F7CB59), + UINT64_C(0x71E40A78304980F4), UINT64_C(0xC8645C273667D021), + UINT64_C(0xE785741CAEBAE28F), UINT64_C(0xB2C1BC7553ECAC37) } }, + { { UINT64_C(0x633EB24F1D0A74DB), UINT64_C(0xF1F55E56FA752512), + UINT64_C(0x75FECA688EFE11DE), UINT64_C(0xC80FD91CE6BF19EC), + UINT64_C(0xAD0BAFEC2A14C908), UINT64_C(0x4E1C4ACAADE4031F) }, + { UINT64_C(0x463A815B1EB1549A), UINT64_C(0x5AD4253C668F1298), + UINT64_C(0x5CB3866238A37151), UINT64_C(0x34BB1CCFAFF16B96), + UINT64_C(0xDCA93B13EE731AB0), UINT64_C(0x9F3CE5CC9BE01A0B) } }, + { { UINT64_C(0x75DB5723A110D331), UINT64_C(0x67C66F6A7123D89F), + UINT64_C(0x27ABBD4B4009D570), UINT64_C(0xACDA6F84C73451BC), + UINT64_C(0xE4B9A23905575ACF), UINT64_C(0x3C2DB7EFAB2D3D6C) }, + { UINT64_C(0x01CCDD0829115145), UINT64_C(0x9E0602FE57B5814A), + UINT64_C(0x679B35C287862838), UINT64_C(0x0277DC4C38AD598D), + UINT64_C(0xEF80A2136D896DD4), UINT64_C(0xC8812213E7B9047B) } }, + }, + { + { { UINT64_C(0xAC6DBDF6EDC9CE62), UINT64_C(0xA58F5B440F9C006E), + UINT64_C(0x16694DE3DC28E1B0), UINT64_C(0x2D039CF2A6647711), + UINT64_C(0xA13BBE6FC5B08B4B), UINT64_C(0xE44DA93010EBD8CE) }, + { UINT64_C(0xCD47208719649A16), UINT64_C(0xE18F4E44683E5DF1), + UINT64_C(0xB3F66303929BFA28), UINT64_C(0x7C378E43818249BF), + UINT64_C(0x76068C80847F7CD9), UINT64_C(0xEE3DB6D1987EBA16) } }, + { { UINT64_C(0xCBBD8576C42A2F52), UINT64_C(0x9ACC6F709D2B06BB), + UINT64_C(0xE5CB56202E6B72A4), UINT64_C(0x5738EA0E7C024443), + UINT64_C(0x8ED06170B55368F3), UINT64_C(0xE54C99BB1AEED44F) }, + { UINT64_C(0x3D90A6B2E2E0D8B2), UINT64_C(0x21718977CF7B2856), + UINT64_C(0x089093DCC5612AEC), UINT64_C(0xC272EF6F99C1BACC), + UINT64_C(0x47DB3B43DC43EAAD), UINT64_C(0x730F30E40832D891) } }, + { { UINT64_C(0x9FFE55630C7FECDB), UINT64_C(0x55CC67B6F88101E5), + UINT64_C(0x3039F981CBEFA3C7), UINT64_C(0x2AB06883667BFD64), + UINT64_C(0x9007A2574340E3DF), UINT64_C(0x1AC3F3FA5A3A49CA) }, + { UINT64_C(0x9C7BE629C97E20FD), UINT64_C(0xF61823D3A3DAE003), + UINT64_C(0xFFE7FF39E7380DBA), UINT64_C(0x620BB9B59FACC3B8), + UINT64_C(0x2DDCB8CD31AE422C), UINT64_C(0x1DE3BCFAD12C3C43) } }, + { { UINT64_C(0x8C074946D6E0F9A9), UINT64_C(0x662FA99551C3B05B), + UINT64_C(0x6CDAE96904BB2048), UINT64_C(0x6DEC9594D6DC8B60), + UINT64_C(0x8D26586954438BBC), UINT64_C(0x88E983E31B0E95A5) }, + { UINT64_C(0x8189F11460CBF838), UINT64_C(0x77190697771DC46B), + UINT64_C(0x775775A227F8EC1A), UINT64_C(0x7A125240607E3739), + UINT64_C(0xAFAE84E74F793E4E), UINT64_C(0x44FA17F35BF5BAF4) } }, + { { UINT64_C(0xA21E69A5D03AC439), UINT64_C(0x2069C5FC88AA8094), + UINT64_C(0xB041EEA78C08F206), UINT64_C(0x55B9D4613D65B8ED), + UINT64_C(0x951EA25CD392C7C4), UINT64_C(0x4B9A1CEC9D166232) }, + { UINT64_C(0xC184FCD8FCF931A4), UINT64_C(0xBA59AD44063AD374), + UINT64_C(0x1868AD2A1AA9796F), UINT64_C(0x38A34018DFF29832), + UINT64_C(0x01FC880103DF8070), UINT64_C(0x1282CCE048DD334A) } }, + { { UINT64_C(0x76AA955726D8503C), UINT64_C(0xBE962B636BC3E3D0), + UINT64_C(0xF5CA93E597DE8841), UINT64_C(0x1561B05EAF3F2C16), + UINT64_C(0x34BE00AAD34BFF98), UINT64_C(0xEA21E6E9D23D2925) }, + { UINT64_C(0x55713230394C3AFB), UINT64_C(0xEAF0529BD6C8BECA), + UINT64_C(0xFF38A743202B9A11), UINT64_C(0xA13E39FC6D3A398B), + UINT64_C(0x8CBD644B86E2615A), UINT64_C(0x92063988191057EC) } }, + { { UINT64_C(0x787835CE13F89146), UINT64_C(0x7FCD42CC69446C3F), + UINT64_C(0x0DA2AA98840E679D), UINT64_C(0x44F2052318779A1B), + UINT64_C(0xE3A3B34FEFBF5935), UINT64_C(0xA5D2CFD0B9947B70) }, + { UINT64_C(0xAE2AF4EF27F4E16F), UINT64_C(0xA7FA70D2B9D21322), + UINT64_C(0x68084919B3FD566B), UINT64_C(0xF04D71C8D7AAD6AB), + UINT64_C(0xDBEA21E410BC4260), UINT64_C(0xAA7DC6658D949B42) } }, + { { UINT64_C(0xD8E958A06CCB8213), UINT64_C(0x118D9DB991900B54), + UINT64_C(0x09BB9D4985E8CED6), UINT64_C(0x410E9FB524019281), + UINT64_C(0x3B31B4E16D74C86E), UINT64_C(0x52BC0252020BB77D) }, + { UINT64_C(0x5616A26F27092CE4), UINT64_C(0x67774DBCA08F65CD), + UINT64_C(0x560AD494C08BD569), UINT64_C(0xBE26DA36AD498783), + UINT64_C(0x0276C8AB7F019C91), UINT64_C(0x09843ADA5248266E) } }, + { { UINT64_C(0xA0AE88A77D963CF2), UINT64_C(0x91EF8986D0E84920), + UINT64_C(0xC7EFE344F8C58104), UINT64_C(0x0A25D9FDECA20773), + UINT64_C(0x9D989FAA00D8F1D5), UINT64_C(0x4204C8CEC8B06264) }, + { UINT64_C(0x717C12E0BE1A2796), UINT64_C(0x1FA4BA8CC190C728), + UINT64_C(0xA245CA8D8C8A59BA), UINT64_C(0xE3C374757672B935), + UINT64_C(0x083D5E402E4D6375), UINT64_C(0x0B8D5AB35455E16E) } }, + { { UINT64_C(0x1DB17DBFEED765D4), UINT64_C(0xBBC9B1BEA5DDB965), + UINT64_C(0x1948F76DDFC12ABC), UINT64_C(0x2C2714E5134EF489), + UINT64_C(0x60CE2EE8741C600F), UINT64_C(0x32396F22F80E6E63) }, + { UINT64_C(0x421DAC7522537F59), UINT64_C(0x58FB73C649475DF5), + UINT64_C(0x0ABF28856F18F1C7), UINT64_C(0x364744689A398D16), + UINT64_C(0x87A661A7BF673B87), UINT64_C(0x3E80698F73819E17) } }, + { { UINT64_C(0xDFE4979353784CC4), UINT64_C(0x4280EAB0486D508F), + UINT64_C(0x119593FFE534F5A4), UINT64_C(0x98AEFADD9F63242F), + UINT64_C(0x9AE6A24AC4829CAE), UINT64_C(0xF2373CA558E8BA80) }, + { UINT64_C(0x4017AF7E51765FB3), UINT64_C(0xD1E40F7CAF4AEC4B), + UINT64_C(0x87372C7A0898E3BC), UINT64_C(0x688982B285452CA9), + UINT64_C(0x71E0B4BFB1E50BCA), UINT64_C(0x21FD2DBFF70E714A) } }, + { { UINT64_C(0xEE6E8820FB78DDAC), UINT64_C(0x0BAED29C063892CD), + UINT64_C(0x5F33049C28C0588D), UINT64_C(0x90C2515E18DBC432), + UINT64_C(0xB8A1B1433B4CB0BD), UINT64_C(0x0AB5C0C968103043) }, + { UINT64_C(0xF3788FA04005EC40), UINT64_C(0x82571C99039EE115), + UINT64_C(0xEE8FCED593260BED), UINT64_C(0x5A9BAF7910836D18), + UINT64_C(0x7C258B09C46AA4F6), UINT64_C(0x46ECC5E837F53D31) } }, + { { UINT64_C(0xFA32C0DCBFE0DD98), UINT64_C(0x66EFAFC4962B1066), + UINT64_C(0xBA81D33E64BDF5EB), UINT64_C(0x36C28536FC7FC512), + UINT64_C(0x0C95176BE0B4FA97), UINT64_C(0x47DDE29B3B9BC64A) }, + { UINT64_C(0x08D986FD5C173B36), UINT64_C(0x46D84B526CF3F28C), + UINT64_C(0x6F6ED6C3F026BDB9), UINT64_C(0xAC90668B68206DC5), + UINT64_C(0xE8ED5D98ECBE4E70), UINT64_C(0xCFFF61DDDC1A6974) } }, + { { UINT64_C(0xFF5C3A2977B1A5C1), UINT64_C(0x10C27E4A0DDF995D), + UINT64_C(0xCB745F77E23363E3), UINT64_C(0xD765DF6F32F399A3), + UINT64_C(0xF0CA0C2F8A99E109), UINT64_C(0xC3A6BFB71E025CA0) }, + { UINT64_C(0x830B2C0A4F9D9FA5), UINT64_C(0xAE914CACBD1A84E5), + UINT64_C(0x30B35ED8A4FEBCC1), UINT64_C(0xCB902B4684CFBF2E), + UINT64_C(0x0BD4762825FC6375), UINT64_C(0xA858A53C85509D04) } }, + { { UINT64_C(0x8B995D0C552E0A3F), UINT64_C(0xEDBD4E9417BE9FF7), + UINT64_C(0x3432E83995085178), UINT64_C(0x0FE5C18180C256F5), + UINT64_C(0x05A64EA8EBF9597C), UINT64_C(0x6ED44BB13F80371F) }, + { UINT64_C(0x6A29A05EFE4C12EE), UINT64_C(0x3E436A43E0BB83B3), + UINT64_C(0x38365D9A74D72921), UINT64_C(0x3F5EE823C38E1ED7), + UINT64_C(0x09A53213E8FA063F), UINT64_C(0x1E7FE47AB435E713) } }, + { { UINT64_C(0xE4D9BC94FDDD17F3), UINT64_C(0xC74B8FEDC1016C20), + UINT64_C(0x095DE39BB49C060E), UINT64_C(0xDBCC67958AC0DF00), + UINT64_C(0x4CF6BAEB1C34F4DF), UINT64_C(0x72C55C21E8390170) }, + { UINT64_C(0x4F17BFD2F6C48E79), UINT64_C(0x18BF4DA0017A80BA), + UINT64_C(0xCF51D829BCF4B138), UINT64_C(0x598AEE5FF48F8B0D), + UINT64_C(0x83FAEE5620F10809), UINT64_C(0x4615D4DC779F0850) } }, + }, + { + { { UINT64_C(0x22313DEE5852B59B), UINT64_C(0x6F56C8E8B6A0B37F), + UINT64_C(0x43D6EEAEA76EC380), UINT64_C(0xA16551360275AD36), + UINT64_C(0xE5C1B65ADF095BDA), UINT64_C(0xBD1FFA8D367C44B0) }, + { UINT64_C(0xE2B419C26B48AF2B), UINT64_C(0x57BBBD973DA194C8), + UINT64_C(0xB5FBE51FA2BAFF05), UINT64_C(0xA0594D706269B5D0), + UINT64_C(0x0B07B70523E8D667), UINT64_C(0xAE1976B563E016E7) } }, + { { UINT64_C(0x2FDE4893FBECAAAE), UINT64_C(0x444346DE30332229), + UINT64_C(0x157B8A5B09456ED5), UINT64_C(0x73606A7925797C6C), + UINT64_C(0xA9D0F47C33C14C06), UINT64_C(0x7BC8962CFAF971CA) }, + { UINT64_C(0x6E763C5165909DFD), UINT64_C(0x1BBBE41B14A9BF42), + UINT64_C(0xD95B7ECBC49E9EFC), UINT64_C(0x0C317927B38F2B59), + UINT64_C(0x97912B53B3C397DB), UINT64_C(0xCB3879AA45C7ABC7) } }, + { { UINT64_C(0xCD81BDCF24359B81), UINT64_C(0x6FD326E2DB4C321C), + UINT64_C(0x4CB0228BF8EBE39C), UINT64_C(0x496A9DCEB2CDD852), + UINT64_C(0x0F115A1AD0E9B3AF), UINT64_C(0xAA08BF36D8EEEF8A) }, + { UINT64_C(0x5232A51506E5E739), UINT64_C(0x21FAE9D58407A551), + UINT64_C(0x289D18B08994B4E8), UINT64_C(0xB4E346A809097A52), + UINT64_C(0xC641510F324621D0), UINT64_C(0xC567FD4A95A41AB8) } }, + { { UINT64_C(0x261578C7D57C8DE9), UINT64_C(0xB9BC491F3836C5C8), + UINT64_C(0x993266B414C8038F), UINT64_C(0xBACAD755FAA7CC39), + UINT64_C(0x418C4DEFD69B7E27), UINT64_C(0x53FDC5CDAE751533) }, + { UINT64_C(0x6F3BD329C3EEA63A), UINT64_C(0xA7A22091E53DD29E), + UINT64_C(0xB7164F73DC4C54EC), UINT64_C(0xCA66290D44D3D74E), + UINT64_C(0xF77C62424C9EA511), UINT64_C(0x34337F551F714C49) } }, + { { UINT64_C(0x5ED2B216A64B6C4B), UINT64_C(0x1C38794F3AAE640D), + UINT64_C(0x30BBAEE08905794F), UINT64_C(0x0D9EE41EC8699CFB), + UINT64_C(0xAF38DAF2CF7B7C29), UINT64_C(0x0D6A05CA43E53513) }, + { UINT64_C(0xBE96C6442606AB56), UINT64_C(0x13E7A072E9EB9734), + UINT64_C(0xF96694455FF50CD7), UINT64_C(0x68EF26B547DA6F1D), + UINT64_C(0xF002873823687CB7), UINT64_C(0x5ED9C8766217C1CE) } }, + { { UINT64_C(0x423BA5130A3A9691), UINT64_C(0xF421B1E7B3179296), + UINT64_C(0x6B51BCDB1A871E1B), UINT64_C(0x6E3BB5B5464E4300), + UINT64_C(0x24171E2EFC6C54CC), UINT64_C(0xA9DFA947D3E58DC2) }, + { UINT64_C(0x175B33099DE9CFA7), UINT64_C(0x707B25292D1015DA), + UINT64_C(0xCBB95F17993EA65A), UINT64_C(0x935150630447450D), + UINT64_C(0x0F47B2051B2753C9), UINT64_C(0x4A0BAB14E7D427CF) } }, + { { UINT64_C(0xA39DEF39B5AA7CA1), UINT64_C(0x591CB173C47C33DF), + UINT64_C(0xA09DAC796BBAB872), UINT64_C(0x3EF9D7CF7208BA2F), + UINT64_C(0x3CC189317A0A34FC), UINT64_C(0xAE31C62BBCC3380F) }, + { UINT64_C(0xD72A67940287C0B4), UINT64_C(0x3373382C68E334F1), + UINT64_C(0xD0310CA8BD20C6A6), UINT64_C(0xA2734B8742C033FD), + UINT64_C(0xA5D390F18DCE4509), UINT64_C(0xFC84E74B3E1AFCB5) } }, + { { UINT64_C(0xB028334DF2CD8A9C), UINT64_C(0xB8719291570F76F6), + UINT64_C(0x662A386E01065A2D), UINT64_C(0xDF1634CB53D940AE), + UINT64_C(0x625A7B838F5B41F9), UINT64_C(0xA033E4FEEE6AA1B4) }, + { UINT64_C(0x51E9D4631E42BABB), UINT64_C(0x660BC2E40D388468), + UINT64_C(0x3F702189FCBB114A), UINT64_C(0x6B46FE35B414CA78), + UINT64_C(0x328F6CF24A57316B), UINT64_C(0x917423B5381AD156) } }, + { { UINT64_C(0xAC19306E5373A607), UINT64_C(0x471DF8E3191D0969), + UINT64_C(0x380ADE35B9720D83), UINT64_C(0x7423FDF548F1FD5C), + UINT64_C(0x8B090C9F49CABC95), UINT64_C(0xB768E8CDC9842F2F) }, + { UINT64_C(0x399F456DE56162D6), UINT64_C(0xBB6BA2404F326791), + UINT64_C(0x8F4FBA3B342590BE), UINT64_C(0x053986B93DFB6B3E), + UINT64_C(0xBB6739F1190C7425), UINT64_C(0x32D4A55332F7E95F) } }, + { { UINT64_C(0x0205A0EC0DDBFB21), UINT64_C(0x3010327D33AC3407), + UINT64_C(0xCF2F4DB33348999B), UINT64_C(0x660DB9F41551604A), + UINT64_C(0xC346C69A5D38D335), UINT64_C(0x64AAB3D338882479) }, + { UINT64_C(0xA096B5E76AE44403), UINT64_C(0x6B4C9571645F76CD), + UINT64_C(0x72E1CD5F4711120F), UINT64_C(0x93EC42ACF27CC3E1), + UINT64_C(0x2D18D004A72ABB12), UINT64_C(0x232E9568C9841A04) } }, + { { UINT64_C(0xFF01DB223CC7F908), UINT64_C(0x9F214F8FD13CDD3B), + UINT64_C(0x38DADBB7E0B014B5), UINT64_C(0x2C548CCC94245C95), + UINT64_C(0x714BE331809AFCE3), UINT64_C(0xBCC644109BFE957E) }, + { UINT64_C(0xC21C2D215B957F80), UINT64_C(0xBA2D4FDCBB8A4C42), + UINT64_C(0xFA6CD4AF74817CEC), UINT64_C(0x9E7FB523C528EAD6), + UINT64_C(0xAED781FF7714B10E), UINT64_C(0xB52BB59294F04455) } }, + { { UINT64_C(0xA578BD69868CC68B), UINT64_C(0xA40FDC8D603F2C08), + UINT64_C(0x53D79BD12D81B042), UINT64_C(0x1B136AF3A7587EAB), + UINT64_C(0x1ED4F939868A16DB), UINT64_C(0x775A61FBD0B98273) }, + { UINT64_C(0xBA5C12A6E56BEF8C), UINT64_C(0xF926CE52DDDC8595), + UINT64_C(0xA13F5C8F586FE1F8), UINT64_C(0xEAC9F7F2060DBB54), + UINT64_C(0x70C0AC3A51AF4342), UINT64_C(0xC16E303C79CDA450) } }, + { { UINT64_C(0xD0DADD6C8113F4EA), UINT64_C(0xF14E392207BDF09F), + UINT64_C(0x3FE5E9C2AA7D877C), UINT64_C(0x9EA95C1948779264), + UINT64_C(0xE93F65A74FCB8344), UINT64_C(0x9F40837E76D925A4) }, + { UINT64_C(0x0EA6DA3F8271FFC7), UINT64_C(0x557FA529CC8F9B19), + UINT64_C(0x2613DBF178E6DDFD), UINT64_C(0x7A7523B836B1E954), + UINT64_C(0x20EB3168406A87FB), UINT64_C(0x64C21C1403ABA56A) } }, + { { UINT64_C(0xE86C9C2DC032DD5F), UINT64_C(0x158CEB8E86F16A21), + UINT64_C(0x0279FF5368326AF1), UINT64_C(0x1FFE2E2B59F12BA5), + UINT64_C(0xD75A46DB86826D45), UINT64_C(0xE19B48411E33E6AC) }, + { UINT64_C(0x5F0CC5240E52991C), UINT64_C(0x645871F98B116286), + UINT64_C(0xAB3B4B1EFCAEC5D3), UINT64_C(0x994C8DF051D0F698), + UINT64_C(0x06F890AFE5D13040), UINT64_C(0x72D9DC235F96C7C2) } }, + { { UINT64_C(0x7C018DEEE7886A80), UINT64_C(0xFA2093308786E4A3), + UINT64_C(0xCEC8E2A3A4415CA1), UINT64_C(0x5C736FC1CC83CC60), + UINT64_C(0xFEF9788CF00C259F), UINT64_C(0xED5C01CBDD29A6AD) }, + { UINT64_C(0x87834A033E20825B), UINT64_C(0x13B1239D123F9358), + UINT64_C(0x7E8869D0FBC286C1), UINT64_C(0xC4AB5AA324CE8609), + UINT64_C(0x38716BEEB6349208), UINT64_C(0x0BDF4F99B322AE21) } }, + { { UINT64_C(0x6B97A2BF53E3494B), UINT64_C(0xA8AA05C570F7A13E), + UINT64_C(0x209709C2F1305B51), UINT64_C(0x57B31888DAB76F2C), + UINT64_C(0x75B2ECD7AA2A406A), UINT64_C(0x88801A00A35374A4) }, + { UINT64_C(0xE1458D1C45C0471B), UINT64_C(0x5760E306322C1AB0), + UINT64_C(0x789A0AF1AD6AB0A6), UINT64_C(0x74398DE1F458B9CE), + UINT64_C(0x1652FF9F32E0C65F), UINT64_C(0xFAF1F9D5FFFB3A52) } }, + }, + { + { { UINT64_C(0xA05C751CD1D1B007), UINT64_C(0x016C213B0213E478), + UINT64_C(0x9C56E26CF4C98FEE), UINT64_C(0x6084F8B9E7B3A7C7), + UINT64_C(0xA0B042F6DECC1646), UINT64_C(0x4A6F3C1AFBF3A0BC) }, + { UINT64_C(0x94524C2C51C9F909), UINT64_C(0xF3B3AD403A6D3748), + UINT64_C(0x18792D6E7CE1F9F5), UINT64_C(0x8EBC2FD7FC0C34FA), + UINT64_C(0x032A9F41780A1693), UINT64_C(0x34F9801E56A60019) } }, + { { UINT64_C(0xB398290CF0DB3751), UINT64_C(0x01170580BA42C976), + UINT64_C(0x3E71AA2956560B89), UINT64_C(0x80817AAC50E6647B), + UINT64_C(0x35C833ADA0BE42DA), UINT64_C(0xFA3C6148F1BABA4E) }, + { UINT64_C(0xC57BE645CD8F6253), UINT64_C(0x77CEE46BC657AD0D), + UINT64_C(0x830077310DEFD908), UINT64_C(0x92FE9BCE899CBA56), + UINT64_C(0x48450EC4BCEFFB5A), UINT64_C(0xE615148DF2F5F4BF) } }, + { { UINT64_C(0xF55EDABB90B86166), UINT64_C(0x27F7D784075430A2), + UINT64_C(0xF53E822B9BF17161), UINT64_C(0x4A5B3B93AFE808DC), + UINT64_C(0x590BBBDED7272F55), UINT64_C(0x233D63FAEAEA79A1) }, + { UINT64_C(0xD7042BEAFE1EBA07), UINT64_C(0xD2B9AEA010750D7E), + UINT64_C(0xD8D1E69031078AA5), UINT64_C(0x9E837F187E37BC8B), + UINT64_C(0x9558FF4F85008975), UINT64_C(0x93EDB837421FE867) } }, + { { UINT64_C(0xAA6489DF83D55B5A), UINT64_C(0xEA092E4986BF27F7), + UINT64_C(0x4D8943A95FA2EFEC), UINT64_C(0xC9BAAE53720E1A8C), + UINT64_C(0xC055444B95A4F8A3), UINT64_C(0x93BD01E8A7C1206B) }, + { UINT64_C(0xD97765B6714A27DF), UINT64_C(0xD622D954193F1B16), + UINT64_C(0x115CC35AF1503B15), UINT64_C(0x1DD5359FA9FA21F8), + UINT64_C(0x197C32996DFED1F1), UINT64_C(0xDEE8B7C9F77F2679) } }, + { { UINT64_C(0x5405179F394FD855), UINT64_C(0xC9D6E24449FDFB33), + UINT64_C(0x70EBCAB4BD903393), UINT64_C(0x0D3A3899A2C56780), + UINT64_C(0x012C7256683D1A0A), UINT64_C(0xC688FC8880A48F3B) }, + { UINT64_C(0x180957546F7DF527), UINT64_C(0x9E339B4B71315D16), + UINT64_C(0x90560C28A956BB12), UINT64_C(0x2BECEA60D42EEE8D), + UINT64_C(0x82AEB9A750632653), UINT64_C(0xED34353EDFA5CD6A) } }, + { { UINT64_C(0x82154D2C91AECCE4), UINT64_C(0x312C60705041887F), + UINT64_C(0xECF589F3FB9FBD71), UINT64_C(0x67660A7DB524BDE4), + UINT64_C(0xE99B029D724ACF23), UINT64_C(0xDF06E4AF6D1CD891) }, + { UINT64_C(0x07806CB580EE304D), UINT64_C(0x0C70BB9F7443A8F8), + UINT64_C(0x01EC341408B0830A), UINT64_C(0xFD7B63C35A81510B), + UINT64_C(0xE90A0A39453B5F93), UINT64_C(0xAB700F8F9BC71725) } }, + { { UINT64_C(0x9401AEC2B9F00793), UINT64_C(0x064EC4F4B997F0BF), + UINT64_C(0xDC0CC1FD849240C8), UINT64_C(0x39A75F37B6E92D72), + UINT64_C(0xAA43CA5D0224A4AB), UINT64_C(0x9C4D632554614C47) }, + { UINT64_C(0x1767366FC6709DA3), UINT64_C(0xA6B482D123479232), + UINT64_C(0x54DC6DDC84D63E85), UINT64_C(0x0ACCB5ADC99D3B9E), + UINT64_C(0x211716BBE8AA3ABF), UINT64_C(0xD0FE25AD69EC6406) } }, + { { UINT64_C(0x0D5C1769DF85C705), UINT64_C(0x7086C93DA409DCD1), + UINT64_C(0x9710839D0E8D75D8), UINT64_C(0x17B7DB75EBDD4177), + UINT64_C(0xAF69EB58F649A809), UINT64_C(0x6EF19EA28A84E220) }, + { UINT64_C(0x36EB5C6665C278B2), UINT64_C(0xD2A1512881EA9D65), + UINT64_C(0x4FCBA840769300AD), UINT64_C(0xC2052CCDC8E536E5), + UINT64_C(0x9CAEE014AC263B8F), UINT64_C(0x56F7ED7AF9239663) } }, + { { UINT64_C(0xF6FA251FAC9E09E1), UINT64_C(0xA3775605955A2853), + UINT64_C(0x977B8D21F2A4BD78), UINT64_C(0xF68AA7FF3E096410), + UINT64_C(0x01AB055265F88419), UINT64_C(0xC4C8D77EBB93F64E) }, + { UINT64_C(0x718251113451FE64), UINT64_C(0xFA0F905B46F9BAF0), + UINT64_C(0x79BE3BF3CA49EF1A), UINT64_C(0x831109B26CB02071), + UINT64_C(0x765F935FC4DDBFE5), UINT64_C(0x6F99CD1480E5A3BA) } }, + { { UINT64_C(0xD2E8DA04234F91FF), UINT64_C(0x4DED4D6D813867AA), + UINT64_C(0x3B50175DE0A0D945), UINT64_C(0x55AC74064EB78137), + UINT64_C(0xE9FA7F6EE1D47730), UINT64_C(0x2C1715315CBF2176) }, + { UINT64_C(0xA521788F2BE7A47D), UINT64_C(0x95B15A273FCF1AB3), + UINT64_C(0xAADA6401F28A946A), UINT64_C(0x628B2EF48B4E898B), + UINT64_C(0x0E6F46296D6592CC), UINT64_C(0x997C7094A723CADD) } }, + { { UINT64_C(0x878BCE116AFE80C6), UINT64_C(0xA89ABC9D007BBA38), + UINT64_C(0xB0C1F87BA7CC267F), UINT64_C(0x86D33B9D5104FF04), + UINT64_C(0xB0504B1B2EF1BA42), UINT64_C(0x21693048B2827E88) }, + { UINT64_C(0x11F1CCD579CFCD14), UINT64_C(0x59C09FFA94AD227E), + UINT64_C(0x95A4ADCB3EA91ACF), UINT64_C(0x1346238BB4370BAA), + UINT64_C(0xB099D2023E1367B0), UINT64_C(0xCF5BBDE690F23CEA) } }, + { { UINT64_C(0x453299BBBCB3BE5E), UINT64_C(0x123C588E38E9FF97), + UINT64_C(0x8C115DD9F6A2E521), UINT64_C(0x6E333C11FF7D4B98), + UINT64_C(0x9DD061E5DA73E736), UINT64_C(0xC6AB7B3A5CA53056) }, + { UINT64_C(0xF1EF3EE35B30A76B), UINT64_C(0xADD6B44A961BA11F), + UINT64_C(0x7BB00B752CA6E030), UINT64_C(0x270272E82FE270AD), + UINT64_C(0x23BC6F4F241A9239), UINT64_C(0x88581E130BB94A94) } }, + { { UINT64_C(0xBD225A6924EEF67F), UINT64_C(0x7CFD96140412CEB7), + UINT64_C(0xF6DE167999AC298E), UINT64_C(0xB20FD895ED6C3571), + UINT64_C(0x03C73B7861836C56), UINT64_C(0xEE3C3A16ABA6CB34) }, + { UINT64_C(0x9E8C56674138408A), UINT64_C(0xEC25FCB12DD6EBDF), + UINT64_C(0xC54C33FDDBBDF6E3), UINT64_C(0x93E0913B4A3C9DD4), + UINT64_C(0x66D7D13535EDEED4), UINT64_C(0xD29A36C4453FB66E) } }, + { { UINT64_C(0x7F192F039F1943AF), UINT64_C(0x6488163F4E0B5FB0), + UINT64_C(0x66A45C6953599226), UINT64_C(0x924E2E439AD15A73), + UINT64_C(0x8B553DB742A99D76), UINT64_C(0x4BC6B53B0451F521) }, + { UINT64_C(0xC029B5EF101F8AD6), UINT64_C(0x6A4DA71CC507EED9), + UINT64_C(0x3ADFAEC030BB22F3), UINT64_C(0x81BCAF7AB514F85B), + UINT64_C(0x2E1E6EFF5A7E60D3), UINT64_C(0x5270ABC0AE39D42F) } }, + { { UINT64_C(0x86D56DEB3901F0F8), UINT64_C(0x1D0BC792EED5F650), + UINT64_C(0x1A2DDFD8CA1114A3), UINT64_C(0x94ABF4B1F1DD316D), + UINT64_C(0xF72179E43D9F18EF), UINT64_C(0x52A0921E9AA2CABF) }, + { UINT64_C(0xECDA9E27A7452883), UINT64_C(0x7E90850AAFD771B4), + UINT64_C(0xD40F87EA9CC0465C), UINT64_C(0x8CFCB60A865CDA36), + UINT64_C(0x3DBEC2CC7C650942), UINT64_C(0x071A4EE7E718CA9D) } }, + { { UINT64_C(0x73C0E4FF276AC5F3), UINT64_C(0xE7BA5A6ABDB97EA1), + UINT64_C(0x638CA54EC5808398), UINT64_C(0x8258DC82413855E5), + UINT64_C(0x35DDD2E957F07614), UINT64_C(0xF98DD6921DC13BF9) }, + { UINT64_C(0x3A4C0088F16DCD84), UINT64_C(0xF192EADD833D83F9), + UINT64_C(0x3C26C931A6D61D29), UINT64_C(0x589FDD52DE0AD7A1), + UINT64_C(0x7CD83DD20442D37F), UINT64_C(0x1E47E777403ECBFC) } }, + }, + { + { { UINT64_C(0x2AF8ED8170D4D7BC), UINT64_C(0xABC3E15FB632435C), + UINT64_C(0x4C0E726F78219356), UINT64_C(0x8C1962A1B87254C4), + UINT64_C(0x30796A71C9E7691A), UINT64_C(0xD453EF19A75A12EE) }, + { UINT64_C(0x535F42C213AE4964), UINT64_C(0x86831C3C0DA9586A), + UINT64_C(0xB7F1EF35E39A7A58), UINT64_C(0xA2789AE2D459B91A), + UINT64_C(0xEADBCA7F02FD429D), UINT64_C(0x94F215D465290F57) } }, + { { UINT64_C(0x37ED2BE51CFB79AC), UINT64_C(0x801946F3E7AF84C3), + UINT64_C(0xB061AD8AE77C2F00), UINT64_C(0xE87E1A9A44DE16A8), + UINT64_C(0xDF4F57C87EE490FF), UINT64_C(0x4E793B49005993ED) }, + { UINT64_C(0xE1036387BCCB593F), UINT64_C(0xF174941195E09B80), + UINT64_C(0x59CB20D15AB42F91), UINT64_C(0xA738A18DAC0FF033), + UINT64_C(0xDA501A2E2AC1E7F4), UINT64_C(0x1B67EDA084D8A6E0) } }, + { { UINT64_C(0x1D27EFCE1080E90B), UINT64_C(0xA28152463FD01DC6), + UINT64_C(0x99A3FB83CAA26D18), UINT64_C(0xD27E6133B82BABBE), + UINT64_C(0x61030DFDD783DD60), UINT64_C(0x295A291373C78CB8) }, + { UINT64_C(0x8707A2CF68BE6A92), UINT64_C(0xC9C2FB98EEB3474A), + UINT64_C(0x7C3FD412A2B176B8), UINT64_C(0xD5B52E2FC7202101), + UINT64_C(0x24A63030F0A6D536), UINT64_C(0x05842DE304648EC0) } }, + { { UINT64_C(0x67477CDC30577AC9), UINT64_C(0x51DD9775244F92A8), + UINT64_C(0x31FD60B9917EEC66), UINT64_C(0xACD95BD4D66C5C1D), + UINT64_C(0x2E0551F3BF9508BA), UINT64_C(0x121168E1688CB243) }, + { UINT64_C(0x8C0397404540D230), UINT64_C(0xC4ED3CF6009ECDF9), + UINT64_C(0x191825E144DB62AF), UINT64_C(0x3EE8ACABC4A030DA), + UINT64_C(0x8AB154A894081504), UINT64_C(0x1FE09E4B486C9CD0) } }, + { { UINT64_C(0x512F82F9D113450B), UINT64_C(0x5878C9012DBC9197), + UINT64_C(0xDB87412BE13F355B), UINT64_C(0x0A0A4A9B935B8A5E), + UINT64_C(0x818587BDF25A5351), UINT64_C(0xE807931031E3D9C7) }, + { UINT64_C(0x8B1D47C7611BC1B1), UINT64_C(0x51722B5872A823F2), + UINT64_C(0x6F97EE8A53B36B3E), UINT64_C(0x6E085AAC946DD453), + UINT64_C(0x2EC5057DE65E6533), UINT64_C(0xF82D9D714BB18801) } }, + { { UINT64_C(0xAD81FA938BA5AA8E), UINT64_C(0x723E628E8F7AA69E), + UINT64_C(0x0BA7C2DEEF35937C), UINT64_C(0x83A43EC56DECFB40), + UINT64_C(0xF520F849E60C4F2D), UINT64_C(0x8260E8AE457E3B5E) }, + { UINT64_C(0x7CE874F0BF1D9ED7), UINT64_C(0x5FDE35537F1A5466), + UINT64_C(0x5A63777C0C162DBB), UINT64_C(0x0FD04F8CDAD87289), + UINT64_C(0xCA2D9E0E640761D5), UINT64_C(0x4615CFF838501ADB) } }, + { { UINT64_C(0x9422789B110B4A25), UINT64_C(0x5C26779F70AD8CC1), + UINT64_C(0x4EE6A748EC4F1E14), UINT64_C(0xFB584A0D5C7AB5E0), + UINT64_C(0xED1DCB0BFB21EE66), UINT64_C(0xDBED1F0011C6863C) }, + { UINT64_C(0xD2969269B1B1D187), UINT64_C(0xF7D0C3F2AFE964E6), + UINT64_C(0xE05EE93F12BB865E), UINT64_C(0x1AFB7BEEED79118E), + UINT64_C(0x220AF1380F0FE453), UINT64_C(0x1463AA1A52782AB9) } }, + { { UINT64_C(0x7C139D56D7DBE5F9), UINT64_C(0xFC16E6110B83685B), + UINT64_C(0xFA723C029018463C), UINT64_C(0xC472458C840BF5D7), + UINT64_C(0x4D8093590AF07591), UINT64_C(0x418D88303308DFD9) }, + { UINT64_C(0x9B381E040C365AE3), UINT64_C(0x3780BF33F8190FD1), + UINT64_C(0x45397418DD03E854), UINT64_C(0xA95D030F4E51E491), + UINT64_C(0x87C8C686E3286CEA), UINT64_C(0x01C773BF900B5F83) } }, + { { UINT64_C(0xDABE347578673B02), UINT64_C(0x4F0F25CEF6E7395E), + UINT64_C(0x3117ABB9D181AD45), UINT64_C(0x4B559F88AA13DE0B), + UINT64_C(0xFD8EFE78EA7C9745), UINT64_C(0x080600475DD21682) }, + { UINT64_C(0xC0F5DE4BD4C86FFC), UINT64_C(0x4BB14B1EF21AB6A2), + UINT64_C(0xACB53A6CF50C1D12), UINT64_C(0x46AAC4505CC9162E), + UINT64_C(0x049C51E02DE240B6), UINT64_C(0xBB2DC016E383C3B0) } }, + { { UINT64_C(0xA3C56AD28E438C92), UINT64_C(0x7C43F98FB2CEAF1A), + UINT64_C(0x397C44F7E2150778), UINT64_C(0x48D17AB771A24131), + UINT64_C(0xCC5138631E2ACDA9), UINT64_C(0x2C76A55EF0C9BAC9) }, + { UINT64_C(0x4D74CDCE7EA4BB7B), UINT64_C(0x834BD5BFB1B3C2BA), + UINT64_C(0x46E2911ECCC310A4), UINT64_C(0xD3DE84AA0FC1BF13), + UINT64_C(0x27F2892F80A03AD3), UINT64_C(0x85B476203BD2F08B) } }, + { { UINT64_C(0xAB1CB818567AF533), UINT64_C(0x273B4537BAC2705A), + UINT64_C(0x133066C422C84AB6), UINT64_C(0xC3590DE64830BFC1), + UINT64_C(0xEA2978695E4742D0), UINT64_C(0xF6D8C6944F3164C0) }, + { UINT64_C(0x09E85F3DC1249588), UINT64_C(0x6C2BB05D4EC64DF7), + UINT64_C(0xD267115E8B78000F), UINT64_C(0x07C5D7AEC7E4A316), + UINT64_C(0xCB1187BA4619E5BD), UINT64_C(0x57B1D4EFA43F7EEE) } }, + { { UINT64_C(0x3618891FC8176A96), UINT64_C(0x62C4B084E5808B97), + UINT64_C(0xDE5585464DD95D6E), UINT64_C(0x27A8133E730B2EA4), + UINT64_C(0xE07CEEC36AF318A0), UINT64_C(0x0ACC1286CE24FD2C) }, + { UINT64_C(0x8A48FE4ADD4D307C), UINT64_C(0x71A9BA9C18CDE0DA), + UINT64_C(0x655E2B66D5D79747), UINT64_C(0x409FE856A79AEDC7), + UINT64_C(0xC5A9F244D287E5CF), UINT64_C(0xCCE103844E82EC39) } }, + { { UINT64_C(0x00675BA7F25D364C), UINT64_C(0x7A7F162968D36BDF), + UINT64_C(0x35EC468AA9E23F29), UINT64_C(0xF797AC502D926E6C), + UINT64_C(0x639BA4534B4F4376), UINT64_C(0xD71B430F51FF9519) }, + { UINT64_C(0xB8C439EC2CF5635C), UINT64_C(0x0CE4C8D181980393), + UINT64_C(0x4C5362A964123B15), UINT64_C(0x6E0421E0FFDCF096), + UINT64_C(0x624A855F10D1F914), UINT64_C(0x7D8F3AB7614DCD29) } }, + { { UINT64_C(0xD9219ADAB3493CE0), UINT64_C(0x971B243A52F09AE5), + UINT64_C(0xC16C9BF8E24E3674), UINT64_C(0x026D408DCE68C7CD), + UINT64_C(0xF9B33DD9358209E3), UINT64_C(0x02D0595DF3B2A206) }, + { UINT64_C(0xBF99427160D15640), UINT64_C(0x6DA7A04E15B5466A), + UINT64_C(0x03AA4ED81CADB50D), UINT64_C(0x1548F029129A4253), + UINT64_C(0x41741F7EB842865A), UINT64_C(0x859FE0A4A3F88C98) } }, + { { UINT64_C(0x80DE085A05FD7553), UINT64_C(0x4A4AB91EB897566B), + UINT64_C(0x33BCD4752F1C173F), UINT64_C(0x4E238896C100C013), + UINT64_C(0x1C88500DD614B34B), UINT64_C(0x0401C5F6C3BA9E23) }, + { UINT64_C(0x8E8003C4D0AF0DE5), UINT64_C(0x19B1DFB59D0DCBB9), + UINT64_C(0x4A3640A9EBEF7AB6), UINT64_C(0xEDAFD65B959B15F6), + UINT64_C(0x8092EF7F7FB95821), UINT64_C(0xAB8DD52ECE2E45D1) } }, + { { UINT64_C(0xD1F2D6B8B9CFE6BF), UINT64_C(0x6358810B00073F6F), + UINT64_C(0x5FCE5993D712106E), UINT64_C(0x5EE6B2711C024C91), + UINT64_C(0xD0248FF5453DB663), UINT64_C(0xD6D81CB2ADB835E8) }, + { UINT64_C(0x8696CFECFDFCB4C7), UINT64_C(0x696B7FCB53BC9045), + UINT64_C(0xAB4D3807DDA56981), UINT64_C(0x2F9980521E4B943B), + UINT64_C(0x8AA76ADB166B7F18), UINT64_C(0x6393430152A2D7ED) } }, + }, + { + { { UINT64_C(0xBBCCCE39A368EFF6), UINT64_C(0xD8CAABDF8CEB5C43), + UINT64_C(0x9EAE35A5D2252FDA), UINT64_C(0xA8F4F20954E7DD49), + UINT64_C(0xA56D72A6295100FD), UINT64_C(0x20FC1FE856767727) }, + { UINT64_C(0xBF60B2480BBAA5AB), UINT64_C(0xA4F3CE5A313911F2), + UINT64_C(0xC2A67AD4B93DAB9C), UINT64_C(0x18CD0ED022D71F39), + UINT64_C(0x04380C425F304DB2), UINT64_C(0x26420CBB6729C821) } }, + { { UINT64_C(0x26BD07D6BDFBCAE8), UINT64_C(0x10B5173FDF01A80A), + UINT64_C(0xD831C5466798B96C), UINT64_C(0x1D6B41081D3F3859), + UINT64_C(0x501D38EC991B9EC7), UINT64_C(0x26319283D78431A9) }, + { UINT64_C(0x8B85BAF7118B343C), UINT64_C(0x4696CDDD58DEF7D0), + UINT64_C(0xEFC7C1107ACDCF58), UINT64_C(0xD9AF415C848D5842), + UINT64_C(0x6B5A06BC0AC7FDAC), UINT64_C(0x7D623E0DA344319B) } }, + { { UINT64_C(0x4C0D78060C9D3547), UINT64_C(0x993F048DCF2AED47), + UINT64_C(0x5217C453E4B57E22), UINT64_C(0xB4669E35F4172B28), + UINT64_C(0x509A3CD049F999F8), UINT64_C(0xD19F863287C69D41) }, + { UINT64_C(0xE14D01E84C8FDED0), UINT64_C(0x342880FDEAFD9E1C), + UINT64_C(0x0E17BFF270DC2BF0), UINT64_C(0x46560B7BC0186400), + UINT64_C(0xE28C7B9C49A4DD34), UINT64_C(0x182119160F325D06) } }, + { { UINT64_C(0x46D70888D7E02E18), UINT64_C(0x7C806954D9F11FD9), + UINT64_C(0xE4948FCA4FBEA271), UINT64_C(0x7D6C7765BD80A9DF), + UINT64_C(0x1B470EA6F3871C71), UINT64_C(0xD62DE2448330A570) }, + { UINT64_C(0xDAECDDC1C659C3A7), UINT64_C(0x8621E513077F7AFC), + UINT64_C(0x56C7CD84CAEEEF13), UINT64_C(0xC60C910FC685A356), + UINT64_C(0xE68BC5C59DD93DDC), UINT64_C(0xD904E89FFEB64895) } }, + { { UINT64_C(0x75D874FB8BA7917A), UINT64_C(0x18FA7F53FD043BD4), + UINT64_C(0x212A0AD71FC3979E), UINT64_C(0x5703A7D95D6EAC0E), + UINT64_C(0x222F7188017DEAD5), UINT64_C(0x1EC687B70F6C1817) }, + { UINT64_C(0x23412FC3238BACB6), UINT64_C(0xB85D70E954CED154), + UINT64_C(0xD4E06722BDA674D0), UINT64_C(0x3EA5F17836F5A0C2), + UINT64_C(0x7E7D79CFF5C6D2CA), UINT64_C(0x1FFF94643DBB3C73) } }, + { { UINT64_C(0x916E19D0F163E4A8), UINT64_C(0x1E6740E71489DF17), + UINT64_C(0x1EAF9723339F3A47), UINT64_C(0x22F0ED1A124B8DAD), + UINT64_C(0x39C9166C49C3DD04), UINT64_C(0x628E7FD4CE1E9ACC) }, + { UINT64_C(0x124DDF2740031676), UINT64_C(0x002569391EDDB9BE), + UINT64_C(0xD39E25E7D360B0DA), UINT64_C(0x6E3015A84AA6C4C9), + UINT64_C(0xC6A2F643623EDA09), UINT64_C(0xBEFF2D1250AA99FB) } }, + { { UINT64_C(0x1FEEF7CE93EE8089), UINT64_C(0xC6B180BC252DD7BD), + UINT64_C(0xA16FB20B1788F051), UINT64_C(0xD86FD392E046ED39), + UINT64_C(0xDA0A36119378CE1D), UINT64_C(0x121EF3E7A5F7A61D) }, + { UINT64_C(0x94D2206192D13CAE), UINT64_C(0x5076046A77C72E08), + UINT64_C(0xF18BC2337D2308B9), UINT64_C(0x004DB3C517F977B1), + UINT64_C(0xD05AE3990471C11D), UINT64_C(0x86A2A55785CD1726) } }, + { { UINT64_C(0xB8D9B28672107804), UINT64_C(0xB5A7C4133303B79B), + UINT64_C(0x927EEF785FA37DED), UINT64_C(0xA1C5CF1EAD67DABA), + UINT64_C(0xAA5E3FB27360E7C7), UINT64_C(0x8354E61A0A0C0993) }, + { UINT64_C(0x2EC73AF97F5458CC), UINT64_C(0xDE4CB48848474325), + UINT64_C(0x2DD134C77209BC69), UINT64_C(0xB70C5567451A2ABE), + UINT64_C(0x2CD1B2008E293018), UINT64_C(0x15F8DA7AD33C0D72) } }, + { { UINT64_C(0x5DC386D0A8790657), UINT64_C(0xA4FDF676BC4D88BB), + UINT64_C(0x1B21F38F48BC6C49), UINT64_C(0xCDCC7FAA543A7003), + UINT64_C(0xEA97E7AA8C9CF72C), UINT64_C(0xA6B883F450D938A8) }, + { UINT64_C(0x51936F3AA3A10F27), UINT64_C(0x0170785FDECC76BF), + UINT64_C(0x7539ECE1908C578A), UINT64_C(0x5D9C8A8E0F3E8C25), + UINT64_C(0x8681B43B9E4717A7), UINT64_C(0x94F42507A9D83E39) } }, + { { UINT64_C(0xBBE11CA8A55ADDE7), UINT64_C(0x39E6F5CF3BC0896B), + UINT64_C(0x1447314E1D2D8D94), UINT64_C(0x45B481255B012F8A), + UINT64_C(0x41AD23FA08AD5283), UINT64_C(0x837243E241D13774) }, + { UINT64_C(0x1FC0BD9DBADCAA46), UINT64_C(0x8DF164ED26E84CAE), + UINT64_C(0x8FF70EC041017176), UINT64_C(0x23AD4BCE5C848BA7), + UINT64_C(0x89246FDE97A19CBB), UINT64_C(0xA5EF987B78397991) } }, + { { UINT64_C(0x111AF1B74757964D), UINT64_C(0x1D25D351DDBBF258), + UINT64_C(0x4161E7767D2B06D6), UINT64_C(0x6EFD26911CAC0C5B), + UINT64_C(0x633B95DB211BFAEB), UINT64_C(0x9BEDFA5AE2BDF701) }, + { UINT64_C(0xADAC2B0B73E099C8), UINT64_C(0x436F0023BFB16BFF), + UINT64_C(0xB91B100230F55854), UINT64_C(0xAF6A2097F4C6C8B7), + UINT64_C(0x3FF65CED3AD7B3D9), UINT64_C(0x6FA2626F330E56DF) } }, + { { UINT64_C(0x3D28BF2DFFCCFD07), UINT64_C(0x0514F6FFD989603B), + UINT64_C(0xB95196295514787A), UINT64_C(0xA1848121C3DB4E9C), + UINT64_C(0x47FE2E392A3D4595), UINT64_C(0x506F5D8211B73ED4) }, + { UINT64_C(0xA2257AE7A600D8BB), UINT64_C(0xD659DBD10F9F122C), + UINT64_C(0xDB0FDC6764DF160F), UINT64_C(0xFF3793397CB19690), + UINT64_C(0xDF4366B898E72EC1), UINT64_C(0x97E72BECDF437EB8) } }, + { { UINT64_C(0x81DCEA271C81E5D9), UINT64_C(0x7E1B6CDA6717FC49), + UINT64_C(0xAA36B3B511EAE80D), UINT64_C(0x1306687C3CD7CBB3), + UINT64_C(0xED670235C4E89064), UINT64_C(0x9D3B000958A94760) }, + { UINT64_C(0x5A64E158E6A6333C), UINT64_C(0x1A8B4A3649453203), + UINT64_C(0xF1CAD7241F77CC21), UINT64_C(0x693EBB4B70518EF7), + UINT64_C(0xFB47BD810F39C91A), UINT64_C(0xCFE63DA2FA4BC64B) } }, + { { UINT64_C(0x82C1C684EAA66108), UINT64_C(0xE32262184CFE79FC), + UINT64_C(0x3F28B72B849C720E), UINT64_C(0x137FB3558FEE1CA8), + UINT64_C(0x4D18A9CDE4F90C4E), UINT64_C(0xC0344227CC3E46FA) }, + { UINT64_C(0x4FD5C08E79CDA392), UINT64_C(0x65DB20DB8ADC87B5), + UINT64_C(0x86F95D5B916C1B84), UINT64_C(0x7EDA387117BB2B7C), + UINT64_C(0x18CCF7E7669A533B), UINT64_C(0x5E92421CECAD0E06) } }, + { { UINT64_C(0x26063E124174B08B), UINT64_C(0xE621D9BE70DE8E4D), + UINT64_C(0xAEA0FD0F5ECDF350), UINT64_C(0x0D9F69E49C20E5C9), + UINT64_C(0xD3DADEB90BBE2918), UINT64_C(0xD7B9B5DB58AA2F71) }, + { UINT64_C(0x7A971DD73364CAF8), UINT64_C(0x702616A3C25D4BE4), + UINT64_C(0xA30F0FA1A9E30071), UINT64_C(0x98AB24385573BC69), + UINT64_C(0xCBC63CDF6FEC2E22), UINT64_C(0x965F90EDCC901B9B) } }, + { { UINT64_C(0xD53B592D71E15BB3), UINT64_C(0x1F03C0E98820E0D0), + UINT64_C(0xCE93947D3CCCB726), UINT64_C(0x2790FEE01D547590), + UINT64_C(0x4401D847C59CDD7A), UINT64_C(0x72D69120A926DD9D) }, + { UINT64_C(0x38B8F21D4229F289), UINT64_C(0x9F412E407FE978AF), + UINT64_C(0xAE07901BCDB59AF1), UINT64_C(0x1E6BE5EBD1D4715E), + UINT64_C(0x3715BD8B18C96BEF), UINT64_C(0x4B71F6E6E11B3798) } }, + }, + { + { { UINT64_C(0x11A8FDE5F0CE2DF4), UINT64_C(0xBC70CA3EFA8D26DF), + UINT64_C(0x6818C275C74DFE82), UINT64_C(0x2B0294AC38373A50), + UINT64_C(0x584C4061E8E5F88F), UINT64_C(0x1C05C1CA7342383A) }, + { UINT64_C(0x263895B3911430EC), UINT64_C(0xEF9B0032A5171453), + UINT64_C(0x144359DA84DA7F0C), UINT64_C(0x76E3095A924A09F2), + UINT64_C(0x612986E3D69AD835), UINT64_C(0x70E03ADA392122AF) } }, + { { UINT64_C(0xFEB707EE67AAD17B), UINT64_C(0xBB21B28783042995), + UINT64_C(0x26DE16459A0D32BA), UINT64_C(0x9A2FF38A1FFB9266), + UINT64_C(0x4E5AD96D8F578B4A), UINT64_C(0x26CC0655883E7443) }, + { UINT64_C(0x1D8EECAB2EE9367A), UINT64_C(0x42B84337881DE2F8), + UINT64_C(0xE49B2FAED758AE41), UINT64_C(0x6A9A22904A85D867), + UINT64_C(0x2FB89DCEE68CBA86), UINT64_C(0xBC2526357F09A982) } }, + { { UINT64_C(0xADC794368C61AAAC), UINT64_C(0x24C7FD135E926563), + UINT64_C(0xEF9FAAA40406C129), UINT64_C(0xF4E6388C8B658D3C), + UINT64_C(0x7262BEB41E435BAF), UINT64_C(0x3BF622CCFDAEAC99) }, + { UINT64_C(0xD359F7D84E1AEDDC), UINT64_C(0x05DC4F8CD78C17B7), + UINT64_C(0xB18CF03229498BA5), UINT64_C(0xC67388CA85BF35AD), + UINT64_C(0x8A7A6AA262AA4BC8), UINT64_C(0x0B8F458E72F4627A) } }, + { { UINT64_C(0x3FB812EEC68E4488), UINT64_C(0x53C5EAA460EF7281), + UINT64_C(0xE57241838FBEFBE4), UINT64_C(0x2B7D49F4A4B24A05), + UINT64_C(0x23B138D0710C0A43), UINT64_C(0x16A5B4C1A85EC1DB) }, + { UINT64_C(0x7CC1F3D7305FEB02), UINT64_C(0x52F7947D5B6C1B54), + UINT64_C(0x1BDA23128F56981C), UINT64_C(0x68663EAEB4080A01), + UINT64_C(0x8DD7BA7E9F999B7F), UINT64_C(0xD8768D19B686580C) } }, + { { UINT64_C(0xBCD0E0AD7AFDDA94), UINT64_C(0x95A0DBBE34A30687), + UINT64_C(0xBBE3C3DF8C5E2665), UINT64_C(0x742BECD8EBF2BC16), + UINT64_C(0x300CEB483FA163A6), UINT64_C(0x0C5D02EE4663354B) }, + { UINT64_C(0xE4FB9AD6B5E606A4), UINT64_C(0x93F507B8CF49FF95), + UINT64_C(0x9406A90C585C193B), UINT64_C(0xAD1440C14ECF9517), + UINT64_C(0x184CB4759CEA53F1), UINT64_C(0x6855C4748EF11302) } }, + { { UINT64_C(0x00ECB523EDCAFA52), UINT64_C(0x0DA0AE0E086F69D3), + UINT64_C(0xC384DE15C242F347), UINT64_C(0xFB050E6E848C12B7), + UINT64_C(0x22F6765464E015CE), UINT64_C(0xCBDC2A487CA122F2) }, + { UINT64_C(0xA940D973445FB02C), UINT64_C(0x00F31E783767D89D), + UINT64_C(0x2B65A237613DABDD), UINT64_C(0x2BE0AB05C875AE09), + UINT64_C(0xB22E54FDBA204F8E), UINT64_C(0x65E2029D0F7687B9) } }, + { { UINT64_C(0xFFD825381855A71C), UINT64_C(0x26A330B3438BD8D8), + UINT64_C(0x89628311F9D8C5F9), UINT64_C(0x8D5FB9CF953738A0), + UINT64_C(0xCB7159C9EDFCD4E5), UINT64_C(0xD64E52302064C7C2) }, + { UINT64_C(0xF858ED80689F3CFE), UINT64_C(0x4830E30956128B67), + UINT64_C(0x2E1692DAE0E90688), UINT64_C(0xAB818913CA9CC232), + UINT64_C(0xE2E30C23A5D229A6), UINT64_C(0xA544E8B10E740E23) } }, + { { UINT64_C(0x1C15E569DC61E6CC), UINT64_C(0x8FD7296758FC7800), + UINT64_C(0xE61E7DB737A9DFC5), UINT64_C(0x3F34A9C65AFD7822), + UINT64_C(0x0A11274219E80773), UINT64_C(0xA353460C4760FC58) }, + { UINT64_C(0x2FB7DEEBB3124C71), UINT64_C(0x484636272D4009CC), + UINT64_C(0x399D1933C3A10370), UINT64_C(0x7EB1945054388DBD), + UINT64_C(0x8ECCE6397C2A006A), UINT64_C(0x3D565DAF55C932A0) } }, + { { UINT64_C(0xCEF57A9FD9ADAE53), UINT64_C(0xE2EB27D7F83FD8CD), + UINT64_C(0x4AC8F7199BBD2DDE), UINT64_C(0x604283AAE91ABFB7), + UINT64_C(0xB6A4E11534799F87), UINT64_C(0x2B253224E4C2A8F3) }, + { UINT64_C(0xC34F8B92C8782294), UINT64_C(0xC74D697DFCC2CB6B), + UINT64_C(0xD990411BC2C84C46), UINT64_C(0x2807B5C631EA4955), + UINT64_C(0x14AE2B93B9EB27F5), UINT64_C(0xF0AE96A76163EDFA) } }, + { { UINT64_C(0xA7BDCBB442DB7180), UINT64_C(0xC9FAA41FEDCA752F), + UINT64_C(0x147F91B4E820F401), UINT64_C(0x1E6CEF86F5F2645F), + UINT64_C(0xB4AB4D7F31FE711D), UINT64_C(0xCE68FB3C743EF882) }, + { UINT64_C(0xB9D7D6823EF2FCFF), UINT64_C(0xF6893811020DCAFD), + UINT64_C(0x30D9A50CBF81E760), UINT64_C(0x7F247D06B9B87228), + UINT64_C(0x143D4FEC5F40CFC0), UINT64_C(0x21D78D73329B2A88) } }, + { { UINT64_C(0x06B3FF8AED3F2055), UINT64_C(0x50482C77522BE214), + UINT64_C(0x8DF69CD8DDF54620), UINT64_C(0x6D1DB204F78A1165), + UINT64_C(0x459AE4A29AFE6BF2), UINT64_C(0xC23A9FFD24AC871E) }, + { UINT64_C(0xB7FD22E389E85D81), UINT64_C(0x297F1F6B122E9978), + UINT64_C(0xAB283D66144BE1CE), UINT64_C(0xC1F90AC2C00C614E), + UINT64_C(0x5465576E3224CD09), UINT64_C(0x8E8D910D441B6059) } }, + { { UINT64_C(0xF73A060AAAA228BC), UINT64_C(0xCF1B078356EFF87D), + UINT64_C(0x11EF17C0A54C9133), UINT64_C(0x9E476B1576A4DAA5), + UINT64_C(0x5624FEAC8018FB92), UINT64_C(0x9826A0FCCFEEC1B9) }, + { UINT64_C(0xB732F7FE2DFE2046), UINT64_C(0x9260BD9F3B40DA6A), + UINT64_C(0xCC9F908F4F231773), UINT64_C(0x4827FEB9DAFC0D55), + UINT64_C(0x07D32E85538ACE95), UINT64_C(0xAD9F897CB8EDAF37) } }, + { { UINT64_C(0x2F75B82FE3415498), UINT64_C(0xF99CAC5FF1015F30), + UINT64_C(0x766408247D7F25DE), UINT64_C(0x714BC9CDEE74C047), + UINT64_C(0x70F847BF07448879), UINT64_C(0xA14481DE072165C0) }, + { UINT64_C(0x9BFA59E3DB1140A8), UINT64_C(0x7B9C7FF0FCD13502), + UINT64_C(0xF4D7538E68459ABF), UINT64_C(0xED93A791C8FC6AD2), + UINT64_C(0xA8BBE2A8B51BD9B2), UINT64_C(0x084B5A279FB34008) } }, + { { UINT64_C(0xB3BB9545EB138C84), UINT64_C(0x59C3489C3FC88BFD), + UINT64_C(0x3A97FF6385F53EC7), UINT64_C(0x40FDF5A60AA69C3D), + UINT64_C(0x0E8CCEC753D19668), UINT64_C(0x0AA72EF933FAA661) }, + { UINT64_C(0xF5C5A6CF9B1E684B), UINT64_C(0x630F937131A22EA1), + UINT64_C(0x06B2AAC2AC60F7EA), UINT64_C(0xB181CAE25BC37D80), + UINT64_C(0x4601A929247B13EA), UINT64_C(0x8A71C3865F739797) } }, + { { UINT64_C(0x545387B3AB134786), UINT64_C(0x3179BB061599B64A), + UINT64_C(0xB0A6198607593574), UINT64_C(0xC7E39B2163FA7C3B), + UINT64_C(0xA1173F8691585D13), UINT64_C(0x09D5CC8ECB9525CD) }, + { UINT64_C(0xAAD44FFD8F3A3451), UINT64_C(0x702B04F225820CC5), + UINT64_C(0xE90CAC491CB66C17), UINT64_C(0x40F6B547EE161DC4), + UINT64_C(0xC08BB8B41BA4AC4E), UINT64_C(0x7DC064FBAE5A6BC1) } }, + { { UINT64_C(0x90A5E8719D76DDC7), UINT64_C(0x39DC8FAEEDFC8E2E), + UINT64_C(0x98467A235B079C62), UINT64_C(0xE25E378505450C98), + UINT64_C(0x2FE23A4D96140083), UINT64_C(0x65CE3B9AE9900312) }, + { UINT64_C(0x1D87D0886B72B5D9), UINT64_C(0x72F53220FD9AFC82), + UINT64_C(0xC63C7C159E1F71FA), UINT64_C(0x90DF26EA8D449637), + UINT64_C(0x97089F40C1C2B215), UINT64_C(0x83AF266442317FAA) } }, + }, + { + { { UINT64_C(0xFA2DB51A8D688E31), UINT64_C(0x225B696CA09C88D4), + UINT64_C(0x9F88AF1D6059171F), UINT64_C(0x1C5FEA5E782A0993), + UINT64_C(0xE0FB15884EC710D3), UINT64_C(0xFAF372E5D32CE365) }, + { UINT64_C(0xD9F896AB26506F45), UINT64_C(0x8D3503388373C724), + UINT64_C(0x1B76992DCA6E7342), UINT64_C(0x76338FCA6FD0C08B), + UINT64_C(0xC3EA4C65A00F5C23), UINT64_C(0xDFAB29B3B316B35B) } }, + { { UINT64_C(0x84E5541F483AEBF9), UINT64_C(0x8ADFF7DC49165772), + UINT64_C(0xE0A43AD69BEAAD3C), UINT64_C(0x97DD1820F51C2714), + UINT64_C(0xAC2B4CB457EA5B0C), UINT64_C(0x87DBD011D11767CA) }, + { UINT64_C(0x18CCF36CBFC7957A), UINT64_C(0xD4A088411BC79227), + UINT64_C(0x9811CE43D8D292A8), UINT64_C(0x72C5FC68D58C4EE7), + UINT64_C(0x5BC0F0BED35C65A7), UINT64_C(0x0B446DBCCBBF9669) } }, + { { UINT64_C(0x7EBA3DA69CEE9BCE), UINT64_C(0x3E2C1248D5377750), + UINT64_C(0x8C917D982B93D8B2), UINT64_C(0xCA8FC6AC7CAD1F75), + UINT64_C(0x5F581F19A0FF150A), UINT64_C(0x872CC14AE08327FA) }, + { UINT64_C(0xC774F187E9333188), UINT64_C(0x528ED4AC497AF7E8), + UINT64_C(0xCE036E9B8AD72B10), UINT64_C(0x463F9EBB917986CF), + UINT64_C(0xBE5163281325CF9B), UINT64_C(0xD28D5C50DD7E5FEA) } }, + { { UINT64_C(0x714C1D1BDD58BBE3), UINT64_C(0x85BA01AE039AFD0F), + UINT64_C(0x7F23EA3A6951AC80), UINT64_C(0x5C599290AC00C837), + UINT64_C(0xF6EFA2B3BF24CC1B), UINT64_C(0x393D8E421E84462B) }, + { UINT64_C(0x9BDA627DF8B89453), UINT64_C(0xE66FFF2EB23E0D1B), + UINT64_C(0xD1EE7089C3B94EC2), UINT64_C(0xF75DBA6E3031699A), + UINT64_C(0x8FF75F79242B2453), UINT64_C(0xE721EDEB289BFED4) } }, + { { UINT64_C(0x083215A1C1390FA8), UINT64_C(0x901D686A6DCE8CE0), + UINT64_C(0x4AB1BA62837073FF), UINT64_C(0x10C287AA34BEABA5), + UINT64_C(0xB4931AF446985239), UINT64_C(0x07639899B053C4DC) }, + { UINT64_C(0x29E7F44DE721EECD), UINT64_C(0x6581718257B3FF48), + UINT64_C(0x198542E25054E2E0), UINT64_C(0x923C9E1584616DE8), + UINT64_C(0x2A9C15E1AD465BB9), UINT64_C(0xD8D4EFC716319245) } }, + { { UINT64_C(0x72DC79439961A674), UINT64_C(0x839A0A52A0E13668), + UINT64_C(0xD7A53FA9334945EA), UINT64_C(0xDB21DB77E7AA25DB), + UINT64_C(0xB6675A7D66E96DA3), UINT64_C(0x2C31C406E66F33C0) }, + { UINT64_C(0x45020B626EC7B9CB), UINT64_C(0xFF46E9CD0391F267), + UINT64_C(0x7DABD7440FA2F221), UINT64_C(0x9A32364B9D4A2A3E), + UINT64_C(0xF0F84AE852D2E47A), UINT64_C(0xD0B872BB888F488A) } }, + { { UINT64_C(0x531E4CEFC9790EEF), UINT64_C(0xF7B5735E2B8D1A58), + UINT64_C(0xB8882F1EEF568511), UINT64_C(0xAFB08D1C86A86DB3), + UINT64_C(0x88CB9DF2F54DE8C7), UINT64_C(0xA44234F19A683282) }, + { UINT64_C(0xBC1B3D3AA6E9AB2E), UINT64_C(0xEFA071FB87FC99EE), + UINT64_C(0xFA3C737DA102DC0F), UINT64_C(0xDF3248A6D6A0CBD2), + UINT64_C(0x6E62A4FF1ECC1BF4), UINT64_C(0xF718F940C8F1BC17) } }, + { { UINT64_C(0x2C8B0AAD4F63F026), UINT64_C(0x2AFF623850B253CC), + UINT64_C(0xCAB3E94210C4D122), UINT64_C(0x52B59F0407CD2816), + UINT64_C(0x22322803982C41FC), UINT64_C(0x38844E668CF50B19) }, + { UINT64_C(0x42A959F7BE3264CD), UINT64_C(0xBDDC24BD6C983524), + UINT64_C(0xA489EB0C462B8640), UINT64_C(0xB7C0509298029BE7), + UINT64_C(0xD5546B5FA1ADDC64), UINT64_C(0xE7CAC1FCA0C655AF) } }, + { { UINT64_C(0x1454719847636F97), UINT64_C(0x6FA67481EBCDCCFF), + UINT64_C(0xC164872F395D3258), UINT64_C(0xB8CECAFEEE6ACDBC), + UINT64_C(0x3FBFE5F3A933F180), UINT64_C(0xEC20CAC2898C3B1E) }, + { UINT64_C(0x6A031BEE87DA73F9), UINT64_C(0xD1E667D15C5AF46E), + UINT64_C(0xCB3DC1681DC6EEF9), UINT64_C(0x2DD1BD9433D310C0), + UINT64_C(0x0F78D4939207E438), UINT64_C(0xC233D544A99C0E75) } }, + { { UINT64_C(0x228F19F19E2A0113), UINT64_C(0x58495BE50E1A5D37), + UINT64_C(0x97E08F6938D7F364), UINT64_C(0x1EC3BA3E510759B0), + UINT64_C(0x3682F19AE03CD40D), UINT64_C(0xC87745D8F9E16D68) }, + { UINT64_C(0xFD527AB509A642EA), UINT64_C(0x6308EEBDF9C81F27), + UINT64_C(0xFA9F666C550C5D68), UINT64_C(0xDEBA436F584AB153), + UINT64_C(0x1D4861D35B63E939), UINT64_C(0x073BED9BC9850221) } }, + { { UINT64_C(0x802BCCF08B171246), UINT64_C(0xFFF7D15A733B072F), + UINT64_C(0xEA3862664CBFA4EF), UINT64_C(0x9E5B5073D635946B), + UINT64_C(0x16E9A979FA81BE95), UINT64_C(0x41E8716EB14F701F) }, + { UINT64_C(0x25782E0F101A6719), UINT64_C(0x442C4875C9D66959), + UINT64_C(0x52D845D92B85D153), UINT64_C(0xFF9251382E831117), + UINT64_C(0x01B700CC8E02434B), UINT64_C(0xD2DB7F8EEC0BAE3E) } }, + { { UINT64_C(0x1B225300966A4872), UINT64_C(0x40C149BE566F537B), + UINT64_C(0x3335F4D2CB680021), UINT64_C(0x773D0263778E5F5F), + UINT64_C(0x1D9B7602666FA9ED), UINT64_C(0x52490A102E6200CF) }, + { UINT64_C(0x8434C7DD961F290B), UINT64_C(0x773AC15664456446), + UINT64_C(0x5E2BB78947B712BB), UINT64_C(0xFD3BCBFDBE0974AD), + UINT64_C(0x71AE9351791AD5D8), UINT64_C(0x1EE738BA6F4E1400) } }, + { { UINT64_C(0x2FA428AB0BE8E26E), UINT64_C(0xFEFF0600BB4CF9FC), + UINT64_C(0x76F25CA9B2EA5FB0), UINT64_C(0xAB7FECF06835C5F4), + UINT64_C(0x649D077219D5F328), UINT64_C(0xABE7B895ACBCB12E) }, + { UINT64_C(0xF2D1031AD69B1EA8), UINT64_C(0x46065D5DC60B0BBB), + UINT64_C(0xB0908DC185D798FF), UINT64_C(0x4E2420F0D2C9B18A), + UINT64_C(0x6B3A9BDDD30432A2), UINT64_C(0x501C3383C9B134AD) } }, + { { UINT64_C(0x608F096798A21284), UINT64_C(0x5361BE86059CCEDE), + UINT64_C(0x3A40655CAFD87EF7), UINT64_C(0x03CF311759083AA2), + UINT64_C(0x57DB5F61B6C366D9), UINT64_C(0x29DC275B6DD0D232) }, + { UINT64_C(0xBDAB24DD8FA67501), UINT64_C(0x5928F77565D08C37), + UINT64_C(0x9448A856645D466A), UINT64_C(0x6E6B5E2EC0E927A5), + UINT64_C(0xE884D546E80C6871), UINT64_C(0x10C881C953A9A851) } }, + { { UINT64_C(0x355053749B627AA5), UINT64_C(0xE7CA1B577976677B), + UINT64_C(0x812397124976CE17), UINT64_C(0x96E9080B96DA31B9), + UINT64_C(0x458254ABCC64AA1F), UINT64_C(0xFEFF682148E674C9) }, + { UINT64_C(0x8772F37A021F1488), UINT64_C(0x2E274E18AB56345C), + UINT64_C(0x7C7BE61C29823B76), UINT64_C(0x275DB7B29EEFB39E), + UINT64_C(0x83B10ED4BF5CBCEF), UINT64_C(0x40D7F5B4518E5183) } }, + { { UINT64_C(0x315CCC01F960B41B), UINT64_C(0x90B417C91D99E722), + UINT64_C(0x84AFAA0D013463E0), UINT64_C(0xF133C5D813E6D9E1), + UINT64_C(0xD95C6ADC525B7430), UINT64_C(0x082C61AD7A25106A) }, + { UINT64_C(0xABC1966DBA1CE179), UINT64_C(0xE0578B77A5DB529A), + UINT64_C(0x10988C05EC84107D), UINT64_C(0xFCADE5D71B207F83), + UINT64_C(0x0BEB6FDBC5BA83DB), UINT64_C(0x1C39B86D57537E34) } }, + }, + { + { { UINT64_C(0x5B0B5D692A7AECED), UINT64_C(0x4C03450C01DC545F), + UINT64_C(0x72AD0A4A404A3458), UINT64_C(0x1DE8E2559F467B60), + UINT64_C(0xA4B3570590634809), UINT64_C(0x76F30205706F0178) }, + { UINT64_C(0x588D21AB4454F0E5), UINT64_C(0xD22DF54964134928), + UINT64_C(0xF4E7E73D241BCD90), UINT64_C(0xB8D8A1D22FACC7CC), + UINT64_C(0x483C35A71D25D2A0), UINT64_C(0x7F8D25451EF9F608) } }, + { { UINT64_C(0xCB51F03954EBC926), UINT64_C(0xE235D356B8D4A7BB), + UINT64_C(0x93C8FAFAB41FE1A6), UINT64_C(0x6297701DA719F254), + UINT64_C(0x6E9165BC644F5CDE), UINT64_C(0x6506329D0C11C542) }, + { UINT64_C(0xA2564809A92B4250), UINT64_C(0x0E9AC173889C2E3E), + UINT64_C(0x286A592622B1D1BE), UINT64_C(0x86A3D7526ECDD041), + UINT64_C(0x4B867E0A649F9524), UINT64_C(0x1FE7D95A0629CB0F) } }, + { { UINT64_C(0xF4F66843CA5BAF54), UINT64_C(0x298DB357EFE7DB78), + UINT64_C(0xF607E86E7365712F), UINT64_C(0xD58822988A822BC0), + UINT64_C(0x2CFBD63AC61299B3), UINT64_C(0x6F713D9B67167B1A) }, + { UINT64_C(0x750F673FDE0B077A), UINT64_C(0x07482708EE2178DA), + UINT64_C(0x5E6D5BD169123C75), UINT64_C(0x6A93D1B6EAB99B37), + UINT64_C(0x6EF4F7E68CAEC6A3), UINT64_C(0x7BE411D6CF3ED818) } }, + { { UINT64_C(0xF92B307363A0A7D2), UINT64_C(0x32DA431C881DC8CF), + UINT64_C(0xE51BD5EDC578E3A3), UINT64_C(0xEFDA70D29587FA22), + UINT64_C(0xCFEC17089B2EBA85), UINT64_C(0x6AB51A4BAF7BA530) }, + { UINT64_C(0x5AC155AE98174812), UINT64_C(0xCAF07A71CCB076E3), + UINT64_C(0x280E86C2C38718A7), UINT64_C(0x9D12DE73D63745B7), + UINT64_C(0x0E8EA855BF8A79AA), UINT64_C(0x5EB2BED8BD705BF7) } }, + { { UINT64_C(0x33FE9578AE16DE53), UINT64_C(0x3AE85EB510BEC902), + UINT64_C(0xC4F4965844AF850E), UINT64_C(0x6EA222B3087DD658), + UINT64_C(0xB255E6FDA51F1447), UINT64_C(0xB35E4997117E3F48) }, + { UINT64_C(0x562E813B05616CA1), UINT64_C(0xDF5925D68A61E156), + UINT64_C(0xB2FA8125571C728B), UINT64_C(0x00864805A2F2D1CF), + UINT64_C(0x2DC26F411BCCB6FF), UINT64_C(0xEBD5E09363AE37DD) } }, + { { UINT64_C(0xD2D68BB30A285611), UINT64_C(0x3EAE7596DC8378F2), + UINT64_C(0x2DC6CCC66CC688A3), UINT64_C(0xC45E5713011F5DFB), + UINT64_C(0x6B9C4F6C62D34487), UINT64_C(0xFAD6F0771FC65551) }, + { UINT64_C(0x5E3266E062B23B52), UINT64_C(0xF1DAF319E98F4715), + UINT64_C(0x064D12EA3ED0AE83), UINT64_C(0x5CCF9326564125CB), + UINT64_C(0x09057022C63C1E9F), UINT64_C(0x7171972CDC9B5D2E) } }, + { { UINT64_C(0x2364FD9AEABD21B2), UINT64_C(0x3CE5F4BB9174AD6D), + UINT64_C(0xA4D6D5D0B38688C0), UINT64_C(0x2292A2D26D87FD7D), + UINT64_C(0x2A7D1B534CA02E54), UINT64_C(0x7BEE6E7EB4185715) }, + { UINT64_C(0x73E546098FC63ACD), UINT64_C(0xF4D93A124064E09D), + UINT64_C(0xD20E157A2B92DAA5), UINT64_C(0x90D125DBC4B81A00), + UINT64_C(0xCB951C9E7682DE13), UINT64_C(0x1ABE58F427987545) } }, + { { UINT64_C(0x6D35164030C70C8D), UINT64_C(0x8047D811CE2361B8), + UINT64_C(0x3F8B3D4FDF8E2C81), UINT64_C(0x5D59547733FA1F6C), + UINT64_C(0xF769FE5AE29B8A91), UINT64_C(0x26F0E606D737B2A2) }, + { UINT64_C(0x70CBFA5DB8B31C6A), UINT64_C(0x0F883B4A863D3AEA), + UINT64_C(0x156A4479E386AE2F), UINT64_C(0xA17A2FCDADE8A684), + UINT64_C(0x78BDF958E2A7E335), UINT64_C(0xD1B4E6733B9E3041) } }, + { { UINT64_C(0x1EAF48EC449A6D11), UINT64_C(0x6B94B8E46D2FA7B9), + UINT64_C(0x1D75D269728E4C1B), UINT64_C(0x91123819DD304E2C), + UINT64_C(0x0B34CAE388804F4B), UINT64_C(0x2BA192FBC5495E9A) }, + { UINT64_C(0xC93FF6EFFF4D24BF), UINT64_C(0xF8C2C0B00342BA78), + UINT64_C(0x8041F769831EB94C), UINT64_C(0x353100747782985E), + UINT64_C(0xC755320B3AF84E83), UINT64_C(0x384B6D266F497E7F) } }, + { { UINT64_C(0xEF92CD5917E6BD17), UINT64_C(0xA087305BA426965C), + UINT64_C(0x13895CE7AC47F773), UINT64_C(0xB85F2A9FE0BB2867), + UINT64_C(0x2926E6AA7CD7C58E), UINT64_C(0xE544EDA6450459C5) }, + { UINT64_C(0x73DBC351B90A9849), UINT64_C(0x961183F6848EBE86), + UINT64_C(0xC45BB21080534712), UINT64_C(0x379D08D7A654D9A3), + UINT64_C(0x5B97CEF2BD3FFA9C), UINT64_C(0x0F469F34DDC2FCE5) } }, + { { UINT64_C(0x6D1461080642F38D), UINT64_C(0x055171A0D21EB887), + UINT64_C(0x28DFFAB4D0DCEB28), UINT64_C(0x0D0E631298DE9CCD), + UINT64_C(0x750A9156118C3C3F), UINT64_C(0x8C1F1390B049D799) }, + { UINT64_C(0xE4823858439607C5), UINT64_C(0x947E9BA05C111EAB), + UINT64_C(0x39C95616A355DF2E), UINT64_C(0xF5F6B98E10E54BDA), + UINT64_C(0xB0E0B33D142B876A), UINT64_C(0x71197D73EA18C90C) } }, + { { UINT64_C(0x36A5139DF52BE819), UINT64_C(0xF60DDF3429A45D2B), + UINT64_C(0x0727EFECE9220E34), UINT64_C(0x431D33864EF7F446), + UINT64_C(0xC3165A64FCC4962C), UINT64_C(0xB7D926E1D64362BB) }, + { UINT64_C(0x216BC61FD45F9350), UINT64_C(0xA974CB2FBBAED815), + UINT64_C(0x31DF342D86FB2F76), UINT64_C(0x3AB67E0501D78314), + UINT64_C(0x7AA951E0DEE33ED2), UINT64_C(0x318FBBBDCEC78D94) } }, + { { UINT64_C(0xAD7EFB65B8FE0204), UINT64_C(0x0432E1C5230AB7F7), + UINT64_C(0x7563A62D9C967400), UINT64_C(0xD88B9C743524D4FF), + UINT64_C(0x16A1991CF1A823E3), UINT64_C(0xCF2F9BFEFA6F0FFB) }, + { UINT64_C(0x55AAA946A50CA61F), UINT64_C(0x8CBBD3C8FED4CAB3), + UINT64_C(0x03A0FAB87651365A), UINT64_C(0x46B5234B62DC3913), + UINT64_C(0xFD875B28B558CBBD), UINT64_C(0xA48EC3AE11CEB361) } }, + { { UINT64_C(0x5DD131A1B3ADBD8B), UINT64_C(0xF9FBCA3A29B45EF8), + UINT64_C(0x022048669341EE18), UINT64_C(0x8D13B89583BF9618), + UINT64_C(0x0E395BAEE807459C), UINT64_C(0xB9C110CCB190E7DB) }, + { UINT64_C(0xA0DC345225D25063), UINT64_C(0x2FB78EC802371462), + UINT64_C(0xC3A9E7BB8975C2D5), UINT64_C(0x9466687285A78264), + UINT64_C(0x480D2CC28029AA92), UINT64_C(0x237086C75655726D) } }, + { { UINT64_C(0x197F14BB65EB9EEE), UINT64_C(0xFC93125C9F12E5FD), + UINT64_C(0x9C20BC538BFBAE5E), UINT64_C(0xB35E21544BC053BA), + UINT64_C(0xE5FA9CC721C3898E), UINT64_C(0x502D72FFD42F950F) }, + { UINT64_C(0x6812D38AD1EB8C31), UINT64_C(0x1F77F3F1080D30BB), + UINT64_C(0x18D128335A8B1E98), UINT64_C(0x7FD39FA9299196CE), + UINT64_C(0xFB8C9F11CF4ED6D6), UINT64_C(0x4C00F604D6363194) } }, + { { UINT64_C(0x5C8AFCF9FA2A21C2), UINT64_C(0x71CBF2821928D133), + UINT64_C(0x56BEF28E42B29506), UINT64_C(0xAFBA250C70323DE2), + UINT64_C(0x3FE208D17DED2C30), UINT64_C(0xBD2CD213CE9AA598) }, + { UINT64_C(0x52C5EC52CFEED070), UINT64_C(0x0A7223E7D3DA336B), + UINT64_C(0x7156A4EDCE156B46), UINT64_C(0x9AF6C499ED7E6159), + UINT64_C(0x9D7A679713C029AD), UINT64_C(0xE5B5C9249018DC77) } }, + }, + { + { { UINT64_C(0x3F2EFF53DE1E4E55), UINT64_C(0x6B749943E4D3ECC4), + UINT64_C(0xAF10B18A0DDE190D), UINT64_C(0xF491B98DA26B0409), + UINT64_C(0x66080782A2B1D944), UINT64_C(0x59277DC697E8C541) }, + { UINT64_C(0xFDBFC5F6006F18AA), UINT64_C(0x435D165BFADD8BE1), + UINT64_C(0x8E5D263857645EF4), UINT64_C(0x31BCFDA6A0258363), + UINT64_C(0xF5330AB8D35D2503), UINT64_C(0xB71369F0C7CAB285) } }, + { { UINT64_C(0xE6A19DCC40ACC5A8), UINT64_C(0x1C3A1FF1DBC6DBF8), + UINT64_C(0xB4D89B9FC6455613), UINT64_C(0x6CB0FE44A7390D0E), + UINT64_C(0xADE197A459EA135A), UINT64_C(0xDA6AA86520680982) }, + { UINT64_C(0x03DB9BE95A442C1B), UINT64_C(0x221A2D732BFB93F2), + UINT64_C(0x44DEE8D4753C196C), UINT64_C(0x59ADCC700B7C6FF5), + UINT64_C(0xC6260EC24CA1B142), UINT64_C(0x4C3CB5C646CBD4F2) } }, + { { UINT64_C(0x8A15D6FEA417111F), UINT64_C(0xFE4A16BD71D93FCC), + UINT64_C(0x7A7EE38C55BBE732), UINT64_C(0xEFF146A51FF94A9D), + UINT64_C(0xE572D13EDD585AB5), UINT64_C(0xD879790E06491A5D) }, + { UINT64_C(0x9C84E1C52A58CB2E), UINT64_C(0xD79D13746C938630), + UINT64_C(0xDB12CD9B385F06C7), UINT64_C(0x0C93EB977A7759C3), + UINT64_C(0xF1F5B0FE683BD706), UINT64_C(0x541E4F7285EC3D50) } }, + { { UINT64_C(0x9A0E153581833608), UINT64_C(0x5CCE871E6E2833AC), + UINT64_C(0xC17059EAFB29777C), UINT64_C(0x7E40E5FAE354CAFD), + UINT64_C(0x9CF594054D07C371), UINT64_C(0x64CE36B2A71C3945) }, + { UINT64_C(0x69309E9656CAF487), UINT64_C(0x3D719E9F1AE3454B), + UINT64_C(0xF2164070E25823B6), UINT64_C(0xEAD851BD0BC27359), + UINT64_C(0x3D21BFE8B0925094), UINT64_C(0xA783B1E934A97F4E) } }, + { { UINT64_C(0x406B0C269546491A), UINT64_C(0x9E5E15E2F293C4E5), + UINT64_C(0xC60D641315B164DB), UINT64_C(0x0DA46F530C75A78E), + UINT64_C(0x7C599BB7EA0C656B), UINT64_C(0x0F07A5121B1A8122) }, + { UINT64_C(0x14C7204A15172686), UINT64_C(0x8FAEDFF85165625D), + UINT64_C(0x20F260CE37AEDE40), UINT64_C(0xC81F771E8F357FFE), + UINT64_C(0x25499197B0912557), UINT64_C(0x736197DC4C739C74) } }, + { { UINT64_C(0x6151BAB1381B3462), UINT64_C(0x27E5A07843DBD344), + UINT64_C(0x2CB05BD6A1C3E9FB), UINT64_C(0x2A75976027CF2A11), + UINT64_C(0x0ADCF9DBFF43E702), UINT64_C(0x4BBF03E21F484146) }, + { UINT64_C(0x0E74997F55B6521A), UINT64_C(0x15629231ADE17086), + UINT64_C(0x7F143E867493FC58), UINT64_C(0x60869095AF8B9670), + UINT64_C(0x482CFCD77E524869), UINT64_C(0x9E8060C31D454756) } }, + { { UINT64_C(0xE495747AC88B4D3B), UINT64_C(0xB7559835AE8A948F), + UINT64_C(0x67EEF3A9DEB56853), UINT64_C(0x0E20E2699DEE5ADF), + UINT64_C(0x9031AF6761F0A1AA), UINT64_C(0x76669D32683402BC) }, + { UINT64_C(0x90BD231306718B16), UINT64_C(0xE1B22A21864EFDAC), + UINT64_C(0xE4FFE9096620089F), UINT64_C(0xB84C842E3428E2D9), + UINT64_C(0x0E28C880FE3871FC), UINT64_C(0x8932F6983F21C200) } }, + { { UINT64_C(0x603F00CE6C90EA5D), UINT64_C(0x6473930740A2F693), + UINT64_C(0xAF65148B2174E517), UINT64_C(0x162FC2CAF784AE74), + UINT64_C(0x0D9A88254D5F6458), UINT64_C(0x0C2D586143AACE93) }, + { UINT64_C(0xBF1EADDE9F73CBFC), UINT64_C(0xDE9C34C09C68BBCA), + UINT64_C(0x6D95602D67EF8A1A), UINT64_C(0x0AF2581BA791B241), + UINT64_C(0x14F7736112CAD604), UINT64_C(0x19F2354DE2ACD1AD) } }, + { { UINT64_C(0x272F78F60D60F263), UINT64_C(0xE7A8F4AF208FD785), + UINT64_C(0x10E191C636554F2C), UINT64_C(0x06D88551FD5CD0B3), + UINT64_C(0x29BF856857069C27), UINT64_C(0x3CE7ECD828AA6FAD) }, + { UINT64_C(0x7D8A92D0E9F1A1D8), UINT64_C(0xD40C7FF8D30B5725), + UINT64_C(0x16BE6CB2F54CAEB8), UINT64_C(0x14CA471A14CB0A91), + UINT64_C(0xD5FF15B802733CAE), UINT64_C(0xCAF88D87DAA76580) } }, + { { UINT64_C(0x39430E222C046592), UINT64_C(0x6CDAE81F1AD26706), + UINT64_C(0x8C102159A25D9106), UINT64_C(0x9A44057227CA9F30), + UINT64_C(0x8D34C43070287FBC), UINT64_C(0x9003A45529DB8AFA) }, + { UINT64_C(0x91364CC37FD971AD), UINT64_C(0x7B3AA0489C60EDB7), + UINT64_C(0x58B0E008526F4DD8), UINT64_C(0xB7674454D86D98AE), + UINT64_C(0xC25F4051B2B45747), UINT64_C(0x8243BF9CCC043E8F) } }, + { { UINT64_C(0xA89641C643A0C387), UINT64_C(0x6D92205C87B9AB17), + UINT64_C(0x37D691F4DAA0E102), UINT64_C(0xEB3E52D7CDE5312E), + UINT64_C(0x60D3C09916F518A2), UINT64_C(0x7854C0518A378EEB) }, + { UINT64_C(0x7359DB514BBCAAC5), UINT64_C(0xF5B1B68C1713F102), + UINT64_C(0xDAEAE645E4398DE5), UINT64_C(0x8C8ACB6CD1ABFB82), + UINT64_C(0x2E8B76C3136423E2), UINT64_C(0x509DCB2DA8BA015E) } }, + { { UINT64_C(0x2FF368159AD9C59C), UINT64_C(0xB189A4E8658E65B9), + UINT64_C(0x7D33DDBBEA786AD2), UINT64_C(0x96D0D648C0D2DC05), + UINT64_C(0x05E49256BFA03BE9), UINT64_C(0x0EA4E7A68BAF5A1C) }, + { UINT64_C(0x3DDCE0B09F9AD5A8), UINT64_C(0xF78091959E49C2CB), + UINT64_C(0xBFCEF29D21782C2F), UINT64_C(0xE57AD39FC41BFD97), + UINT64_C(0xC04B93E81355AD19), UINT64_C(0xAABC9E6E59440F9F) } }, + { { UINT64_C(0x7AA481035B6459DA), UINT64_C(0x83EF74770166E880), + UINT64_C(0x536182B1511CCE80), UINT64_C(0xAFDD2EEE73CA55AA), + UINT64_C(0xAB910D0DA8716143), UINT64_C(0x8BEAA42B83707250) }, + { UINT64_C(0x4BCCFD898DA2AB3D), UINT64_C(0x1DBF68A9EC6AA105), + UINT64_C(0x32CE610868EB42DA), UINT64_C(0x5C2C2C858EA62E37), + UINT64_C(0x1ED2791FCD3088A7), UINT64_C(0x496B4FEBFF05070C) } }, + { { UINT64_C(0x9FA9121A0AA629C5), UINT64_C(0xE286CFF157558BEC), + UINT64_C(0x4D9D657E59813A4D), UINT64_C(0xC4676A1626103519), + UINT64_C(0x616160B32BD4DF80), UINT64_C(0x26FB78CC30FBAE87) }, + { UINT64_C(0x096070138F0F66BD), UINT64_C(0xDD4E2D0C03D9B90D), + UINT64_C(0x5D3A8912600D1B12), UINT64_C(0xF76DD52F4308E126), + UINT64_C(0x97CC04099E4FCCA6), UINT64_C(0x0CFBE31104C4DF7B) } }, + { { UINT64_C(0x6CA62C1228437A23), UINT64_C(0x0DAF335340E7A003), + UINT64_C(0x1FD07DF0D20F8079), UINT64_C(0xEAE7969C3BBC9749), + UINT64_C(0x55861AFA9ECAD022), UINT64_C(0xEC41DAD91FBC3D4C) }, + { UINT64_C(0x1FE4CB40DA8B261B), UINT64_C(0xC2671AB6427C5C9D), + UINT64_C(0xDFCDA7B8261D4939), UINT64_C(0x9E7B802B2072C0B9), + UINT64_C(0x3AFEE900C7828CC2), UINT64_C(0x3488BF28F6DE987F) } }, + { { UINT64_C(0x33B9F2DE7BE1F89E), UINT64_C(0xD4E80821299B15C9), + UINT64_C(0x87A3067A0E13F37F), UINT64_C(0x6D4C09ED55FD239F), + UINT64_C(0x48B1042D92EF014F), UINT64_C(0xA382B2E0B385A759) }, + { UINT64_C(0xBF571BB07F6F84F8), UINT64_C(0x25AFFA370CE87F50), + UINT64_C(0x826906D3FE54F1BC), UINT64_C(0x6B0421F4C53AE76A), + UINT64_C(0x44F85A3A4855EB3C), UINT64_C(0xF49E21518D1F2B27) } }, + }, + { + { { UINT64_C(0xC0426B775E3C647B), UINT64_C(0xBFCBD9398CF05348), + UINT64_C(0x31D312E3172C0D3D), UINT64_C(0x5F49FDE6EE754737), + UINT64_C(0x895530F06DA7EE61), UINT64_C(0xCF281B0AE8B3A5FB) }, + { UINT64_C(0xFD14973541B8A543), UINT64_C(0x41A625A73080DD30), + UINT64_C(0xE2BAAE07653908CF), UINT64_C(0xC3D01436BA02A278), + UINT64_C(0xA0D0222E7B21B8F8), UINT64_C(0xFDC270E9D7EC1297) } }, + { { UINT64_C(0x06A67BD29F101E64), UINT64_C(0xCB6E0AC7E1733A4A), + UINT64_C(0xEE0B5D5197BC62D2), UINT64_C(0x52B1703924C51874), + UINT64_C(0xFED1F42382A1A0D5), UINT64_C(0x55D90569DB6270AC) }, + { UINT64_C(0x36BE4A9C5D73D533), UINT64_C(0xBE9266D6976ED4D5), + UINT64_C(0xC17436D3B8F8074B), UINT64_C(0x3BB4D399718545C6), + UINT64_C(0x8E1EA3555C757D21), UINT64_C(0xF7EDBC978C474366) } }, + { { UINT64_C(0xEC72C6506EA83242), UINT64_C(0xF7DE7BE51B2D237F), + UINT64_C(0x3C5E22001819EFB0), UINT64_C(0xDF5AB6D68CDDE870), + UINT64_C(0x75A44E9D92A87AEE), UINT64_C(0xBDDC46F4BCF77F19) }, + { UINT64_C(0x8191EFBD669B674D), UINT64_C(0x52884DF9ED71768F), + UINT64_C(0xE62BE58265CF242C), UINT64_C(0xAE99A3B180B1D17B), + UINT64_C(0x48CBB44692DE59A9), UINT64_C(0xD3C226CF2DCB3CE2) } }, + { { UINT64_C(0x9580CDFB9FD94EC4), UINT64_C(0xED273A6C28631AD9), + UINT64_C(0x5D3D5F77C327F3E7), UINT64_C(0x05D5339C35353C5F), + UINT64_C(0xC56FB5FE5C258EB1), UINT64_C(0xEFF8425EEDCE1F79) }, + { UINT64_C(0xAB7AA141CF83CF9C), UINT64_C(0xBD2A690A207D6D4F), + UINT64_C(0xE1241491458D9E52), UINT64_C(0xDD2448CCAA7F0F31), + UINT64_C(0xEC58D3C7F0FDA7AB), UINT64_C(0x7B6E122DC91BBA4D) } }, + { { UINT64_C(0x2A2DEDAFB1B48156), UINT64_C(0xA0A2C63ABB93DB87), + UINT64_C(0xC655907808ACD99E), UINT64_C(0x03EA42AFFE4AC331), + UINT64_C(0x43D2C14AEB180ED6), UINT64_C(0xC2F293DDB1156A1A) }, + { UINT64_C(0x1FAFABF5A9D81249), UINT64_C(0x39ADDEAD9A8EEE87), + UINT64_C(0x21E206F2119E2E92), UINT64_C(0xBC5DCC2ED74DCEB6), + UINT64_C(0x86647FA30A73A358), UINT64_C(0xEAD8BEA42F53F642) } }, + { { UINT64_C(0x636225F591C09091), UINT64_C(0xCCF5070A71BDCFDF), + UINT64_C(0x0EF8D625B9668EE2), UINT64_C(0x57BDF6CDB5E04E4F), + UINT64_C(0xFC6AB0A67C75EA43), UINT64_C(0xEB6B8AFBF7FD6EF3) }, + { UINT64_C(0x5B2AEEF02A3DF404), UINT64_C(0x31FD3B48B9823197), + UINT64_C(0x56226DB683A7EB23), UINT64_C(0x3772C21E5BB1ED2F), + UINT64_C(0x3E833624CD1ABA6A), UINT64_C(0xBAE58FFAAC672DAD) } }, + { { UINT64_C(0xCE92224D31BA1705), UINT64_C(0x022C6ED2F0197F63), + UINT64_C(0x21F18D99A4DC1113), UINT64_C(0x5CD04DE803616BF1), + UINT64_C(0x6F9006799FF12E08), UINT64_C(0xF59A331548E61DDF) }, + { UINT64_C(0x9474D42CB51BD024), UINT64_C(0x11A0A4139051E49D), + UINT64_C(0x79C92705DCE70EDB), UINT64_C(0x113CE27834198426), + UINT64_C(0x8978396FEA8616D2), UINT64_C(0x9A2A14D0EA894C36) } }, + { { UINT64_C(0x4F1E1254604F6E4A), UINT64_C(0x4513B0880187D585), + UINT64_C(0x9022F25719E0F482), UINT64_C(0x51FB2A80E2239DBF), + UINT64_C(0x49940D9E998ED9D5), UINT64_C(0x0583D2416C932C5D) }, + { UINT64_C(0x1188CEC8F25B73F7), UINT64_C(0xA28788CB3B3D06CD), + UINT64_C(0xDEA194ECA083DB5A), UINT64_C(0xD93A4F7E22DF4272), + UINT64_C(0x8D84E4BF6A009C49), UINT64_C(0x893D8DD93E3E4A9E) } }, + { { UINT64_C(0x35E909EA33D31160), UINT64_C(0x5020316857172F1E), + UINT64_C(0x2707FC4451F3D866), UINT64_C(0xEB9D2018D2442A5D), + UINT64_C(0x904D72095DBFE378), UINT64_C(0x6DB132A35F13CF77) }, + { UINT64_C(0x9D842BA67A3AF54B), UINT64_C(0x4E16EA195AA5B4F9), + UINT64_C(0x2BBA457CAF24228E), UINT64_C(0xCC04B3BB16F3C5FE), + UINT64_C(0xBAFAC51677E64944), UINT64_C(0x31580A34F08BCEE0) } }, + { { UINT64_C(0xC6808DEE20C30ACA), UINT64_C(0xDADD216FA3EA2056), + UINT64_C(0xD331394E7A4A9F9D), UINT64_C(0x9E0441AD424C4026), + UINT64_C(0xAEED102F0AEB5350), UINT64_C(0xC6697FBBD45B09DA) }, + { UINT64_C(0x52A2590EDEAC1496), UINT64_C(0x7142B831250B87AF), + UINT64_C(0xBEF2E68B6D0784A8), UINT64_C(0x5F62593AA5F71CEF), + UINT64_C(0x3B8F7616B5DA51A3), UINT64_C(0xC7A6FA0DB680F5FE) } }, + { { UINT64_C(0x36C21DE699C8227C), UINT64_C(0xBEE3E867C26813B1), + UINT64_C(0x9B05F2E6BDD91549), UINT64_C(0x34FF2B1FA7D1110F), + UINT64_C(0x8E6953B937F67FD0), UINT64_C(0x56C7F18BC3183E20) }, + { UINT64_C(0x48AF46DE9E2019ED), UINT64_C(0xDEAF972EF551BBBF), + UINT64_C(0x88EE38F8CC5E3EEF), UINT64_C(0xFB8D7A44392D6BAF), + UINT64_C(0x32293BFC0127187D), UINT64_C(0x7689E767E58647CC) } }, + { { UINT64_C(0x00CE901B52168013), UINT64_C(0xC6BF8E38837AAE71), + UINT64_C(0xD6F11EFA167677D8), UINT64_C(0xE53BB48586C8E5CF), + UINT64_C(0x671167CEC48E74AB), UINT64_C(0x8A40218C8AD720A7) }, + { UINT64_C(0x81E827A6E7C1191A), UINT64_C(0x54058F8DADDB153D), + UINT64_C(0x0BAF29250D950FA2), UINT64_C(0xC244674D576DDA13), + UINT64_C(0x8C4630AE41BCD13B), UINT64_C(0x6C2127BF5A077419) } }, + { { UINT64_C(0xCF977FD5A83C501F), UINT64_C(0xD7C6DF36B6AB176F), + UINT64_C(0x117F6331397BC6B5), UINT64_C(0x72A6078BF7A2D491), + UINT64_C(0xE5A2AAED5242FE2E), UINT64_C(0x88ECFFDCFEBDC212) }, + { UINT64_C(0xF2DBBF50CE33BA21), UINT64_C(0xE1343B76CEB19F07), + UINT64_C(0x1F32D4C9D2C28F71), UINT64_C(0x93FC64B418587685), + UINT64_C(0x39CEEF9BBA1F8BD1), UINT64_C(0x99C36A788D6D6BB0) } }, + { { UINT64_C(0x0D0638173E9561CF), UINT64_C(0x1D8646AA3D33704D), + UINT64_C(0x8C4513847A08BA33), UINT64_C(0x96446BD3E02D6624), + UINT64_C(0x749849F02D6F4166), UINT64_C(0xE364DA0114268BF0) }, + { UINT64_C(0x7CE4587E9AEBFCFD), UINT64_C(0xD468606456234393), + UINT64_C(0x00231D5116DF73B2), UINT64_C(0xF6A969B77279C78C), + UINT64_C(0x1FF1F6B66CB4117C), UINT64_C(0x30AEBC39D3EAB680) } }, + { { UINT64_C(0x5CC97E6493EF00B9), UINT64_C(0xDAE13841972345AE), + UINT64_C(0x858391844788F43C), UINT64_C(0xD0FF521EE2E6CF3E), + UINT64_C(0xAED14A5B4B707C86), UINT64_C(0x7EAAE4A6D2523CF7) }, + { UINT64_C(0x266472C5024C8AC6), UINT64_C(0xE47E1522C0170051), + UINT64_C(0x7B83DA6173826BAE), UINT64_C(0xE97E19F5CF543F0D), + UINT64_C(0x5D5248FA20BF38E2), UINT64_C(0x8A7C2F7DDF56A037) } }, + { { UINT64_C(0xB04659DD87B0526C), UINT64_C(0x593C604A2307565E), + UINT64_C(0x49E522257C630AB8), UINT64_C(0x24C1D0C6DCE9CD23), + UINT64_C(0x6FDB241C85177079), UINT64_C(0x5F521D19F250C351) }, + { UINT64_C(0xFB56134BA6FB61DF), UINT64_C(0xA4E70D69D75C07ED), + UINT64_C(0xB7A824487D8825A8), UINT64_C(0xA3AEA7D4DD64BBCC), + UINT64_C(0xD53E6E6C8692F539), UINT64_C(0x8DDDA83BF7AA4BC0) } }, + }, + { + { { UINT64_C(0x140A0F9FDD93D50A), UINT64_C(0x4799FFDE83B7ABAC), + UINT64_C(0x78FF7C2304A1F742), UINT64_C(0xC0568F51195BA34E), + UINT64_C(0xE97183603B7F78B4), UINT64_C(0x9CFD1FF1F9EFAA53) }, + { UINT64_C(0xE924D2C5BB06022E), UINT64_C(0x9987FA86FAA2AF6D), + UINT64_C(0x4B12E73F6EE37E0F), UINT64_C(0x1836FDFA5E5A1DDE), + UINT64_C(0x7F1B92259DCD6416), UINT64_C(0xCB2C1B4D677544D8) } }, + { { UINT64_C(0x0254486D9C213D95), UINT64_C(0x68A9DB56CB2F6E94), + UINT64_C(0xFB5858BA000F5491), UINT64_C(0x1315BDD934009FB6), + UINT64_C(0xB18A8E0AC42BDE30), UINT64_C(0xFDCF93D1F1070358) }, + { UINT64_C(0xBEB1DB753022937E), UINT64_C(0x9B9ECA7ACAC20DB4), + UINT64_C(0x152214D4E4122B20), UINT64_C(0xD3E673F2AABCCC7B), + UINT64_C(0x94C50F64AED07571), UINT64_C(0xD767059AE66B4F17) } }, + { { UINT64_C(0x40336B12DCD6D14B), UINT64_C(0xF6BCFF5DE3B4919C), + UINT64_C(0xC337048D9C841F0C), UINT64_C(0x4CE6D0251D617F50), + UINT64_C(0x00FEF2198117D379), UINT64_C(0x18B7C4E9F95BE243) }, + { UINT64_C(0x98DE119E38DF08FF), UINT64_C(0xDFD803BD8D772D20), + UINT64_C(0x94125B720F9678BD), UINT64_C(0xFC5B57CD334ACE30), + UINT64_C(0x09486527B7E86E04), UINT64_C(0xFE9F8BCC6E552039) } }, + { { UINT64_C(0x3B75C45BD6F5A10E), UINT64_C(0xFD4680F4C1C35F38), + UINT64_C(0x5450227DF8E0A113), UINT64_C(0x5E69F1AE73DDBA24), + UINT64_C(0x2007B80E57F24645), UINT64_C(0xC63695DC3D159741) }, + { UINT64_C(0xCBE54D294530F623), UINT64_C(0x986AD5732869586B), + UINT64_C(0xE19F70594CC39F73), UINT64_C(0x80F00AB32B1B8DA9), + UINT64_C(0xB765AAF973F68D26), UINT64_C(0xBC79A394E993F829) } }, + { { UINT64_C(0x9C441043F310D2A0), UINT64_C(0x2865EE58DC5EB106), + UINT64_C(0x71A959229CB8065C), UINT64_C(0x8EB3A733A052AF0F), + UINT64_C(0x56009F42B09D716E), UINT64_C(0xA7F923C5ABCBE6AD) }, + { UINT64_C(0x263B7669FA375C01), UINT64_C(0x641C47E521EF27A2), + UINT64_C(0xA89B474EB08FFD25), UINT64_C(0x5BE8EC3FF0A239F3), + UINT64_C(0x0E79957A242A6C5A), UINT64_C(0x1DFB26D00C6C75F5) } }, + { { UINT64_C(0x2FD97B9B9DFBF22A), UINT64_C(0xDEC16CC85643532D), + UINT64_C(0xDF0E6E3960FEE7C3), UINT64_C(0xD09AD7B6545860C8), + UINT64_C(0xCC16E98473FC3B7C), UINT64_C(0x6CE734C10D4E1555) }, + { UINT64_C(0xC6EFE68B4B5F6032), UINT64_C(0x3A64F34C14F54073), + UINT64_C(0x25DA689CAC44DC95), UINT64_C(0x990C477E5358AD8A), + UINT64_C(0x00E958A5F36DA7DE), UINT64_C(0x902B7360C9B6F161) } }, + { { UINT64_C(0x454AB42C9347B90A), UINT64_C(0xCAEBE64AA698B02B), + UINT64_C(0x119CDC69FB86FA40), UINT64_C(0x2E5CB7ADC3109281), + UINT64_C(0x67BB1EC5CD0C3D00), UINT64_C(0x5D430BC783F25BBF) }, + { UINT64_C(0x69FD84A85CDE0ABB), UINT64_C(0x69DA263E9816B688), + UINT64_C(0xE52D93DF0E53CBB8), UINT64_C(0x42CF6F25ADD2D5A7), + UINT64_C(0x227BA59DC87CA88F), UINT64_C(0x7A1CA876DA738554) } }, + { { UINT64_C(0x3FA5C1051CAC82C4), UINT64_C(0x23C760878A78C9BE), + UINT64_C(0xE98CDAD61C5CFA42), UINT64_C(0x09C302520A6C0421), + UINT64_C(0x149BAC7C42FC61B9), UINT64_C(0x3A1C22AC3004A3E2) }, + { UINT64_C(0xDE6B0D6E202C7FED), UINT64_C(0xB2457377E7E63052), + UINT64_C(0x31725FD43706B3EF), UINT64_C(0xE16A347D2B1AFDBF), + UINT64_C(0xBE4850C48C29CF66), UINT64_C(0x8F51CC4D2939F23C) } }, + { { UINT64_C(0x169E025B219AE6C1), UINT64_C(0x55FF526F116E1CA1), + UINT64_C(0x01B810A3B191F55D), UINT64_C(0x2D98127229588A69), + UINT64_C(0x53C9377048B92199), UINT64_C(0x8C7DD84E8A85236F) }, + { UINT64_C(0x293D48B6CAACF958), UINT64_C(0x1F084ACB43572B30), + UINT64_C(0x628BFA2DFAD91F28), UINT64_C(0x8D627B11829386AF), + UINT64_C(0x3EC1DD00D44A77BE), UINT64_C(0x8D3B0D08649AC7F0) } }, + { { UINT64_C(0x00A93DAA177513BF), UINT64_C(0x2EF0B96F42AD79E1), + UINT64_C(0x81F5AAF1A07129D9), UINT64_C(0xFC04B7EF923F2449), + UINT64_C(0x855DA79560CDB1B7), UINT64_C(0xB1EB5DABAD5D61D4) }, + { UINT64_C(0xD2CEF1AE353FD028), UINT64_C(0xC21D54399EE94847), + UINT64_C(0x9ED552BB0380C1A8), UINT64_C(0xB156FE7A2BAC328F), + UINT64_C(0xBB7E01967213C6A4), UINT64_C(0x36002A331701ED5B) } }, + { { UINT64_C(0x20B1632ADDC9EF4D), UINT64_C(0x2A35FF4C272D082B), + UINT64_C(0x30D39923F6CC9BD3), UINT64_C(0x6D879BC2E65C9D08), + UINT64_C(0xCE8274E16FA9983C), UINT64_C(0x652371E80EB7424F) }, + { UINT64_C(0x32B77503C5C35282), UINT64_C(0xD7306333C885A931), + UINT64_C(0x8A16D71972955AA8), UINT64_C(0x5548F1637D51F882), + UINT64_C(0xB311DC66BABA59EF), UINT64_C(0x773D54480DB8F627) } }, + { { UINT64_C(0x59B1B1347A62EB3B), UINT64_C(0x0F8CE157CCEEFB34), + UINT64_C(0x3FE842A8A798CB2B), UINT64_C(0xD01BC6260BF4161D), + UINT64_C(0x55EF6E554D016FDB), UINT64_C(0xCB561503B242B201) }, + { UINT64_C(0x076EBC73AF4199C1), UINT64_C(0x39DEDCBB697244F7), + UINT64_C(0x9D184733040162BC), UINT64_C(0x902992C17F6B5FA6), + UINT64_C(0xAD1DE754BB4952B5), UINT64_C(0x7ACF1B93A121F6C8) } }, + { { UINT64_C(0x7A56867C325C9B9A), UINT64_C(0x1A143999F3DC3D6A), + UINT64_C(0xCE10959003F5BCB8), UINT64_C(0x034E9035D6EEE5B7), + UINT64_C(0x2AFA81C8495DF1BC), UINT64_C(0x5EAB52DC08924D02) }, + { UINT64_C(0xEE6AA014AA181904), UINT64_C(0xE62DEF09310AD621), + UINT64_C(0x6C9792FCC7538A03), UINT64_C(0xA89D3E883E41D789), + UINT64_C(0xD60FA11C9F94AE83), UINT64_C(0x5E16A8C2E0D6234A) } }, + { { UINT64_C(0x87EC053DA9242F3B), UINT64_C(0x99544637F0E03545), + UINT64_C(0xEA0633FF6B7019E9), UINT64_C(0x8CB8AE0768DDDB5B), + UINT64_C(0x892E7C841A811AC7), UINT64_C(0xC7EF19EB73664249) }, + { UINT64_C(0xD1B5819ACD1489E3), UINT64_C(0xF9C80FB0DE45D24A), + UINT64_C(0x045C21A683BB7491), UINT64_C(0xA65325BE73F7A47D), + UINT64_C(0x08D09F0E9C394F0C), UINT64_C(0xE7FB21C6268D4F08) } }, + { { UINT64_C(0xC4CCAB956CA95C18), UINT64_C(0x563FFD56BC42E040), + UINT64_C(0xFA3C64D8E701C604), UINT64_C(0xC88D4426B0ABAFEE), + UINT64_C(0x1A353E5E8542E4C3), UINT64_C(0x9A2D8B7CED726186) }, + { UINT64_C(0xD61CE19042D097FA), UINT64_C(0x6A63E280799A748B), + UINT64_C(0x0F48D0633225486B), UINT64_C(0x848F8FE142A3C443), + UINT64_C(0x2CCDE2508493CEF4), UINT64_C(0x5450A50845E77E7C) } }, + { { UINT64_C(0xD0F4E24803112816), UINT64_C(0xFCAD9DDBCCBE9E16), + UINT64_C(0x177999BF5AE01EA0), UINT64_C(0xD20C78B9CE832DCE), + UINT64_C(0x3CC694FB50C8C646), UINT64_C(0x24D75968C93D4887) }, + { UINT64_C(0x9F06366A87BC08AF), UINT64_C(0x59FAB50E7FD0DF2A), + UINT64_C(0x5FFCC7F76C4CC234), UINT64_C(0x87198DD765F52D86), + UINT64_C(0x5B9C94B0A855DF04), UINT64_C(0xD8BA6C738A067AD7) } }, + }, + { + { { UINT64_C(0x9E9AF3151C4C9D90), UINT64_C(0x8665C5A9D12E0A89), + UINT64_C(0x204ABD9258286493), UINT64_C(0x79959889B2E09205), + UINT64_C(0x0C727A3DFE56B101), UINT64_C(0xF366244C8B657F26) }, + { UINT64_C(0xDE35D954CCA65BE2), UINT64_C(0x52EE1230B0FD41CE), + UINT64_C(0xFA03261F36019FEE), UINT64_C(0xAFDA42D966511D8F), + UINT64_C(0xF63211DD821148B9), UINT64_C(0x7B56AF7E6F13A3E1) } }, + { { UINT64_C(0x47FE47995913E184), UINT64_C(0x5BBE584C82145900), + UINT64_C(0xB76CFA8B9A867173), UINT64_C(0x9BC87BF0514BF471), + UINT64_C(0x37392DCE71DCF1FC), UINT64_C(0xEC3EFAE03AD1EFA8) }, + { UINT64_C(0xBBEA5A3414876451), UINT64_C(0x96E5F5436217090F), + UINT64_C(0x5B3D4ECD9B1665A9), UINT64_C(0xE7B0DF26E329DF22), + UINT64_C(0x18FB438E0BAA808D), UINT64_C(0x90757EBFDD516FAF) } }, + { { UINT64_C(0x1E6F9A95D5A98D68), UINT64_C(0x759EA7DF849DA828), + UINT64_C(0x365D56256E8B4198), UINT64_C(0xE1B9C53B7A4A53F9), + UINT64_C(0x55DC1D50E32B9B16), UINT64_C(0xA4657EBBBB6D5701) }, + { UINT64_C(0x4C270249EACC76E2), UINT64_C(0xBE49EC75162B1CC7), + UINT64_C(0x19A95B610689902B), UINT64_C(0xDD5706BFA4CFC5A8), + UINT64_C(0xD33BDB7314E5B424), UINT64_C(0x21311BD1E69EBA87) } }, + { { UINT64_C(0x75BA2F9B72A21ACC), UINT64_C(0x356688D4A28EDB4C), + UINT64_C(0x3C339E0B610D080F), UINT64_C(0x614AC29333A99C2F), + UINT64_C(0xA5E23AF2AA580AFF), UINT64_C(0xA6BCB860E1FDBA3A) }, + { UINT64_C(0xAA603365B43F9425), UINT64_C(0xAE8D7126F7EE4635), + UINT64_C(0xA2B2524456330A32), UINT64_C(0xC396B5BB9E025AA3), + UINT64_C(0xABBF77FAF8A0D5CF), UINT64_C(0xB322EE30EA31C83B) } }, + { { UINT64_C(0x048813847890E234), UINT64_C(0x387F1159672E70C6), + UINT64_C(0x1468A6147B307F75), UINT64_C(0x56335B52ED85EC96), + UINT64_C(0xDA1BB60FD45BCAE9), UINT64_C(0x4D94F3F0F9FAEADD) }, + { UINT64_C(0x6C6A7183FC78D86B), UINT64_C(0xA425B5C73018DEC6), + UINT64_C(0xB1549C332D877399), UINT64_C(0x6C41C50C92B2BC37), + UINT64_C(0x3A9F380C83EE0DDB), UINT64_C(0xDED5FEB6C4599E73) } }, + { { UINT64_C(0x14D34C210B7F8354), UINT64_C(0x1475A1CD9177CE45), + UINT64_C(0x9F5F764A9B926E4B), UINT64_C(0x77260D1E05DD21FE), + UINT64_C(0x3C882480C4B937F7), UINT64_C(0xC92DCD39722372F2) }, + { UINT64_C(0xF636A1BEEC6F657E), UINT64_C(0xB0E6C3121D30DD35), + UINT64_C(0xFE4B0528E4654EFE), UINT64_C(0x1C4A682021D230D2), + UINT64_C(0x615D2E4898FA45AB), UINT64_C(0x1F35D6D801FDBABF) } }, + { { UINT64_C(0xA636EEB83A7B10D1), UINT64_C(0x4E1AE352F4A29E73), + UINT64_C(0x01704F5FE6BB1EC7), UINT64_C(0x75C04F720EF020AE), + UINT64_C(0x448D8CEE5A31E6A6), UINT64_C(0xE40A9C29208F994B) }, + { UINT64_C(0x69E09A30FD8F9D5D), UINT64_C(0xE6A5F7EB449BAB7E), + UINT64_C(0xF25BC18A2AA1768B), UINT64_C(0x9449E4043C841234), + UINT64_C(0x7A3BF43E016A7BEF), UINT64_C(0xF25803E82A150B60) } }, + { { UINT64_C(0xE44A2A57B215F9E0), UINT64_C(0x38B34DCE19066F0A), + UINT64_C(0x8BB91DAD40BB1BFB), UINT64_C(0x64C9F775E67735FC), + UINT64_C(0xDE14241788D613CD), UINT64_C(0xC5014FF51901D88D) }, + { UINT64_C(0xA250341DF38116B0), UINT64_C(0xF96B9DD49D6CBCB2), + UINT64_C(0x15EC6C7276B3FAC2), UINT64_C(0x88F1952F8124C1E9), + UINT64_C(0x6B72F8EA975BE4F5), UINT64_C(0x23D288FF061F7530) } }, + { { UINT64_C(0xEBFE3E5FAFB96CE3), UINT64_C(0x2275EDFBB1979537), + UINT64_C(0xC37AB9E8C97BA741), UINT64_C(0x446E4B1063D7C626), + UINT64_C(0xB73E2DCED025EB02), UINT64_C(0x1F952B517669EEA7) }, + { UINT64_C(0xABDD00F66069A424), UINT64_C(0x1C0F9D9BDC298BFB), + UINT64_C(0x831B1FD3EB757B33), UINT64_C(0xD7DBE18359D60B32), + UINT64_C(0x663D1F369EF094B3), UINT64_C(0x1BD5732E67F7F11A) } }, + { { UINT64_C(0x3C7FB3F5C75D8892), UINT64_C(0x2CFF9A0CBA68DA69), + UINT64_C(0x76455E8B60EC740B), UINT64_C(0x4B8D67FF167B88F0), + UINT64_C(0xEDEC0C025A4186B1), UINT64_C(0x127C462DBEBF35AB) }, + { UINT64_C(0x9159C67E049430FC), UINT64_C(0x86B21DD2E7747320), + UINT64_C(0x0E0E01520CF27B89), UINT64_C(0x705F28F5CD1316B6), + UINT64_C(0x76751691BEAEA8A8), UINT64_C(0x4C73E282360C5B69) } }, + { { UINT64_C(0x46BCC0D5FD7B3D74), UINT64_C(0x6F13C20E0DC4F410), + UINT64_C(0x98A1AF7D72F11CDF), UINT64_C(0x6099FD837928881C), + UINT64_C(0x66976356371BB94B), UINT64_C(0x673FBA7219B945AB) }, + { UINT64_C(0xE4D8FA6EAED00700), UINT64_C(0xEA2313EC5C71A9F7), + UINT64_C(0xF9ED8268F99D4AEA), UINT64_C(0xADD8916442AB59C7), + UINT64_C(0xB37EB26F3F3A2D45), UINT64_C(0x0B39BD7AA924841E) } }, + { { UINT64_C(0xD811EB32E03CDBBB), UINT64_C(0x12055F1D7CC3610E), + UINT64_C(0x6B23A1A0A9046E3F), UINT64_C(0x4D7121229DD4A749), + UINT64_C(0xB0C2ACA1B1BF0AC3), UINT64_C(0x71EFF575C1B0432F) }, + { UINT64_C(0x6CD814922B44E285), UINT64_C(0x3088BD9CD87E8D20), + UINT64_C(0xACE218E5F567E8FA), UINT64_C(0xB3FA0424CF90CBBB), + UINT64_C(0xADBDA751770734D3), UINT64_C(0xBCD78BAD5AD6569A) } }, + { { UINT64_C(0xCADB31FA7F39641F), UINT64_C(0x3EF3E295825E5562), + UINT64_C(0x4893C633F4094C64), UINT64_C(0x52F685F18ADDF432), + UINT64_C(0x9FD887AB7FDC9373), UINT64_C(0x47A9ADA0E8680E8B) }, + { UINT64_C(0x579313B7F0CD44F6), UINT64_C(0xAC4B8668E188AE2E), + UINT64_C(0x648F43698FB145BD), UINT64_C(0xE0460AB374629E31), + UINT64_C(0xC25F28758FF2B05F), UINT64_C(0x4720C2B62D31EAEA) } }, + { { UINT64_C(0x4603CDF413D48F80), UINT64_C(0x9ADB50E2A49725DA), + UINT64_C(0x8CD3305065DF63F0), UINT64_C(0x58D8B3BBCD643003), + UINT64_C(0x170A4F4AB739826B), UINT64_C(0x857772B51EAD0E17) }, + { UINT64_C(0x01B78152E65320F1), UINT64_C(0xA6B4D845B7503FC0), + UINT64_C(0x0F5089B93DD50798), UINT64_C(0x488F200F5690B6BE), + UINT64_C(0x220B4ADF9E096F36), UINT64_C(0x474D7C9F8CE5BC7C) } }, + { { UINT64_C(0xFED8C058C745F8C9), UINT64_C(0xB683179E291262D1), + UINT64_C(0x26ABD367D15EE88C), UINT64_C(0x29E8EED3F60A6249), + UINT64_C(0xED6008BB1E02D6E1), UINT64_C(0xD82ECF4CA6B12B8D) }, + { UINT64_C(0x9929D021AAE4FA22), UINT64_C(0xBE4DEF14336A1AB3), + UINT64_C(0x529B7E098C80A312), UINT64_C(0xB059188DEE0EB0CE), + UINT64_C(0x1E42979A16DEAB7F), UINT64_C(0x2411034984EE9477) } }, + { { UINT64_C(0xD65246852BE579CC), UINT64_C(0x849316F1C456FDED), + UINT64_C(0xC51B7DA42D1B67DA), UINT64_C(0xC25B539E41BC6D6A), + UINT64_C(0xE3B7CCA3A9BF8BED), UINT64_C(0x813EF18C045C15E4) }, + { UINT64_C(0x5F3789A1697982C4), UINT64_C(0x4C1253698C435566), + UINT64_C(0x00A7AE6EDC0A92C6), UINT64_C(0x1ABC929B2F64A053), + UINT64_C(0xF4925C4C38666B44), UINT64_C(0xA81044B00F3DE7F6) } }, + }, + { + { { UINT64_C(0xBCC88422C2EC3731), UINT64_C(0x78A3E4D410DC4EC2), + UINT64_C(0x745DA1EF2571D6B1), UINT64_C(0xF01C2921739A956E), + UINT64_C(0xEFFD8065E4BFFC16), UINT64_C(0x6EFE62A1F36FE72C) }, + { UINT64_C(0xF49E90D20F4629A4), UINT64_C(0xADD1DCC78CE646F4), + UINT64_C(0xCB78B583B7240D91), UINT64_C(0x2E1A7C3C03F8387F), + UINT64_C(0x16566C223200F2D9), UINT64_C(0x2361B14BAAF80A84) } }, + { { UINT64_C(0xDB1CFFD2B5733309), UINT64_C(0x24BC250B0F9DD939), + UINT64_C(0xA4181E5AA3C1DB85), UINT64_C(0xE5183E51AC55D391), + UINT64_C(0x2793D5EFEFD270D0), UINT64_C(0x7D56F63DC0631546) }, + { UINT64_C(0xECB40A590C1EE59D), UINT64_C(0xE613A9E4BB5BFA2C), + UINT64_C(0xA89B14AB6C5830F9), UINT64_C(0x4DC477DCA03F201E), + UINT64_C(0x5604F5DAC88C54F6), UINT64_C(0xD49264DC2ACFC66E) } }, + { { UINT64_C(0x283DD7F01C4DFA95), UINT64_C(0xB898CC2C62C0B160), + UINT64_C(0xBA08C095870282AA), UINT64_C(0xB02B00D8F4E36324), + UINT64_C(0x53AADDC0604CECF2), UINT64_C(0xF1F927D384DDD24E) }, + { UINT64_C(0x34BC00A0E2ABC9E1), UINT64_C(0x2DA1227D60289F88), + UINT64_C(0x5228EAAACEF68F74), UINT64_C(0x40A790D23C029351), + UINT64_C(0xE0E9AF5C8442E3B7), UINT64_C(0xA3214142A9F141E0) } }, + { { UINT64_C(0x72F4949EF9A58E3D), UINT64_C(0x738C700BA48660A6), + UINT64_C(0x71B04726092A5805), UINT64_C(0xAD5C3C110F5CDB72), + UINT64_C(0xD4951F9E554BFC49), UINT64_C(0xEE594EE56131EBE7) }, + { UINT64_C(0x37DA59F33C1AF0A9), UINT64_C(0xD7AFC73BCB040A63), + UINT64_C(0xD020962A4D89FA65), UINT64_C(0x2610C61E71D824F5), + UINT64_C(0x9C917DA73C050E31), UINT64_C(0x3840F92FE6E7EBFB) } }, + { { UINT64_C(0x50FBD7FE8D8B8CED), UINT64_C(0xC7282F7547D240AE), + UINT64_C(0x79646A471930FF73), UINT64_C(0x2E0BAC4E2F7F5A77), + UINT64_C(0x0EE44FA526127E0B), UINT64_C(0x678881B782BC2AA7) }, + { UINT64_C(0xB9E5D38467F5F497), UINT64_C(0x8F94A7D4A9B7106B), + UINT64_C(0xBF7E0B079D329F68), UINT64_C(0x169B93EA45D192FB), + UINT64_C(0xCCAA946720DBE8C0), UINT64_C(0xD4513A50938F9574) } }, + { { UINT64_C(0x841C96B4054CB874), UINT64_C(0xD75B1AF1A3C26834), + UINT64_C(0x7237169DEE6575F0), UINT64_C(0xD71FC7E50322AADC), + UINT64_C(0xD7A23F1E949E3A8E), UINT64_C(0x77E2D102DD31D8C7) }, + { UINT64_C(0x5AD69D09D10F5A1F), UINT64_C(0x526C9CB4B99D9A0B), + UINT64_C(0x521BB10B972B237D), UINT64_C(0x1E4CD42FA326F342), + UINT64_C(0x5BB6DB27F0F126CA), UINT64_C(0x587AF22CA4A515AD) } }, + { { UINT64_C(0x1123A531B12E542F), UINT64_C(0x1D01A64DB9EB2811), + UINT64_C(0xA4A3515BF2D70F87), UINT64_C(0xFA205234B4BD0270), + UINT64_C(0x74B818305EDA26B9), UINT64_C(0x9305D6E656578E75) }, + { UINT64_C(0xF38E69DE9F11BE19), UINT64_C(0x1E2A5C2344DBE89F), + UINT64_C(0x1077E7BCFD286654), UINT64_C(0xD36698940FCA4741), + UINT64_C(0x893BF904278F8497), UINT64_C(0xD6AC5F83EB3E14F4) } }, + { { UINT64_C(0x327B9DAB488F5F74), UINT64_C(0x2B44F4B8CAB7364F), + UINT64_C(0xB4A6D22D19B6C6BD), UINT64_C(0xA087E613FC77CD3E), + UINT64_C(0x4558E327B0B49BC7), UINT64_C(0x188805BECD835D35) }, + { UINT64_C(0x592F293CC1DC1007), UINT64_C(0xFAEE660F6AF02B44), + UINT64_C(0x5BFBB3BF904035F2), UINT64_C(0xD7C9AE6079C07E70), + UINT64_C(0xC5287DD4234896C2), UINT64_C(0xC4CE4523CB0E4121) } }, + { { UINT64_C(0x3626B40658344831), UINT64_C(0xABCCE3568E55C984), + UINT64_C(0x495CC81C77241602), UINT64_C(0x4FB796766D70DF8F), + UINT64_C(0x6354B37C5B071DCA), UINT64_C(0x2CAD80A48C0FC0AD) }, + { UINT64_C(0x18AADD51F68739B4), UINT64_C(0x1BFBB17747F09C6C), + UINT64_C(0x9355EA19A8FD51C4), UINT64_C(0x3D512A84EE58DB7B), + UINT64_C(0x70842AFDE9237640), UINT64_C(0x36F515CAACAF858D) } }, + { { UINT64_C(0x3DDEC7C47E768B23), UINT64_C(0x97E13C53036D43ED), + UINT64_C(0x871E59253A39AB5F), UINT64_C(0x9AF292DE07E68E2B), + UINT64_C(0x411583494A40112E), UINT64_C(0xCDBB46AF3D4D97E6) }, + { UINT64_C(0x2F8912933C0EBE40), UINT64_C(0x696C7EEE3EBAD1E5), + UINT64_C(0x8A5F3B6933B50D99), UINT64_C(0xB7BC48407ED47DDE), + UINT64_C(0x3A6F8E6C1E6706D8), UINT64_C(0x6A1479433D84BB8F) } }, + { { UINT64_C(0xEC3A9C78603AE8D1), UINT64_C(0xBFE07E37228C29E5), + UINT64_C(0xB0385C5B396DBC2B), UINT64_C(0x7C14FE83DF85F41F), + UINT64_C(0xE2E64676ADFD463E), UINT64_C(0x5BEF10AA8BF9F23D) }, + { UINT64_C(0xFA83EA0DF6BAB6DA), UINT64_C(0xCD0C8BA5966BF7E3), + UINT64_C(0xD62216B498501C2E), UINT64_C(0xB7F298A4C3E69F2D), + UINT64_C(0x42CEF13B9C8740F4), UINT64_C(0xBB317E520DD64307) } }, + { { UINT64_C(0x22B6245C3FFEE775), UINT64_C(0x5C3F60BEB37CE7AA), + UINT64_C(0xDE195D40E1FEC0DF), UINT64_C(0x3BFAFBC5A0A82074), + UINT64_C(0xC36EC86AC72CA86A), UINT64_C(0x5606285113FD43EA) }, + { UINT64_C(0x8686BE808E0B03A4), UINT64_C(0xC3BD1F93D540D440), + UINT64_C(0x13E4EBC0BF96CEC5), UINT64_C(0xE8E239849190C844), + UINT64_C(0x183593A600844802), UINT64_C(0x467168794D206878) } }, + { { UINT64_C(0x358F394DB6F63D19), UINT64_C(0xA75D48496B052194), + UINT64_C(0x584035905C8D7975), UINT64_C(0x86DC9B6B6CBFBD77), + UINT64_C(0x2DB04D77647A51E5), UINT64_C(0x5E9A5B02F8950D88) }, + { UINT64_C(0xCE69A7E5017168B0), UINT64_C(0x94630FACC4843AD3), + UINT64_C(0xB3B9D7361EFC44FF), UINT64_C(0xE729E9B6B14D7F93), + UINT64_C(0xA071FC60E0ED0ABC), UINT64_C(0xFC1A99718C8D9B83) } }, + { { UINT64_C(0x49686031D138E975), UINT64_C(0x648640385A8EF0D1), + UINT64_C(0x32679713E7F7DE49), UINT64_C(0x5913234929D1CD1D), + UINT64_C(0x849AA23A20BE9ED2), UINT64_C(0x15D303E1284B3F33) }, + { UINT64_C(0x37309475B63F9FE9), UINT64_C(0x327BAC8B45B7256A), + UINT64_C(0x291CD227D17FC5D3), UINT64_C(0x8291D8CDA973EDF1), + UINT64_C(0xF3843562437ABA09), UINT64_C(0x33FFB704271D0785) } }, + { { UINT64_C(0x5248D6E447E11E5E), UINT64_C(0x0F66FC3C269C7ED3), + UINT64_C(0x18C0D2B9903E346E), UINT64_C(0xD81D9D974BEAE1B8), + UINT64_C(0x610326B0FC30FDF3), UINT64_C(0x2B13687019A7DFCD) }, + { UINT64_C(0xEC75F70AB9527676), UINT64_C(0x90829F5129A3D897), + UINT64_C(0x92FE180997980302), UINT64_C(0xA3F2498E68474991), + UINT64_C(0x6A66307B0F22BBAD), UINT64_C(0x32014B9120378557) } }, + { { UINT64_C(0x72CD7D553CD98610), UINT64_C(0xC3D560B074504ADF), + UINT64_C(0x23F0A982CEBB5D5D), UINT64_C(0x1431C15BB839DDB8), + UINT64_C(0x7E207CD8CEB72207), UINT64_C(0x28E0A848E7EFB28D) }, + { UINT64_C(0xD22561FE1BD96F6E), UINT64_C(0x04812C1862A8236B), + UINT64_C(0xA0BF2334975491FA), UINT64_C(0x294F42A6435DF87F), + UINT64_C(0x2772B783A5D6F4F6), UINT64_C(0x348F92ED2724F853) } }, + }, + { + { { UINT64_C(0xC20FB9111A42E5E7), UINT64_C(0x075A678B81D12863), + UINT64_C(0x12BCBC6A5CC0AA89), UINT64_C(0x5279C6AB4FB9F01E), + UINT64_C(0xBC8E178911AE1B89), UINT64_C(0xAE74A706C290003C) }, + { UINT64_C(0x9949D6EC79DF3F45), UINT64_C(0xBA18E26296C8D37F), + UINT64_C(0x68DE6EE2DD2275BF), UINT64_C(0xA9E4FFF8C419F1D5), + UINT64_C(0xBC759CA4A52B5A40), UINT64_C(0xFF18CBD863B0996D) } }, + { { UINT64_C(0x73C57FDED7DD47E5), UINT64_C(0xB0FE5479D49A7F5D), + UINT64_C(0xD25C71F1CFB9821E), UINT64_C(0x9427E209CF6A1D68), + UINT64_C(0xBF3C3916ACD24E64), UINT64_C(0x7E9F5583BDA7B8B5) }, + { UINT64_C(0xE7C5F7C8CF971E11), UINT64_C(0xEC16D5D73C7F035E), + UINT64_C(0x818DC472E66B277C), UINT64_C(0x4413FD47B2816F1E), + UINT64_C(0x40F262AF48383C6D), UINT64_C(0xFB0575844F190537) } }, + { { UINT64_C(0x487EDC0708962F6B), UINT64_C(0x6002F1E7190A7E55), + UINT64_C(0x7FC62BEA10FDBA0C), UINT64_C(0xC836BBC52C3DBF33), + UINT64_C(0x4FDFB5C34F7D2A46), UINT64_C(0x824654DEDCA0DF71) }, + { UINT64_C(0x30A076760C23902B), UINT64_C(0x7F1EBB9377FBBF37), + UINT64_C(0xD307D49DFACC13DB), UINT64_C(0x148D673AAE1A261A), + UINT64_C(0xE008F95B52D98650), UINT64_C(0xC76144409F558FDE) } }, + { { UINT64_C(0x17CD6AF69CB16650), UINT64_C(0x86CC27C169F4EEBE), + UINT64_C(0x7E495B1D78822432), UINT64_C(0xFED338E31B974525), + UINT64_C(0x527743D386F3CE21), UINT64_C(0x87948AD3B515C896) }, + { UINT64_C(0x9FDE7039B17F2FB8), UINT64_C(0xA2FA9A5FD9B89D96), + UINT64_C(0x5D46600B36FF74DC), UINT64_C(0x8EA74B048302C3C9), + UINT64_C(0xD560F570F744B5EB), UINT64_C(0xC921023BFE762402) } }, + { { UINT64_C(0xA35AB657FFF4C8ED), UINT64_C(0x017C61248A5FABD7), + UINT64_C(0x5646302509ACDA28), UINT64_C(0x6038D36114CF238A), + UINT64_C(0x1428B1B6AF1B9F07), UINT64_C(0x5827FF447482E95C) }, + { UINT64_C(0xCB997E18780FF362), UINT64_C(0x2B89D702E0BCAC1E), + UINT64_C(0xC632A0B5A837DDC8), UINT64_C(0xF3EFCF1F59762647), + UINT64_C(0xE9BA309A38B0D60A), UINT64_C(0x05DEABDD20B5FB37) } }, + { { UINT64_C(0xD44E5DBACB8AF047), UINT64_C(0x15400CB4943CFE82), + UINT64_C(0xDBD695759DF88B67), UINT64_C(0x8299DB2BB2405A7D), + UINT64_C(0x46E3BF770B1D80CD), UINT64_C(0xC50CF66CE82BA3D9) }, + { UINT64_C(0xB2910A07F2F747A9), UINT64_C(0xF6B669DB5ADC89C1), + UINT64_C(0x3B5EF1A09052B081), UINT64_C(0x0F5D5ED3B594ACE2), + UINT64_C(0xDA30B8D5D5F01320), UINT64_C(0x0D688C5EAAFCD58F) } }, + { { UINT64_C(0x5EEE3A312A161074), UINT64_C(0x6BAAAE56EFE2BE37), + UINT64_C(0xF9787F61E3D78698), UINT64_C(0xC6836B2650630A30), + UINT64_C(0x7445B85D1445DEF1), UINT64_C(0xD72016A2D568A6A5) }, + { UINT64_C(0x9DD6F533E355614F), UINT64_C(0x637E7E5F91E04588), + UINT64_C(0x42E142F3B9FB1391), UINT64_C(0x0D07C05C41AFE5DA), + UINT64_C(0xD7CD25C81394EDF1), UINT64_C(0xEBE6A0FCB99288EE) } }, + { { UINT64_C(0xB8E63B7BBABBAD86), UINT64_C(0x63226A9F90D66766), + UINT64_C(0x263818365CF26666), UINT64_C(0xCCBD142D4CADD0BF), + UINT64_C(0xA070965E9AC29470), UINT64_C(0x6BDCA26025FF23ED) }, + { UINT64_C(0xD4E00FD487DCA7B3), UINT64_C(0xA50978339E0E8734), + UINT64_C(0xF73F162E048173A4), UINT64_C(0xD23F91969C3C2FA2), + UINT64_C(0x9AB98B45E4AC397A), UINT64_C(0x2BAA0300543F2D4B) } }, + { { UINT64_C(0xBBBE15E7C658C445), UINT64_C(0xB8CBCB20C28941D1), + UINT64_C(0x65549BE2027D6540), UINT64_C(0xEBBCA8021E8EF4F4), + UINT64_C(0x18214B4BD2ACA397), UINT64_C(0xCBEC7DE2E31784A3) }, + { UINT64_C(0x96F0533F0116FDF3), UINT64_C(0x68911C905C8F5EE1), + UINT64_C(0x7DE9A3AED568603A), UINT64_C(0x3F56C52C6A3AD7B7), + UINT64_C(0x5BE9AFCA670B4D0E), UINT64_C(0x628BFEEE375DFE2F) } }, + { { UINT64_C(0x97DAE81BDD4ADDB3), UINT64_C(0x12D2CF4E8704761B), + UINT64_C(0x5E820B403247788D), UINT64_C(0x82234B620051CA80), + UINT64_C(0x0C62704D6CB5EA74), UINT64_C(0xDE56042023941593) }, + { UINT64_C(0xB3912A3CF1B04145), UINT64_C(0xE3967CD7AF93688D), + UINT64_C(0x2E2DCD2F58DABB4B), UINT64_C(0x6564836F0E303911), + UINT64_C(0x1F10F19BECE07C5C), UINT64_C(0xB47F07EED8919126) } }, + { { UINT64_C(0xE3545085E9A2EEC9), UINT64_C(0x81866A972C8E51FE), + UINT64_C(0xD2BA7DB550027243), UINT64_C(0x29DAEAB54AE87DE4), + UINT64_C(0x5EF3D4B8684F9497), UINT64_C(0xE2DACE3B9D5D6873) }, + { UINT64_C(0xF012C951FFD29C9C), UINT64_C(0x48289445ADBADA14), + UINT64_C(0x8751F50D89558C49), UINT64_C(0x75511A4F99E35BEE), + UINT64_C(0xEF802D6E7D59AA5F), UINT64_C(0x14FCAD65A2A795E2) } }, + { { UINT64_C(0xC8EB00E808CB8F2C), UINT64_C(0x686075322B45BD86), + UINT64_C(0x7A29B45959969713), UINT64_C(0x5FA15B9BD684201B), + UINT64_C(0x1A853190B9E538EE), UINT64_C(0x4150605CD573D043) }, + { UINT64_C(0xEF011D3BEB9FBB68), UINT64_C(0x6727998266AE32B6), + UINT64_C(0x861B86EA445DE5EC), UINT64_C(0x62837D18A34A50E1), + UINT64_C(0x228C006ABF5F0663), UINT64_C(0xE007FDE7396DB36A) } }, + { { UINT64_C(0xDEE4F8815A916A55), UINT64_C(0x20DC0370F39C82CB), + UINT64_C(0xD9A7161540F09821), UINT64_C(0xD50AD8BFF7273492), + UINT64_C(0xA06F7D1232E7C4BF), UINT64_C(0xFA0F61544C5CEA36) }, + { UINT64_C(0xF4FD9BED5FC49CFE), UINT64_C(0xD8CB45D1C9291678), + UINT64_C(0x94DB86CC7B92C9F2), UINT64_C(0x09CA5F3873C81169), + UINT64_C(0x109F40B0AEED06F0), UINT64_C(0x9F0360B214DCAA0A) } }, + { { UINT64_C(0x4189B70DE12AD3E7), UINT64_C(0x5208ADB210B06607), + UINT64_C(0xEBD8E2A2EE8497FA), UINT64_C(0x61B1BD67E04F2ECB), + UINT64_C(0x0E2DDA724F3F5F99), UINT64_C(0xD5D96740F747B16D) }, + { UINT64_C(0x308A48F6A6BF397F), UINT64_C(0x7021C3E523A93595), + UINT64_C(0xF10B022936470AA0), UINT64_C(0x7761E8EC4E03295B), + UINT64_C(0x16EFEF5807339770), UINT64_C(0x0D55D2DD5DA5DAA2) } }, + { { UINT64_C(0x915EA6A38A22F87A), UINT64_C(0x191151C12E5A088E), + UINT64_C(0x190252F17F1D5CBE), UINT64_C(0xE43F59C33B0EC99B), + UINT64_C(0xBE8588D4FF2A6135), UINT64_C(0x103877CC2ECB4B9F) }, + { UINT64_C(0x8F4147E5023CF92B), UINT64_C(0xC24384CC0CC2085B), + UINT64_C(0x6A2DB4A2D082D311), UINT64_C(0x06283811ED7BA9AE), + UINT64_C(0xE9A3F5322A8E1592), UINT64_C(0xAC20F0F45A59E894) } }, + { { UINT64_C(0x788CAA5274AAB4B1), UINT64_C(0xEB84ABA12FEAFC7E), + UINT64_C(0x31DA71DAAC04FF77), UINT64_C(0x39D12EB924E4D0BF), + UINT64_C(0x4F2F292F87A34EF8), UINT64_C(0x9B324372A237A8ED) }, + { UINT64_C(0xBB2D04B12EE3A82D), UINT64_C(0xED4FF367D18D36B2), + UINT64_C(0x99D231EEA6EA0138), UINT64_C(0x7C2D4F064F92E04A), + UINT64_C(0x78A82AB2CA272FD0), UINT64_C(0x7EC41340AB8CDC32) } }, + }, + { + { { UINT64_C(0xD23658C8D2E15A8C), UINT64_C(0x23F93DF716BA28CA), + UINT64_C(0x6DAB10EC082210F1), UINT64_C(0xFB1ADD91BFC36490), + UINT64_C(0xEDA8B02F9A4F2D14), UINT64_C(0x9060318C56560443) }, + { UINT64_C(0x6C01479E64711AB2), UINT64_C(0x41446FC7E337EB85), + UINT64_C(0x4DCF3C1D71888397), UINT64_C(0x87A9C04E13C34FD2), + UINT64_C(0xFE0E08EC510C15AC), UINT64_C(0xFC0D0413C0F495D2) } }, + { { UINT64_C(0xEB05C516156636C2), UINT64_C(0x2F613ABA090E93FC), + UINT64_C(0xCFD573CD489576F5), UINT64_C(0xE6535380535A8D57), + UINT64_C(0x13947314671436C4), UINT64_C(0x1172FB0C5F0A122D) }, + { UINT64_C(0xAECC7EC1C12F58F6), UINT64_C(0xFE42F9578E41AFD2), + UINT64_C(0xDF96F6523D4221AA), UINT64_C(0xFEF5649F2851996B), + UINT64_C(0x46FB9F26D5CFB67E), UINT64_C(0xB047BFC7EF5C4052) } }, + { { UINT64_C(0x5CBDC442F4484374), UINT64_C(0x6B156957F92452EF), + UINT64_C(0x58A26886C118D02A), UINT64_C(0x87FF74E675AAF276), + UINT64_C(0xB133BE95F65F6EC1), UINT64_C(0xA89B62844B1B8D32) }, + { UINT64_C(0xDD8A8EF309C81004), UINT64_C(0x7F8225DB0CF21991), + UINT64_C(0xD525A6DB26623FAF), UINT64_C(0xF2368D40BAE15453), + UINT64_C(0x55D6A84D84F89FC9), UINT64_C(0xAF38358A86021A3E) } }, + { { UINT64_C(0xBD048BDCFF52E280), UINT64_C(0x8A51D0B2526A1795), + UINT64_C(0x40AAA758A985AC0F), UINT64_C(0x6039BCDCF2C7ACE9), + UINT64_C(0x712092CC6AEC347D), UINT64_C(0x7976D0906B5ACAB7) }, + { UINT64_C(0x1EBCF80D6EED9617), UINT64_C(0xB3A63149B0F404A4), + UINT64_C(0x3FDD3D1AD0B610EF), UINT64_C(0xDD3F6F9498C28AC7), + UINT64_C(0x650B77943A59750F), UINT64_C(0xEC59BAB12D3991AC) } }, + { { UINT64_C(0x01F40E882E552766), UINT64_C(0x1FE3D50966F5354F), + UINT64_C(0x0E46D006B3A8EA7F), UINT64_C(0xF75AB629F831CD6A), + UINT64_C(0xDAD808D791465119), UINT64_C(0x442405AF17EF9B10) }, + { UINT64_C(0xD5FE0A96672BDFCB), UINT64_C(0xA9DFA422355DBDEC), + UINT64_C(0xFDB79AA179B25636), UINT64_C(0xE7F26FFDEECE8AEC), + UINT64_C(0xB59255507EDD5AA2), UINT64_C(0x2C8F6FF08EB3A6C2) } }, + { { UINT64_C(0x88887756757D6136), UINT64_C(0xAD9AC18388B92E72), + UINT64_C(0x92CB2FC48785D3EB), UINT64_C(0xD1A542FE9319764B), + UINT64_C(0xAF4CC78F626A62F8), UINT64_C(0x7F3F5FC926BFFAAE) }, + { UINT64_C(0x0A203D4340AE2231), UINT64_C(0xA8BFD9E0387898E8), + UINT64_C(0x1A0C379C474B7DDD), UINT64_C(0x03855E0A34FD49EA), + UINT64_C(0x02B26223B3EF4AE1), UINT64_C(0x804BD8CFE399E0A3) } }, + { { UINT64_C(0x11A9F3D0DE865713), UINT64_C(0x81E36B6BBDE98821), + UINT64_C(0x324996C86AA891D0), UINT64_C(0x7B95BDC1395682B5), + UINT64_C(0x47BF2219C1600563), UINT64_C(0x7A473F50643E38B4) }, + { UINT64_C(0x0911F50AF5738288), UINT64_C(0xDF947A706F9C415B), + UINT64_C(0xBDB994F267A067F6), UINT64_C(0x3F4BEC1B88BE96CD), + UINT64_C(0x9820E931E56DD6D9), UINT64_C(0xB138F14F0A80F419) } }, + { { UINT64_C(0xA11A1A8F0429077A), UINT64_C(0x2BB1E33D10351C68), + UINT64_C(0x3C25ABFE89459A27), UINT64_C(0x2D0091B86B8AC774), + UINT64_C(0xDAFC78533B2415D9), UINT64_C(0xDE713CF19201680D) }, + { UINT64_C(0x8E5F445D68889D57), UINT64_C(0x608B209C60EABF5B), + UINT64_C(0x10EC0ACCF9CFA408), UINT64_C(0xD5256B9D4D1EE754), + UINT64_C(0xFF866BAB0AA6C18D), UINT64_C(0x9D196DB8ACB90A45) } }, + { { UINT64_C(0xA46D76A9B9B081B2), UINT64_C(0xFC743A1062163C25), + UINT64_C(0xCD2A5C8D7761C392), UINT64_C(0x39BDDE0BBE808583), + UINT64_C(0x7C416021B98E4DFE), UINT64_C(0xF930E56365913A44) }, + { UINT64_C(0xC3555F7E7585CF3C), UINT64_C(0xC737E3833D6333D5), + UINT64_C(0x5B60DBA4B430B03D), UINT64_C(0x42B715EBE7555404), + UINT64_C(0x571BDF5B7C7796E3), UINT64_C(0x33DC62C66DB6331F) } }, + { { UINT64_C(0x3FB9CCB0E61DEE59), UINT64_C(0xC5185F2318B14DB9), + UINT64_C(0x1B2ADC4F845EF36C), UINT64_C(0x195D5B505C1A33AB), + UINT64_C(0x8CEA528E421F59D2), UINT64_C(0x7DFCCECFD2931CEA) }, + { UINT64_C(0x51FFA1D58CF7E3F7), UINT64_C(0xF01B7886BDC9FB43), + UINT64_C(0xD65AB610261A0D35), UINT64_C(0x84BCBAFD7574A554), + UINT64_C(0x4B119956FAD70208), UINT64_C(0xDDC329C24FAB5243) } }, + { { UINT64_C(0x1A08AA579CE92177), UINT64_C(0x3395E557DC2B5C36), + UINT64_C(0xFDFE7041394ED04E), UINT64_C(0xB797EB24C6DFCDDE), + UINT64_C(0x284A6B2ACB9DE5D6), UINT64_C(0xE0BD95C807222765) }, + { UINT64_C(0x114A951B9FE678A7), UINT64_C(0xE7ECD0BD9E4954EC), + UINT64_C(0x7D4096FE79F0B8A9), UINT64_C(0xBDB26E9A09724FE2), + UINT64_C(0x08741AD8F787AF95), UINT64_C(0x2BF9727224045AD8) } }, + { { UINT64_C(0xAB1FEDD9A9451D57), UINT64_C(0xDF4D91DF483E38C9), + UINT64_C(0x2D54D31124E9CF8E), UINT64_C(0x9C2A5AF87A22EEB6), + UINT64_C(0xBD9861EF0A43F123), UINT64_C(0x581EA6A238A18B7B) }, + { UINT64_C(0xAF339C85296470A3), UINT64_C(0xF9603FCDAFD8203E), + UINT64_C(0x95D0535096763C28), UINT64_C(0x15445C16860EC831), + UINT64_C(0x2AFB87286867A323), UINT64_C(0x4B152D6D0C4838BF) } }, + { { UINT64_C(0x45BA0E4F837CACBA), UINT64_C(0x7ADB38AEC0725275), + UINT64_C(0x19C82831942D3C28), UINT64_C(0x94F4731D6D0FE7DD), + UINT64_C(0xC3C07E134898F1E6), UINT64_C(0x76350EACED410B51) }, + { UINT64_C(0x0FA8BECAF99AACFC), UINT64_C(0x2834D86F65FAF9CF), + UINT64_C(0x8E62846A6F3866AF), UINT64_C(0xDAA9BD4F3DFD6A2B), + UINT64_C(0xC27115BBA6132655), UINT64_C(0x83972DF7BD5A32C2) } }, + { { UINT64_C(0xA330CB5BD513B825), UINT64_C(0xAE18B2D3EE37BEC3), + UINT64_C(0xFC3AB80AF780A902), UINT64_C(0xD7835BE2D607DDF1), + UINT64_C(0x8120F7675B6E4C2B), UINT64_C(0xAA8C385967E78CCB) }, + { UINT64_C(0xA8DA8CE2AA0ED321), UINT64_C(0xCB8846FDD766341A), + UINT64_C(0xF2A342EE33DC9D9A), UINT64_C(0xA519E0BED0A18A80), + UINT64_C(0x9CDAA39CAF48DF4C), UINT64_C(0xA4B500CA7E0C19EE) } }, + { { UINT64_C(0x83A7FD2F8217001B), UINT64_C(0x4F6FCF064296A8BA), + UINT64_C(0x7D74864391619927), UINT64_C(0x174C1075941E4D41), + UINT64_C(0x037EDEBDA64F5A6C), UINT64_C(0xCF64DB3A6E29DC56) }, + { UINT64_C(0x150B3ACE37C0B9F4), UINT64_C(0x1323234A7168178B), + UINT64_C(0x1CE47014EF4D1879), UINT64_C(0xA22E374217FB4D5C), + UINT64_C(0x69B81822D985F794), UINT64_C(0x199C21C4081D7214) } }, + { { UINT64_C(0x160BC7A18F04B4D2), UINT64_C(0x79CA81DDB10DE174), + UINT64_C(0xE2A280B02DA1E9C7), UINT64_C(0xB4F6BD991D6A0A29), + UINT64_C(0x57CF3EDD1C5B8F27), UINT64_C(0x7E34FC57158C2FD4) }, + { UINT64_C(0x828CFD89CAC93459), UINT64_C(0x9E631B6FB7AF499F), + UINT64_C(0xF4DC8BC0DA26C135), UINT64_C(0x6128ED3937186735), + UINT64_C(0xBB45538B67BF0BA5), UINT64_C(0x1ADDD4C10064A3AB) } }, + }, + { + { { UINT64_C(0xC32730E8DD14D47E), UINT64_C(0xCDC1FD42C0F01E0F), + UINT64_C(0x2BACFDBF3F5CD846), UINT64_C(0x45F364167272D4DD), + UINT64_C(0xDD813A795EB75776), UINT64_C(0xB57885E450997BE2) }, + { UINT64_C(0xDA054E2BDB8C9829), UINT64_C(0x4161D820AAB5A594), + UINT64_C(0x4C428F31026116A3), UINT64_C(0x372AF9A0DCD85E91), + UINT64_C(0xFDA6E903673ADC2D), UINT64_C(0x4526B8ACA8DB59E6) } }, + { { UINT64_C(0x68FE359DE23A8472), UINT64_C(0x43EB12BD4CE3C101), + UINT64_C(0x0EC652C3FC704935), UINT64_C(0x1EEFF1F952E4E22D), + UINT64_C(0xBA6777CB083E3ADA), UINT64_C(0xAB52D7DC8BEFC871) }, + { UINT64_C(0x4EDE689F497CBD59), UINT64_C(0xC8AE42B927577DD9), + UINT64_C(0xE0F080517AB83C27), UINT64_C(0x1F3D5F252C8C1F48), + UINT64_C(0x57991607AF241AAC), UINT64_C(0xC4458B0AB8A337E0) } }, + { { UINT64_C(0x3DBB3FA651DD1BA9), UINT64_C(0xE53C1C4D545E960B), + UINT64_C(0x35AC6574793CE803), UINT64_C(0xB2697DC783DBCE4F), + UINT64_C(0xE35C5BF2E13CF6B0), UINT64_C(0x35034280B0C4A164) }, + { UINT64_C(0xAA490908D9C0D3C1), UINT64_C(0x2CCE614DCB4D2E90), + UINT64_C(0xF646E96C54D504E4), UINT64_C(0xD74E7541B73310A3), + UINT64_C(0xEAD7159618BDE5DA), UINT64_C(0x96E7F4A8AA09AEF7) } }, + { { UINT64_C(0xA8393A245D6E5F48), UINT64_C(0x2C8D7EA2F9175CE8), + UINT64_C(0xD8824E0255A20268), UINT64_C(0x9DD9A272A446BCC6), + UINT64_C(0xC929CDED5351499B), UINT64_C(0xEA5AD9ECCFE76535) }, + { UINT64_C(0x26F3D7D9DC32D001), UINT64_C(0x51C3BE8343EB9689), + UINT64_C(0x91FDCC06759E6DDB), UINT64_C(0xAC2E1904E302B891), + UINT64_C(0xAD25C645C207E1F7), UINT64_C(0x28A70F0DAB3DEB4A) } }, + { { UINT64_C(0x922D7F9703BEA8F1), UINT64_C(0x3AD820D4584570BE), + UINT64_C(0x0CE0A8503CD46B43), UINT64_C(0x4C07911FAE66743D), + UINT64_C(0x66519EB9FDA60023), UINT64_C(0x7F83004BEC2ACD9C) }, + { UINT64_C(0x001E0B80C3117EAD), UINT64_C(0xBB72D5410722BA25), + UINT64_C(0x3AF7DB966E9A5078), UINT64_C(0x86C5774E701B6B4C), + UINT64_C(0xBD2C0E8E37824DB5), UINT64_C(0x3AE3028CBFAC286D) } }, + { { UINT64_C(0x83D4D4A8A33E071B), UINT64_C(0x881C0A9261444BB5), + UINT64_C(0xEEA1E292520E3BC3), UINT64_C(0x5A5F4C3C2AAAB729), + UINT64_C(0x0B766C5EE63C7C94), UINT64_C(0x62BB8A9FBB2CC79C) }, + { UINT64_C(0x97ADC7D2AA5DC49D), UINT64_C(0x30CC26B331718681), + UINT64_C(0xAC86E6FF56E86EDE), UINT64_C(0x37BCA7A2CD52F7F2), + UINT64_C(0x734D2C949CE6D87F), UINT64_C(0x06A71D71C2F7E0CA) } }, + { { UINT64_C(0x559DCF75C6357D33), UINT64_C(0x4616D940652517DE), + UINT64_C(0x3D576B981CCF207B), UINT64_C(0x51E2D1EF1979F631), + UINT64_C(0x57517DDD06AE8296), UINT64_C(0x309A3D7FD6E7151F) }, + { UINT64_C(0xBA2A23E60E3A6FE5), UINT64_C(0x76CF674AD28B22C3), + UINT64_C(0xD235AD07F8B808C3), UINT64_C(0x7BBF4C586B71213A), + UINT64_C(0x0676792E93271EBB), UINT64_C(0x2CFD2C7605B1FC31) } }, + { { UINT64_C(0x4258E5C037A450F5), UINT64_C(0xC3245F1B52D2B118), + UINT64_C(0x6DF7B48482BC5963), UINT64_C(0xE520DA4D9C273D1E), + UINT64_C(0xED78E0122C3010E5), UINT64_C(0x112229483C1D4C05) }, + { UINT64_C(0xE3DAE5AFC692B490), UINT64_C(0x3272BD10C197F793), + UINT64_C(0xF7EAE411E709ACAA), UINT64_C(0x00B0C95F778270A6), + UINT64_C(0x4DA76EE1220D4350), UINT64_C(0x521E1461AB71E308) } }, + { { UINT64_C(0x7B654323343196A3), UINT64_C(0x35D442ADB0C95250), + UINT64_C(0x38AF50E6E264FF17), UINT64_C(0x28397A412030D2EA), + UINT64_C(0x8F1D84E9F74EEDA1), UINT64_C(0xD521F92DE6FB3C52) }, + { UINT64_C(0xAF358D7795733811), UINT64_C(0xEBFDDD0193ABFE94), + UINT64_C(0x05D8A028D18D99DE), UINT64_C(0x5A664019B5D5BDD9), + UINT64_C(0x3DF172822AA12FE8), UINT64_C(0xB42E006FB889A28E) } }, + { { UINT64_C(0xCF10E97DBC35CB1A), UINT64_C(0xC70A7BBD994DEDC5), + UINT64_C(0x76A5327C37D04FB9), UINT64_C(0x87539F76A76E0CDA), + UINT64_C(0xE9FE493FCD60A6B1), UINT64_C(0xA4574796132F01C0) }, + { UINT64_C(0xC43B85EBDB70B167), UINT64_C(0x81D5039A98551DFA), + UINT64_C(0x6B56FBE91D979FA4), UINT64_C(0x49714FD78615098F), + UINT64_C(0xB10E1CEA94DECAB5), UINT64_C(0x8342EBA3480EF6E3) } }, + { { UINT64_C(0xE1E030B0B3677288), UINT64_C(0x2978174C8D5CE3AF), + UINT64_C(0xAFC0271CF7B2DE98), UINT64_C(0x745BC6F3B99C20B5), + UINT64_C(0x9F6EDCED1E3BB4E5), UINT64_C(0x58D3EE4E73C8C1FC) }, + { UINT64_C(0x1F3535F47FD30124), UINT64_C(0xF366AC705FA62502), + UINT64_C(0x4C4C1FDD965363FE), UINT64_C(0x8B2C77771DE2CA2B), + UINT64_C(0x0CB54743882F1173), UINT64_C(0x94B6B8C071343331) } }, + { { UINT64_C(0x75AF014165B8B35B), UINT64_C(0x6D7B84854670A1F5), + UINT64_C(0x6EAA3A47A3B6D376), UINT64_C(0xD7E673D2CB3E5B66), + UINT64_C(0xC0338E6C9589AB38), UINT64_C(0x4BE26CB309440FAA) }, + { UINT64_C(0x82CB05E7394F9AA3), UINT64_C(0xC45C8A8A7F7792EA), + UINT64_C(0x37E5E33BB687DC70), UINT64_C(0x63853219DFE48E49), + UINT64_C(0x087951C16D0E5C8C), UINT64_C(0x7696A8C72BC27310) } }, + { { UINT64_C(0xA05736D5B67E834A), UINT64_C(0xDD2AA0F29098D42A), + UINT64_C(0x09F0C1D849C69DDC), UINT64_C(0x81F8BC1C8FF0F0F3), + UINT64_C(0x36FD3A4F03037775), UINT64_C(0x8286717D4B06DF5C) }, + { UINT64_C(0xB878F496A9079EA2), UINT64_C(0xA5642426D7DC796D), + UINT64_C(0x29B9351A67FDAC2B), UINT64_C(0x93774C0E1D543CDE), + UINT64_C(0x4F8793BA1A8E31C4), UINT64_C(0x7C9F3F3A6C94798A) } }, + { { UINT64_C(0x23C5AD11CB8ECDB8), UINT64_C(0x1E88D25E485A6A02), + UINT64_C(0xB27CBE84F1E268AE), UINT64_C(0xDDA80238F4CD0475), + UINT64_C(0x4F88857B49F8EB1B), UINT64_C(0x91B1221F52FB07F9) }, + { UINT64_C(0x7CE974608637FA67), UINT64_C(0x528B3CF4632198D8), + UINT64_C(0x33365AB3F6623769), UINT64_C(0x6FEBCFFF3A83A30F), + UINT64_C(0x398F4C999BD341EB), UINT64_C(0x180712BBB33A333C) } }, + { { UINT64_C(0x2B8655A2D93429E7), UINT64_C(0x99D600BB75C8B9EE), + UINT64_C(0x9FC1AF8B88FCA6CD), UINT64_C(0x2FB533867C311F80), + UINT64_C(0x20743ECBE8A71EEE), UINT64_C(0xEC3713C4E848B49E) }, + { UINT64_C(0x5B2037B5BB886817), UINT64_C(0x40EF5AC2307DBAF4), + UINT64_C(0xC2888AF21B3F643D), UINT64_C(0x0D8252E19D5A4190), + UINT64_C(0x06CC0BEC2DB52A8A), UINT64_C(0xB84B98EAAB94E969) } }, + { { UINT64_C(0x2E7AC078A0321E0E), UINT64_C(0x5C5A1168EF3DAAB6), + UINT64_C(0xD2D573CBADDD454A), UINT64_C(0x27E149E236259CC7), + UINT64_C(0x1EDFD469A63F47F1), UINT64_C(0x039AD674F1BD2CFD) }, + { UINT64_C(0xBFA633FC3077D3CC), UINT64_C(0x14A7C82F2FD64E9F), + UINT64_C(0xAAA650149D824999), UINT64_C(0x41AB113B21760F2E), + UINT64_C(0x23E646C51CAE260A), UINT64_C(0x08062C8F68DC5159) } }, + }, + { + { { UINT64_C(0x2E7D0A16204BE028), UINT64_C(0x4F1D082ED0E41851), + UINT64_C(0x15F1DDC63EB317F9), UINT64_C(0xF02750715ADF71D7), + UINT64_C(0x2CE33C2EEE858BC3), UINT64_C(0xA24C76D1DA73B71A) }, + { UINT64_C(0x9EF6A70A6C70C483), UINT64_C(0xEFCF170505CF9612), + UINT64_C(0x9F5BF5A67502DE64), UINT64_C(0xD11122A1A4701973), + UINT64_C(0x82CFAAC2A2EA7B24), UINT64_C(0x6CAD67CC0A4582E1) } }, + { { UINT64_C(0x597A26FFB4DC8600), UINT64_C(0x264A09F3F9288555), + UINT64_C(0x0B06AFF65C27F5F6), UINT64_C(0xCE5AB665D8D544E6), + UINT64_C(0x92F031BE99275C32), UINT64_C(0xAF51C5BBF42E0E7C) }, + { UINT64_C(0x5BB28B061E37B36D), UINT64_C(0x583FBA6A8473543A), + UINT64_C(0xE73FD299F93FB7DC), UINT64_C(0xFCD999A86E2CCAD9), + UINT64_C(0xB8C8A6DF334D4F57), UINT64_C(0x5ADB28DD9A2ACC9B) } }, + { { UINT64_C(0x5ADF3D9A111792B9), UINT64_C(0x1C77A3054F1E0D09), + UINT64_C(0xF9FBCE33A82D3736), UINT64_C(0xF307823E718C8AA3), + UINT64_C(0x860578CF416CCF69), UINT64_C(0xB942ADD81EF8465B) }, + { UINT64_C(0x9EE0CF97CD9472E1), UINT64_C(0xE6792EEFB01528A8), + UINT64_C(0xF99B9A8DC09DA90B), UINT64_C(0x1F521C2DCBF3CCB8), + UINT64_C(0x6BF6694891A62632), UINT64_C(0xCC7A9CEB854FE9DA) } }, + { { UINT64_C(0x46303171491CCB92), UINT64_C(0xA80A8C0D2771235B), + UINT64_C(0xD8E497FFF172C7CF), UINT64_C(0x7F7009D735B193CF), + UINT64_C(0x6B9FD3F7F19DF4BC), UINT64_C(0xADA548C3B46F1E37) }, + { UINT64_C(0x87C6EAA9C7A20270), UINT64_C(0xEF2245D6AE78EF99), + UINT64_C(0x2A121042539EAB95), UINT64_C(0x29A6D5D779B8F5CC), + UINT64_C(0x33803A10B77840DC), UINT64_C(0xFEDD3A7011A6A30F) } }, + { { UINT64_C(0xFA070E22142403D1), UINT64_C(0x68FF316015C6F7F5), + UINT64_C(0xE09F04E6223A0CE8), UINT64_C(0x22BBD01853E14183), + UINT64_C(0x35D9FAFCCF45B75B), UINT64_C(0x3A34819D7ECEEC88) }, + { UINT64_C(0xD9CF7568D33262D2), UINT64_C(0x431036D5841D1505), + UINT64_C(0x0C8005659EB2A79A), UINT64_C(0x8E77D9F05F7EDC6A), + UINT64_C(0x19E12D0565E800AA), UINT64_C(0x335C8D36B7784E7C) } }, + { { UINT64_C(0x8B2FC4E96484FD40), UINT64_C(0xEE702764A35D24EA), + UINT64_C(0x15B28AC7B871C3F3), UINT64_C(0x805B4048E097047F), + UINT64_C(0xD6F1B8DF647CAD2F), UINT64_C(0xF1D5B458DC7DD67F) }, + { UINT64_C(0x324C529C25148803), UINT64_C(0xF6185EBE21274FAF), + UINT64_C(0xAF14751E95148B55), UINT64_C(0x283ED89D28F284F4), + UINT64_C(0x93AD20E74CBEBF1A), UINT64_C(0x5F6EC65D882935E1) } }, + { { UINT64_C(0xE222EBA4A4DCEFE9), UINT64_C(0x63AD235FEC1CEB74), + UINT64_C(0x2E0BF749E05B18E7), UINT64_C(0x547BD050B48BDD87), + UINT64_C(0x0490C970F5AA2FC4), UINT64_C(0xCED5E4CF2B431390) }, + { UINT64_C(0x07D8270451D2898E), UINT64_C(0x44B72442083B57D4), + UINT64_C(0xA4ADA2305037FCE8), UINT64_C(0x55F7905E50510DA6), + UINT64_C(0xD8EE724F8D890A98), UINT64_C(0x925A8E7C11B85640) } }, + { { UINT64_C(0x5BFA10CD1CA459ED), UINT64_C(0x593F085A6DCF56BF), + UINT64_C(0xE6F0AD9BC0579C3E), UINT64_C(0xC11C95A22527C1AD), + UINT64_C(0x7CFA71E1CF1CB8B3), UINT64_C(0xEDCFF8331D6DC79D) }, + { UINT64_C(0x581C4BBE432521C9), UINT64_C(0xBF620096144E11A0), + UINT64_C(0x54C38B71BE3A107B), UINT64_C(0xED555E37E2606EC0), + UINT64_C(0x3FB148B8D721D034), UINT64_C(0x79D53DAD0091BC90) } }, + { { UINT64_C(0xE32068C5B7082C80), UINT64_C(0x4140FFD27A144E22), + UINT64_C(0x5811D2F09EDD9E86), UINT64_C(0xCDD79B5FC572C465), + UINT64_C(0x3563FED1C97BF450), UINT64_C(0x985C1444F2CE5C9C) }, + { UINT64_C(0x260AE79799950F1C), UINT64_C(0x659F4F40765E9DED), + UINT64_C(0x2A412D662E3BC286), UINT64_C(0xE865E62CF87E0C82), + UINT64_C(0xD63D3A9A6C05E7D7), UINT64_C(0x96725D678686F89A) } }, + { { UINT64_C(0xC99A5E4CAB7EA0F5), UINT64_C(0xC9860A1AC5393FA9), + UINT64_C(0x9ED83CEE8FDEEFC0), UINT64_C(0xE3EA8B4C5ED6869A), + UINT64_C(0x89A85463D2EED3A9), UINT64_C(0x2CD91B6DE421A622) }, + { UINT64_C(0x6FEC1EF32C91C41D), UINT64_C(0xB1540D1F8171037D), + UINT64_C(0x4FE4991A1C010E5B), UINT64_C(0x28A3469FFC1C7368), + UINT64_C(0xE1EEECD1AF118781), UINT64_C(0x1BCCB97799EF3531) } }, + { { UINT64_C(0x63D3B638C4DAB7B8), UINT64_C(0xD92133B63F7F5BAB), + UINT64_C(0x2573EE2009FB6069), UINT64_C(0x771FABDF890A1686), + UINT64_C(0x1D0BA21FA77AFFF5), UINT64_C(0x83145FCCBA3DD2C0) }, + { UINT64_C(0xFA073A812D115C20), UINT64_C(0x6AB7A9D319176F27), + UINT64_C(0xAF62CF939AC639EE), UINT64_C(0xF73848B92CCD1319), + UINT64_C(0x3B6132343C71659D), UINT64_C(0xF8E0011C10AB3826) } }, + { { UINT64_C(0x0501F0360282FFA5), UINT64_C(0xC39A5CF4D9E0F15A), + UINT64_C(0x48D8C7299A3D1F3C), UINT64_C(0xB5FC136B64E18EDA), + UINT64_C(0xE81B53D97E58FEF0), UINT64_C(0x0D534055F7B0F28D) }, + { UINT64_C(0x47B8DE127A80619B), UINT64_C(0x60E2A2B381F9E55D), + UINT64_C(0x6E9624D7CF564CC5), UINT64_C(0xFDF18A216BDEDFFF), + UINT64_C(0x3787DE38C0D5FC82), UINT64_C(0xCBCAA347497A6B11) } }, + { { UINT64_C(0x6E7EF35EB226465A), UINT64_C(0x4B4699195F8A2BAF), + UINT64_C(0x44B3A3CF1120D93F), UINT64_C(0xB052C8B668F34AD1), + UINT64_C(0x27EC574BEF7632DD), UINT64_C(0xAEBEA108685DE26F) }, + { UINT64_C(0xDA33236BE39424B6), UINT64_C(0xB1BD94A9EBCC22AD), + UINT64_C(0x6DDEE6CC2CDFB5D5), UINT64_C(0xBDAED9276F14069A), + UINT64_C(0x2ADE427C2A247CB7), UINT64_C(0xCE96B436ED156A40) } }, + { { UINT64_C(0xDDDCA36081F3F819), UINT64_C(0x4AF4A49FD419B96A), + UINT64_C(0x746C65257CB966B9), UINT64_C(0x01E390886F610023), + UINT64_C(0x05ECB38D98DD33FC), UINT64_C(0x962B971B8F84EDF4) }, + { UINT64_C(0xEB32C0A56A6F2602), UINT64_C(0xF026AF71562D60F2), + UINT64_C(0xA9E246BF84615FAB), UINT64_C(0xAD96709275DBAE01), + UINT64_C(0xBF97C79B3ECE5D07), UINT64_C(0xE06266C774EAA3D3) } }, + { { UINT64_C(0x161A01572E6DBB6E), UINT64_C(0xB8AF490460FA8F47), + UINT64_C(0xE4336C4400197F22), UINT64_C(0xF811AFFA9CEDCE0E), + UINT64_C(0xB1DD7685F94C2EF1), UINT64_C(0xEEDC0F4BCA957BB0) }, + { UINT64_C(0xD319FD574AA76BB1), UINT64_C(0xB3525D7C16CD7CCB), + UINT64_C(0x7B22DA9CA97DD072), UINT64_C(0x99DB84BD38A83E71), + UINT64_C(0x4939BC8DC0EDD8BE), UINT64_C(0x06D524EA903A932C) } }, + { { UINT64_C(0x4BC950EC0E31F639), UINT64_C(0xB7ABD3DC6016BE30), + UINT64_C(0x3B0F44736703DAD0), UINT64_C(0xCC405F8B0AC1C4EA), + UINT64_C(0x9BED5E57176C3FEE), UINT64_C(0xF452481036AE36C2) }, + { UINT64_C(0xC1EDBB8315D7B503), UINT64_C(0x943B1156E30F3657), + UINT64_C(0x984E9EEF98377805), UINT64_C(0x291AE7AC36CF1DEB), + UINT64_C(0xFED8748CA9F66DF3), UINT64_C(0xECA758BBFEA8FA5D) } }, + }, + { + { { UINT64_C(0xACC787EF2DD1B249), UINT64_C(0x736E1030D82976F1), + UINT64_C(0x0A6940FAA01B3649), UINT64_C(0xE00B926BC42341E7), + UINT64_C(0x911508D0DE8FFD6C), UINT64_C(0x4DCF8D465276B0CB) }, + { UINT64_C(0x23AD0A90CC3CAD8D), UINT64_C(0x2A92E54CADED962A), + UINT64_C(0x93FBEC4DF231BFAF), UINT64_C(0x9544BC774798987A), + UINT64_C(0x48084E2508E29F60), UINT64_C(0x0C0D2F4332DE5869) } }, + { { UINT64_C(0x6778F9703A9ABC13), UINT64_C(0xFD014FAC3D2B166B), + UINT64_C(0x1FE4FC783C6FED60), UINT64_C(0x04295FA8AA7C69C5), + UINT64_C(0xA01DE56D7C123175), UINT64_C(0x0FA0D3A83D9A713A) }, + { UINT64_C(0xA7A6E5E3E3E08ADD), UINT64_C(0xBD77E94B1AC58F85), + UINT64_C(0x078F6FD2B7321A9C), UINT64_C(0x9564601E911EF6D9), + UINT64_C(0x31C5C1B2415C6BEF), UINT64_C(0xE6C0C91ED3212C62) } }, + { { UINT64_C(0xBA7BD23C0D16022F), UINT64_C(0xE9CF4750198BE288), + UINT64_C(0x304E316947DEEC65), UINT64_C(0xCF65B41F96EEB288), + UINT64_C(0x17E99C17927E9E3B), UINT64_C(0x82225546F6630A80) }, + { UINT64_C(0x15122B8ACA067BD9), UINT64_C(0xE2673205B77B4E98), + UINT64_C(0x130375659407CA63), UINT64_C(0x53624F548B621602), + UINT64_C(0x96AF2CB1EAE4BD06), UINT64_C(0x576ECD1C8FA20829) } }, + { { UINT64_C(0xA551CE107E02D2D0), UINT64_C(0x1584ED249D13DBC7), + UINT64_C(0x082017AD4DA7B6D8), UINT64_C(0x81918A8FE054BC48), + UINT64_C(0x677DB48E572DC384), UINT64_C(0x2EF822966155484C) }, + { UINT64_C(0xC3DB14C641B9C231), UINT64_C(0x910A87D14A766192), + UINT64_C(0x93D5CC8610AB8E0F), UINT64_C(0x4194D548AE57CA1B), + UINT64_C(0xFAF3A1D6267FC37A), UINT64_C(0x70EC236413B87C97) } }, + { { UINT64_C(0x064B565B5E12756A), UINT64_C(0x953B7BD1AE49C98E), + UINT64_C(0xE0CE8284F7001D91), UINT64_C(0x1546060BF31108D0), + UINT64_C(0xDBC2C3F46779B6E2), UINT64_C(0x157AA47DE0DD07CF) }, + { UINT64_C(0xBF4A1C6FF23B261E), UINT64_C(0x5B8EED30654F4BE5), + UINT64_C(0xDF5896D36B20CCD8), UINT64_C(0x56920E2C559ED23D), + UINT64_C(0x901F342EFA6E3E27), UINT64_C(0x745C747C896CA082) } }, + { { UINT64_C(0xDBCCD5752944EC84), UINT64_C(0x54A2A935A5FF65FE), + UINT64_C(0x88C92A5E1A1319B6), UINT64_C(0x9537C28F82DA96C1), + UINT64_C(0xB683647435F93C46), UINT64_C(0xEC526A1D65B0846C) }, + { UINT64_C(0x6F12AFBDF382C412), UINT64_C(0x5EBC81D89E99FA06), + UINT64_C(0x97B5D672869B93BD), UINT64_C(0x2983C310377E12AA), + UINT64_C(0x4875968124D681EA), UINT64_C(0x1E0BD106287FD767) } }, + { { UINT64_C(0x0AC75A3E7231247F), UINT64_C(0x65C20DE6EF27AD3A), + UINT64_C(0x87EB6CF1BD02EEE5), UINT64_C(0x264ACA7A00147E03), + UINT64_C(0xEBC78581AE2A9437), UINT64_C(0x9929964E6316BFA5) }, + { UINT64_C(0xDC09E0409AF207EF), UINT64_C(0x3ECFFE2D0C9D8658), + UINT64_C(0x547EA735DFB43D38), UINT64_C(0x5485247BD04B1B20), + UINT64_C(0xB18D3F02BFD8B609), UINT64_C(0xEEB3E805CCE73705) } }, + { { UINT64_C(0xDAB1A525DB93850F), UINT64_C(0x18ADAA238365B7D5), + UINT64_C(0x58485C90113FC8C7), UINT64_C(0x80C3DBB9348AD323), + UINT64_C(0xAF892FB5E16ADCA1), UINT64_C(0x2183C879979F005A) }, + { UINT64_C(0x20FA1A940643A99E), UINT64_C(0x2741221C1A1609CB), + UINT64_C(0x1C1687E53C2FBDDC), UINT64_C(0xDCCF329ED420D6CF), + UINT64_C(0x75D5577D2B7197D1), UINT64_C(0x4C3C3875C8729D9C) } }, + { { UINT64_C(0x5E79F995E5CBDCB9), UINT64_C(0x03139824A742FCC7), + UINT64_C(0x6D0C214A239EF4A1), UINT64_C(0x53A27952401A2944), + UINT64_C(0xF42A1B34C10BCDF0), UINT64_C(0x426BAA437CF38061) }, + { UINT64_C(0x16A53139A96AD0C8), UINT64_C(0x627F1D316BAD5301), + UINT64_C(0x5AF748774ACCD627), UINT64_C(0x3C58A1C5B55B0FB8), + UINT64_C(0xFAA57B91F4399A6A), UINT64_C(0xBAD283FBC28094B8) } }, + { { UINT64_C(0xBA32AC6183E10A93), UINT64_C(0x1C91F6B4EC06BDB0), + UINT64_C(0x42E6CFBC65F60C93), UINT64_C(0xEFE33BC82C0CDCBE), + UINT64_C(0xE0FE1D094D6414F2), UINT64_C(0x4C11231676FA5C5B) }, + { UINT64_C(0x812C1DC62E26200A), UINT64_C(0xD6C413C5EE879D25), + UINT64_C(0xBEADE255BCA8BAFE), UINT64_C(0x0EAF4AE2CE2BA0E7), + UINT64_C(0x66E9FFB0C4F4408A), UINT64_C(0xB36A86D79782C7AD) } }, + { { UINT64_C(0x10FCD1F4BAD8D1C7), UINT64_C(0xC903816A4502F645), + UINT64_C(0x7FAC1CC1A503B895), UINT64_C(0x8BCD60410778900C), + UINT64_C(0x5A5F22025BCF2784), UINT64_C(0x9B157E8710EDB896) }, + { UINT64_C(0x4C58DA69F602A8B1), UINT64_C(0xD55132F859EC9D7E), + UINT64_C(0x155B719AA26D4870), UINT64_C(0x25AAFCA336441746), + UINT64_C(0x01F83338DD3B6B30), UINT64_C(0xD52BB5C1551917CC) } }, + { { UINT64_C(0xA0B6207B6135066A), UINT64_C(0xB3409F842AEC8CBD), + UINT64_C(0x5EBFD43619D87DF0), UINT64_C(0xCB4C209BE8526DE2), + UINT64_C(0xD764085B21E1A230), UINT64_C(0x96F915540899964A) }, + { UINT64_C(0xB0BEC8EFA57D122A), UINT64_C(0xC572EC565D9D0B33), + UINT64_C(0xEBE2A780CFA7C72C), UINT64_C(0x52D40CDB9EF3295C), + UINT64_C(0x640045840DE74DFE), UINT64_C(0xA6846432C0809716) } }, + { { UINT64_C(0x0D09E8CD02C979BC), UINT64_C(0xEC4B21F6409F4F2A), + UINT64_C(0x68125C7013FB07CA), UINT64_C(0x1C4CFC176FDFA72A), + UINT64_C(0xC9E71B9E04539FCD), UINT64_C(0x94B7103D8BA70797) }, + { UINT64_C(0x6B81E82FB33FDE83), UINT64_C(0x7CA9A8CAEABAFD4B), + UINT64_C(0xADD85A67EAB819CE), UINT64_C(0xAEC2548398E99FFC), + UINT64_C(0x938D6440274A07B6), UINT64_C(0x0A5C7097564A6AA0) } }, + { { UINT64_C(0x7284FF502F4FCEB6), UINT64_C(0x0A28715A78D0D5CB), + UINT64_C(0xE70B7014BFCE187C), UINT64_C(0xA6B538F57A17148D), + UINT64_C(0x1DAB07C9DD427166), UINT64_C(0x5C5578B0149D23CA) }, + { UINT64_C(0x875E2056875B5EDE), UINT64_C(0xCBF44B6D02C893B9), + UINT64_C(0x5715A77E5C2993FB), UINT64_C(0xAF3281463410597E), + UINT64_C(0x65DF418F42DC49DF), UINT64_C(0x7AC9C720A9EE52F6) } }, + { { UINT64_C(0xB1C9AA0762955486), UINT64_C(0xCBF35BE3245061D7), + UINT64_C(0x811E1BD38CF4DDC0), UINT64_C(0xD9D4589C948F7C84), + UINT64_C(0x30D09A0FCB0F996D), UINT64_C(0x1A1B3B7A590E7704) }, + { UINT64_C(0xA848E3492082768D), UINT64_C(0x9FEBD4929A249DF4), + UINT64_C(0x503420AF5F20439A), UINT64_C(0x0CBE52B68E2BFCD4), + UINT64_C(0xB1D5E261118C91B2), UINT64_C(0x93CFF6DA71D8F2BC) } }, + { { UINT64_C(0x5F5BC06B8AB58944), UINT64_C(0xE4BED5384979882D), + UINT64_C(0x57C30362D79B0EB1), UINT64_C(0x391AE2C1EF7C56D8), + UINT64_C(0x28BC2E97ADD98625), UINT64_C(0xFA8E86B81B257107) }, + { UINT64_C(0x5E4859F86118C715), UINT64_C(0x91C83324524C71DD), + UINT64_C(0xFB2092436D2F5E6D), UINT64_C(0x6B4FE21F2A900A43), + UINT64_C(0x241F75D632A73C1F), UINT64_C(0xF5BC46295AE89613) } }, + } +}; + +/*- + * Q := 2P, both projective, Q and P same pointers OK + * Autogenerated: op3/dbl_proj.op3 + * https://eprint.iacr.org/2015/1060 Alg 6 + * ASSERT: a = -3 + */ +static void +point_double(pt_prj_t *Q, const pt_prj_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X = P->X; + const limb_t *Y = P->Y; + const limb_t *Z = P->Z; + limb_t *X3 = Q->X; + limb_t *Y3 = Q->Y; + limb_t *Z3 = Q->Z; + + /* the curve arith formula */ + fiat_secp384r1_square(t0, X); + fiat_secp384r1_square(t1, Y); + fiat_secp384r1_square(t2, Z); + fiat_secp384r1_mul(t3, X, Y); + fiat_secp384r1_add(t3, t3, t3); + fiat_secp384r1_mul(t4, Y, Z); + fiat_secp384r1_mul(Z3, X, Z); + fiat_secp384r1_add(Z3, Z3, Z3); + fiat_secp384r1_mul(Y3, b, t2); + fiat_secp384r1_sub(Y3, Y3, Z3); + fiat_secp384r1_add(X3, Y3, Y3); + fiat_secp384r1_add(Y3, X3, Y3); + fiat_secp384r1_sub(X3, t1, Y3); + fiat_secp384r1_add(Y3, t1, Y3); + fiat_secp384r1_mul(Y3, X3, Y3); + fiat_secp384r1_mul(X3, X3, t3); + fiat_secp384r1_add(t3, t2, t2); + fiat_secp384r1_add(t2, t2, t3); + fiat_secp384r1_mul(Z3, b, Z3); + fiat_secp384r1_sub(Z3, Z3, t2); + fiat_secp384r1_sub(Z3, Z3, t0); + fiat_secp384r1_add(t3, Z3, Z3); + fiat_secp384r1_add(Z3, Z3, t3); + fiat_secp384r1_add(t3, t0, t0); + fiat_secp384r1_add(t0, t3, t0); + fiat_secp384r1_sub(t0, t0, t2); + fiat_secp384r1_mul(t0, t0, Z3); + fiat_secp384r1_add(Y3, Y3, t0); + fiat_secp384r1_add(t0, t4, t4); + fiat_secp384r1_mul(Z3, t0, Z3); + fiat_secp384r1_sub(X3, X3, Z3); + fiat_secp384r1_mul(Z3, t0, t1); + fiat_secp384r1_add(Z3, Z3, Z3); + fiat_secp384r1_add(Z3, Z3, Z3); +} + +/*- + * R := Q + P where R and Q are projective, P affine. + * R and Q same pointers OK + * R and P same pointers not OK + * Autogenerated: op3/add_mixed.op3 + * https://eprint.iacr.org/2015/1060 Alg 5 + * ASSERT: a = -3 + */ +static void +point_add_mixed(pt_prj_t *R, const pt_prj_t *Q, const pt_aff_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X1 = Q->X; + const limb_t *Y1 = Q->Y; + const limb_t *Z1 = Q->Z; + const limb_t *X2 = P->X; + const limb_t *Y2 = P->Y; + fe_t X3; + fe_t Y3; + fe_t Z3; + limb_t nz; + + /* check P for affine inf */ + fiat_secp384r1_nonzero(&nz, P->Y); + + /* the curve arith formula */ + fiat_secp384r1_mul(t0, X1, X2); + fiat_secp384r1_mul(t1, Y1, Y2); + fiat_secp384r1_add(t3, X2, Y2); + fiat_secp384r1_add(t4, X1, Y1); + fiat_secp384r1_mul(t3, t3, t4); + fiat_secp384r1_add(t4, t0, t1); + fiat_secp384r1_sub(t3, t3, t4); + fiat_secp384r1_mul(t4, Y2, Z1); + fiat_secp384r1_add(t4, t4, Y1); + fiat_secp384r1_mul(Y3, X2, Z1); + fiat_secp384r1_add(Y3, Y3, X1); + fiat_secp384r1_mul(Z3, b, Z1); + fiat_secp384r1_sub(X3, Y3, Z3); + fiat_secp384r1_add(Z3, X3, X3); + fiat_secp384r1_add(X3, X3, Z3); + fiat_secp384r1_sub(Z3, t1, X3); + fiat_secp384r1_add(X3, t1, X3); + fiat_secp384r1_mul(Y3, b, Y3); + fiat_secp384r1_add(t1, Z1, Z1); + fiat_secp384r1_add(t2, t1, Z1); + fiat_secp384r1_sub(Y3, Y3, t2); + fiat_secp384r1_sub(Y3, Y3, t0); + fiat_secp384r1_add(t1, Y3, Y3); + fiat_secp384r1_add(Y3, t1, Y3); + fiat_secp384r1_add(t1, t0, t0); + fiat_secp384r1_add(t0, t1, t0); + fiat_secp384r1_sub(t0, t0, t2); + fiat_secp384r1_mul(t1, t4, Y3); + fiat_secp384r1_mul(t2, t0, Y3); + fiat_secp384r1_mul(Y3, X3, Z3); + fiat_secp384r1_add(Y3, Y3, t2); + fiat_secp384r1_mul(X3, t3, X3); + fiat_secp384r1_sub(X3, X3, t1); + fiat_secp384r1_mul(Z3, t4, Z3); + fiat_secp384r1_mul(t1, t3, t0); + fiat_secp384r1_add(Z3, Z3, t1); + + /* if P is inf, throw all that away and take Q */ + fiat_secp384r1_selectznz(R->X, nz, Q->X, X3); + fiat_secp384r1_selectznz(R->Y, nz, Q->Y, Y3); + fiat_secp384r1_selectznz(R->Z, nz, Q->Z, Z3); +} + +/*- + * R := Q + P all projective. + * R and Q same pointers OK + * R and P same pointers not OK + * Autogenerated: op3/add_proj.op3 + * https://eprint.iacr.org/2015/1060 Alg 4 + * ASSERT: a = -3 + */ +static void +point_add_proj(pt_prj_t *R, const pt_prj_t *Q, const pt_prj_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4, t5; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X1 = Q->X; + const limb_t *Y1 = Q->Y; + const limb_t *Z1 = Q->Z; + const limb_t *X2 = P->X; + const limb_t *Y2 = P->Y; + const limb_t *Z2 = P->Z; + limb_t *X3 = R->X; + limb_t *Y3 = R->Y; + limb_t *Z3 = R->Z; + + /* the curve arith formula */ + fiat_secp384r1_mul(t0, X1, X2); + fiat_secp384r1_mul(t1, Y1, Y2); + fiat_secp384r1_mul(t2, Z1, Z2); + fiat_secp384r1_add(t3, X1, Y1); + fiat_secp384r1_add(t4, X2, Y2); + fiat_secp384r1_mul(t3, t3, t4); + fiat_secp384r1_add(t4, t0, t1); + fiat_secp384r1_sub(t3, t3, t4); + fiat_secp384r1_add(t4, Y1, Z1); + fiat_secp384r1_add(t5, Y2, Z2); + fiat_secp384r1_mul(t4, t4, t5); + fiat_secp384r1_add(t5, t1, t2); + fiat_secp384r1_sub(t4, t4, t5); + fiat_secp384r1_add(X3, X1, Z1); + fiat_secp384r1_add(Y3, X2, Z2); + fiat_secp384r1_mul(X3, X3, Y3); + fiat_secp384r1_add(Y3, t0, t2); + fiat_secp384r1_sub(Y3, X3, Y3); + fiat_secp384r1_mul(Z3, b, t2); + fiat_secp384r1_sub(X3, Y3, Z3); + fiat_secp384r1_add(Z3, X3, X3); + fiat_secp384r1_add(X3, X3, Z3); + fiat_secp384r1_sub(Z3, t1, X3); + fiat_secp384r1_add(X3, t1, X3); + fiat_secp384r1_mul(Y3, b, Y3); + fiat_secp384r1_add(t1, t2, t2); + fiat_secp384r1_add(t2, t1, t2); + fiat_secp384r1_sub(Y3, Y3, t2); + fiat_secp384r1_sub(Y3, Y3, t0); + fiat_secp384r1_add(t1, Y3, Y3); + fiat_secp384r1_add(Y3, t1, Y3); + fiat_secp384r1_add(t1, t0, t0); + fiat_secp384r1_add(t0, t1, t0); + fiat_secp384r1_sub(t0, t0, t2); + fiat_secp384r1_mul(t1, t4, Y3); + fiat_secp384r1_mul(t2, t0, Y3); + fiat_secp384r1_mul(Y3, X3, Z3); + fiat_secp384r1_add(Y3, Y3, t2); + fiat_secp384r1_mul(X3, t3, X3); + fiat_secp384r1_sub(X3, X3, t1); + fiat_secp384r1_mul(Z3, t4, Z3); + fiat_secp384r1_mul(t1, t3, t0); + fiat_secp384r1_add(Z3, Z3, t1); +} + +/* constants */ +#define RADIX 5 +#define DRADIX (1 << RADIX) +#define DRADIX_WNAF ((DRADIX) << 1) + +/*- + * precomp for wnaf scalar multiplication: + * precomp[0] = 1P + * precomp[1] = 3P + * precomp[2] = 5P + * precomp[3] = 7P + * precomp[4] = 9P + * ... + */ +static void +precomp_wnaf(pt_prj_t precomp[DRADIX / 2], const pt_aff_t *P) +{ + int i; + + fe_copy(precomp[0].X, P->X); + fe_copy(precomp[0].Y, P->Y); + fe_copy(precomp[0].Z, const_one); + point_double(&precomp[DRADIX / 2 - 1], &precomp[0]); + + for (i = 1; i < DRADIX / 2; i++) + point_add_proj(&precomp[i], &precomp[DRADIX / 2 - 1], &precomp[i - 1]); +} + +/* fetch a scalar bit */ +static int +scalar_get_bit(const unsigned char in[48], int idx) +{ + int widx, rshift; + + widx = idx >> 3; + rshift = idx & 0x7; + + if (idx < 0 || widx >= 48) + return 0; + + return (in[widx] >> rshift) & 0x1; +} + +/*- + * Compute "regular" wnaf representation of a scalar. + * See "Exponent Recoding and Regular Exponentiation Algorithms", + * Tunstall et al., AfricaCrypt 2009, Alg 6. + * It forces an odd scalar and outputs digits in + * {\pm 1, \pm 3, \pm 5, \pm 7, \pm 9, ...} + * i.e. signed odd digits with _no zeroes_ -- that makes it "regular". + */ +static void +scalar_rwnaf(int8_t out[77], const unsigned char in[48]) +{ + int i; + int8_t window, d; + + window = (in[0] & (DRADIX_WNAF - 1)) | 1; + for (i = 0; i < 76; i++) { + d = (window & (DRADIX_WNAF - 1)) - DRADIX; + out[i] = d; + window = (window - d) >> RADIX; + window += scalar_get_bit(in, (i + 1) * RADIX + 1) << 1; + window += scalar_get_bit(in, (i + 1) * RADIX + 2) << 2; + window += scalar_get_bit(in, (i + 1) * RADIX + 3) << 3; + window += scalar_get_bit(in, (i + 1) * RADIX + 4) << 4; + window += scalar_get_bit(in, (i + 1) * RADIX + 5) << 5; + } + out[i] = window; +} + +/*- + * Compute "textbook" wnaf representation of a scalar. + * NB: not constant time + */ +static void +scalar_wnaf(int8_t out[385], const unsigned char in[48]) +{ + int i; + int8_t window, d; + + window = in[0] & (DRADIX_WNAF - 1); + for (i = 0; i < 385; i++) { + d = 0; + if ((window & 1) && ((d = window & (DRADIX_WNAF - 1)) & DRADIX)) + d -= DRADIX_WNAF; + out[i] = d; + window = (window - d) >> 1; + window += scalar_get_bit(in, i + 1 + RADIX) << RADIX; + } +} + +/*- + * Simulateous scalar multiplication: interleaved "textbook" wnaf. + * NB: not constant time + */ +static void +var_smul_wnaf_two(pt_aff_t *out, const unsigned char a[48], + const unsigned char b[48], const pt_aff_t *P) +{ + int i, d, is_neg, is_inf = 1, flipped = 0; + int8_t anaf[385] = { 0 }; + int8_t bnaf[385] = { 0 }; + pt_prj_t Q; + pt_prj_t precomp[DRADIX / 2]; + + precomp_wnaf(precomp, P); + scalar_wnaf(anaf, a); + scalar_wnaf(bnaf, b); + + for (i = 384; i >= 0; i--) { + if (!is_inf) + point_double(&Q, &Q); + if ((d = bnaf[i])) { + if ((is_neg = d < 0) != flipped) { + fiat_secp384r1_opp(Q.Y, Q.Y); + flipped ^= 1; + } + d = (is_neg) ? (-d - 1) >> 1 : (d - 1) >> 1; + if (is_inf) { + /* initialize accumulator */ + fe_copy(Q.X, &precomp[d].X); + fe_copy(Q.Y, &precomp[d].Y); + fe_copy(Q.Z, &precomp[d].Z); + is_inf = 0; + } else + point_add_proj(&Q, &Q, &precomp[d]); + } + if ((d = anaf[i])) { + if ((is_neg = d < 0) != flipped) { + fiat_secp384r1_opp(Q.Y, Q.Y); + flipped ^= 1; + } + d = (is_neg) ? (-d - 1) >> 1 : (d - 1) >> 1; + if (is_inf) { + /* initialize accumulator */ + fe_copy(Q.X, &lut_cmb[0][d].X); + fe_copy(Q.Y, &lut_cmb[0][d].Y); + fe_copy(Q.Z, const_one); + is_inf = 0; + } else + point_add_mixed(&Q, &Q, &lut_cmb[0][d]); + } + } + + if (is_inf) { + /* initialize accumulator to inf: all-zero scalars */ + fe_set_zero(Q.X); + fe_copy(Q.Y, const_one); + fe_set_zero(Q.Z); + } + + if (flipped) { + /* correct sign */ + fiat_secp384r1_opp(Q.Y, Q.Y); + } + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp384r1_inv(Q.Z, Q.Z); + fiat_secp384r1_mul(out->X, Q.X, Q.Z); + fiat_secp384r1_mul(out->Y, Q.Y, Q.Z); +} + +/*- + * Variable point scalar multiplication with "regular" wnaf. + */ +static void +var_smul_rwnaf(pt_aff_t *out, const unsigned char scalar[48], + const pt_aff_t *P) +{ + int i, j, d, diff, is_neg; + int8_t rnaf[77] = { 0 }; + pt_prj_t Q, lut; + pt_prj_t precomp[DRADIX / 2]; + + precomp_wnaf(precomp, P); + scalar_rwnaf(rnaf, scalar); + +#if defined(_MSC_VER) +/* result still unsigned: yes we know */ +#pragma warning(push) +#pragma warning(disable : 4146) +#endif + + /* initialize accumulator to high digit */ + d = (rnaf[76] - 1) >> 1; + for (j = 0; j < DRADIX / 2; j++) { + diff = (1 - (-(d ^ j) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp384r1_selectznz(Q.X, diff, Q.X, precomp[j].X); + fiat_secp384r1_selectznz(Q.Y, diff, Q.Y, precomp[j].Y); + fiat_secp384r1_selectznz(Q.Z, diff, Q.Z, precomp[j].Z); + } + + for (i = 75; i >= 0; i--) { + for (j = 0; j < RADIX; j++) + point_double(&Q, &Q); + d = rnaf[i]; + /* is_neg = (d < 0) ? 1 : 0 */ + is_neg = (d >> (8 * sizeof(int) - 1)) & 1; + /* d = abs(d) */ + d = (d ^ -is_neg) + is_neg; + d = (d - 1) >> 1; + for (j = 0; j < DRADIX / 2; j++) { + diff = (1 - (-(d ^ j) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp384r1_selectznz(lut.X, diff, lut.X, precomp[j].X); + fiat_secp384r1_selectznz(lut.Y, diff, lut.Y, precomp[j].Y); + fiat_secp384r1_selectznz(lut.Z, diff, lut.Z, precomp[j].Z); + } + /* negate lut point if digit is negative */ + fiat_secp384r1_opp(out->Y, lut.Y); + fiat_secp384r1_selectznz(lut.Y, is_neg, lut.Y, out->Y); + point_add_proj(&Q, &Q, &lut); + } + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + + /* conditionally subtract P if the scalar was even */ + fe_copy(lut.X, precomp[0].X); + fiat_secp384r1_opp(lut.Y, precomp[0].Y); + fe_copy(lut.Z, precomp[0].Z); + point_add_proj(&lut, &lut, &Q); + fiat_secp384r1_selectznz(Q.X, scalar[0] & 1, lut.X, Q.X); + fiat_secp384r1_selectznz(Q.Y, scalar[0] & 1, lut.Y, Q.Y); + fiat_secp384r1_selectznz(Q.Z, scalar[0] & 1, lut.Z, Q.Z); + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp384r1_inv(Q.Z, Q.Z); + fiat_secp384r1_mul(out->X, Q.X, Q.Z); + fiat_secp384r1_mul(out->Y, Q.Y, Q.Z); +} + +/*- + * Fixed scalar multiplication: comb with interleaving. + */ +static void +fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[48]) +{ + int i, j, k, d, diff, is_neg = 0; + int8_t rnaf[77] = { 0 }; + pt_prj_t Q, R; + pt_aff_t lut; + + scalar_rwnaf(rnaf, scalar); + + /* initalize accumulator to inf */ + fe_set_zero(Q.X); + fe_copy(Q.Y, const_one); + fe_set_zero(Q.Z); + +#if defined(_MSC_VER) +/* result still unsigned: yes we know */ +#pragma warning(push) +#pragma warning(disable : 4146) +#endif + + for (i = 3; i >= 0; i--) { + for (j = 0; i != 3 && j < RADIX; j++) + point_double(&Q, &Q); + for (j = 0; j < 21; j++) { + if (j * 4 + i > 76) + continue; + d = rnaf[j * 4 + i]; + /* is_neg = (d < 0) ? 1 : 0 */ + is_neg = (d >> (8 * sizeof(int) - 1)) & 1; + /* d = abs(d) */ + d = (d ^ -is_neg) + is_neg; + d = (d - 1) >> 1; + for (k = 0; k < DRADIX / 2; k++) { + diff = (1 - (-(d ^ k) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp384r1_selectznz(lut.X, diff, lut.X, lut_cmb[j][k].X); + fiat_secp384r1_selectznz(lut.Y, diff, lut.Y, lut_cmb[j][k].Y); + } + /* negate lut point if digit is negative */ + fiat_secp384r1_opp(out->Y, lut.Y); + fiat_secp384r1_selectznz(lut.Y, is_neg, lut.Y, out->Y); + point_add_mixed(&Q, &Q, &lut); + } + } + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + + /* conditionally subtract P if the scalar was even */ + fe_copy(lut.X, lut_cmb[0][0].X); + fiat_secp384r1_opp(lut.Y, lut_cmb[0][0].Y); + point_add_mixed(&R, &Q, &lut); + fiat_secp384r1_selectznz(Q.X, scalar[0] & 1, R.X, Q.X); + fiat_secp384r1_selectznz(Q.Y, scalar[0] & 1, R.Y, Q.Y); + fiat_secp384r1_selectznz(Q.Z, scalar[0] & 1, R.Z, Q.Z); + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp384r1_inv(Q.Z, Q.Z); + fiat_secp384r1_mul(out->X, Q.X, Q.Z); + fiat_secp384r1_mul(out->Y, Q.Y, Q.Z); +} + +static void +point_mul_two(unsigned char outx[48], unsigned char outy[48], + const unsigned char a[48], const unsigned char b[48], + const unsigned char inx[48], + const unsigned char iny[48]) +{ + pt_aff_t P; + + fiat_secp384r1_from_bytes(P.X, inx); + fiat_secp384r1_from_bytes(P.Y, iny); + fiat_secp384r1_to_montgomery(P.X, P.X); + fiat_secp384r1_to_montgomery(P.Y, P.Y); + /* simultaneous scalar multiplication */ + var_smul_wnaf_two(&P, a, b, &P); + + fiat_secp384r1_from_montgomery(P.X, P.X); + fiat_secp384r1_from_montgomery(P.Y, P.Y); + fiat_secp384r1_to_bytes(outx, P.X); + fiat_secp384r1_to_bytes(outy, P.Y); +} + +static void +point_mul_g(unsigned char outx[48], unsigned char outy[48], + const unsigned char scalar[48]) +{ + pt_aff_t P; + + /* fixed scmul function */ + fixed_smul_cmb(&P, scalar); + fiat_secp384r1_from_montgomery(P.X, P.X); + fiat_secp384r1_from_montgomery(P.Y, P.Y); + fiat_secp384r1_to_bytes(outx, P.X); + fiat_secp384r1_to_bytes(outy, P.Y); +} + +static void +point_mul(unsigned char outx[48], unsigned char outy[48], + const unsigned char scalar[48], + const unsigned char inx[48], + const unsigned char iny[48]) +{ + pt_aff_t P; + + fiat_secp384r1_from_bytes(P.X, inx); + fiat_secp384r1_from_bytes(P.Y, iny); + fiat_secp384r1_to_montgomery(P.X, P.X); + fiat_secp384r1_to_montgomery(P.Y, P.Y); + /* var scmul function */ + var_smul_rwnaf(&P, scalar, &P); + fiat_secp384r1_from_montgomery(P.X, P.X); + fiat_secp384r1_from_montgomery(P.Y, P.Y); + fiat_secp384r1_to_bytes(outx, P.X); + fiat_secp384r1_to_bytes(outy, P.Y); +} + +#undef RADIX +#include "ecp.h" +#include "mplogic.h" + +/*- + * reverse bytes -- total hack + */ +#define MP_BE2LE(a) \ + do { \ + unsigned char z_bswap; \ + z_bswap = a[0]; \ + a[0] = a[47]; \ + a[47] = z_bswap; \ + z_bswap = a[1]; \ + a[1] = a[46]; \ + a[46] = z_bswap; \ + z_bswap = a[2]; \ + a[2] = a[45]; \ + a[45] = z_bswap; \ + z_bswap = a[3]; \ + a[3] = a[44]; \ + a[44] = z_bswap; \ + z_bswap = a[4]; \ + a[4] = a[43]; \ + a[43] = z_bswap; \ + z_bswap = a[5]; \ + a[5] = a[42]; \ + a[42] = z_bswap; \ + z_bswap = a[6]; \ + a[6] = a[41]; \ + a[41] = z_bswap; \ + z_bswap = a[7]; \ + a[7] = a[40]; \ + a[40] = z_bswap; \ + z_bswap = a[8]; \ + a[8] = a[39]; \ + a[39] = z_bswap; \ + z_bswap = a[9]; \ + a[9] = a[38]; \ + a[38] = z_bswap; \ + z_bswap = a[10]; \ + a[10] = a[37]; \ + a[37] = z_bswap; \ + z_bswap = a[11]; \ + a[11] = a[36]; \ + a[36] = z_bswap; \ + z_bswap = a[12]; \ + a[12] = a[35]; \ + a[35] = z_bswap; \ + z_bswap = a[13]; \ + a[13] = a[34]; \ + a[34] = z_bswap; \ + z_bswap = a[14]; \ + a[14] = a[33]; \ + a[33] = z_bswap; \ + z_bswap = a[15]; \ + a[15] = a[32]; \ + a[32] = z_bswap; \ + z_bswap = a[16]; \ + a[16] = a[31]; \ + a[31] = z_bswap; \ + z_bswap = a[17]; \ + a[17] = a[30]; \ + a[30] = z_bswap; \ + z_bswap = a[18]; \ + a[18] = a[29]; \ + a[29] = z_bswap; \ + z_bswap = a[19]; \ + a[19] = a[28]; \ + a[28] = z_bswap; \ + z_bswap = a[20]; \ + a[20] = a[27]; \ + a[27] = z_bswap; \ + z_bswap = a[21]; \ + a[21] = a[26]; \ + a[26] = z_bswap; \ + z_bswap = a[22]; \ + a[22] = a[25]; \ + a[25] = z_bswap; \ + z_bswap = a[23]; \ + a[23] = a[24]; \ + a[24] = z_bswap; \ + } while (0) + +static mp_err +point_mul_g_secp384r1(const mp_int *n, mp_int *out_x, + mp_int *out_y, const ECGroup *group) +{ + unsigned char b_x[48]; + unsigned char b_y[48]; + unsigned char b_n[48]; + mp_err res; + + ARGCHK(n != NULL && out_x != NULL && out_y != NULL, MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n) > 384 || mp_cmp_z(n) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n, b_n, 48)); + MP_BE2LE(b_n); + point_mul_g(b_x, b_y, b_n); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 48)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 48)); + +CLEANUP: + return res; +} + +static mp_err +point_mul_secp384r1(const mp_int *n, const mp_int *in_x, + const mp_int *in_y, mp_int *out_x, + mp_int *out_y, const ECGroup *group) +{ + unsigned char b_x[48]; + unsigned char b_y[48]; + unsigned char b_n[48]; + mp_err res; + + ARGCHK(n != NULL && in_x != NULL && in_y != NULL && out_x != NULL && + out_y != NULL, + MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n) > 384 || mp_cmp_z(n) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n, b_n, 48)); + MP_CHECKOK(mp_to_fixlen_octets(in_x, b_x, 48)); + MP_CHECKOK(mp_to_fixlen_octets(in_y, b_y, 48)); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_BE2LE(b_n); + point_mul(b_x, b_y, b_n, b_x, b_y); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 48)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 48)); + +CLEANUP: + return res; +} + +static mp_err +point_mul_two_secp384r1(const mp_int *n1, const mp_int *n2, + const mp_int *in_x, const mp_int *in_y, + mp_int *out_x, mp_int *out_y, + const ECGroup *group) +{ + unsigned char b_x[48]; + unsigned char b_y[48]; + unsigned char b_n1[48]; + unsigned char b_n2[48]; + mp_err res; + + /* If n2 == NULL, this is just a base-point multiplication. */ + if (n2 == NULL) + return point_mul_g_secp384r1(n1, out_x, out_y, group); + + /* If n1 == NULL, this is just an arbitary-point multiplication. */ + if (n1 == NULL) + return point_mul_secp384r1(n2, in_x, in_y, out_x, out_y, group); + + ARGCHK(in_x != NULL && in_y != NULL && out_x != NULL && out_y != NULL, + MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n1) > 384 || mp_cmp_z(n1) != 1 || + mpl_significant_bits(n2) > 384 || mp_cmp_z(n2) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n1, b_n1, 48)); + MP_CHECKOK(mp_to_fixlen_octets(n2, b_n2, 48)); + MP_CHECKOK(mp_to_fixlen_octets(in_x, b_x, 48)); + MP_CHECKOK(mp_to_fixlen_octets(in_y, b_y, 48)); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_BE2LE(b_n1); + MP_BE2LE(b_n2); + point_mul_two(b_x, b_y, b_n1, b_n2, b_x, b_y); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 48)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 48)); + +CLEANUP: + return res; +} + +mp_err +ec_group_set_secp384r1(ECGroup *group, ECCurveName name) +{ + if (name == ECCurve_NIST_P384) { + group->base_point_mul = &point_mul_g_secp384r1; + group->point_mul = &point_mul_secp384r1; + group->points_mul = &point_mul_two_secp384r1; + } + return MP_OKAY; +} + +#else /* __SIZEOF_INT128__ */ + +#include <stdint.h> +#include <string.h> +#define LIMB_BITS 32 +#define LIMB_CNT 12 +/* Field elements */ +typedef uint32_t fe_t[LIMB_CNT]; +typedef uint32_t limb_t; + +#define fe_copy(d, s) memcpy(d, s, sizeof(fe_t)) +#define fe_set_zero(d) memset(d, 0, sizeof(fe_t)) + +/* Projective points */ +typedef struct { + fe_t X; + fe_t Y; + fe_t Z; +} pt_prj_t; + +/* Affine points */ +typedef struct { + fe_t X; + fe_t Y; +} pt_aff_t; + +/* BEGIN verbatim fiat code https://github.com/mit-plv/fiat-crypto */ +/*- + * MIT License + * + * Copyright (c) 2020 the fiat-crypto authors (see the AUTHORS file) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* Autogenerated: word_by_word_montgomery --static secp384r1 32 '2^384 - 2^128 - 2^96 + 2^32 - 1' */ +/* curve description: secp384r1 */ +/* machine_wordsize = 32 (from "32") */ +/* requested operations: (all) */ +/* m = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff (from "2^384 - 2^128 - 2^96 + 2^32 - 1") */ +/* */ +/* NOTE: In addition to the bounds specified above each function, all */ +/* functions synthesized for this Montgomery arithmetic require the */ +/* input to be strictly less than the prime modulus (m), and also */ +/* require the input to be in the unique saturated representation. */ +/* All functions also ensure that these two properties are true of */ +/* return values. */ +/* */ +/* Computed values: */ +/* eval z = z[0] + (z[1] << 32) + (z[2] << 64) + (z[3] << 96) + (z[4] << 128) + (z[5] << 160) + (z[6] << 192) + (z[7] << 224) + (z[8] << 256) + (z[9] << 0x120) + (z[10] << 0x140) + (z[11] << 0x160) */ +/* bytes_eval z = z[0] + (z[1] << 8) + (z[2] << 16) + (z[3] << 24) + (z[4] << 32) + (z[5] << 40) + (z[6] << 48) + (z[7] << 56) + (z[8] << 64) + (z[9] << 72) + (z[10] << 80) + (z[11] << 88) + (z[12] << 96) + (z[13] << 104) + (z[14] << 112) + (z[15] << 120) + (z[16] << 128) + (z[17] << 136) + (z[18] << 144) + (z[19] << 152) + (z[20] << 160) + (z[21] << 168) + (z[22] << 176) + (z[23] << 184) + (z[24] << 192) + (z[25] << 200) + (z[26] << 208) + (z[27] << 216) + (z[28] << 224) + (z[29] << 232) + (z[30] << 240) + (z[31] << 248) + (z[32] << 256) + (z[33] << 0x108) + (z[34] << 0x110) + (z[35] << 0x118) + (z[36] << 0x120) + (z[37] << 0x128) + (z[38] << 0x130) + (z[39] << 0x138) + (z[40] << 0x140) + (z[41] << 0x148) + (z[42] << 0x150) + (z[43] << 0x158) + (z[44] << 0x160) + (z[45] << 0x168) + (z[46] << 0x170) + (z[47] << 0x178) */ + +#include <stdint.h> +typedef unsigned char fiat_secp384r1_uint1; +typedef signed char fiat_secp384r1_int1; + +#if (-1 & 3) != 3 +#error "This code only works on a two's complement system" +#endif + +/* + * The function fiat_secp384r1_addcarryx_u32 is an addition with carry. + * Postconditions: + * out1 = (arg1 + arg2 + arg3) mod 2^32 + * out2 = ⌊(arg1 + arg2 + arg3) / 2^32⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0xffffffff] + * arg3: [0x0 ~> 0xffffffff] + * Output Bounds: + * out1: [0x0 ~> 0xffffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp384r1_addcarryx_u32(uint32_t *out1, + fiat_secp384r1_uint1 *out2, + fiat_secp384r1_uint1 arg1, + uint32_t arg2, uint32_t arg3) +{ + uint64_t x1; + uint32_t x2; + fiat_secp384r1_uint1 x3; + x1 = ((arg1 + (uint64_t)arg2) + arg3); + x2 = (uint32_t)(x1 & UINT32_C(0xffffffff)); + x3 = (fiat_secp384r1_uint1)(x1 >> 32); + *out1 = x2; + *out2 = x3; +} + +/* + * The function fiat_secp384r1_subborrowx_u32 is a subtraction with borrow. + * Postconditions: + * out1 = (-arg1 + arg2 + -arg3) mod 2^32 + * out2 = -⌊(-arg1 + arg2 + -arg3) / 2^32⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0xffffffff] + * arg3: [0x0 ~> 0xffffffff] + * Output Bounds: + * out1: [0x0 ~> 0xffffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp384r1_subborrowx_u32(uint32_t *out1, + fiat_secp384r1_uint1 *out2, + fiat_secp384r1_uint1 arg1, + uint32_t arg2, uint32_t arg3) +{ + int64_t x1; + fiat_secp384r1_int1 x2; + uint32_t x3; + x1 = ((arg2 - (int64_t)arg1) - arg3); + x2 = (fiat_secp384r1_int1)(x1 >> 32); + x3 = (uint32_t)(x1 & UINT32_C(0xffffffff)); + *out1 = x3; + *out2 = (fiat_secp384r1_uint1)(0x0 - x2); +} + +/* + * The function fiat_secp384r1_mulx_u32 is a multiplication, returning the full double-width result. + * Postconditions: + * out1 = (arg1 * arg2) mod 2^32 + * out2 = ⌊arg1 * arg2 / 2^32⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0xffffffff] + * arg2: [0x0 ~> 0xffffffff] + * Output Bounds: + * out1: [0x0 ~> 0xffffffff] + * out2: [0x0 ~> 0xffffffff] + */ +static void +fiat_secp384r1_mulx_u32(uint32_t *out1, uint32_t *out2, + uint32_t arg1, uint32_t arg2) +{ + uint64_t x1; + uint32_t x2; + uint32_t x3; + x1 = ((uint64_t)arg1 * arg2); + x2 = (uint32_t)(x1 & UINT32_C(0xffffffff)); + x3 = (uint32_t)(x1 >> 32); + *out1 = x2; + *out2 = x3; +} + +/* + * The function fiat_secp384r1_cmovznz_u32 is a single-word conditional move. + * Postconditions: + * out1 = (if arg1 = 0 then arg2 else arg3) + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0xffffffff] + * arg3: [0x0 ~> 0xffffffff] + * Output Bounds: + * out1: [0x0 ~> 0xffffffff] + */ +static void +fiat_secp384r1_cmovznz_u32(uint32_t *out1, + fiat_secp384r1_uint1 arg1, uint32_t arg2, + uint32_t arg3) +{ + fiat_secp384r1_uint1 x1; + uint32_t x2; + uint32_t x3; + x1 = (!(!arg1)); + x2 = ((fiat_secp384r1_int1)(0x0 - x1) & UINT32_C(0xffffffff)); + x3 = ((x2 & arg3) | ((~x2) & arg2)); + *out1 = x3; +} + +/* + * The function fiat_secp384r1_mul multiplies two field elements in the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * 0 ≤ eval arg2 < m + * Postconditions: + * eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) * eval (from_montgomery arg2)) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * arg2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + */ +static void +fiat_secp384r1_mul(uint32_t out1[12], const uint32_t arg1[12], + const uint32_t arg2[12]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint32_t x16; + uint32_t x17; + uint32_t x18; + uint32_t x19; + uint32_t x20; + uint32_t x21; + uint32_t x22; + uint32_t x23; + uint32_t x24; + uint32_t x25; + uint32_t x26; + uint32_t x27; + uint32_t x28; + uint32_t x29; + uint32_t x30; + uint32_t x31; + uint32_t x32; + uint32_t x33; + uint32_t x34; + uint32_t x35; + uint32_t x36; + uint32_t x37; + fiat_secp384r1_uint1 x38; + uint32_t x39; + fiat_secp384r1_uint1 x40; + uint32_t x41; + fiat_secp384r1_uint1 x42; + uint32_t x43; + fiat_secp384r1_uint1 x44; + uint32_t x45; + fiat_secp384r1_uint1 x46; + uint32_t x47; + fiat_secp384r1_uint1 x48; + uint32_t x49; + fiat_secp384r1_uint1 x50; + uint32_t x51; + fiat_secp384r1_uint1 x52; + uint32_t x53; + fiat_secp384r1_uint1 x54; + uint32_t x55; + fiat_secp384r1_uint1 x56; + uint32_t x57; + fiat_secp384r1_uint1 x58; + uint32_t x59; + uint32_t x60; + uint32_t x61; + uint32_t x62; + uint32_t x63; + uint32_t x64; + uint32_t x65; + uint32_t x66; + uint32_t x67; + uint32_t x68; + uint32_t x69; + uint32_t x70; + uint32_t x71; + uint32_t x72; + uint32_t x73; + uint32_t x74; + uint32_t x75; + uint32_t x76; + uint32_t x77; + uint32_t x78; + uint32_t x79; + uint32_t x80; + fiat_secp384r1_uint1 x81; + uint32_t x82; + fiat_secp384r1_uint1 x83; + uint32_t x84; + fiat_secp384r1_uint1 x85; + uint32_t x86; + fiat_secp384r1_uint1 x87; + uint32_t x88; + fiat_secp384r1_uint1 x89; + uint32_t x90; + fiat_secp384r1_uint1 x91; + uint32_t x92; + fiat_secp384r1_uint1 x93; + uint32_t x94; + fiat_secp384r1_uint1 x95; + uint32_t x96; + uint32_t x97; + fiat_secp384r1_uint1 x98; + uint32_t x99; + fiat_secp384r1_uint1 x100; + uint32_t x101; + fiat_secp384r1_uint1 x102; + uint32_t x103; + fiat_secp384r1_uint1 x104; + uint32_t x105; + fiat_secp384r1_uint1 x106; + uint32_t x107; + fiat_secp384r1_uint1 x108; + uint32_t x109; + fiat_secp384r1_uint1 x110; + uint32_t x111; + fiat_secp384r1_uint1 x112; + uint32_t x113; + fiat_secp384r1_uint1 x114; + uint32_t x115; + fiat_secp384r1_uint1 x116; + uint32_t x117; + fiat_secp384r1_uint1 x118; + uint32_t x119; + fiat_secp384r1_uint1 x120; + uint32_t x121; + fiat_secp384r1_uint1 x122; + uint32_t x123; + uint32_t x124; + uint32_t x125; + uint32_t x126; + uint32_t x127; + uint32_t x128; + uint32_t x129; + uint32_t x130; + uint32_t x131; + uint32_t x132; + uint32_t x133; + uint32_t x134; + uint32_t x135; + uint32_t x136; + uint32_t x137; + uint32_t x138; + uint32_t x139; + uint32_t x140; + uint32_t x141; + uint32_t x142; + uint32_t x143; + uint32_t x144; + uint32_t x145; + uint32_t x146; + uint32_t x147; + fiat_secp384r1_uint1 x148; + uint32_t x149; + fiat_secp384r1_uint1 x150; + uint32_t x151; + fiat_secp384r1_uint1 x152; + uint32_t x153; + fiat_secp384r1_uint1 x154; + uint32_t x155; + fiat_secp384r1_uint1 x156; + uint32_t x157; + fiat_secp384r1_uint1 x158; + uint32_t x159; + fiat_secp384r1_uint1 x160; + uint32_t x161; + fiat_secp384r1_uint1 x162; + uint32_t x163; + fiat_secp384r1_uint1 x164; + uint32_t x165; + fiat_secp384r1_uint1 x166; + uint32_t x167; + fiat_secp384r1_uint1 x168; + uint32_t x169; + uint32_t x170; + fiat_secp384r1_uint1 x171; + uint32_t x172; + fiat_secp384r1_uint1 x173; + uint32_t x174; + fiat_secp384r1_uint1 x175; + uint32_t x176; + fiat_secp384r1_uint1 x177; + uint32_t x178; + fiat_secp384r1_uint1 x179; + uint32_t x180; + fiat_secp384r1_uint1 x181; + uint32_t x182; + fiat_secp384r1_uint1 x183; + uint32_t x184; + fiat_secp384r1_uint1 x185; + uint32_t x186; + fiat_secp384r1_uint1 x187; + uint32_t x188; + fiat_secp384r1_uint1 x189; + uint32_t x190; + fiat_secp384r1_uint1 x191; + uint32_t x192; + fiat_secp384r1_uint1 x193; + uint32_t x194; + fiat_secp384r1_uint1 x195; + uint32_t x196; + uint32_t x197; + uint32_t x198; + uint32_t x199; + uint32_t x200; + uint32_t x201; + uint32_t x202; + uint32_t x203; + uint32_t x204; + uint32_t x205; + uint32_t x206; + uint32_t x207; + uint32_t x208; + uint32_t x209; + uint32_t x210; + uint32_t x211; + uint32_t x212; + uint32_t x213; + uint32_t x214; + uint32_t x215; + uint32_t x216; + fiat_secp384r1_uint1 x217; + uint32_t x218; + fiat_secp384r1_uint1 x219; + uint32_t x220; + fiat_secp384r1_uint1 x221; + uint32_t x222; + fiat_secp384r1_uint1 x223; + uint32_t x224; + fiat_secp384r1_uint1 x225; + uint32_t x226; + fiat_secp384r1_uint1 x227; + uint32_t x228; + fiat_secp384r1_uint1 x229; + uint32_t x230; + fiat_secp384r1_uint1 x231; + uint32_t x232; + uint32_t x233; + fiat_secp384r1_uint1 x234; + uint32_t x235; + fiat_secp384r1_uint1 x236; + uint32_t x237; + fiat_secp384r1_uint1 x238; + uint32_t x239; + fiat_secp384r1_uint1 x240; + uint32_t x241; + fiat_secp384r1_uint1 x242; + uint32_t x243; + fiat_secp384r1_uint1 x244; + uint32_t x245; + fiat_secp384r1_uint1 x246; + uint32_t x247; + fiat_secp384r1_uint1 x248; + uint32_t x249; + fiat_secp384r1_uint1 x250; + uint32_t x251; + fiat_secp384r1_uint1 x252; + uint32_t x253; + fiat_secp384r1_uint1 x254; + uint32_t x255; + fiat_secp384r1_uint1 x256; + uint32_t x257; + fiat_secp384r1_uint1 x258; + uint32_t x259; + uint32_t x260; + uint32_t x261; + uint32_t x262; + uint32_t x263; + uint32_t x264; + uint32_t x265; + uint32_t x266; + uint32_t x267; + uint32_t x268; + uint32_t x269; + uint32_t x270; + uint32_t x271; + uint32_t x272; + uint32_t x273; + uint32_t x274; + uint32_t x275; + uint32_t x276; + uint32_t x277; + uint32_t x278; + uint32_t x279; + uint32_t x280; + uint32_t x281; + uint32_t x282; + uint32_t x283; + uint32_t x284; + fiat_secp384r1_uint1 x285; + uint32_t x286; + fiat_secp384r1_uint1 x287; + uint32_t x288; + fiat_secp384r1_uint1 x289; + uint32_t x290; + fiat_secp384r1_uint1 x291; + uint32_t x292; + fiat_secp384r1_uint1 x293; + uint32_t x294; + fiat_secp384r1_uint1 x295; + uint32_t x296; + fiat_secp384r1_uint1 x297; + uint32_t x298; + fiat_secp384r1_uint1 x299; + uint32_t x300; + fiat_secp384r1_uint1 x301; + uint32_t x302; + fiat_secp384r1_uint1 x303; + uint32_t x304; + fiat_secp384r1_uint1 x305; + uint32_t x306; + uint32_t x307; + fiat_secp384r1_uint1 x308; + uint32_t x309; + fiat_secp384r1_uint1 x310; + uint32_t x311; + fiat_secp384r1_uint1 x312; + uint32_t x313; + fiat_secp384r1_uint1 x314; + uint32_t x315; + fiat_secp384r1_uint1 x316; + uint32_t x317; + fiat_secp384r1_uint1 x318; + uint32_t x319; + fiat_secp384r1_uint1 x320; + uint32_t x321; + fiat_secp384r1_uint1 x322; + uint32_t x323; + fiat_secp384r1_uint1 x324; + uint32_t x325; + fiat_secp384r1_uint1 x326; + uint32_t x327; + fiat_secp384r1_uint1 x328; + uint32_t x329; + fiat_secp384r1_uint1 x330; + uint32_t x331; + fiat_secp384r1_uint1 x332; + uint32_t x333; + uint32_t x334; + uint32_t x335; + uint32_t x336; + uint32_t x337; + uint32_t x338; + uint32_t x339; + uint32_t x340; + uint32_t x341; + uint32_t x342; + uint32_t x343; + uint32_t x344; + uint32_t x345; + uint32_t x346; + uint32_t x347; + uint32_t x348; + uint32_t x349; + uint32_t x350; + uint32_t x351; + uint32_t x352; + uint32_t x353; + fiat_secp384r1_uint1 x354; + uint32_t x355; + fiat_secp384r1_uint1 x356; + uint32_t x357; + fiat_secp384r1_uint1 x358; + uint32_t x359; + fiat_secp384r1_uint1 x360; + uint32_t x361; + fiat_secp384r1_uint1 x362; + uint32_t x363; + fiat_secp384r1_uint1 x364; + uint32_t x365; + fiat_secp384r1_uint1 x366; + uint32_t x367; + fiat_secp384r1_uint1 x368; + uint32_t x369; + uint32_t x370; + fiat_secp384r1_uint1 x371; + uint32_t x372; + fiat_secp384r1_uint1 x373; + uint32_t x374; + fiat_secp384r1_uint1 x375; + uint32_t x376; + fiat_secp384r1_uint1 x377; + uint32_t x378; + fiat_secp384r1_uint1 x379; + uint32_t x380; + fiat_secp384r1_uint1 x381; + uint32_t x382; + fiat_secp384r1_uint1 x383; + uint32_t x384; + fiat_secp384r1_uint1 x385; + uint32_t x386; + fiat_secp384r1_uint1 x387; + uint32_t x388; + fiat_secp384r1_uint1 x389; + uint32_t x390; + fiat_secp384r1_uint1 x391; + uint32_t x392; + fiat_secp384r1_uint1 x393; + uint32_t x394; + fiat_secp384r1_uint1 x395; + uint32_t x396; + uint32_t x397; + uint32_t x398; + uint32_t x399; + uint32_t x400; + uint32_t x401; + uint32_t x402; + uint32_t x403; + uint32_t x404; + uint32_t x405; + uint32_t x406; + uint32_t x407; + uint32_t x408; + uint32_t x409; + uint32_t x410; + uint32_t x411; + uint32_t x412; + uint32_t x413; + uint32_t x414; + uint32_t x415; + uint32_t x416; + uint32_t x417; + uint32_t x418; + uint32_t x419; + uint32_t x420; + uint32_t x421; + fiat_secp384r1_uint1 x422; + uint32_t x423; + fiat_secp384r1_uint1 x424; + uint32_t x425; + fiat_secp384r1_uint1 x426; + uint32_t x427; + fiat_secp384r1_uint1 x428; + uint32_t x429; + fiat_secp384r1_uint1 x430; + uint32_t x431; + fiat_secp384r1_uint1 x432; + uint32_t x433; + fiat_secp384r1_uint1 x434; + uint32_t x435; + fiat_secp384r1_uint1 x436; + uint32_t x437; + fiat_secp384r1_uint1 x438; + uint32_t x439; + fiat_secp384r1_uint1 x440; + uint32_t x441; + fiat_secp384r1_uint1 x442; + uint32_t x443; + uint32_t x444; + fiat_secp384r1_uint1 x445; + uint32_t x446; + fiat_secp384r1_uint1 x447; + uint32_t x448; + fiat_secp384r1_uint1 x449; + uint32_t x450; + fiat_secp384r1_uint1 x451; + uint32_t x452; + fiat_secp384r1_uint1 x453; + uint32_t x454; + fiat_secp384r1_uint1 x455; + uint32_t x456; + fiat_secp384r1_uint1 x457; + uint32_t x458; + fiat_secp384r1_uint1 x459; + uint32_t x460; + fiat_secp384r1_uint1 x461; + uint32_t x462; + fiat_secp384r1_uint1 x463; + uint32_t x464; + fiat_secp384r1_uint1 x465; + uint32_t x466; + fiat_secp384r1_uint1 x467; + uint32_t x468; + fiat_secp384r1_uint1 x469; + uint32_t x470; + uint32_t x471; + uint32_t x472; + uint32_t x473; + uint32_t x474; + uint32_t x475; + uint32_t x476; + uint32_t x477; + uint32_t x478; + uint32_t x479; + uint32_t x480; + uint32_t x481; + uint32_t x482; + uint32_t x483; + uint32_t x484; + uint32_t x485; + uint32_t x486; + uint32_t x487; + uint32_t x488; + uint32_t x489; + uint32_t x490; + fiat_secp384r1_uint1 x491; + uint32_t x492; + fiat_secp384r1_uint1 x493; + uint32_t x494; + fiat_secp384r1_uint1 x495; + uint32_t x496; + fiat_secp384r1_uint1 x497; + uint32_t x498; + fiat_secp384r1_uint1 x499; + uint32_t x500; + fiat_secp384r1_uint1 x501; + uint32_t x502; + fiat_secp384r1_uint1 x503; + uint32_t x504; + fiat_secp384r1_uint1 x505; + uint32_t x506; + uint32_t x507; + fiat_secp384r1_uint1 x508; + uint32_t x509; + fiat_secp384r1_uint1 x510; + uint32_t x511; + fiat_secp384r1_uint1 x512; + uint32_t x513; + fiat_secp384r1_uint1 x514; + uint32_t x515; + fiat_secp384r1_uint1 x516; + uint32_t x517; + fiat_secp384r1_uint1 x518; + uint32_t x519; + fiat_secp384r1_uint1 x520; + uint32_t x521; + fiat_secp384r1_uint1 x522; + uint32_t x523; + fiat_secp384r1_uint1 x524; + uint32_t x525; + fiat_secp384r1_uint1 x526; + uint32_t x527; + fiat_secp384r1_uint1 x528; + uint32_t x529; + fiat_secp384r1_uint1 x530; + uint32_t x531; + fiat_secp384r1_uint1 x532; + uint32_t x533; + uint32_t x534; + uint32_t x535; + uint32_t x536; + uint32_t x537; + uint32_t x538; + uint32_t x539; + uint32_t x540; + uint32_t x541; + uint32_t x542; + uint32_t x543; + uint32_t x544; + uint32_t x545; + uint32_t x546; + uint32_t x547; + uint32_t x548; + uint32_t x549; + uint32_t x550; + uint32_t x551; + uint32_t x552; + uint32_t x553; + uint32_t x554; + uint32_t x555; + uint32_t x556; + uint32_t x557; + uint32_t x558; + fiat_secp384r1_uint1 x559; + uint32_t x560; + fiat_secp384r1_uint1 x561; + uint32_t x562; + fiat_secp384r1_uint1 x563; + uint32_t x564; + fiat_secp384r1_uint1 x565; + uint32_t x566; + fiat_secp384r1_uint1 x567; + uint32_t x568; + fiat_secp384r1_uint1 x569; + uint32_t x570; + fiat_secp384r1_uint1 x571; + uint32_t x572; + fiat_secp384r1_uint1 x573; + uint32_t x574; + fiat_secp384r1_uint1 x575; + uint32_t x576; + fiat_secp384r1_uint1 x577; + uint32_t x578; + fiat_secp384r1_uint1 x579; + uint32_t x580; + uint32_t x581; + fiat_secp384r1_uint1 x582; + uint32_t x583; + fiat_secp384r1_uint1 x584; + uint32_t x585; + fiat_secp384r1_uint1 x586; + uint32_t x587; + fiat_secp384r1_uint1 x588; + uint32_t x589; + fiat_secp384r1_uint1 x590; + uint32_t x591; + fiat_secp384r1_uint1 x592; + uint32_t x593; + fiat_secp384r1_uint1 x594; + uint32_t x595; + fiat_secp384r1_uint1 x596; + uint32_t x597; + fiat_secp384r1_uint1 x598; + uint32_t x599; + fiat_secp384r1_uint1 x600; + uint32_t x601; + fiat_secp384r1_uint1 x602; + uint32_t x603; + fiat_secp384r1_uint1 x604; + uint32_t x605; + fiat_secp384r1_uint1 x606; + uint32_t x607; + uint32_t x608; + uint32_t x609; + uint32_t x610; + uint32_t x611; + uint32_t x612; + uint32_t x613; + uint32_t x614; + uint32_t x615; + uint32_t x616; + uint32_t x617; + uint32_t x618; + uint32_t x619; + uint32_t x620; + uint32_t x621; + uint32_t x622; + uint32_t x623; + uint32_t x624; + uint32_t x625; + uint32_t x626; + uint32_t x627; + fiat_secp384r1_uint1 x628; + uint32_t x629; + fiat_secp384r1_uint1 x630; + uint32_t x631; + fiat_secp384r1_uint1 x632; + uint32_t x633; + fiat_secp384r1_uint1 x634; + uint32_t x635; + fiat_secp384r1_uint1 x636; + uint32_t x637; + fiat_secp384r1_uint1 x638; + uint32_t x639; + fiat_secp384r1_uint1 x640; + uint32_t x641; + fiat_secp384r1_uint1 x642; + uint32_t x643; + uint32_t x644; + fiat_secp384r1_uint1 x645; + uint32_t x646; + fiat_secp384r1_uint1 x647; + uint32_t x648; + fiat_secp384r1_uint1 x649; + uint32_t x650; + fiat_secp384r1_uint1 x651; + uint32_t x652; + fiat_secp384r1_uint1 x653; + uint32_t x654; + fiat_secp384r1_uint1 x655; + uint32_t x656; + fiat_secp384r1_uint1 x657; + uint32_t x658; + fiat_secp384r1_uint1 x659; + uint32_t x660; + fiat_secp384r1_uint1 x661; + uint32_t x662; + fiat_secp384r1_uint1 x663; + uint32_t x664; + fiat_secp384r1_uint1 x665; + uint32_t x666; + fiat_secp384r1_uint1 x667; + uint32_t x668; + fiat_secp384r1_uint1 x669; + uint32_t x670; + uint32_t x671; + uint32_t x672; + uint32_t x673; + uint32_t x674; + uint32_t x675; + uint32_t x676; + uint32_t x677; + uint32_t x678; + uint32_t x679; + uint32_t x680; + uint32_t x681; + uint32_t x682; + uint32_t x683; + uint32_t x684; + uint32_t x685; + uint32_t x686; + uint32_t x687; + uint32_t x688; + uint32_t x689; + uint32_t x690; + uint32_t x691; + uint32_t x692; + uint32_t x693; + uint32_t x694; + uint32_t x695; + fiat_secp384r1_uint1 x696; + uint32_t x697; + fiat_secp384r1_uint1 x698; + uint32_t x699; + fiat_secp384r1_uint1 x700; + uint32_t x701; + fiat_secp384r1_uint1 x702; + uint32_t x703; + fiat_secp384r1_uint1 x704; + uint32_t x705; + fiat_secp384r1_uint1 x706; + uint32_t x707; + fiat_secp384r1_uint1 x708; + uint32_t x709; + fiat_secp384r1_uint1 x710; + uint32_t x711; + fiat_secp384r1_uint1 x712; + uint32_t x713; + fiat_secp384r1_uint1 x714; + uint32_t x715; + fiat_secp384r1_uint1 x716; + uint32_t x717; + uint32_t x718; + fiat_secp384r1_uint1 x719; + uint32_t x720; + fiat_secp384r1_uint1 x721; + uint32_t x722; + fiat_secp384r1_uint1 x723; + uint32_t x724; + fiat_secp384r1_uint1 x725; + uint32_t x726; + fiat_secp384r1_uint1 x727; + uint32_t x728; + fiat_secp384r1_uint1 x729; + uint32_t x730; + fiat_secp384r1_uint1 x731; + uint32_t x732; + fiat_secp384r1_uint1 x733; + uint32_t x734; + fiat_secp384r1_uint1 x735; + uint32_t x736; + fiat_secp384r1_uint1 x737; + uint32_t x738; + fiat_secp384r1_uint1 x739; + uint32_t x740; + fiat_secp384r1_uint1 x741; + uint32_t x742; + fiat_secp384r1_uint1 x743; + uint32_t x744; + uint32_t x745; + uint32_t x746; + uint32_t x747; + uint32_t x748; + uint32_t x749; + uint32_t x750; + uint32_t x751; + uint32_t x752; + uint32_t x753; + uint32_t x754; + uint32_t x755; + uint32_t x756; + uint32_t x757; + uint32_t x758; + uint32_t x759; + uint32_t x760; + uint32_t x761; + uint32_t x762; + uint32_t x763; + uint32_t x764; + fiat_secp384r1_uint1 x765; + uint32_t x766; + fiat_secp384r1_uint1 x767; + uint32_t x768; + fiat_secp384r1_uint1 x769; + uint32_t x770; + fiat_secp384r1_uint1 x771; + uint32_t x772; + fiat_secp384r1_uint1 x773; + uint32_t x774; + fiat_secp384r1_uint1 x775; + uint32_t x776; + fiat_secp384r1_uint1 x777; + uint32_t x778; + fiat_secp384r1_uint1 x779; + uint32_t x780; + uint32_t x781; + fiat_secp384r1_uint1 x782; + uint32_t x783; + fiat_secp384r1_uint1 x784; + uint32_t x785; + fiat_secp384r1_uint1 x786; + uint32_t x787; + fiat_secp384r1_uint1 x788; + uint32_t x789; + fiat_secp384r1_uint1 x790; + uint32_t x791; + fiat_secp384r1_uint1 x792; + uint32_t x793; + fiat_secp384r1_uint1 x794; + uint32_t x795; + fiat_secp384r1_uint1 x796; + uint32_t x797; + fiat_secp384r1_uint1 x798; + uint32_t x799; + fiat_secp384r1_uint1 x800; + uint32_t x801; + fiat_secp384r1_uint1 x802; + uint32_t x803; + fiat_secp384r1_uint1 x804; + uint32_t x805; + fiat_secp384r1_uint1 x806; + uint32_t x807; + uint32_t x808; + uint32_t x809; + uint32_t x810; + uint32_t x811; + uint32_t x812; + uint32_t x813; + uint32_t x814; + uint32_t x815; + uint32_t x816; + uint32_t x817; + uint32_t x818; + uint32_t x819; + uint32_t x820; + uint32_t x821; + uint32_t x822; + uint32_t x823; + uint32_t x824; + uint32_t x825; + uint32_t x826; + uint32_t x827; + uint32_t x828; + uint32_t x829; + uint32_t x830; + uint32_t x831; + uint32_t x832; + fiat_secp384r1_uint1 x833; + uint32_t x834; + fiat_secp384r1_uint1 x835; + uint32_t x836; + fiat_secp384r1_uint1 x837; + uint32_t x838; + fiat_secp384r1_uint1 x839; + uint32_t x840; + fiat_secp384r1_uint1 x841; + uint32_t x842; + fiat_secp384r1_uint1 x843; + uint32_t x844; + fiat_secp384r1_uint1 x845; + uint32_t x846; + fiat_secp384r1_uint1 x847; + uint32_t x848; + fiat_secp384r1_uint1 x849; + uint32_t x850; + fiat_secp384r1_uint1 x851; + uint32_t x852; + fiat_secp384r1_uint1 x853; + uint32_t x854; + uint32_t x855; + fiat_secp384r1_uint1 x856; + uint32_t x857; + fiat_secp384r1_uint1 x858; + uint32_t x859; + fiat_secp384r1_uint1 x860; + uint32_t x861; + fiat_secp384r1_uint1 x862; + uint32_t x863; + fiat_secp384r1_uint1 x864; + uint32_t x865; + fiat_secp384r1_uint1 x866; + uint32_t x867; + fiat_secp384r1_uint1 x868; + uint32_t x869; + fiat_secp384r1_uint1 x870; + uint32_t x871; + fiat_secp384r1_uint1 x872; + uint32_t x873; + fiat_secp384r1_uint1 x874; + uint32_t x875; + fiat_secp384r1_uint1 x876; + uint32_t x877; + fiat_secp384r1_uint1 x878; + uint32_t x879; + fiat_secp384r1_uint1 x880; + uint32_t x881; + uint32_t x882; + uint32_t x883; + uint32_t x884; + uint32_t x885; + uint32_t x886; + uint32_t x887; + uint32_t x888; + uint32_t x889; + uint32_t x890; + uint32_t x891; + uint32_t x892; + uint32_t x893; + uint32_t x894; + uint32_t x895; + uint32_t x896; + uint32_t x897; + uint32_t x898; + uint32_t x899; + uint32_t x900; + uint32_t x901; + fiat_secp384r1_uint1 x902; + uint32_t x903; + fiat_secp384r1_uint1 x904; + uint32_t x905; + fiat_secp384r1_uint1 x906; + uint32_t x907; + fiat_secp384r1_uint1 x908; + uint32_t x909; + fiat_secp384r1_uint1 x910; + uint32_t x911; + fiat_secp384r1_uint1 x912; + uint32_t x913; + fiat_secp384r1_uint1 x914; + uint32_t x915; + fiat_secp384r1_uint1 x916; + uint32_t x917; + uint32_t x918; + fiat_secp384r1_uint1 x919; + uint32_t x920; + fiat_secp384r1_uint1 x921; + uint32_t x922; + fiat_secp384r1_uint1 x923; + uint32_t x924; + fiat_secp384r1_uint1 x925; + uint32_t x926; + fiat_secp384r1_uint1 x927; + uint32_t x928; + fiat_secp384r1_uint1 x929; + uint32_t x930; + fiat_secp384r1_uint1 x931; + uint32_t x932; + fiat_secp384r1_uint1 x933; + uint32_t x934; + fiat_secp384r1_uint1 x935; + uint32_t x936; + fiat_secp384r1_uint1 x937; + uint32_t x938; + fiat_secp384r1_uint1 x939; + uint32_t x940; + fiat_secp384r1_uint1 x941; + uint32_t x942; + fiat_secp384r1_uint1 x943; + uint32_t x944; + uint32_t x945; + uint32_t x946; + uint32_t x947; + uint32_t x948; + uint32_t x949; + uint32_t x950; + uint32_t x951; + uint32_t x952; + uint32_t x953; + uint32_t x954; + uint32_t x955; + uint32_t x956; + uint32_t x957; + uint32_t x958; + uint32_t x959; + uint32_t x960; + uint32_t x961; + uint32_t x962; + uint32_t x963; + uint32_t x964; + uint32_t x965; + uint32_t x966; + uint32_t x967; + uint32_t x968; + uint32_t x969; + fiat_secp384r1_uint1 x970; + uint32_t x971; + fiat_secp384r1_uint1 x972; + uint32_t x973; + fiat_secp384r1_uint1 x974; + uint32_t x975; + fiat_secp384r1_uint1 x976; + uint32_t x977; + fiat_secp384r1_uint1 x978; + uint32_t x979; + fiat_secp384r1_uint1 x980; + uint32_t x981; + fiat_secp384r1_uint1 x982; + uint32_t x983; + fiat_secp384r1_uint1 x984; + uint32_t x985; + fiat_secp384r1_uint1 x986; + uint32_t x987; + fiat_secp384r1_uint1 x988; + uint32_t x989; + fiat_secp384r1_uint1 x990; + uint32_t x991; + uint32_t x992; + fiat_secp384r1_uint1 x993; + uint32_t x994; + fiat_secp384r1_uint1 x995; + uint32_t x996; + fiat_secp384r1_uint1 x997; + uint32_t x998; + fiat_secp384r1_uint1 x999; + uint32_t x1000; + fiat_secp384r1_uint1 x1001; + uint32_t x1002; + fiat_secp384r1_uint1 x1003; + uint32_t x1004; + fiat_secp384r1_uint1 x1005; + uint32_t x1006; + fiat_secp384r1_uint1 x1007; + uint32_t x1008; + fiat_secp384r1_uint1 x1009; + uint32_t x1010; + fiat_secp384r1_uint1 x1011; + uint32_t x1012; + fiat_secp384r1_uint1 x1013; + uint32_t x1014; + fiat_secp384r1_uint1 x1015; + uint32_t x1016; + fiat_secp384r1_uint1 x1017; + uint32_t x1018; + uint32_t x1019; + uint32_t x1020; + uint32_t x1021; + uint32_t x1022; + uint32_t x1023; + uint32_t x1024; + uint32_t x1025; + uint32_t x1026; + uint32_t x1027; + uint32_t x1028; + uint32_t x1029; + uint32_t x1030; + uint32_t x1031; + uint32_t x1032; + uint32_t x1033; + uint32_t x1034; + uint32_t x1035; + uint32_t x1036; + uint32_t x1037; + uint32_t x1038; + fiat_secp384r1_uint1 x1039; + uint32_t x1040; + fiat_secp384r1_uint1 x1041; + uint32_t x1042; + fiat_secp384r1_uint1 x1043; + uint32_t x1044; + fiat_secp384r1_uint1 x1045; + uint32_t x1046; + fiat_secp384r1_uint1 x1047; + uint32_t x1048; + fiat_secp384r1_uint1 x1049; + uint32_t x1050; + fiat_secp384r1_uint1 x1051; + uint32_t x1052; + fiat_secp384r1_uint1 x1053; + uint32_t x1054; + uint32_t x1055; + fiat_secp384r1_uint1 x1056; + uint32_t x1057; + fiat_secp384r1_uint1 x1058; + uint32_t x1059; + fiat_secp384r1_uint1 x1060; + uint32_t x1061; + fiat_secp384r1_uint1 x1062; + uint32_t x1063; + fiat_secp384r1_uint1 x1064; + uint32_t x1065; + fiat_secp384r1_uint1 x1066; + uint32_t x1067; + fiat_secp384r1_uint1 x1068; + uint32_t x1069; + fiat_secp384r1_uint1 x1070; + uint32_t x1071; + fiat_secp384r1_uint1 x1072; + uint32_t x1073; + fiat_secp384r1_uint1 x1074; + uint32_t x1075; + fiat_secp384r1_uint1 x1076; + uint32_t x1077; + fiat_secp384r1_uint1 x1078; + uint32_t x1079; + fiat_secp384r1_uint1 x1080; + uint32_t x1081; + uint32_t x1082; + uint32_t x1083; + uint32_t x1084; + uint32_t x1085; + uint32_t x1086; + uint32_t x1087; + uint32_t x1088; + uint32_t x1089; + uint32_t x1090; + uint32_t x1091; + uint32_t x1092; + uint32_t x1093; + uint32_t x1094; + uint32_t x1095; + uint32_t x1096; + uint32_t x1097; + uint32_t x1098; + uint32_t x1099; + uint32_t x1100; + uint32_t x1101; + uint32_t x1102; + uint32_t x1103; + uint32_t x1104; + uint32_t x1105; + uint32_t x1106; + fiat_secp384r1_uint1 x1107; + uint32_t x1108; + fiat_secp384r1_uint1 x1109; + uint32_t x1110; + fiat_secp384r1_uint1 x1111; + uint32_t x1112; + fiat_secp384r1_uint1 x1113; + uint32_t x1114; + fiat_secp384r1_uint1 x1115; + uint32_t x1116; + fiat_secp384r1_uint1 x1117; + uint32_t x1118; + fiat_secp384r1_uint1 x1119; + uint32_t x1120; + fiat_secp384r1_uint1 x1121; + uint32_t x1122; + fiat_secp384r1_uint1 x1123; + uint32_t x1124; + fiat_secp384r1_uint1 x1125; + uint32_t x1126; + fiat_secp384r1_uint1 x1127; + uint32_t x1128; + uint32_t x1129; + fiat_secp384r1_uint1 x1130; + uint32_t x1131; + fiat_secp384r1_uint1 x1132; + uint32_t x1133; + fiat_secp384r1_uint1 x1134; + uint32_t x1135; + fiat_secp384r1_uint1 x1136; + uint32_t x1137; + fiat_secp384r1_uint1 x1138; + uint32_t x1139; + fiat_secp384r1_uint1 x1140; + uint32_t x1141; + fiat_secp384r1_uint1 x1142; + uint32_t x1143; + fiat_secp384r1_uint1 x1144; + uint32_t x1145; + fiat_secp384r1_uint1 x1146; + uint32_t x1147; + fiat_secp384r1_uint1 x1148; + uint32_t x1149; + fiat_secp384r1_uint1 x1150; + uint32_t x1151; + fiat_secp384r1_uint1 x1152; + uint32_t x1153; + fiat_secp384r1_uint1 x1154; + uint32_t x1155; + uint32_t x1156; + uint32_t x1157; + uint32_t x1158; + uint32_t x1159; + uint32_t x1160; + uint32_t x1161; + uint32_t x1162; + uint32_t x1163; + uint32_t x1164; + uint32_t x1165; + uint32_t x1166; + uint32_t x1167; + uint32_t x1168; + uint32_t x1169; + uint32_t x1170; + uint32_t x1171; + uint32_t x1172; + uint32_t x1173; + uint32_t x1174; + uint32_t x1175; + fiat_secp384r1_uint1 x1176; + uint32_t x1177; + fiat_secp384r1_uint1 x1178; + uint32_t x1179; + fiat_secp384r1_uint1 x1180; + uint32_t x1181; + fiat_secp384r1_uint1 x1182; + uint32_t x1183; + fiat_secp384r1_uint1 x1184; + uint32_t x1185; + fiat_secp384r1_uint1 x1186; + uint32_t x1187; + fiat_secp384r1_uint1 x1188; + uint32_t x1189; + fiat_secp384r1_uint1 x1190; + uint32_t x1191; + uint32_t x1192; + fiat_secp384r1_uint1 x1193; + uint32_t x1194; + fiat_secp384r1_uint1 x1195; + uint32_t x1196; + fiat_secp384r1_uint1 x1197; + uint32_t x1198; + fiat_secp384r1_uint1 x1199; + uint32_t x1200; + fiat_secp384r1_uint1 x1201; + uint32_t x1202; + fiat_secp384r1_uint1 x1203; + uint32_t x1204; + fiat_secp384r1_uint1 x1205; + uint32_t x1206; + fiat_secp384r1_uint1 x1207; + uint32_t x1208; + fiat_secp384r1_uint1 x1209; + uint32_t x1210; + fiat_secp384r1_uint1 x1211; + uint32_t x1212; + fiat_secp384r1_uint1 x1213; + uint32_t x1214; + fiat_secp384r1_uint1 x1215; + uint32_t x1216; + fiat_secp384r1_uint1 x1217; + uint32_t x1218; + uint32_t x1219; + uint32_t x1220; + uint32_t x1221; + uint32_t x1222; + uint32_t x1223; + uint32_t x1224; + uint32_t x1225; + uint32_t x1226; + uint32_t x1227; + uint32_t x1228; + uint32_t x1229; + uint32_t x1230; + uint32_t x1231; + uint32_t x1232; + uint32_t x1233; + uint32_t x1234; + uint32_t x1235; + uint32_t x1236; + uint32_t x1237; + uint32_t x1238; + uint32_t x1239; + uint32_t x1240; + uint32_t x1241; + uint32_t x1242; + uint32_t x1243; + fiat_secp384r1_uint1 x1244; + uint32_t x1245; + fiat_secp384r1_uint1 x1246; + uint32_t x1247; + fiat_secp384r1_uint1 x1248; + uint32_t x1249; + fiat_secp384r1_uint1 x1250; + uint32_t x1251; + fiat_secp384r1_uint1 x1252; + uint32_t x1253; + fiat_secp384r1_uint1 x1254; + uint32_t x1255; + fiat_secp384r1_uint1 x1256; + uint32_t x1257; + fiat_secp384r1_uint1 x1258; + uint32_t x1259; + fiat_secp384r1_uint1 x1260; + uint32_t x1261; + fiat_secp384r1_uint1 x1262; + uint32_t x1263; + fiat_secp384r1_uint1 x1264; + uint32_t x1265; + uint32_t x1266; + fiat_secp384r1_uint1 x1267; + uint32_t x1268; + fiat_secp384r1_uint1 x1269; + uint32_t x1270; + fiat_secp384r1_uint1 x1271; + uint32_t x1272; + fiat_secp384r1_uint1 x1273; + uint32_t x1274; + fiat_secp384r1_uint1 x1275; + uint32_t x1276; + fiat_secp384r1_uint1 x1277; + uint32_t x1278; + fiat_secp384r1_uint1 x1279; + uint32_t x1280; + fiat_secp384r1_uint1 x1281; + uint32_t x1282; + fiat_secp384r1_uint1 x1283; + uint32_t x1284; + fiat_secp384r1_uint1 x1285; + uint32_t x1286; + fiat_secp384r1_uint1 x1287; + uint32_t x1288; + fiat_secp384r1_uint1 x1289; + uint32_t x1290; + fiat_secp384r1_uint1 x1291; + uint32_t x1292; + uint32_t x1293; + uint32_t x1294; + uint32_t x1295; + uint32_t x1296; + uint32_t x1297; + uint32_t x1298; + uint32_t x1299; + uint32_t x1300; + uint32_t x1301; + uint32_t x1302; + uint32_t x1303; + uint32_t x1304; + uint32_t x1305; + uint32_t x1306; + uint32_t x1307; + uint32_t x1308; + uint32_t x1309; + uint32_t x1310; + uint32_t x1311; + uint32_t x1312; + fiat_secp384r1_uint1 x1313; + uint32_t x1314; + fiat_secp384r1_uint1 x1315; + uint32_t x1316; + fiat_secp384r1_uint1 x1317; + uint32_t x1318; + fiat_secp384r1_uint1 x1319; + uint32_t x1320; + fiat_secp384r1_uint1 x1321; + uint32_t x1322; + fiat_secp384r1_uint1 x1323; + uint32_t x1324; + fiat_secp384r1_uint1 x1325; + uint32_t x1326; + fiat_secp384r1_uint1 x1327; + uint32_t x1328; + uint32_t x1329; + fiat_secp384r1_uint1 x1330; + uint32_t x1331; + fiat_secp384r1_uint1 x1332; + uint32_t x1333; + fiat_secp384r1_uint1 x1334; + uint32_t x1335; + fiat_secp384r1_uint1 x1336; + uint32_t x1337; + fiat_secp384r1_uint1 x1338; + uint32_t x1339; + fiat_secp384r1_uint1 x1340; + uint32_t x1341; + fiat_secp384r1_uint1 x1342; + uint32_t x1343; + fiat_secp384r1_uint1 x1344; + uint32_t x1345; + fiat_secp384r1_uint1 x1346; + uint32_t x1347; + fiat_secp384r1_uint1 x1348; + uint32_t x1349; + fiat_secp384r1_uint1 x1350; + uint32_t x1351; + fiat_secp384r1_uint1 x1352; + uint32_t x1353; + fiat_secp384r1_uint1 x1354; + uint32_t x1355; + uint32_t x1356; + uint32_t x1357; + uint32_t x1358; + uint32_t x1359; + uint32_t x1360; + uint32_t x1361; + uint32_t x1362; + uint32_t x1363; + uint32_t x1364; + uint32_t x1365; + uint32_t x1366; + uint32_t x1367; + uint32_t x1368; + uint32_t x1369; + uint32_t x1370; + uint32_t x1371; + uint32_t x1372; + uint32_t x1373; + uint32_t x1374; + uint32_t x1375; + uint32_t x1376; + uint32_t x1377; + uint32_t x1378; + uint32_t x1379; + uint32_t x1380; + fiat_secp384r1_uint1 x1381; + uint32_t x1382; + fiat_secp384r1_uint1 x1383; + uint32_t x1384; + fiat_secp384r1_uint1 x1385; + uint32_t x1386; + fiat_secp384r1_uint1 x1387; + uint32_t x1388; + fiat_secp384r1_uint1 x1389; + uint32_t x1390; + fiat_secp384r1_uint1 x1391; + uint32_t x1392; + fiat_secp384r1_uint1 x1393; + uint32_t x1394; + fiat_secp384r1_uint1 x1395; + uint32_t x1396; + fiat_secp384r1_uint1 x1397; + uint32_t x1398; + fiat_secp384r1_uint1 x1399; + uint32_t x1400; + fiat_secp384r1_uint1 x1401; + uint32_t x1402; + uint32_t x1403; + fiat_secp384r1_uint1 x1404; + uint32_t x1405; + fiat_secp384r1_uint1 x1406; + uint32_t x1407; + fiat_secp384r1_uint1 x1408; + uint32_t x1409; + fiat_secp384r1_uint1 x1410; + uint32_t x1411; + fiat_secp384r1_uint1 x1412; + uint32_t x1413; + fiat_secp384r1_uint1 x1414; + uint32_t x1415; + fiat_secp384r1_uint1 x1416; + uint32_t x1417; + fiat_secp384r1_uint1 x1418; + uint32_t x1419; + fiat_secp384r1_uint1 x1420; + uint32_t x1421; + fiat_secp384r1_uint1 x1422; + uint32_t x1423; + fiat_secp384r1_uint1 x1424; + uint32_t x1425; + fiat_secp384r1_uint1 x1426; + uint32_t x1427; + fiat_secp384r1_uint1 x1428; + uint32_t x1429; + uint32_t x1430; + uint32_t x1431; + uint32_t x1432; + uint32_t x1433; + uint32_t x1434; + uint32_t x1435; + uint32_t x1436; + uint32_t x1437; + uint32_t x1438; + uint32_t x1439; + uint32_t x1440; + uint32_t x1441; + uint32_t x1442; + uint32_t x1443; + uint32_t x1444; + uint32_t x1445; + uint32_t x1446; + uint32_t x1447; + uint32_t x1448; + uint32_t x1449; + fiat_secp384r1_uint1 x1450; + uint32_t x1451; + fiat_secp384r1_uint1 x1452; + uint32_t x1453; + fiat_secp384r1_uint1 x1454; + uint32_t x1455; + fiat_secp384r1_uint1 x1456; + uint32_t x1457; + fiat_secp384r1_uint1 x1458; + uint32_t x1459; + fiat_secp384r1_uint1 x1460; + uint32_t x1461; + fiat_secp384r1_uint1 x1462; + uint32_t x1463; + fiat_secp384r1_uint1 x1464; + uint32_t x1465; + uint32_t x1466; + fiat_secp384r1_uint1 x1467; + uint32_t x1468; + fiat_secp384r1_uint1 x1469; + uint32_t x1470; + fiat_secp384r1_uint1 x1471; + uint32_t x1472; + fiat_secp384r1_uint1 x1473; + uint32_t x1474; + fiat_secp384r1_uint1 x1475; + uint32_t x1476; + fiat_secp384r1_uint1 x1477; + uint32_t x1478; + fiat_secp384r1_uint1 x1479; + uint32_t x1480; + fiat_secp384r1_uint1 x1481; + uint32_t x1482; + fiat_secp384r1_uint1 x1483; + uint32_t x1484; + fiat_secp384r1_uint1 x1485; + uint32_t x1486; + fiat_secp384r1_uint1 x1487; + uint32_t x1488; + fiat_secp384r1_uint1 x1489; + uint32_t x1490; + fiat_secp384r1_uint1 x1491; + uint32_t x1492; + uint32_t x1493; + uint32_t x1494; + uint32_t x1495; + uint32_t x1496; + uint32_t x1497; + uint32_t x1498; + uint32_t x1499; + uint32_t x1500; + uint32_t x1501; + uint32_t x1502; + uint32_t x1503; + uint32_t x1504; + uint32_t x1505; + uint32_t x1506; + uint32_t x1507; + uint32_t x1508; + uint32_t x1509; + uint32_t x1510; + uint32_t x1511; + uint32_t x1512; + uint32_t x1513; + uint32_t x1514; + uint32_t x1515; + uint32_t x1516; + uint32_t x1517; + fiat_secp384r1_uint1 x1518; + uint32_t x1519; + fiat_secp384r1_uint1 x1520; + uint32_t x1521; + fiat_secp384r1_uint1 x1522; + uint32_t x1523; + fiat_secp384r1_uint1 x1524; + uint32_t x1525; + fiat_secp384r1_uint1 x1526; + uint32_t x1527; + fiat_secp384r1_uint1 x1528; + uint32_t x1529; + fiat_secp384r1_uint1 x1530; + uint32_t x1531; + fiat_secp384r1_uint1 x1532; + uint32_t x1533; + fiat_secp384r1_uint1 x1534; + uint32_t x1535; + fiat_secp384r1_uint1 x1536; + uint32_t x1537; + fiat_secp384r1_uint1 x1538; + uint32_t x1539; + uint32_t x1540; + fiat_secp384r1_uint1 x1541; + uint32_t x1542; + fiat_secp384r1_uint1 x1543; + uint32_t x1544; + fiat_secp384r1_uint1 x1545; + uint32_t x1546; + fiat_secp384r1_uint1 x1547; + uint32_t x1548; + fiat_secp384r1_uint1 x1549; + uint32_t x1550; + fiat_secp384r1_uint1 x1551; + uint32_t x1552; + fiat_secp384r1_uint1 x1553; + uint32_t x1554; + fiat_secp384r1_uint1 x1555; + uint32_t x1556; + fiat_secp384r1_uint1 x1557; + uint32_t x1558; + fiat_secp384r1_uint1 x1559; + uint32_t x1560; + fiat_secp384r1_uint1 x1561; + uint32_t x1562; + fiat_secp384r1_uint1 x1563; + uint32_t x1564; + fiat_secp384r1_uint1 x1565; + uint32_t x1566; + uint32_t x1567; + uint32_t x1568; + uint32_t x1569; + uint32_t x1570; + uint32_t x1571; + uint32_t x1572; + uint32_t x1573; + uint32_t x1574; + uint32_t x1575; + uint32_t x1576; + uint32_t x1577; + uint32_t x1578; + uint32_t x1579; + uint32_t x1580; + uint32_t x1581; + uint32_t x1582; + uint32_t x1583; + uint32_t x1584; + uint32_t x1585; + uint32_t x1586; + fiat_secp384r1_uint1 x1587; + uint32_t x1588; + fiat_secp384r1_uint1 x1589; + uint32_t x1590; + fiat_secp384r1_uint1 x1591; + uint32_t x1592; + fiat_secp384r1_uint1 x1593; + uint32_t x1594; + fiat_secp384r1_uint1 x1595; + uint32_t x1596; + fiat_secp384r1_uint1 x1597; + uint32_t x1598; + fiat_secp384r1_uint1 x1599; + uint32_t x1600; + fiat_secp384r1_uint1 x1601; + uint32_t x1602; + uint32_t x1603; + fiat_secp384r1_uint1 x1604; + uint32_t x1605; + fiat_secp384r1_uint1 x1606; + uint32_t x1607; + fiat_secp384r1_uint1 x1608; + uint32_t x1609; + fiat_secp384r1_uint1 x1610; + uint32_t x1611; + fiat_secp384r1_uint1 x1612; + uint32_t x1613; + fiat_secp384r1_uint1 x1614; + uint32_t x1615; + fiat_secp384r1_uint1 x1616; + uint32_t x1617; + fiat_secp384r1_uint1 x1618; + uint32_t x1619; + fiat_secp384r1_uint1 x1620; + uint32_t x1621; + fiat_secp384r1_uint1 x1622; + uint32_t x1623; + fiat_secp384r1_uint1 x1624; + uint32_t x1625; + fiat_secp384r1_uint1 x1626; + uint32_t x1627; + fiat_secp384r1_uint1 x1628; + uint32_t x1629; + uint32_t x1630; + fiat_secp384r1_uint1 x1631; + uint32_t x1632; + fiat_secp384r1_uint1 x1633; + uint32_t x1634; + fiat_secp384r1_uint1 x1635; + uint32_t x1636; + fiat_secp384r1_uint1 x1637; + uint32_t x1638; + fiat_secp384r1_uint1 x1639; + uint32_t x1640; + fiat_secp384r1_uint1 x1641; + uint32_t x1642; + fiat_secp384r1_uint1 x1643; + uint32_t x1644; + fiat_secp384r1_uint1 x1645; + uint32_t x1646; + fiat_secp384r1_uint1 x1647; + uint32_t x1648; + fiat_secp384r1_uint1 x1649; + uint32_t x1650; + fiat_secp384r1_uint1 x1651; + uint32_t x1652; + fiat_secp384r1_uint1 x1653; + uint32_t x1654; + fiat_secp384r1_uint1 x1655; + uint32_t x1656; + uint32_t x1657; + uint32_t x1658; + uint32_t x1659; + uint32_t x1660; + uint32_t x1661; + uint32_t x1662; + uint32_t x1663; + uint32_t x1664; + uint32_t x1665; + uint32_t x1666; + uint32_t x1667; + x1 = (arg1[1]); + x2 = (arg1[2]); + x3 = (arg1[3]); + x4 = (arg1[4]); + x5 = (arg1[5]); + x6 = (arg1[6]); + x7 = (arg1[7]); + x8 = (arg1[8]); + x9 = (arg1[9]); + x10 = (arg1[10]); + x11 = (arg1[11]); + x12 = (arg1[0]); + fiat_secp384r1_mulx_u32(&x13, &x14, x12, (arg2[11])); + fiat_secp384r1_mulx_u32(&x15, &x16, x12, (arg2[10])); + fiat_secp384r1_mulx_u32(&x17, &x18, x12, (arg2[9])); + fiat_secp384r1_mulx_u32(&x19, &x20, x12, (arg2[8])); + fiat_secp384r1_mulx_u32(&x21, &x22, x12, (arg2[7])); + fiat_secp384r1_mulx_u32(&x23, &x24, x12, (arg2[6])); + fiat_secp384r1_mulx_u32(&x25, &x26, x12, (arg2[5])); + fiat_secp384r1_mulx_u32(&x27, &x28, x12, (arg2[4])); + fiat_secp384r1_mulx_u32(&x29, &x30, x12, (arg2[3])); + fiat_secp384r1_mulx_u32(&x31, &x32, x12, (arg2[2])); + fiat_secp384r1_mulx_u32(&x33, &x34, x12, (arg2[1])); + fiat_secp384r1_mulx_u32(&x35, &x36, x12, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x37, &x38, 0x0, x36, x33); + fiat_secp384r1_addcarryx_u32(&x39, &x40, x38, x34, x31); + fiat_secp384r1_addcarryx_u32(&x41, &x42, x40, x32, x29); + fiat_secp384r1_addcarryx_u32(&x43, &x44, x42, x30, x27); + fiat_secp384r1_addcarryx_u32(&x45, &x46, x44, x28, x25); + fiat_secp384r1_addcarryx_u32(&x47, &x48, x46, x26, x23); + fiat_secp384r1_addcarryx_u32(&x49, &x50, x48, x24, x21); + fiat_secp384r1_addcarryx_u32(&x51, &x52, x50, x22, x19); + fiat_secp384r1_addcarryx_u32(&x53, &x54, x52, x20, x17); + fiat_secp384r1_addcarryx_u32(&x55, &x56, x54, x18, x15); + fiat_secp384r1_addcarryx_u32(&x57, &x58, x56, x16, x13); + x59 = (x58 + x14); + fiat_secp384r1_mulx_u32(&x60, &x61, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x62, &x63, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x64, &x65, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x66, &x67, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x68, &x69, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x70, &x71, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x72, &x73, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x74, &x75, x35, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x76, &x77, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x78, &x79, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x80, &x81, 0x0, x77, x74); + fiat_secp384r1_addcarryx_u32(&x82, &x83, x81, x75, x72); + fiat_secp384r1_addcarryx_u32(&x84, &x85, x83, x73, x70); + fiat_secp384r1_addcarryx_u32(&x86, &x87, x85, x71, x68); + fiat_secp384r1_addcarryx_u32(&x88, &x89, x87, x69, x66); + fiat_secp384r1_addcarryx_u32(&x90, &x91, x89, x67, x64); + fiat_secp384r1_addcarryx_u32(&x92, &x93, x91, x65, x62); + fiat_secp384r1_addcarryx_u32(&x94, &x95, x93, x63, x60); + x96 = (x95 + x61); + fiat_secp384r1_addcarryx_u32(&x97, &x98, 0x0, x35, x78); + fiat_secp384r1_addcarryx_u32(&x99, &x100, x98, x37, x79); + fiat_secp384r1_addcarryx_u32(&x101, &x102, x100, x39, 0x0); + fiat_secp384r1_addcarryx_u32(&x103, &x104, x102, x41, x76); + fiat_secp384r1_addcarryx_u32(&x105, &x106, x104, x43, x80); + fiat_secp384r1_addcarryx_u32(&x107, &x108, x106, x45, x82); + fiat_secp384r1_addcarryx_u32(&x109, &x110, x108, x47, x84); + fiat_secp384r1_addcarryx_u32(&x111, &x112, x110, x49, x86); + fiat_secp384r1_addcarryx_u32(&x113, &x114, x112, x51, x88); + fiat_secp384r1_addcarryx_u32(&x115, &x116, x114, x53, x90); + fiat_secp384r1_addcarryx_u32(&x117, &x118, x116, x55, x92); + fiat_secp384r1_addcarryx_u32(&x119, &x120, x118, x57, x94); + fiat_secp384r1_addcarryx_u32(&x121, &x122, x120, x59, x96); + fiat_secp384r1_mulx_u32(&x123, &x124, x1, (arg2[11])); + fiat_secp384r1_mulx_u32(&x125, &x126, x1, (arg2[10])); + fiat_secp384r1_mulx_u32(&x127, &x128, x1, (arg2[9])); + fiat_secp384r1_mulx_u32(&x129, &x130, x1, (arg2[8])); + fiat_secp384r1_mulx_u32(&x131, &x132, x1, (arg2[7])); + fiat_secp384r1_mulx_u32(&x133, &x134, x1, (arg2[6])); + fiat_secp384r1_mulx_u32(&x135, &x136, x1, (arg2[5])); + fiat_secp384r1_mulx_u32(&x137, &x138, x1, (arg2[4])); + fiat_secp384r1_mulx_u32(&x139, &x140, x1, (arg2[3])); + fiat_secp384r1_mulx_u32(&x141, &x142, x1, (arg2[2])); + fiat_secp384r1_mulx_u32(&x143, &x144, x1, (arg2[1])); + fiat_secp384r1_mulx_u32(&x145, &x146, x1, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x147, &x148, 0x0, x146, x143); + fiat_secp384r1_addcarryx_u32(&x149, &x150, x148, x144, x141); + fiat_secp384r1_addcarryx_u32(&x151, &x152, x150, x142, x139); + fiat_secp384r1_addcarryx_u32(&x153, &x154, x152, x140, x137); + fiat_secp384r1_addcarryx_u32(&x155, &x156, x154, x138, x135); + fiat_secp384r1_addcarryx_u32(&x157, &x158, x156, x136, x133); + fiat_secp384r1_addcarryx_u32(&x159, &x160, x158, x134, x131); + fiat_secp384r1_addcarryx_u32(&x161, &x162, x160, x132, x129); + fiat_secp384r1_addcarryx_u32(&x163, &x164, x162, x130, x127); + fiat_secp384r1_addcarryx_u32(&x165, &x166, x164, x128, x125); + fiat_secp384r1_addcarryx_u32(&x167, &x168, x166, x126, x123); + x169 = (x168 + x124); + fiat_secp384r1_addcarryx_u32(&x170, &x171, 0x0, x99, x145); + fiat_secp384r1_addcarryx_u32(&x172, &x173, x171, x101, x147); + fiat_secp384r1_addcarryx_u32(&x174, &x175, x173, x103, x149); + fiat_secp384r1_addcarryx_u32(&x176, &x177, x175, x105, x151); + fiat_secp384r1_addcarryx_u32(&x178, &x179, x177, x107, x153); + fiat_secp384r1_addcarryx_u32(&x180, &x181, x179, x109, x155); + fiat_secp384r1_addcarryx_u32(&x182, &x183, x181, x111, x157); + fiat_secp384r1_addcarryx_u32(&x184, &x185, x183, x113, x159); + fiat_secp384r1_addcarryx_u32(&x186, &x187, x185, x115, x161); + fiat_secp384r1_addcarryx_u32(&x188, &x189, x187, x117, x163); + fiat_secp384r1_addcarryx_u32(&x190, &x191, x189, x119, x165); + fiat_secp384r1_addcarryx_u32(&x192, &x193, x191, x121, x167); + fiat_secp384r1_addcarryx_u32(&x194, &x195, x193, x122, x169); + fiat_secp384r1_mulx_u32(&x196, &x197, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x198, &x199, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x200, &x201, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x202, &x203, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x204, &x205, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x206, &x207, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x208, &x209, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x210, &x211, x170, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x212, &x213, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x214, &x215, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x216, &x217, 0x0, x213, x210); + fiat_secp384r1_addcarryx_u32(&x218, &x219, x217, x211, x208); + fiat_secp384r1_addcarryx_u32(&x220, &x221, x219, x209, x206); + fiat_secp384r1_addcarryx_u32(&x222, &x223, x221, x207, x204); + fiat_secp384r1_addcarryx_u32(&x224, &x225, x223, x205, x202); + fiat_secp384r1_addcarryx_u32(&x226, &x227, x225, x203, x200); + fiat_secp384r1_addcarryx_u32(&x228, &x229, x227, x201, x198); + fiat_secp384r1_addcarryx_u32(&x230, &x231, x229, x199, x196); + x232 = (x231 + x197); + fiat_secp384r1_addcarryx_u32(&x233, &x234, 0x0, x170, x214); + fiat_secp384r1_addcarryx_u32(&x235, &x236, x234, x172, x215); + fiat_secp384r1_addcarryx_u32(&x237, &x238, x236, x174, 0x0); + fiat_secp384r1_addcarryx_u32(&x239, &x240, x238, x176, x212); + fiat_secp384r1_addcarryx_u32(&x241, &x242, x240, x178, x216); + fiat_secp384r1_addcarryx_u32(&x243, &x244, x242, x180, x218); + fiat_secp384r1_addcarryx_u32(&x245, &x246, x244, x182, x220); + fiat_secp384r1_addcarryx_u32(&x247, &x248, x246, x184, x222); + fiat_secp384r1_addcarryx_u32(&x249, &x250, x248, x186, x224); + fiat_secp384r1_addcarryx_u32(&x251, &x252, x250, x188, x226); + fiat_secp384r1_addcarryx_u32(&x253, &x254, x252, x190, x228); + fiat_secp384r1_addcarryx_u32(&x255, &x256, x254, x192, x230); + fiat_secp384r1_addcarryx_u32(&x257, &x258, x256, x194, x232); + x259 = ((uint32_t)x258 + x195); + fiat_secp384r1_mulx_u32(&x260, &x261, x2, (arg2[11])); + fiat_secp384r1_mulx_u32(&x262, &x263, x2, (arg2[10])); + fiat_secp384r1_mulx_u32(&x264, &x265, x2, (arg2[9])); + fiat_secp384r1_mulx_u32(&x266, &x267, x2, (arg2[8])); + fiat_secp384r1_mulx_u32(&x268, &x269, x2, (arg2[7])); + fiat_secp384r1_mulx_u32(&x270, &x271, x2, (arg2[6])); + fiat_secp384r1_mulx_u32(&x272, &x273, x2, (arg2[5])); + fiat_secp384r1_mulx_u32(&x274, &x275, x2, (arg2[4])); + fiat_secp384r1_mulx_u32(&x276, &x277, x2, (arg2[3])); + fiat_secp384r1_mulx_u32(&x278, &x279, x2, (arg2[2])); + fiat_secp384r1_mulx_u32(&x280, &x281, x2, (arg2[1])); + fiat_secp384r1_mulx_u32(&x282, &x283, x2, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x284, &x285, 0x0, x283, x280); + fiat_secp384r1_addcarryx_u32(&x286, &x287, x285, x281, x278); + fiat_secp384r1_addcarryx_u32(&x288, &x289, x287, x279, x276); + fiat_secp384r1_addcarryx_u32(&x290, &x291, x289, x277, x274); + fiat_secp384r1_addcarryx_u32(&x292, &x293, x291, x275, x272); + fiat_secp384r1_addcarryx_u32(&x294, &x295, x293, x273, x270); + fiat_secp384r1_addcarryx_u32(&x296, &x297, x295, x271, x268); + fiat_secp384r1_addcarryx_u32(&x298, &x299, x297, x269, x266); + fiat_secp384r1_addcarryx_u32(&x300, &x301, x299, x267, x264); + fiat_secp384r1_addcarryx_u32(&x302, &x303, x301, x265, x262); + fiat_secp384r1_addcarryx_u32(&x304, &x305, x303, x263, x260); + x306 = (x305 + x261); + fiat_secp384r1_addcarryx_u32(&x307, &x308, 0x0, x235, x282); + fiat_secp384r1_addcarryx_u32(&x309, &x310, x308, x237, x284); + fiat_secp384r1_addcarryx_u32(&x311, &x312, x310, x239, x286); + fiat_secp384r1_addcarryx_u32(&x313, &x314, x312, x241, x288); + fiat_secp384r1_addcarryx_u32(&x315, &x316, x314, x243, x290); + fiat_secp384r1_addcarryx_u32(&x317, &x318, x316, x245, x292); + fiat_secp384r1_addcarryx_u32(&x319, &x320, x318, x247, x294); + fiat_secp384r1_addcarryx_u32(&x321, &x322, x320, x249, x296); + fiat_secp384r1_addcarryx_u32(&x323, &x324, x322, x251, x298); + fiat_secp384r1_addcarryx_u32(&x325, &x326, x324, x253, x300); + fiat_secp384r1_addcarryx_u32(&x327, &x328, x326, x255, x302); + fiat_secp384r1_addcarryx_u32(&x329, &x330, x328, x257, x304); + fiat_secp384r1_addcarryx_u32(&x331, &x332, x330, x259, x306); + fiat_secp384r1_mulx_u32(&x333, &x334, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x335, &x336, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x337, &x338, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x339, &x340, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x341, &x342, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x343, &x344, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x345, &x346, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x347, &x348, x307, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x349, &x350, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x351, &x352, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x353, &x354, 0x0, x350, x347); + fiat_secp384r1_addcarryx_u32(&x355, &x356, x354, x348, x345); + fiat_secp384r1_addcarryx_u32(&x357, &x358, x356, x346, x343); + fiat_secp384r1_addcarryx_u32(&x359, &x360, x358, x344, x341); + fiat_secp384r1_addcarryx_u32(&x361, &x362, x360, x342, x339); + fiat_secp384r1_addcarryx_u32(&x363, &x364, x362, x340, x337); + fiat_secp384r1_addcarryx_u32(&x365, &x366, x364, x338, x335); + fiat_secp384r1_addcarryx_u32(&x367, &x368, x366, x336, x333); + x369 = (x368 + x334); + fiat_secp384r1_addcarryx_u32(&x370, &x371, 0x0, x307, x351); + fiat_secp384r1_addcarryx_u32(&x372, &x373, x371, x309, x352); + fiat_secp384r1_addcarryx_u32(&x374, &x375, x373, x311, 0x0); + fiat_secp384r1_addcarryx_u32(&x376, &x377, x375, x313, x349); + fiat_secp384r1_addcarryx_u32(&x378, &x379, x377, x315, x353); + fiat_secp384r1_addcarryx_u32(&x380, &x381, x379, x317, x355); + fiat_secp384r1_addcarryx_u32(&x382, &x383, x381, x319, x357); + fiat_secp384r1_addcarryx_u32(&x384, &x385, x383, x321, x359); + fiat_secp384r1_addcarryx_u32(&x386, &x387, x385, x323, x361); + fiat_secp384r1_addcarryx_u32(&x388, &x389, x387, x325, x363); + fiat_secp384r1_addcarryx_u32(&x390, &x391, x389, x327, x365); + fiat_secp384r1_addcarryx_u32(&x392, &x393, x391, x329, x367); + fiat_secp384r1_addcarryx_u32(&x394, &x395, x393, x331, x369); + x396 = ((uint32_t)x395 + x332); + fiat_secp384r1_mulx_u32(&x397, &x398, x3, (arg2[11])); + fiat_secp384r1_mulx_u32(&x399, &x400, x3, (arg2[10])); + fiat_secp384r1_mulx_u32(&x401, &x402, x3, (arg2[9])); + fiat_secp384r1_mulx_u32(&x403, &x404, x3, (arg2[8])); + fiat_secp384r1_mulx_u32(&x405, &x406, x3, (arg2[7])); + fiat_secp384r1_mulx_u32(&x407, &x408, x3, (arg2[6])); + fiat_secp384r1_mulx_u32(&x409, &x410, x3, (arg2[5])); + fiat_secp384r1_mulx_u32(&x411, &x412, x3, (arg2[4])); + fiat_secp384r1_mulx_u32(&x413, &x414, x3, (arg2[3])); + fiat_secp384r1_mulx_u32(&x415, &x416, x3, (arg2[2])); + fiat_secp384r1_mulx_u32(&x417, &x418, x3, (arg2[1])); + fiat_secp384r1_mulx_u32(&x419, &x420, x3, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x421, &x422, 0x0, x420, x417); + fiat_secp384r1_addcarryx_u32(&x423, &x424, x422, x418, x415); + fiat_secp384r1_addcarryx_u32(&x425, &x426, x424, x416, x413); + fiat_secp384r1_addcarryx_u32(&x427, &x428, x426, x414, x411); + fiat_secp384r1_addcarryx_u32(&x429, &x430, x428, x412, x409); + fiat_secp384r1_addcarryx_u32(&x431, &x432, x430, x410, x407); + fiat_secp384r1_addcarryx_u32(&x433, &x434, x432, x408, x405); + fiat_secp384r1_addcarryx_u32(&x435, &x436, x434, x406, x403); + fiat_secp384r1_addcarryx_u32(&x437, &x438, x436, x404, x401); + fiat_secp384r1_addcarryx_u32(&x439, &x440, x438, x402, x399); + fiat_secp384r1_addcarryx_u32(&x441, &x442, x440, x400, x397); + x443 = (x442 + x398); + fiat_secp384r1_addcarryx_u32(&x444, &x445, 0x0, x372, x419); + fiat_secp384r1_addcarryx_u32(&x446, &x447, x445, x374, x421); + fiat_secp384r1_addcarryx_u32(&x448, &x449, x447, x376, x423); + fiat_secp384r1_addcarryx_u32(&x450, &x451, x449, x378, x425); + fiat_secp384r1_addcarryx_u32(&x452, &x453, x451, x380, x427); + fiat_secp384r1_addcarryx_u32(&x454, &x455, x453, x382, x429); + fiat_secp384r1_addcarryx_u32(&x456, &x457, x455, x384, x431); + fiat_secp384r1_addcarryx_u32(&x458, &x459, x457, x386, x433); + fiat_secp384r1_addcarryx_u32(&x460, &x461, x459, x388, x435); + fiat_secp384r1_addcarryx_u32(&x462, &x463, x461, x390, x437); + fiat_secp384r1_addcarryx_u32(&x464, &x465, x463, x392, x439); + fiat_secp384r1_addcarryx_u32(&x466, &x467, x465, x394, x441); + fiat_secp384r1_addcarryx_u32(&x468, &x469, x467, x396, x443); + fiat_secp384r1_mulx_u32(&x470, &x471, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x472, &x473, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x474, &x475, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x476, &x477, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x478, &x479, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x480, &x481, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x482, &x483, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x484, &x485, x444, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x486, &x487, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x488, &x489, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x490, &x491, 0x0, x487, x484); + fiat_secp384r1_addcarryx_u32(&x492, &x493, x491, x485, x482); + fiat_secp384r1_addcarryx_u32(&x494, &x495, x493, x483, x480); + fiat_secp384r1_addcarryx_u32(&x496, &x497, x495, x481, x478); + fiat_secp384r1_addcarryx_u32(&x498, &x499, x497, x479, x476); + fiat_secp384r1_addcarryx_u32(&x500, &x501, x499, x477, x474); + fiat_secp384r1_addcarryx_u32(&x502, &x503, x501, x475, x472); + fiat_secp384r1_addcarryx_u32(&x504, &x505, x503, x473, x470); + x506 = (x505 + x471); + fiat_secp384r1_addcarryx_u32(&x507, &x508, 0x0, x444, x488); + fiat_secp384r1_addcarryx_u32(&x509, &x510, x508, x446, x489); + fiat_secp384r1_addcarryx_u32(&x511, &x512, x510, x448, 0x0); + fiat_secp384r1_addcarryx_u32(&x513, &x514, x512, x450, x486); + fiat_secp384r1_addcarryx_u32(&x515, &x516, x514, x452, x490); + fiat_secp384r1_addcarryx_u32(&x517, &x518, x516, x454, x492); + fiat_secp384r1_addcarryx_u32(&x519, &x520, x518, x456, x494); + fiat_secp384r1_addcarryx_u32(&x521, &x522, x520, x458, x496); + fiat_secp384r1_addcarryx_u32(&x523, &x524, x522, x460, x498); + fiat_secp384r1_addcarryx_u32(&x525, &x526, x524, x462, x500); + fiat_secp384r1_addcarryx_u32(&x527, &x528, x526, x464, x502); + fiat_secp384r1_addcarryx_u32(&x529, &x530, x528, x466, x504); + fiat_secp384r1_addcarryx_u32(&x531, &x532, x530, x468, x506); + x533 = ((uint32_t)x532 + x469); + fiat_secp384r1_mulx_u32(&x534, &x535, x4, (arg2[11])); + fiat_secp384r1_mulx_u32(&x536, &x537, x4, (arg2[10])); + fiat_secp384r1_mulx_u32(&x538, &x539, x4, (arg2[9])); + fiat_secp384r1_mulx_u32(&x540, &x541, x4, (arg2[8])); + fiat_secp384r1_mulx_u32(&x542, &x543, x4, (arg2[7])); + fiat_secp384r1_mulx_u32(&x544, &x545, x4, (arg2[6])); + fiat_secp384r1_mulx_u32(&x546, &x547, x4, (arg2[5])); + fiat_secp384r1_mulx_u32(&x548, &x549, x4, (arg2[4])); + fiat_secp384r1_mulx_u32(&x550, &x551, x4, (arg2[3])); + fiat_secp384r1_mulx_u32(&x552, &x553, x4, (arg2[2])); + fiat_secp384r1_mulx_u32(&x554, &x555, x4, (arg2[1])); + fiat_secp384r1_mulx_u32(&x556, &x557, x4, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x558, &x559, 0x0, x557, x554); + fiat_secp384r1_addcarryx_u32(&x560, &x561, x559, x555, x552); + fiat_secp384r1_addcarryx_u32(&x562, &x563, x561, x553, x550); + fiat_secp384r1_addcarryx_u32(&x564, &x565, x563, x551, x548); + fiat_secp384r1_addcarryx_u32(&x566, &x567, x565, x549, x546); + fiat_secp384r1_addcarryx_u32(&x568, &x569, x567, x547, x544); + fiat_secp384r1_addcarryx_u32(&x570, &x571, x569, x545, x542); + fiat_secp384r1_addcarryx_u32(&x572, &x573, x571, x543, x540); + fiat_secp384r1_addcarryx_u32(&x574, &x575, x573, x541, x538); + fiat_secp384r1_addcarryx_u32(&x576, &x577, x575, x539, x536); + fiat_secp384r1_addcarryx_u32(&x578, &x579, x577, x537, x534); + x580 = (x579 + x535); + fiat_secp384r1_addcarryx_u32(&x581, &x582, 0x0, x509, x556); + fiat_secp384r1_addcarryx_u32(&x583, &x584, x582, x511, x558); + fiat_secp384r1_addcarryx_u32(&x585, &x586, x584, x513, x560); + fiat_secp384r1_addcarryx_u32(&x587, &x588, x586, x515, x562); + fiat_secp384r1_addcarryx_u32(&x589, &x590, x588, x517, x564); + fiat_secp384r1_addcarryx_u32(&x591, &x592, x590, x519, x566); + fiat_secp384r1_addcarryx_u32(&x593, &x594, x592, x521, x568); + fiat_secp384r1_addcarryx_u32(&x595, &x596, x594, x523, x570); + fiat_secp384r1_addcarryx_u32(&x597, &x598, x596, x525, x572); + fiat_secp384r1_addcarryx_u32(&x599, &x600, x598, x527, x574); + fiat_secp384r1_addcarryx_u32(&x601, &x602, x600, x529, x576); + fiat_secp384r1_addcarryx_u32(&x603, &x604, x602, x531, x578); + fiat_secp384r1_addcarryx_u32(&x605, &x606, x604, x533, x580); + fiat_secp384r1_mulx_u32(&x607, &x608, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x609, &x610, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x611, &x612, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x613, &x614, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x615, &x616, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x617, &x618, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x619, &x620, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x621, &x622, x581, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x623, &x624, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x625, &x626, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x627, &x628, 0x0, x624, x621); + fiat_secp384r1_addcarryx_u32(&x629, &x630, x628, x622, x619); + fiat_secp384r1_addcarryx_u32(&x631, &x632, x630, x620, x617); + fiat_secp384r1_addcarryx_u32(&x633, &x634, x632, x618, x615); + fiat_secp384r1_addcarryx_u32(&x635, &x636, x634, x616, x613); + fiat_secp384r1_addcarryx_u32(&x637, &x638, x636, x614, x611); + fiat_secp384r1_addcarryx_u32(&x639, &x640, x638, x612, x609); + fiat_secp384r1_addcarryx_u32(&x641, &x642, x640, x610, x607); + x643 = (x642 + x608); + fiat_secp384r1_addcarryx_u32(&x644, &x645, 0x0, x581, x625); + fiat_secp384r1_addcarryx_u32(&x646, &x647, x645, x583, x626); + fiat_secp384r1_addcarryx_u32(&x648, &x649, x647, x585, 0x0); + fiat_secp384r1_addcarryx_u32(&x650, &x651, x649, x587, x623); + fiat_secp384r1_addcarryx_u32(&x652, &x653, x651, x589, x627); + fiat_secp384r1_addcarryx_u32(&x654, &x655, x653, x591, x629); + fiat_secp384r1_addcarryx_u32(&x656, &x657, x655, x593, x631); + fiat_secp384r1_addcarryx_u32(&x658, &x659, x657, x595, x633); + fiat_secp384r1_addcarryx_u32(&x660, &x661, x659, x597, x635); + fiat_secp384r1_addcarryx_u32(&x662, &x663, x661, x599, x637); + fiat_secp384r1_addcarryx_u32(&x664, &x665, x663, x601, x639); + fiat_secp384r1_addcarryx_u32(&x666, &x667, x665, x603, x641); + fiat_secp384r1_addcarryx_u32(&x668, &x669, x667, x605, x643); + x670 = ((uint32_t)x669 + x606); + fiat_secp384r1_mulx_u32(&x671, &x672, x5, (arg2[11])); + fiat_secp384r1_mulx_u32(&x673, &x674, x5, (arg2[10])); + fiat_secp384r1_mulx_u32(&x675, &x676, x5, (arg2[9])); + fiat_secp384r1_mulx_u32(&x677, &x678, x5, (arg2[8])); + fiat_secp384r1_mulx_u32(&x679, &x680, x5, (arg2[7])); + fiat_secp384r1_mulx_u32(&x681, &x682, x5, (arg2[6])); + fiat_secp384r1_mulx_u32(&x683, &x684, x5, (arg2[5])); + fiat_secp384r1_mulx_u32(&x685, &x686, x5, (arg2[4])); + fiat_secp384r1_mulx_u32(&x687, &x688, x5, (arg2[3])); + fiat_secp384r1_mulx_u32(&x689, &x690, x5, (arg2[2])); + fiat_secp384r1_mulx_u32(&x691, &x692, x5, (arg2[1])); + fiat_secp384r1_mulx_u32(&x693, &x694, x5, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x695, &x696, 0x0, x694, x691); + fiat_secp384r1_addcarryx_u32(&x697, &x698, x696, x692, x689); + fiat_secp384r1_addcarryx_u32(&x699, &x700, x698, x690, x687); + fiat_secp384r1_addcarryx_u32(&x701, &x702, x700, x688, x685); + fiat_secp384r1_addcarryx_u32(&x703, &x704, x702, x686, x683); + fiat_secp384r1_addcarryx_u32(&x705, &x706, x704, x684, x681); + fiat_secp384r1_addcarryx_u32(&x707, &x708, x706, x682, x679); + fiat_secp384r1_addcarryx_u32(&x709, &x710, x708, x680, x677); + fiat_secp384r1_addcarryx_u32(&x711, &x712, x710, x678, x675); + fiat_secp384r1_addcarryx_u32(&x713, &x714, x712, x676, x673); + fiat_secp384r1_addcarryx_u32(&x715, &x716, x714, x674, x671); + x717 = (x716 + x672); + fiat_secp384r1_addcarryx_u32(&x718, &x719, 0x0, x646, x693); + fiat_secp384r1_addcarryx_u32(&x720, &x721, x719, x648, x695); + fiat_secp384r1_addcarryx_u32(&x722, &x723, x721, x650, x697); + fiat_secp384r1_addcarryx_u32(&x724, &x725, x723, x652, x699); + fiat_secp384r1_addcarryx_u32(&x726, &x727, x725, x654, x701); + fiat_secp384r1_addcarryx_u32(&x728, &x729, x727, x656, x703); + fiat_secp384r1_addcarryx_u32(&x730, &x731, x729, x658, x705); + fiat_secp384r1_addcarryx_u32(&x732, &x733, x731, x660, x707); + fiat_secp384r1_addcarryx_u32(&x734, &x735, x733, x662, x709); + fiat_secp384r1_addcarryx_u32(&x736, &x737, x735, x664, x711); + fiat_secp384r1_addcarryx_u32(&x738, &x739, x737, x666, x713); + fiat_secp384r1_addcarryx_u32(&x740, &x741, x739, x668, x715); + fiat_secp384r1_addcarryx_u32(&x742, &x743, x741, x670, x717); + fiat_secp384r1_mulx_u32(&x744, &x745, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x746, &x747, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x748, &x749, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x750, &x751, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x752, &x753, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x754, &x755, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x756, &x757, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x758, &x759, x718, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x760, &x761, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x762, &x763, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x764, &x765, 0x0, x761, x758); + fiat_secp384r1_addcarryx_u32(&x766, &x767, x765, x759, x756); + fiat_secp384r1_addcarryx_u32(&x768, &x769, x767, x757, x754); + fiat_secp384r1_addcarryx_u32(&x770, &x771, x769, x755, x752); + fiat_secp384r1_addcarryx_u32(&x772, &x773, x771, x753, x750); + fiat_secp384r1_addcarryx_u32(&x774, &x775, x773, x751, x748); + fiat_secp384r1_addcarryx_u32(&x776, &x777, x775, x749, x746); + fiat_secp384r1_addcarryx_u32(&x778, &x779, x777, x747, x744); + x780 = (x779 + x745); + fiat_secp384r1_addcarryx_u32(&x781, &x782, 0x0, x718, x762); + fiat_secp384r1_addcarryx_u32(&x783, &x784, x782, x720, x763); + fiat_secp384r1_addcarryx_u32(&x785, &x786, x784, x722, 0x0); + fiat_secp384r1_addcarryx_u32(&x787, &x788, x786, x724, x760); + fiat_secp384r1_addcarryx_u32(&x789, &x790, x788, x726, x764); + fiat_secp384r1_addcarryx_u32(&x791, &x792, x790, x728, x766); + fiat_secp384r1_addcarryx_u32(&x793, &x794, x792, x730, x768); + fiat_secp384r1_addcarryx_u32(&x795, &x796, x794, x732, x770); + fiat_secp384r1_addcarryx_u32(&x797, &x798, x796, x734, x772); + fiat_secp384r1_addcarryx_u32(&x799, &x800, x798, x736, x774); + fiat_secp384r1_addcarryx_u32(&x801, &x802, x800, x738, x776); + fiat_secp384r1_addcarryx_u32(&x803, &x804, x802, x740, x778); + fiat_secp384r1_addcarryx_u32(&x805, &x806, x804, x742, x780); + x807 = ((uint32_t)x806 + x743); + fiat_secp384r1_mulx_u32(&x808, &x809, x6, (arg2[11])); + fiat_secp384r1_mulx_u32(&x810, &x811, x6, (arg2[10])); + fiat_secp384r1_mulx_u32(&x812, &x813, x6, (arg2[9])); + fiat_secp384r1_mulx_u32(&x814, &x815, x6, (arg2[8])); + fiat_secp384r1_mulx_u32(&x816, &x817, x6, (arg2[7])); + fiat_secp384r1_mulx_u32(&x818, &x819, x6, (arg2[6])); + fiat_secp384r1_mulx_u32(&x820, &x821, x6, (arg2[5])); + fiat_secp384r1_mulx_u32(&x822, &x823, x6, (arg2[4])); + fiat_secp384r1_mulx_u32(&x824, &x825, x6, (arg2[3])); + fiat_secp384r1_mulx_u32(&x826, &x827, x6, (arg2[2])); + fiat_secp384r1_mulx_u32(&x828, &x829, x6, (arg2[1])); + fiat_secp384r1_mulx_u32(&x830, &x831, x6, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x832, &x833, 0x0, x831, x828); + fiat_secp384r1_addcarryx_u32(&x834, &x835, x833, x829, x826); + fiat_secp384r1_addcarryx_u32(&x836, &x837, x835, x827, x824); + fiat_secp384r1_addcarryx_u32(&x838, &x839, x837, x825, x822); + fiat_secp384r1_addcarryx_u32(&x840, &x841, x839, x823, x820); + fiat_secp384r1_addcarryx_u32(&x842, &x843, x841, x821, x818); + fiat_secp384r1_addcarryx_u32(&x844, &x845, x843, x819, x816); + fiat_secp384r1_addcarryx_u32(&x846, &x847, x845, x817, x814); + fiat_secp384r1_addcarryx_u32(&x848, &x849, x847, x815, x812); + fiat_secp384r1_addcarryx_u32(&x850, &x851, x849, x813, x810); + fiat_secp384r1_addcarryx_u32(&x852, &x853, x851, x811, x808); + x854 = (x853 + x809); + fiat_secp384r1_addcarryx_u32(&x855, &x856, 0x0, x783, x830); + fiat_secp384r1_addcarryx_u32(&x857, &x858, x856, x785, x832); + fiat_secp384r1_addcarryx_u32(&x859, &x860, x858, x787, x834); + fiat_secp384r1_addcarryx_u32(&x861, &x862, x860, x789, x836); + fiat_secp384r1_addcarryx_u32(&x863, &x864, x862, x791, x838); + fiat_secp384r1_addcarryx_u32(&x865, &x866, x864, x793, x840); + fiat_secp384r1_addcarryx_u32(&x867, &x868, x866, x795, x842); + fiat_secp384r1_addcarryx_u32(&x869, &x870, x868, x797, x844); + fiat_secp384r1_addcarryx_u32(&x871, &x872, x870, x799, x846); + fiat_secp384r1_addcarryx_u32(&x873, &x874, x872, x801, x848); + fiat_secp384r1_addcarryx_u32(&x875, &x876, x874, x803, x850); + fiat_secp384r1_addcarryx_u32(&x877, &x878, x876, x805, x852); + fiat_secp384r1_addcarryx_u32(&x879, &x880, x878, x807, x854); + fiat_secp384r1_mulx_u32(&x881, &x882, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x883, &x884, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x885, &x886, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x887, &x888, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x889, &x890, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x891, &x892, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x893, &x894, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x895, &x896, x855, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x897, &x898, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x899, &x900, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x901, &x902, 0x0, x898, x895); + fiat_secp384r1_addcarryx_u32(&x903, &x904, x902, x896, x893); + fiat_secp384r1_addcarryx_u32(&x905, &x906, x904, x894, x891); + fiat_secp384r1_addcarryx_u32(&x907, &x908, x906, x892, x889); + fiat_secp384r1_addcarryx_u32(&x909, &x910, x908, x890, x887); + fiat_secp384r1_addcarryx_u32(&x911, &x912, x910, x888, x885); + fiat_secp384r1_addcarryx_u32(&x913, &x914, x912, x886, x883); + fiat_secp384r1_addcarryx_u32(&x915, &x916, x914, x884, x881); + x917 = (x916 + x882); + fiat_secp384r1_addcarryx_u32(&x918, &x919, 0x0, x855, x899); + fiat_secp384r1_addcarryx_u32(&x920, &x921, x919, x857, x900); + fiat_secp384r1_addcarryx_u32(&x922, &x923, x921, x859, 0x0); + fiat_secp384r1_addcarryx_u32(&x924, &x925, x923, x861, x897); + fiat_secp384r1_addcarryx_u32(&x926, &x927, x925, x863, x901); + fiat_secp384r1_addcarryx_u32(&x928, &x929, x927, x865, x903); + fiat_secp384r1_addcarryx_u32(&x930, &x931, x929, x867, x905); + fiat_secp384r1_addcarryx_u32(&x932, &x933, x931, x869, x907); + fiat_secp384r1_addcarryx_u32(&x934, &x935, x933, x871, x909); + fiat_secp384r1_addcarryx_u32(&x936, &x937, x935, x873, x911); + fiat_secp384r1_addcarryx_u32(&x938, &x939, x937, x875, x913); + fiat_secp384r1_addcarryx_u32(&x940, &x941, x939, x877, x915); + fiat_secp384r1_addcarryx_u32(&x942, &x943, x941, x879, x917); + x944 = ((uint32_t)x943 + x880); + fiat_secp384r1_mulx_u32(&x945, &x946, x7, (arg2[11])); + fiat_secp384r1_mulx_u32(&x947, &x948, x7, (arg2[10])); + fiat_secp384r1_mulx_u32(&x949, &x950, x7, (arg2[9])); + fiat_secp384r1_mulx_u32(&x951, &x952, x7, (arg2[8])); + fiat_secp384r1_mulx_u32(&x953, &x954, x7, (arg2[7])); + fiat_secp384r1_mulx_u32(&x955, &x956, x7, (arg2[6])); + fiat_secp384r1_mulx_u32(&x957, &x958, x7, (arg2[5])); + fiat_secp384r1_mulx_u32(&x959, &x960, x7, (arg2[4])); + fiat_secp384r1_mulx_u32(&x961, &x962, x7, (arg2[3])); + fiat_secp384r1_mulx_u32(&x963, &x964, x7, (arg2[2])); + fiat_secp384r1_mulx_u32(&x965, &x966, x7, (arg2[1])); + fiat_secp384r1_mulx_u32(&x967, &x968, x7, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x969, &x970, 0x0, x968, x965); + fiat_secp384r1_addcarryx_u32(&x971, &x972, x970, x966, x963); + fiat_secp384r1_addcarryx_u32(&x973, &x974, x972, x964, x961); + fiat_secp384r1_addcarryx_u32(&x975, &x976, x974, x962, x959); + fiat_secp384r1_addcarryx_u32(&x977, &x978, x976, x960, x957); + fiat_secp384r1_addcarryx_u32(&x979, &x980, x978, x958, x955); + fiat_secp384r1_addcarryx_u32(&x981, &x982, x980, x956, x953); + fiat_secp384r1_addcarryx_u32(&x983, &x984, x982, x954, x951); + fiat_secp384r1_addcarryx_u32(&x985, &x986, x984, x952, x949); + fiat_secp384r1_addcarryx_u32(&x987, &x988, x986, x950, x947); + fiat_secp384r1_addcarryx_u32(&x989, &x990, x988, x948, x945); + x991 = (x990 + x946); + fiat_secp384r1_addcarryx_u32(&x992, &x993, 0x0, x920, x967); + fiat_secp384r1_addcarryx_u32(&x994, &x995, x993, x922, x969); + fiat_secp384r1_addcarryx_u32(&x996, &x997, x995, x924, x971); + fiat_secp384r1_addcarryx_u32(&x998, &x999, x997, x926, x973); + fiat_secp384r1_addcarryx_u32(&x1000, &x1001, x999, x928, x975); + fiat_secp384r1_addcarryx_u32(&x1002, &x1003, x1001, x930, x977); + fiat_secp384r1_addcarryx_u32(&x1004, &x1005, x1003, x932, x979); + fiat_secp384r1_addcarryx_u32(&x1006, &x1007, x1005, x934, x981); + fiat_secp384r1_addcarryx_u32(&x1008, &x1009, x1007, x936, x983); + fiat_secp384r1_addcarryx_u32(&x1010, &x1011, x1009, x938, x985); + fiat_secp384r1_addcarryx_u32(&x1012, &x1013, x1011, x940, x987); + fiat_secp384r1_addcarryx_u32(&x1014, &x1015, x1013, x942, x989); + fiat_secp384r1_addcarryx_u32(&x1016, &x1017, x1015, x944, x991); + fiat_secp384r1_mulx_u32(&x1018, &x1019, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1020, &x1021, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1022, &x1023, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1024, &x1025, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1026, &x1027, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1028, &x1029, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1030, &x1031, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1032, &x1033, x992, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1034, &x1035, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1036, &x1037, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1038, &x1039, 0x0, x1035, x1032); + fiat_secp384r1_addcarryx_u32(&x1040, &x1041, x1039, x1033, x1030); + fiat_secp384r1_addcarryx_u32(&x1042, &x1043, x1041, x1031, x1028); + fiat_secp384r1_addcarryx_u32(&x1044, &x1045, x1043, x1029, x1026); + fiat_secp384r1_addcarryx_u32(&x1046, &x1047, x1045, x1027, x1024); + fiat_secp384r1_addcarryx_u32(&x1048, &x1049, x1047, x1025, x1022); + fiat_secp384r1_addcarryx_u32(&x1050, &x1051, x1049, x1023, x1020); + fiat_secp384r1_addcarryx_u32(&x1052, &x1053, x1051, x1021, x1018); + x1054 = (x1053 + x1019); + fiat_secp384r1_addcarryx_u32(&x1055, &x1056, 0x0, x992, x1036); + fiat_secp384r1_addcarryx_u32(&x1057, &x1058, x1056, x994, x1037); + fiat_secp384r1_addcarryx_u32(&x1059, &x1060, x1058, x996, 0x0); + fiat_secp384r1_addcarryx_u32(&x1061, &x1062, x1060, x998, x1034); + fiat_secp384r1_addcarryx_u32(&x1063, &x1064, x1062, x1000, x1038); + fiat_secp384r1_addcarryx_u32(&x1065, &x1066, x1064, x1002, x1040); + fiat_secp384r1_addcarryx_u32(&x1067, &x1068, x1066, x1004, x1042); + fiat_secp384r1_addcarryx_u32(&x1069, &x1070, x1068, x1006, x1044); + fiat_secp384r1_addcarryx_u32(&x1071, &x1072, x1070, x1008, x1046); + fiat_secp384r1_addcarryx_u32(&x1073, &x1074, x1072, x1010, x1048); + fiat_secp384r1_addcarryx_u32(&x1075, &x1076, x1074, x1012, x1050); + fiat_secp384r1_addcarryx_u32(&x1077, &x1078, x1076, x1014, x1052); + fiat_secp384r1_addcarryx_u32(&x1079, &x1080, x1078, x1016, x1054); + x1081 = ((uint32_t)x1080 + x1017); + fiat_secp384r1_mulx_u32(&x1082, &x1083, x8, (arg2[11])); + fiat_secp384r1_mulx_u32(&x1084, &x1085, x8, (arg2[10])); + fiat_secp384r1_mulx_u32(&x1086, &x1087, x8, (arg2[9])); + fiat_secp384r1_mulx_u32(&x1088, &x1089, x8, (arg2[8])); + fiat_secp384r1_mulx_u32(&x1090, &x1091, x8, (arg2[7])); + fiat_secp384r1_mulx_u32(&x1092, &x1093, x8, (arg2[6])); + fiat_secp384r1_mulx_u32(&x1094, &x1095, x8, (arg2[5])); + fiat_secp384r1_mulx_u32(&x1096, &x1097, x8, (arg2[4])); + fiat_secp384r1_mulx_u32(&x1098, &x1099, x8, (arg2[3])); + fiat_secp384r1_mulx_u32(&x1100, &x1101, x8, (arg2[2])); + fiat_secp384r1_mulx_u32(&x1102, &x1103, x8, (arg2[1])); + fiat_secp384r1_mulx_u32(&x1104, &x1105, x8, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x1106, &x1107, 0x0, x1105, x1102); + fiat_secp384r1_addcarryx_u32(&x1108, &x1109, x1107, x1103, x1100); + fiat_secp384r1_addcarryx_u32(&x1110, &x1111, x1109, x1101, x1098); + fiat_secp384r1_addcarryx_u32(&x1112, &x1113, x1111, x1099, x1096); + fiat_secp384r1_addcarryx_u32(&x1114, &x1115, x1113, x1097, x1094); + fiat_secp384r1_addcarryx_u32(&x1116, &x1117, x1115, x1095, x1092); + fiat_secp384r1_addcarryx_u32(&x1118, &x1119, x1117, x1093, x1090); + fiat_secp384r1_addcarryx_u32(&x1120, &x1121, x1119, x1091, x1088); + fiat_secp384r1_addcarryx_u32(&x1122, &x1123, x1121, x1089, x1086); + fiat_secp384r1_addcarryx_u32(&x1124, &x1125, x1123, x1087, x1084); + fiat_secp384r1_addcarryx_u32(&x1126, &x1127, x1125, x1085, x1082); + x1128 = (x1127 + x1083); + fiat_secp384r1_addcarryx_u32(&x1129, &x1130, 0x0, x1057, x1104); + fiat_secp384r1_addcarryx_u32(&x1131, &x1132, x1130, x1059, x1106); + fiat_secp384r1_addcarryx_u32(&x1133, &x1134, x1132, x1061, x1108); + fiat_secp384r1_addcarryx_u32(&x1135, &x1136, x1134, x1063, x1110); + fiat_secp384r1_addcarryx_u32(&x1137, &x1138, x1136, x1065, x1112); + fiat_secp384r1_addcarryx_u32(&x1139, &x1140, x1138, x1067, x1114); + fiat_secp384r1_addcarryx_u32(&x1141, &x1142, x1140, x1069, x1116); + fiat_secp384r1_addcarryx_u32(&x1143, &x1144, x1142, x1071, x1118); + fiat_secp384r1_addcarryx_u32(&x1145, &x1146, x1144, x1073, x1120); + fiat_secp384r1_addcarryx_u32(&x1147, &x1148, x1146, x1075, x1122); + fiat_secp384r1_addcarryx_u32(&x1149, &x1150, x1148, x1077, x1124); + fiat_secp384r1_addcarryx_u32(&x1151, &x1152, x1150, x1079, x1126); + fiat_secp384r1_addcarryx_u32(&x1153, &x1154, x1152, x1081, x1128); + fiat_secp384r1_mulx_u32(&x1155, &x1156, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1157, &x1158, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1159, &x1160, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1161, &x1162, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1163, &x1164, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1165, &x1166, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1167, &x1168, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1169, &x1170, x1129, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1171, &x1172, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1173, &x1174, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1175, &x1176, 0x0, x1172, x1169); + fiat_secp384r1_addcarryx_u32(&x1177, &x1178, x1176, x1170, x1167); + fiat_secp384r1_addcarryx_u32(&x1179, &x1180, x1178, x1168, x1165); + fiat_secp384r1_addcarryx_u32(&x1181, &x1182, x1180, x1166, x1163); + fiat_secp384r1_addcarryx_u32(&x1183, &x1184, x1182, x1164, x1161); + fiat_secp384r1_addcarryx_u32(&x1185, &x1186, x1184, x1162, x1159); + fiat_secp384r1_addcarryx_u32(&x1187, &x1188, x1186, x1160, x1157); + fiat_secp384r1_addcarryx_u32(&x1189, &x1190, x1188, x1158, x1155); + x1191 = (x1190 + x1156); + fiat_secp384r1_addcarryx_u32(&x1192, &x1193, 0x0, x1129, x1173); + fiat_secp384r1_addcarryx_u32(&x1194, &x1195, x1193, x1131, x1174); + fiat_secp384r1_addcarryx_u32(&x1196, &x1197, x1195, x1133, 0x0); + fiat_secp384r1_addcarryx_u32(&x1198, &x1199, x1197, x1135, x1171); + fiat_secp384r1_addcarryx_u32(&x1200, &x1201, x1199, x1137, x1175); + fiat_secp384r1_addcarryx_u32(&x1202, &x1203, x1201, x1139, x1177); + fiat_secp384r1_addcarryx_u32(&x1204, &x1205, x1203, x1141, x1179); + fiat_secp384r1_addcarryx_u32(&x1206, &x1207, x1205, x1143, x1181); + fiat_secp384r1_addcarryx_u32(&x1208, &x1209, x1207, x1145, x1183); + fiat_secp384r1_addcarryx_u32(&x1210, &x1211, x1209, x1147, x1185); + fiat_secp384r1_addcarryx_u32(&x1212, &x1213, x1211, x1149, x1187); + fiat_secp384r1_addcarryx_u32(&x1214, &x1215, x1213, x1151, x1189); + fiat_secp384r1_addcarryx_u32(&x1216, &x1217, x1215, x1153, x1191); + x1218 = ((uint32_t)x1217 + x1154); + fiat_secp384r1_mulx_u32(&x1219, &x1220, x9, (arg2[11])); + fiat_secp384r1_mulx_u32(&x1221, &x1222, x9, (arg2[10])); + fiat_secp384r1_mulx_u32(&x1223, &x1224, x9, (arg2[9])); + fiat_secp384r1_mulx_u32(&x1225, &x1226, x9, (arg2[8])); + fiat_secp384r1_mulx_u32(&x1227, &x1228, x9, (arg2[7])); + fiat_secp384r1_mulx_u32(&x1229, &x1230, x9, (arg2[6])); + fiat_secp384r1_mulx_u32(&x1231, &x1232, x9, (arg2[5])); + fiat_secp384r1_mulx_u32(&x1233, &x1234, x9, (arg2[4])); + fiat_secp384r1_mulx_u32(&x1235, &x1236, x9, (arg2[3])); + fiat_secp384r1_mulx_u32(&x1237, &x1238, x9, (arg2[2])); + fiat_secp384r1_mulx_u32(&x1239, &x1240, x9, (arg2[1])); + fiat_secp384r1_mulx_u32(&x1241, &x1242, x9, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x1243, &x1244, 0x0, x1242, x1239); + fiat_secp384r1_addcarryx_u32(&x1245, &x1246, x1244, x1240, x1237); + fiat_secp384r1_addcarryx_u32(&x1247, &x1248, x1246, x1238, x1235); + fiat_secp384r1_addcarryx_u32(&x1249, &x1250, x1248, x1236, x1233); + fiat_secp384r1_addcarryx_u32(&x1251, &x1252, x1250, x1234, x1231); + fiat_secp384r1_addcarryx_u32(&x1253, &x1254, x1252, x1232, x1229); + fiat_secp384r1_addcarryx_u32(&x1255, &x1256, x1254, x1230, x1227); + fiat_secp384r1_addcarryx_u32(&x1257, &x1258, x1256, x1228, x1225); + fiat_secp384r1_addcarryx_u32(&x1259, &x1260, x1258, x1226, x1223); + fiat_secp384r1_addcarryx_u32(&x1261, &x1262, x1260, x1224, x1221); + fiat_secp384r1_addcarryx_u32(&x1263, &x1264, x1262, x1222, x1219); + x1265 = (x1264 + x1220); + fiat_secp384r1_addcarryx_u32(&x1266, &x1267, 0x0, x1194, x1241); + fiat_secp384r1_addcarryx_u32(&x1268, &x1269, x1267, x1196, x1243); + fiat_secp384r1_addcarryx_u32(&x1270, &x1271, x1269, x1198, x1245); + fiat_secp384r1_addcarryx_u32(&x1272, &x1273, x1271, x1200, x1247); + fiat_secp384r1_addcarryx_u32(&x1274, &x1275, x1273, x1202, x1249); + fiat_secp384r1_addcarryx_u32(&x1276, &x1277, x1275, x1204, x1251); + fiat_secp384r1_addcarryx_u32(&x1278, &x1279, x1277, x1206, x1253); + fiat_secp384r1_addcarryx_u32(&x1280, &x1281, x1279, x1208, x1255); + fiat_secp384r1_addcarryx_u32(&x1282, &x1283, x1281, x1210, x1257); + fiat_secp384r1_addcarryx_u32(&x1284, &x1285, x1283, x1212, x1259); + fiat_secp384r1_addcarryx_u32(&x1286, &x1287, x1285, x1214, x1261); + fiat_secp384r1_addcarryx_u32(&x1288, &x1289, x1287, x1216, x1263); + fiat_secp384r1_addcarryx_u32(&x1290, &x1291, x1289, x1218, x1265); + fiat_secp384r1_mulx_u32(&x1292, &x1293, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1294, &x1295, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1296, &x1297, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1298, &x1299, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1300, &x1301, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1302, &x1303, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1304, &x1305, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1306, &x1307, x1266, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1308, &x1309, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1310, &x1311, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1312, &x1313, 0x0, x1309, x1306); + fiat_secp384r1_addcarryx_u32(&x1314, &x1315, x1313, x1307, x1304); + fiat_secp384r1_addcarryx_u32(&x1316, &x1317, x1315, x1305, x1302); + fiat_secp384r1_addcarryx_u32(&x1318, &x1319, x1317, x1303, x1300); + fiat_secp384r1_addcarryx_u32(&x1320, &x1321, x1319, x1301, x1298); + fiat_secp384r1_addcarryx_u32(&x1322, &x1323, x1321, x1299, x1296); + fiat_secp384r1_addcarryx_u32(&x1324, &x1325, x1323, x1297, x1294); + fiat_secp384r1_addcarryx_u32(&x1326, &x1327, x1325, x1295, x1292); + x1328 = (x1327 + x1293); + fiat_secp384r1_addcarryx_u32(&x1329, &x1330, 0x0, x1266, x1310); + fiat_secp384r1_addcarryx_u32(&x1331, &x1332, x1330, x1268, x1311); + fiat_secp384r1_addcarryx_u32(&x1333, &x1334, x1332, x1270, 0x0); + fiat_secp384r1_addcarryx_u32(&x1335, &x1336, x1334, x1272, x1308); + fiat_secp384r1_addcarryx_u32(&x1337, &x1338, x1336, x1274, x1312); + fiat_secp384r1_addcarryx_u32(&x1339, &x1340, x1338, x1276, x1314); + fiat_secp384r1_addcarryx_u32(&x1341, &x1342, x1340, x1278, x1316); + fiat_secp384r1_addcarryx_u32(&x1343, &x1344, x1342, x1280, x1318); + fiat_secp384r1_addcarryx_u32(&x1345, &x1346, x1344, x1282, x1320); + fiat_secp384r1_addcarryx_u32(&x1347, &x1348, x1346, x1284, x1322); + fiat_secp384r1_addcarryx_u32(&x1349, &x1350, x1348, x1286, x1324); + fiat_secp384r1_addcarryx_u32(&x1351, &x1352, x1350, x1288, x1326); + fiat_secp384r1_addcarryx_u32(&x1353, &x1354, x1352, x1290, x1328); + x1355 = ((uint32_t)x1354 + x1291); + fiat_secp384r1_mulx_u32(&x1356, &x1357, x10, (arg2[11])); + fiat_secp384r1_mulx_u32(&x1358, &x1359, x10, (arg2[10])); + fiat_secp384r1_mulx_u32(&x1360, &x1361, x10, (arg2[9])); + fiat_secp384r1_mulx_u32(&x1362, &x1363, x10, (arg2[8])); + fiat_secp384r1_mulx_u32(&x1364, &x1365, x10, (arg2[7])); + fiat_secp384r1_mulx_u32(&x1366, &x1367, x10, (arg2[6])); + fiat_secp384r1_mulx_u32(&x1368, &x1369, x10, (arg2[5])); + fiat_secp384r1_mulx_u32(&x1370, &x1371, x10, (arg2[4])); + fiat_secp384r1_mulx_u32(&x1372, &x1373, x10, (arg2[3])); + fiat_secp384r1_mulx_u32(&x1374, &x1375, x10, (arg2[2])); + fiat_secp384r1_mulx_u32(&x1376, &x1377, x10, (arg2[1])); + fiat_secp384r1_mulx_u32(&x1378, &x1379, x10, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x1380, &x1381, 0x0, x1379, x1376); + fiat_secp384r1_addcarryx_u32(&x1382, &x1383, x1381, x1377, x1374); + fiat_secp384r1_addcarryx_u32(&x1384, &x1385, x1383, x1375, x1372); + fiat_secp384r1_addcarryx_u32(&x1386, &x1387, x1385, x1373, x1370); + fiat_secp384r1_addcarryx_u32(&x1388, &x1389, x1387, x1371, x1368); + fiat_secp384r1_addcarryx_u32(&x1390, &x1391, x1389, x1369, x1366); + fiat_secp384r1_addcarryx_u32(&x1392, &x1393, x1391, x1367, x1364); + fiat_secp384r1_addcarryx_u32(&x1394, &x1395, x1393, x1365, x1362); + fiat_secp384r1_addcarryx_u32(&x1396, &x1397, x1395, x1363, x1360); + fiat_secp384r1_addcarryx_u32(&x1398, &x1399, x1397, x1361, x1358); + fiat_secp384r1_addcarryx_u32(&x1400, &x1401, x1399, x1359, x1356); + x1402 = (x1401 + x1357); + fiat_secp384r1_addcarryx_u32(&x1403, &x1404, 0x0, x1331, x1378); + fiat_secp384r1_addcarryx_u32(&x1405, &x1406, x1404, x1333, x1380); + fiat_secp384r1_addcarryx_u32(&x1407, &x1408, x1406, x1335, x1382); + fiat_secp384r1_addcarryx_u32(&x1409, &x1410, x1408, x1337, x1384); + fiat_secp384r1_addcarryx_u32(&x1411, &x1412, x1410, x1339, x1386); + fiat_secp384r1_addcarryx_u32(&x1413, &x1414, x1412, x1341, x1388); + fiat_secp384r1_addcarryx_u32(&x1415, &x1416, x1414, x1343, x1390); + fiat_secp384r1_addcarryx_u32(&x1417, &x1418, x1416, x1345, x1392); + fiat_secp384r1_addcarryx_u32(&x1419, &x1420, x1418, x1347, x1394); + fiat_secp384r1_addcarryx_u32(&x1421, &x1422, x1420, x1349, x1396); + fiat_secp384r1_addcarryx_u32(&x1423, &x1424, x1422, x1351, x1398); + fiat_secp384r1_addcarryx_u32(&x1425, &x1426, x1424, x1353, x1400); + fiat_secp384r1_addcarryx_u32(&x1427, &x1428, x1426, x1355, x1402); + fiat_secp384r1_mulx_u32(&x1429, &x1430, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1431, &x1432, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1433, &x1434, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1435, &x1436, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1437, &x1438, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1439, &x1440, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1441, &x1442, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1443, &x1444, x1403, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1445, &x1446, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1447, &x1448, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1449, &x1450, 0x0, x1446, x1443); + fiat_secp384r1_addcarryx_u32(&x1451, &x1452, x1450, x1444, x1441); + fiat_secp384r1_addcarryx_u32(&x1453, &x1454, x1452, x1442, x1439); + fiat_secp384r1_addcarryx_u32(&x1455, &x1456, x1454, x1440, x1437); + fiat_secp384r1_addcarryx_u32(&x1457, &x1458, x1456, x1438, x1435); + fiat_secp384r1_addcarryx_u32(&x1459, &x1460, x1458, x1436, x1433); + fiat_secp384r1_addcarryx_u32(&x1461, &x1462, x1460, x1434, x1431); + fiat_secp384r1_addcarryx_u32(&x1463, &x1464, x1462, x1432, x1429); + x1465 = (x1464 + x1430); + fiat_secp384r1_addcarryx_u32(&x1466, &x1467, 0x0, x1403, x1447); + fiat_secp384r1_addcarryx_u32(&x1468, &x1469, x1467, x1405, x1448); + fiat_secp384r1_addcarryx_u32(&x1470, &x1471, x1469, x1407, 0x0); + fiat_secp384r1_addcarryx_u32(&x1472, &x1473, x1471, x1409, x1445); + fiat_secp384r1_addcarryx_u32(&x1474, &x1475, x1473, x1411, x1449); + fiat_secp384r1_addcarryx_u32(&x1476, &x1477, x1475, x1413, x1451); + fiat_secp384r1_addcarryx_u32(&x1478, &x1479, x1477, x1415, x1453); + fiat_secp384r1_addcarryx_u32(&x1480, &x1481, x1479, x1417, x1455); + fiat_secp384r1_addcarryx_u32(&x1482, &x1483, x1481, x1419, x1457); + fiat_secp384r1_addcarryx_u32(&x1484, &x1485, x1483, x1421, x1459); + fiat_secp384r1_addcarryx_u32(&x1486, &x1487, x1485, x1423, x1461); + fiat_secp384r1_addcarryx_u32(&x1488, &x1489, x1487, x1425, x1463); + fiat_secp384r1_addcarryx_u32(&x1490, &x1491, x1489, x1427, x1465); + x1492 = ((uint32_t)x1491 + x1428); + fiat_secp384r1_mulx_u32(&x1493, &x1494, x11, (arg2[11])); + fiat_secp384r1_mulx_u32(&x1495, &x1496, x11, (arg2[10])); + fiat_secp384r1_mulx_u32(&x1497, &x1498, x11, (arg2[9])); + fiat_secp384r1_mulx_u32(&x1499, &x1500, x11, (arg2[8])); + fiat_secp384r1_mulx_u32(&x1501, &x1502, x11, (arg2[7])); + fiat_secp384r1_mulx_u32(&x1503, &x1504, x11, (arg2[6])); + fiat_secp384r1_mulx_u32(&x1505, &x1506, x11, (arg2[5])); + fiat_secp384r1_mulx_u32(&x1507, &x1508, x11, (arg2[4])); + fiat_secp384r1_mulx_u32(&x1509, &x1510, x11, (arg2[3])); + fiat_secp384r1_mulx_u32(&x1511, &x1512, x11, (arg2[2])); + fiat_secp384r1_mulx_u32(&x1513, &x1514, x11, (arg2[1])); + fiat_secp384r1_mulx_u32(&x1515, &x1516, x11, (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x1517, &x1518, 0x0, x1516, x1513); + fiat_secp384r1_addcarryx_u32(&x1519, &x1520, x1518, x1514, x1511); + fiat_secp384r1_addcarryx_u32(&x1521, &x1522, x1520, x1512, x1509); + fiat_secp384r1_addcarryx_u32(&x1523, &x1524, x1522, x1510, x1507); + fiat_secp384r1_addcarryx_u32(&x1525, &x1526, x1524, x1508, x1505); + fiat_secp384r1_addcarryx_u32(&x1527, &x1528, x1526, x1506, x1503); + fiat_secp384r1_addcarryx_u32(&x1529, &x1530, x1528, x1504, x1501); + fiat_secp384r1_addcarryx_u32(&x1531, &x1532, x1530, x1502, x1499); + fiat_secp384r1_addcarryx_u32(&x1533, &x1534, x1532, x1500, x1497); + fiat_secp384r1_addcarryx_u32(&x1535, &x1536, x1534, x1498, x1495); + fiat_secp384r1_addcarryx_u32(&x1537, &x1538, x1536, x1496, x1493); + x1539 = (x1538 + x1494); + fiat_secp384r1_addcarryx_u32(&x1540, &x1541, 0x0, x1468, x1515); + fiat_secp384r1_addcarryx_u32(&x1542, &x1543, x1541, x1470, x1517); + fiat_secp384r1_addcarryx_u32(&x1544, &x1545, x1543, x1472, x1519); + fiat_secp384r1_addcarryx_u32(&x1546, &x1547, x1545, x1474, x1521); + fiat_secp384r1_addcarryx_u32(&x1548, &x1549, x1547, x1476, x1523); + fiat_secp384r1_addcarryx_u32(&x1550, &x1551, x1549, x1478, x1525); + fiat_secp384r1_addcarryx_u32(&x1552, &x1553, x1551, x1480, x1527); + fiat_secp384r1_addcarryx_u32(&x1554, &x1555, x1553, x1482, x1529); + fiat_secp384r1_addcarryx_u32(&x1556, &x1557, x1555, x1484, x1531); + fiat_secp384r1_addcarryx_u32(&x1558, &x1559, x1557, x1486, x1533); + fiat_secp384r1_addcarryx_u32(&x1560, &x1561, x1559, x1488, x1535); + fiat_secp384r1_addcarryx_u32(&x1562, &x1563, x1561, x1490, x1537); + fiat_secp384r1_addcarryx_u32(&x1564, &x1565, x1563, x1492, x1539); + fiat_secp384r1_mulx_u32(&x1566, &x1567, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1568, &x1569, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1570, &x1571, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1572, &x1573, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1574, &x1575, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1576, &x1577, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1578, &x1579, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1580, &x1581, x1540, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1582, &x1583, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1584, &x1585, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1586, &x1587, 0x0, x1583, x1580); + fiat_secp384r1_addcarryx_u32(&x1588, &x1589, x1587, x1581, x1578); + fiat_secp384r1_addcarryx_u32(&x1590, &x1591, x1589, x1579, x1576); + fiat_secp384r1_addcarryx_u32(&x1592, &x1593, x1591, x1577, x1574); + fiat_secp384r1_addcarryx_u32(&x1594, &x1595, x1593, x1575, x1572); + fiat_secp384r1_addcarryx_u32(&x1596, &x1597, x1595, x1573, x1570); + fiat_secp384r1_addcarryx_u32(&x1598, &x1599, x1597, x1571, x1568); + fiat_secp384r1_addcarryx_u32(&x1600, &x1601, x1599, x1569, x1566); + x1602 = (x1601 + x1567); + fiat_secp384r1_addcarryx_u32(&x1603, &x1604, 0x0, x1540, x1584); + fiat_secp384r1_addcarryx_u32(&x1605, &x1606, x1604, x1542, x1585); + fiat_secp384r1_addcarryx_u32(&x1607, &x1608, x1606, x1544, 0x0); + fiat_secp384r1_addcarryx_u32(&x1609, &x1610, x1608, x1546, x1582); + fiat_secp384r1_addcarryx_u32(&x1611, &x1612, x1610, x1548, x1586); + fiat_secp384r1_addcarryx_u32(&x1613, &x1614, x1612, x1550, x1588); + fiat_secp384r1_addcarryx_u32(&x1615, &x1616, x1614, x1552, x1590); + fiat_secp384r1_addcarryx_u32(&x1617, &x1618, x1616, x1554, x1592); + fiat_secp384r1_addcarryx_u32(&x1619, &x1620, x1618, x1556, x1594); + fiat_secp384r1_addcarryx_u32(&x1621, &x1622, x1620, x1558, x1596); + fiat_secp384r1_addcarryx_u32(&x1623, &x1624, x1622, x1560, x1598); + fiat_secp384r1_addcarryx_u32(&x1625, &x1626, x1624, x1562, x1600); + fiat_secp384r1_addcarryx_u32(&x1627, &x1628, x1626, x1564, x1602); + x1629 = ((uint32_t)x1628 + x1565); + fiat_secp384r1_subborrowx_u32(&x1630, &x1631, 0x0, x1605, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1632, &x1633, x1631, x1607, 0x0); + fiat_secp384r1_subborrowx_u32(&x1634, &x1635, x1633, x1609, 0x0); + fiat_secp384r1_subborrowx_u32(&x1636, &x1637, x1635, x1611, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1638, &x1639, x1637, x1613, + UINT32_C(0xfffffffe)); + fiat_secp384r1_subborrowx_u32(&x1640, &x1641, x1639, x1615, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1642, &x1643, x1641, x1617, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1644, &x1645, x1643, x1619, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1646, &x1647, x1645, x1621, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1648, &x1649, x1647, x1623, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1650, &x1651, x1649, x1625, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1652, &x1653, x1651, x1627, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1654, &x1655, x1653, x1629, 0x0); + fiat_secp384r1_cmovznz_u32(&x1656, x1655, x1630, x1605); + fiat_secp384r1_cmovznz_u32(&x1657, x1655, x1632, x1607); + fiat_secp384r1_cmovznz_u32(&x1658, x1655, x1634, x1609); + fiat_secp384r1_cmovznz_u32(&x1659, x1655, x1636, x1611); + fiat_secp384r1_cmovznz_u32(&x1660, x1655, x1638, x1613); + fiat_secp384r1_cmovznz_u32(&x1661, x1655, x1640, x1615); + fiat_secp384r1_cmovznz_u32(&x1662, x1655, x1642, x1617); + fiat_secp384r1_cmovznz_u32(&x1663, x1655, x1644, x1619); + fiat_secp384r1_cmovznz_u32(&x1664, x1655, x1646, x1621); + fiat_secp384r1_cmovznz_u32(&x1665, x1655, x1648, x1623); + fiat_secp384r1_cmovznz_u32(&x1666, x1655, x1650, x1625); + fiat_secp384r1_cmovznz_u32(&x1667, x1655, x1652, x1627); + out1[0] = x1656; + out1[1] = x1657; + out1[2] = x1658; + out1[3] = x1659; + out1[4] = x1660; + out1[5] = x1661; + out1[6] = x1662; + out1[7] = x1663; + out1[8] = x1664; + out1[9] = x1665; + out1[10] = x1666; + out1[11] = x1667; +} + +/* + * The function fiat_secp384r1_square squares a field element in the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) * eval (from_montgomery arg1)) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + */ +static void +fiat_secp384r1_square(uint32_t out1[12], const uint32_t arg1[12]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint32_t x16; + uint32_t x17; + uint32_t x18; + uint32_t x19; + uint32_t x20; + uint32_t x21; + uint32_t x22; + uint32_t x23; + uint32_t x24; + uint32_t x25; + uint32_t x26; + uint32_t x27; + uint32_t x28; + uint32_t x29; + uint32_t x30; + uint32_t x31; + uint32_t x32; + uint32_t x33; + uint32_t x34; + uint32_t x35; + uint32_t x36; + uint32_t x37; + fiat_secp384r1_uint1 x38; + uint32_t x39; + fiat_secp384r1_uint1 x40; + uint32_t x41; + fiat_secp384r1_uint1 x42; + uint32_t x43; + fiat_secp384r1_uint1 x44; + uint32_t x45; + fiat_secp384r1_uint1 x46; + uint32_t x47; + fiat_secp384r1_uint1 x48; + uint32_t x49; + fiat_secp384r1_uint1 x50; + uint32_t x51; + fiat_secp384r1_uint1 x52; + uint32_t x53; + fiat_secp384r1_uint1 x54; + uint32_t x55; + fiat_secp384r1_uint1 x56; + uint32_t x57; + fiat_secp384r1_uint1 x58; + uint32_t x59; + uint32_t x60; + uint32_t x61; + uint32_t x62; + uint32_t x63; + uint32_t x64; + uint32_t x65; + uint32_t x66; + uint32_t x67; + uint32_t x68; + uint32_t x69; + uint32_t x70; + uint32_t x71; + uint32_t x72; + uint32_t x73; + uint32_t x74; + uint32_t x75; + uint32_t x76; + uint32_t x77; + uint32_t x78; + uint32_t x79; + uint32_t x80; + fiat_secp384r1_uint1 x81; + uint32_t x82; + fiat_secp384r1_uint1 x83; + uint32_t x84; + fiat_secp384r1_uint1 x85; + uint32_t x86; + fiat_secp384r1_uint1 x87; + uint32_t x88; + fiat_secp384r1_uint1 x89; + uint32_t x90; + fiat_secp384r1_uint1 x91; + uint32_t x92; + fiat_secp384r1_uint1 x93; + uint32_t x94; + fiat_secp384r1_uint1 x95; + uint32_t x96; + uint32_t x97; + fiat_secp384r1_uint1 x98; + uint32_t x99; + fiat_secp384r1_uint1 x100; + uint32_t x101; + fiat_secp384r1_uint1 x102; + uint32_t x103; + fiat_secp384r1_uint1 x104; + uint32_t x105; + fiat_secp384r1_uint1 x106; + uint32_t x107; + fiat_secp384r1_uint1 x108; + uint32_t x109; + fiat_secp384r1_uint1 x110; + uint32_t x111; + fiat_secp384r1_uint1 x112; + uint32_t x113; + fiat_secp384r1_uint1 x114; + uint32_t x115; + fiat_secp384r1_uint1 x116; + uint32_t x117; + fiat_secp384r1_uint1 x118; + uint32_t x119; + fiat_secp384r1_uint1 x120; + uint32_t x121; + fiat_secp384r1_uint1 x122; + uint32_t x123; + uint32_t x124; + uint32_t x125; + uint32_t x126; + uint32_t x127; + uint32_t x128; + uint32_t x129; + uint32_t x130; + uint32_t x131; + uint32_t x132; + uint32_t x133; + uint32_t x134; + uint32_t x135; + uint32_t x136; + uint32_t x137; + uint32_t x138; + uint32_t x139; + uint32_t x140; + uint32_t x141; + uint32_t x142; + uint32_t x143; + uint32_t x144; + uint32_t x145; + uint32_t x146; + uint32_t x147; + fiat_secp384r1_uint1 x148; + uint32_t x149; + fiat_secp384r1_uint1 x150; + uint32_t x151; + fiat_secp384r1_uint1 x152; + uint32_t x153; + fiat_secp384r1_uint1 x154; + uint32_t x155; + fiat_secp384r1_uint1 x156; + uint32_t x157; + fiat_secp384r1_uint1 x158; + uint32_t x159; + fiat_secp384r1_uint1 x160; + uint32_t x161; + fiat_secp384r1_uint1 x162; + uint32_t x163; + fiat_secp384r1_uint1 x164; + uint32_t x165; + fiat_secp384r1_uint1 x166; + uint32_t x167; + fiat_secp384r1_uint1 x168; + uint32_t x169; + uint32_t x170; + fiat_secp384r1_uint1 x171; + uint32_t x172; + fiat_secp384r1_uint1 x173; + uint32_t x174; + fiat_secp384r1_uint1 x175; + uint32_t x176; + fiat_secp384r1_uint1 x177; + uint32_t x178; + fiat_secp384r1_uint1 x179; + uint32_t x180; + fiat_secp384r1_uint1 x181; + uint32_t x182; + fiat_secp384r1_uint1 x183; + uint32_t x184; + fiat_secp384r1_uint1 x185; + uint32_t x186; + fiat_secp384r1_uint1 x187; + uint32_t x188; + fiat_secp384r1_uint1 x189; + uint32_t x190; + fiat_secp384r1_uint1 x191; + uint32_t x192; + fiat_secp384r1_uint1 x193; + uint32_t x194; + fiat_secp384r1_uint1 x195; + uint32_t x196; + uint32_t x197; + uint32_t x198; + uint32_t x199; + uint32_t x200; + uint32_t x201; + uint32_t x202; + uint32_t x203; + uint32_t x204; + uint32_t x205; + uint32_t x206; + uint32_t x207; + uint32_t x208; + uint32_t x209; + uint32_t x210; + uint32_t x211; + uint32_t x212; + uint32_t x213; + uint32_t x214; + uint32_t x215; + uint32_t x216; + fiat_secp384r1_uint1 x217; + uint32_t x218; + fiat_secp384r1_uint1 x219; + uint32_t x220; + fiat_secp384r1_uint1 x221; + uint32_t x222; + fiat_secp384r1_uint1 x223; + uint32_t x224; + fiat_secp384r1_uint1 x225; + uint32_t x226; + fiat_secp384r1_uint1 x227; + uint32_t x228; + fiat_secp384r1_uint1 x229; + uint32_t x230; + fiat_secp384r1_uint1 x231; + uint32_t x232; + uint32_t x233; + fiat_secp384r1_uint1 x234; + uint32_t x235; + fiat_secp384r1_uint1 x236; + uint32_t x237; + fiat_secp384r1_uint1 x238; + uint32_t x239; + fiat_secp384r1_uint1 x240; + uint32_t x241; + fiat_secp384r1_uint1 x242; + uint32_t x243; + fiat_secp384r1_uint1 x244; + uint32_t x245; + fiat_secp384r1_uint1 x246; + uint32_t x247; + fiat_secp384r1_uint1 x248; + uint32_t x249; + fiat_secp384r1_uint1 x250; + uint32_t x251; + fiat_secp384r1_uint1 x252; + uint32_t x253; + fiat_secp384r1_uint1 x254; + uint32_t x255; + fiat_secp384r1_uint1 x256; + uint32_t x257; + fiat_secp384r1_uint1 x258; + uint32_t x259; + uint32_t x260; + uint32_t x261; + uint32_t x262; + uint32_t x263; + uint32_t x264; + uint32_t x265; + uint32_t x266; + uint32_t x267; + uint32_t x268; + uint32_t x269; + uint32_t x270; + uint32_t x271; + uint32_t x272; + uint32_t x273; + uint32_t x274; + uint32_t x275; + uint32_t x276; + uint32_t x277; + uint32_t x278; + uint32_t x279; + uint32_t x280; + uint32_t x281; + uint32_t x282; + uint32_t x283; + uint32_t x284; + fiat_secp384r1_uint1 x285; + uint32_t x286; + fiat_secp384r1_uint1 x287; + uint32_t x288; + fiat_secp384r1_uint1 x289; + uint32_t x290; + fiat_secp384r1_uint1 x291; + uint32_t x292; + fiat_secp384r1_uint1 x293; + uint32_t x294; + fiat_secp384r1_uint1 x295; + uint32_t x296; + fiat_secp384r1_uint1 x297; + uint32_t x298; + fiat_secp384r1_uint1 x299; + uint32_t x300; + fiat_secp384r1_uint1 x301; + uint32_t x302; + fiat_secp384r1_uint1 x303; + uint32_t x304; + fiat_secp384r1_uint1 x305; + uint32_t x306; + uint32_t x307; + fiat_secp384r1_uint1 x308; + uint32_t x309; + fiat_secp384r1_uint1 x310; + uint32_t x311; + fiat_secp384r1_uint1 x312; + uint32_t x313; + fiat_secp384r1_uint1 x314; + uint32_t x315; + fiat_secp384r1_uint1 x316; + uint32_t x317; + fiat_secp384r1_uint1 x318; + uint32_t x319; + fiat_secp384r1_uint1 x320; + uint32_t x321; + fiat_secp384r1_uint1 x322; + uint32_t x323; + fiat_secp384r1_uint1 x324; + uint32_t x325; + fiat_secp384r1_uint1 x326; + uint32_t x327; + fiat_secp384r1_uint1 x328; + uint32_t x329; + fiat_secp384r1_uint1 x330; + uint32_t x331; + fiat_secp384r1_uint1 x332; + uint32_t x333; + uint32_t x334; + uint32_t x335; + uint32_t x336; + uint32_t x337; + uint32_t x338; + uint32_t x339; + uint32_t x340; + uint32_t x341; + uint32_t x342; + uint32_t x343; + uint32_t x344; + uint32_t x345; + uint32_t x346; + uint32_t x347; + uint32_t x348; + uint32_t x349; + uint32_t x350; + uint32_t x351; + uint32_t x352; + uint32_t x353; + fiat_secp384r1_uint1 x354; + uint32_t x355; + fiat_secp384r1_uint1 x356; + uint32_t x357; + fiat_secp384r1_uint1 x358; + uint32_t x359; + fiat_secp384r1_uint1 x360; + uint32_t x361; + fiat_secp384r1_uint1 x362; + uint32_t x363; + fiat_secp384r1_uint1 x364; + uint32_t x365; + fiat_secp384r1_uint1 x366; + uint32_t x367; + fiat_secp384r1_uint1 x368; + uint32_t x369; + uint32_t x370; + fiat_secp384r1_uint1 x371; + uint32_t x372; + fiat_secp384r1_uint1 x373; + uint32_t x374; + fiat_secp384r1_uint1 x375; + uint32_t x376; + fiat_secp384r1_uint1 x377; + uint32_t x378; + fiat_secp384r1_uint1 x379; + uint32_t x380; + fiat_secp384r1_uint1 x381; + uint32_t x382; + fiat_secp384r1_uint1 x383; + uint32_t x384; + fiat_secp384r1_uint1 x385; + uint32_t x386; + fiat_secp384r1_uint1 x387; + uint32_t x388; + fiat_secp384r1_uint1 x389; + uint32_t x390; + fiat_secp384r1_uint1 x391; + uint32_t x392; + fiat_secp384r1_uint1 x393; + uint32_t x394; + fiat_secp384r1_uint1 x395; + uint32_t x396; + uint32_t x397; + uint32_t x398; + uint32_t x399; + uint32_t x400; + uint32_t x401; + uint32_t x402; + uint32_t x403; + uint32_t x404; + uint32_t x405; + uint32_t x406; + uint32_t x407; + uint32_t x408; + uint32_t x409; + uint32_t x410; + uint32_t x411; + uint32_t x412; + uint32_t x413; + uint32_t x414; + uint32_t x415; + uint32_t x416; + uint32_t x417; + uint32_t x418; + uint32_t x419; + uint32_t x420; + uint32_t x421; + fiat_secp384r1_uint1 x422; + uint32_t x423; + fiat_secp384r1_uint1 x424; + uint32_t x425; + fiat_secp384r1_uint1 x426; + uint32_t x427; + fiat_secp384r1_uint1 x428; + uint32_t x429; + fiat_secp384r1_uint1 x430; + uint32_t x431; + fiat_secp384r1_uint1 x432; + uint32_t x433; + fiat_secp384r1_uint1 x434; + uint32_t x435; + fiat_secp384r1_uint1 x436; + uint32_t x437; + fiat_secp384r1_uint1 x438; + uint32_t x439; + fiat_secp384r1_uint1 x440; + uint32_t x441; + fiat_secp384r1_uint1 x442; + uint32_t x443; + uint32_t x444; + fiat_secp384r1_uint1 x445; + uint32_t x446; + fiat_secp384r1_uint1 x447; + uint32_t x448; + fiat_secp384r1_uint1 x449; + uint32_t x450; + fiat_secp384r1_uint1 x451; + uint32_t x452; + fiat_secp384r1_uint1 x453; + uint32_t x454; + fiat_secp384r1_uint1 x455; + uint32_t x456; + fiat_secp384r1_uint1 x457; + uint32_t x458; + fiat_secp384r1_uint1 x459; + uint32_t x460; + fiat_secp384r1_uint1 x461; + uint32_t x462; + fiat_secp384r1_uint1 x463; + uint32_t x464; + fiat_secp384r1_uint1 x465; + uint32_t x466; + fiat_secp384r1_uint1 x467; + uint32_t x468; + fiat_secp384r1_uint1 x469; + uint32_t x470; + uint32_t x471; + uint32_t x472; + uint32_t x473; + uint32_t x474; + uint32_t x475; + uint32_t x476; + uint32_t x477; + uint32_t x478; + uint32_t x479; + uint32_t x480; + uint32_t x481; + uint32_t x482; + uint32_t x483; + uint32_t x484; + uint32_t x485; + uint32_t x486; + uint32_t x487; + uint32_t x488; + uint32_t x489; + uint32_t x490; + fiat_secp384r1_uint1 x491; + uint32_t x492; + fiat_secp384r1_uint1 x493; + uint32_t x494; + fiat_secp384r1_uint1 x495; + uint32_t x496; + fiat_secp384r1_uint1 x497; + uint32_t x498; + fiat_secp384r1_uint1 x499; + uint32_t x500; + fiat_secp384r1_uint1 x501; + uint32_t x502; + fiat_secp384r1_uint1 x503; + uint32_t x504; + fiat_secp384r1_uint1 x505; + uint32_t x506; + uint32_t x507; + fiat_secp384r1_uint1 x508; + uint32_t x509; + fiat_secp384r1_uint1 x510; + uint32_t x511; + fiat_secp384r1_uint1 x512; + uint32_t x513; + fiat_secp384r1_uint1 x514; + uint32_t x515; + fiat_secp384r1_uint1 x516; + uint32_t x517; + fiat_secp384r1_uint1 x518; + uint32_t x519; + fiat_secp384r1_uint1 x520; + uint32_t x521; + fiat_secp384r1_uint1 x522; + uint32_t x523; + fiat_secp384r1_uint1 x524; + uint32_t x525; + fiat_secp384r1_uint1 x526; + uint32_t x527; + fiat_secp384r1_uint1 x528; + uint32_t x529; + fiat_secp384r1_uint1 x530; + uint32_t x531; + fiat_secp384r1_uint1 x532; + uint32_t x533; + uint32_t x534; + uint32_t x535; + uint32_t x536; + uint32_t x537; + uint32_t x538; + uint32_t x539; + uint32_t x540; + uint32_t x541; + uint32_t x542; + uint32_t x543; + uint32_t x544; + uint32_t x545; + uint32_t x546; + uint32_t x547; + uint32_t x548; + uint32_t x549; + uint32_t x550; + uint32_t x551; + uint32_t x552; + uint32_t x553; + uint32_t x554; + uint32_t x555; + uint32_t x556; + uint32_t x557; + uint32_t x558; + fiat_secp384r1_uint1 x559; + uint32_t x560; + fiat_secp384r1_uint1 x561; + uint32_t x562; + fiat_secp384r1_uint1 x563; + uint32_t x564; + fiat_secp384r1_uint1 x565; + uint32_t x566; + fiat_secp384r1_uint1 x567; + uint32_t x568; + fiat_secp384r1_uint1 x569; + uint32_t x570; + fiat_secp384r1_uint1 x571; + uint32_t x572; + fiat_secp384r1_uint1 x573; + uint32_t x574; + fiat_secp384r1_uint1 x575; + uint32_t x576; + fiat_secp384r1_uint1 x577; + uint32_t x578; + fiat_secp384r1_uint1 x579; + uint32_t x580; + uint32_t x581; + fiat_secp384r1_uint1 x582; + uint32_t x583; + fiat_secp384r1_uint1 x584; + uint32_t x585; + fiat_secp384r1_uint1 x586; + uint32_t x587; + fiat_secp384r1_uint1 x588; + uint32_t x589; + fiat_secp384r1_uint1 x590; + uint32_t x591; + fiat_secp384r1_uint1 x592; + uint32_t x593; + fiat_secp384r1_uint1 x594; + uint32_t x595; + fiat_secp384r1_uint1 x596; + uint32_t x597; + fiat_secp384r1_uint1 x598; + uint32_t x599; + fiat_secp384r1_uint1 x600; + uint32_t x601; + fiat_secp384r1_uint1 x602; + uint32_t x603; + fiat_secp384r1_uint1 x604; + uint32_t x605; + fiat_secp384r1_uint1 x606; + uint32_t x607; + uint32_t x608; + uint32_t x609; + uint32_t x610; + uint32_t x611; + uint32_t x612; + uint32_t x613; + uint32_t x614; + uint32_t x615; + uint32_t x616; + uint32_t x617; + uint32_t x618; + uint32_t x619; + uint32_t x620; + uint32_t x621; + uint32_t x622; + uint32_t x623; + uint32_t x624; + uint32_t x625; + uint32_t x626; + uint32_t x627; + fiat_secp384r1_uint1 x628; + uint32_t x629; + fiat_secp384r1_uint1 x630; + uint32_t x631; + fiat_secp384r1_uint1 x632; + uint32_t x633; + fiat_secp384r1_uint1 x634; + uint32_t x635; + fiat_secp384r1_uint1 x636; + uint32_t x637; + fiat_secp384r1_uint1 x638; + uint32_t x639; + fiat_secp384r1_uint1 x640; + uint32_t x641; + fiat_secp384r1_uint1 x642; + uint32_t x643; + uint32_t x644; + fiat_secp384r1_uint1 x645; + uint32_t x646; + fiat_secp384r1_uint1 x647; + uint32_t x648; + fiat_secp384r1_uint1 x649; + uint32_t x650; + fiat_secp384r1_uint1 x651; + uint32_t x652; + fiat_secp384r1_uint1 x653; + uint32_t x654; + fiat_secp384r1_uint1 x655; + uint32_t x656; + fiat_secp384r1_uint1 x657; + uint32_t x658; + fiat_secp384r1_uint1 x659; + uint32_t x660; + fiat_secp384r1_uint1 x661; + uint32_t x662; + fiat_secp384r1_uint1 x663; + uint32_t x664; + fiat_secp384r1_uint1 x665; + uint32_t x666; + fiat_secp384r1_uint1 x667; + uint32_t x668; + fiat_secp384r1_uint1 x669; + uint32_t x670; + uint32_t x671; + uint32_t x672; + uint32_t x673; + uint32_t x674; + uint32_t x675; + uint32_t x676; + uint32_t x677; + uint32_t x678; + uint32_t x679; + uint32_t x680; + uint32_t x681; + uint32_t x682; + uint32_t x683; + uint32_t x684; + uint32_t x685; + uint32_t x686; + uint32_t x687; + uint32_t x688; + uint32_t x689; + uint32_t x690; + uint32_t x691; + uint32_t x692; + uint32_t x693; + uint32_t x694; + uint32_t x695; + fiat_secp384r1_uint1 x696; + uint32_t x697; + fiat_secp384r1_uint1 x698; + uint32_t x699; + fiat_secp384r1_uint1 x700; + uint32_t x701; + fiat_secp384r1_uint1 x702; + uint32_t x703; + fiat_secp384r1_uint1 x704; + uint32_t x705; + fiat_secp384r1_uint1 x706; + uint32_t x707; + fiat_secp384r1_uint1 x708; + uint32_t x709; + fiat_secp384r1_uint1 x710; + uint32_t x711; + fiat_secp384r1_uint1 x712; + uint32_t x713; + fiat_secp384r1_uint1 x714; + uint32_t x715; + fiat_secp384r1_uint1 x716; + uint32_t x717; + uint32_t x718; + fiat_secp384r1_uint1 x719; + uint32_t x720; + fiat_secp384r1_uint1 x721; + uint32_t x722; + fiat_secp384r1_uint1 x723; + uint32_t x724; + fiat_secp384r1_uint1 x725; + uint32_t x726; + fiat_secp384r1_uint1 x727; + uint32_t x728; + fiat_secp384r1_uint1 x729; + uint32_t x730; + fiat_secp384r1_uint1 x731; + uint32_t x732; + fiat_secp384r1_uint1 x733; + uint32_t x734; + fiat_secp384r1_uint1 x735; + uint32_t x736; + fiat_secp384r1_uint1 x737; + uint32_t x738; + fiat_secp384r1_uint1 x739; + uint32_t x740; + fiat_secp384r1_uint1 x741; + uint32_t x742; + fiat_secp384r1_uint1 x743; + uint32_t x744; + uint32_t x745; + uint32_t x746; + uint32_t x747; + uint32_t x748; + uint32_t x749; + uint32_t x750; + uint32_t x751; + uint32_t x752; + uint32_t x753; + uint32_t x754; + uint32_t x755; + uint32_t x756; + uint32_t x757; + uint32_t x758; + uint32_t x759; + uint32_t x760; + uint32_t x761; + uint32_t x762; + uint32_t x763; + uint32_t x764; + fiat_secp384r1_uint1 x765; + uint32_t x766; + fiat_secp384r1_uint1 x767; + uint32_t x768; + fiat_secp384r1_uint1 x769; + uint32_t x770; + fiat_secp384r1_uint1 x771; + uint32_t x772; + fiat_secp384r1_uint1 x773; + uint32_t x774; + fiat_secp384r1_uint1 x775; + uint32_t x776; + fiat_secp384r1_uint1 x777; + uint32_t x778; + fiat_secp384r1_uint1 x779; + uint32_t x780; + uint32_t x781; + fiat_secp384r1_uint1 x782; + uint32_t x783; + fiat_secp384r1_uint1 x784; + uint32_t x785; + fiat_secp384r1_uint1 x786; + uint32_t x787; + fiat_secp384r1_uint1 x788; + uint32_t x789; + fiat_secp384r1_uint1 x790; + uint32_t x791; + fiat_secp384r1_uint1 x792; + uint32_t x793; + fiat_secp384r1_uint1 x794; + uint32_t x795; + fiat_secp384r1_uint1 x796; + uint32_t x797; + fiat_secp384r1_uint1 x798; + uint32_t x799; + fiat_secp384r1_uint1 x800; + uint32_t x801; + fiat_secp384r1_uint1 x802; + uint32_t x803; + fiat_secp384r1_uint1 x804; + uint32_t x805; + fiat_secp384r1_uint1 x806; + uint32_t x807; + uint32_t x808; + uint32_t x809; + uint32_t x810; + uint32_t x811; + uint32_t x812; + uint32_t x813; + uint32_t x814; + uint32_t x815; + uint32_t x816; + uint32_t x817; + uint32_t x818; + uint32_t x819; + uint32_t x820; + uint32_t x821; + uint32_t x822; + uint32_t x823; + uint32_t x824; + uint32_t x825; + uint32_t x826; + uint32_t x827; + uint32_t x828; + uint32_t x829; + uint32_t x830; + uint32_t x831; + uint32_t x832; + fiat_secp384r1_uint1 x833; + uint32_t x834; + fiat_secp384r1_uint1 x835; + uint32_t x836; + fiat_secp384r1_uint1 x837; + uint32_t x838; + fiat_secp384r1_uint1 x839; + uint32_t x840; + fiat_secp384r1_uint1 x841; + uint32_t x842; + fiat_secp384r1_uint1 x843; + uint32_t x844; + fiat_secp384r1_uint1 x845; + uint32_t x846; + fiat_secp384r1_uint1 x847; + uint32_t x848; + fiat_secp384r1_uint1 x849; + uint32_t x850; + fiat_secp384r1_uint1 x851; + uint32_t x852; + fiat_secp384r1_uint1 x853; + uint32_t x854; + uint32_t x855; + fiat_secp384r1_uint1 x856; + uint32_t x857; + fiat_secp384r1_uint1 x858; + uint32_t x859; + fiat_secp384r1_uint1 x860; + uint32_t x861; + fiat_secp384r1_uint1 x862; + uint32_t x863; + fiat_secp384r1_uint1 x864; + uint32_t x865; + fiat_secp384r1_uint1 x866; + uint32_t x867; + fiat_secp384r1_uint1 x868; + uint32_t x869; + fiat_secp384r1_uint1 x870; + uint32_t x871; + fiat_secp384r1_uint1 x872; + uint32_t x873; + fiat_secp384r1_uint1 x874; + uint32_t x875; + fiat_secp384r1_uint1 x876; + uint32_t x877; + fiat_secp384r1_uint1 x878; + uint32_t x879; + fiat_secp384r1_uint1 x880; + uint32_t x881; + uint32_t x882; + uint32_t x883; + uint32_t x884; + uint32_t x885; + uint32_t x886; + uint32_t x887; + uint32_t x888; + uint32_t x889; + uint32_t x890; + uint32_t x891; + uint32_t x892; + uint32_t x893; + uint32_t x894; + uint32_t x895; + uint32_t x896; + uint32_t x897; + uint32_t x898; + uint32_t x899; + uint32_t x900; + uint32_t x901; + fiat_secp384r1_uint1 x902; + uint32_t x903; + fiat_secp384r1_uint1 x904; + uint32_t x905; + fiat_secp384r1_uint1 x906; + uint32_t x907; + fiat_secp384r1_uint1 x908; + uint32_t x909; + fiat_secp384r1_uint1 x910; + uint32_t x911; + fiat_secp384r1_uint1 x912; + uint32_t x913; + fiat_secp384r1_uint1 x914; + uint32_t x915; + fiat_secp384r1_uint1 x916; + uint32_t x917; + uint32_t x918; + fiat_secp384r1_uint1 x919; + uint32_t x920; + fiat_secp384r1_uint1 x921; + uint32_t x922; + fiat_secp384r1_uint1 x923; + uint32_t x924; + fiat_secp384r1_uint1 x925; + uint32_t x926; + fiat_secp384r1_uint1 x927; + uint32_t x928; + fiat_secp384r1_uint1 x929; + uint32_t x930; + fiat_secp384r1_uint1 x931; + uint32_t x932; + fiat_secp384r1_uint1 x933; + uint32_t x934; + fiat_secp384r1_uint1 x935; + uint32_t x936; + fiat_secp384r1_uint1 x937; + uint32_t x938; + fiat_secp384r1_uint1 x939; + uint32_t x940; + fiat_secp384r1_uint1 x941; + uint32_t x942; + fiat_secp384r1_uint1 x943; + uint32_t x944; + uint32_t x945; + uint32_t x946; + uint32_t x947; + uint32_t x948; + uint32_t x949; + uint32_t x950; + uint32_t x951; + uint32_t x952; + uint32_t x953; + uint32_t x954; + uint32_t x955; + uint32_t x956; + uint32_t x957; + uint32_t x958; + uint32_t x959; + uint32_t x960; + uint32_t x961; + uint32_t x962; + uint32_t x963; + uint32_t x964; + uint32_t x965; + uint32_t x966; + uint32_t x967; + uint32_t x968; + uint32_t x969; + fiat_secp384r1_uint1 x970; + uint32_t x971; + fiat_secp384r1_uint1 x972; + uint32_t x973; + fiat_secp384r1_uint1 x974; + uint32_t x975; + fiat_secp384r1_uint1 x976; + uint32_t x977; + fiat_secp384r1_uint1 x978; + uint32_t x979; + fiat_secp384r1_uint1 x980; + uint32_t x981; + fiat_secp384r1_uint1 x982; + uint32_t x983; + fiat_secp384r1_uint1 x984; + uint32_t x985; + fiat_secp384r1_uint1 x986; + uint32_t x987; + fiat_secp384r1_uint1 x988; + uint32_t x989; + fiat_secp384r1_uint1 x990; + uint32_t x991; + uint32_t x992; + fiat_secp384r1_uint1 x993; + uint32_t x994; + fiat_secp384r1_uint1 x995; + uint32_t x996; + fiat_secp384r1_uint1 x997; + uint32_t x998; + fiat_secp384r1_uint1 x999; + uint32_t x1000; + fiat_secp384r1_uint1 x1001; + uint32_t x1002; + fiat_secp384r1_uint1 x1003; + uint32_t x1004; + fiat_secp384r1_uint1 x1005; + uint32_t x1006; + fiat_secp384r1_uint1 x1007; + uint32_t x1008; + fiat_secp384r1_uint1 x1009; + uint32_t x1010; + fiat_secp384r1_uint1 x1011; + uint32_t x1012; + fiat_secp384r1_uint1 x1013; + uint32_t x1014; + fiat_secp384r1_uint1 x1015; + uint32_t x1016; + fiat_secp384r1_uint1 x1017; + uint32_t x1018; + uint32_t x1019; + uint32_t x1020; + uint32_t x1021; + uint32_t x1022; + uint32_t x1023; + uint32_t x1024; + uint32_t x1025; + uint32_t x1026; + uint32_t x1027; + uint32_t x1028; + uint32_t x1029; + uint32_t x1030; + uint32_t x1031; + uint32_t x1032; + uint32_t x1033; + uint32_t x1034; + uint32_t x1035; + uint32_t x1036; + uint32_t x1037; + uint32_t x1038; + fiat_secp384r1_uint1 x1039; + uint32_t x1040; + fiat_secp384r1_uint1 x1041; + uint32_t x1042; + fiat_secp384r1_uint1 x1043; + uint32_t x1044; + fiat_secp384r1_uint1 x1045; + uint32_t x1046; + fiat_secp384r1_uint1 x1047; + uint32_t x1048; + fiat_secp384r1_uint1 x1049; + uint32_t x1050; + fiat_secp384r1_uint1 x1051; + uint32_t x1052; + fiat_secp384r1_uint1 x1053; + uint32_t x1054; + uint32_t x1055; + fiat_secp384r1_uint1 x1056; + uint32_t x1057; + fiat_secp384r1_uint1 x1058; + uint32_t x1059; + fiat_secp384r1_uint1 x1060; + uint32_t x1061; + fiat_secp384r1_uint1 x1062; + uint32_t x1063; + fiat_secp384r1_uint1 x1064; + uint32_t x1065; + fiat_secp384r1_uint1 x1066; + uint32_t x1067; + fiat_secp384r1_uint1 x1068; + uint32_t x1069; + fiat_secp384r1_uint1 x1070; + uint32_t x1071; + fiat_secp384r1_uint1 x1072; + uint32_t x1073; + fiat_secp384r1_uint1 x1074; + uint32_t x1075; + fiat_secp384r1_uint1 x1076; + uint32_t x1077; + fiat_secp384r1_uint1 x1078; + uint32_t x1079; + fiat_secp384r1_uint1 x1080; + uint32_t x1081; + uint32_t x1082; + uint32_t x1083; + uint32_t x1084; + uint32_t x1085; + uint32_t x1086; + uint32_t x1087; + uint32_t x1088; + uint32_t x1089; + uint32_t x1090; + uint32_t x1091; + uint32_t x1092; + uint32_t x1093; + uint32_t x1094; + uint32_t x1095; + uint32_t x1096; + uint32_t x1097; + uint32_t x1098; + uint32_t x1099; + uint32_t x1100; + uint32_t x1101; + uint32_t x1102; + uint32_t x1103; + uint32_t x1104; + uint32_t x1105; + uint32_t x1106; + fiat_secp384r1_uint1 x1107; + uint32_t x1108; + fiat_secp384r1_uint1 x1109; + uint32_t x1110; + fiat_secp384r1_uint1 x1111; + uint32_t x1112; + fiat_secp384r1_uint1 x1113; + uint32_t x1114; + fiat_secp384r1_uint1 x1115; + uint32_t x1116; + fiat_secp384r1_uint1 x1117; + uint32_t x1118; + fiat_secp384r1_uint1 x1119; + uint32_t x1120; + fiat_secp384r1_uint1 x1121; + uint32_t x1122; + fiat_secp384r1_uint1 x1123; + uint32_t x1124; + fiat_secp384r1_uint1 x1125; + uint32_t x1126; + fiat_secp384r1_uint1 x1127; + uint32_t x1128; + uint32_t x1129; + fiat_secp384r1_uint1 x1130; + uint32_t x1131; + fiat_secp384r1_uint1 x1132; + uint32_t x1133; + fiat_secp384r1_uint1 x1134; + uint32_t x1135; + fiat_secp384r1_uint1 x1136; + uint32_t x1137; + fiat_secp384r1_uint1 x1138; + uint32_t x1139; + fiat_secp384r1_uint1 x1140; + uint32_t x1141; + fiat_secp384r1_uint1 x1142; + uint32_t x1143; + fiat_secp384r1_uint1 x1144; + uint32_t x1145; + fiat_secp384r1_uint1 x1146; + uint32_t x1147; + fiat_secp384r1_uint1 x1148; + uint32_t x1149; + fiat_secp384r1_uint1 x1150; + uint32_t x1151; + fiat_secp384r1_uint1 x1152; + uint32_t x1153; + fiat_secp384r1_uint1 x1154; + uint32_t x1155; + uint32_t x1156; + uint32_t x1157; + uint32_t x1158; + uint32_t x1159; + uint32_t x1160; + uint32_t x1161; + uint32_t x1162; + uint32_t x1163; + uint32_t x1164; + uint32_t x1165; + uint32_t x1166; + uint32_t x1167; + uint32_t x1168; + uint32_t x1169; + uint32_t x1170; + uint32_t x1171; + uint32_t x1172; + uint32_t x1173; + uint32_t x1174; + uint32_t x1175; + fiat_secp384r1_uint1 x1176; + uint32_t x1177; + fiat_secp384r1_uint1 x1178; + uint32_t x1179; + fiat_secp384r1_uint1 x1180; + uint32_t x1181; + fiat_secp384r1_uint1 x1182; + uint32_t x1183; + fiat_secp384r1_uint1 x1184; + uint32_t x1185; + fiat_secp384r1_uint1 x1186; + uint32_t x1187; + fiat_secp384r1_uint1 x1188; + uint32_t x1189; + fiat_secp384r1_uint1 x1190; + uint32_t x1191; + uint32_t x1192; + fiat_secp384r1_uint1 x1193; + uint32_t x1194; + fiat_secp384r1_uint1 x1195; + uint32_t x1196; + fiat_secp384r1_uint1 x1197; + uint32_t x1198; + fiat_secp384r1_uint1 x1199; + uint32_t x1200; + fiat_secp384r1_uint1 x1201; + uint32_t x1202; + fiat_secp384r1_uint1 x1203; + uint32_t x1204; + fiat_secp384r1_uint1 x1205; + uint32_t x1206; + fiat_secp384r1_uint1 x1207; + uint32_t x1208; + fiat_secp384r1_uint1 x1209; + uint32_t x1210; + fiat_secp384r1_uint1 x1211; + uint32_t x1212; + fiat_secp384r1_uint1 x1213; + uint32_t x1214; + fiat_secp384r1_uint1 x1215; + uint32_t x1216; + fiat_secp384r1_uint1 x1217; + uint32_t x1218; + uint32_t x1219; + uint32_t x1220; + uint32_t x1221; + uint32_t x1222; + uint32_t x1223; + uint32_t x1224; + uint32_t x1225; + uint32_t x1226; + uint32_t x1227; + uint32_t x1228; + uint32_t x1229; + uint32_t x1230; + uint32_t x1231; + uint32_t x1232; + uint32_t x1233; + uint32_t x1234; + uint32_t x1235; + uint32_t x1236; + uint32_t x1237; + uint32_t x1238; + uint32_t x1239; + uint32_t x1240; + uint32_t x1241; + uint32_t x1242; + uint32_t x1243; + fiat_secp384r1_uint1 x1244; + uint32_t x1245; + fiat_secp384r1_uint1 x1246; + uint32_t x1247; + fiat_secp384r1_uint1 x1248; + uint32_t x1249; + fiat_secp384r1_uint1 x1250; + uint32_t x1251; + fiat_secp384r1_uint1 x1252; + uint32_t x1253; + fiat_secp384r1_uint1 x1254; + uint32_t x1255; + fiat_secp384r1_uint1 x1256; + uint32_t x1257; + fiat_secp384r1_uint1 x1258; + uint32_t x1259; + fiat_secp384r1_uint1 x1260; + uint32_t x1261; + fiat_secp384r1_uint1 x1262; + uint32_t x1263; + fiat_secp384r1_uint1 x1264; + uint32_t x1265; + uint32_t x1266; + fiat_secp384r1_uint1 x1267; + uint32_t x1268; + fiat_secp384r1_uint1 x1269; + uint32_t x1270; + fiat_secp384r1_uint1 x1271; + uint32_t x1272; + fiat_secp384r1_uint1 x1273; + uint32_t x1274; + fiat_secp384r1_uint1 x1275; + uint32_t x1276; + fiat_secp384r1_uint1 x1277; + uint32_t x1278; + fiat_secp384r1_uint1 x1279; + uint32_t x1280; + fiat_secp384r1_uint1 x1281; + uint32_t x1282; + fiat_secp384r1_uint1 x1283; + uint32_t x1284; + fiat_secp384r1_uint1 x1285; + uint32_t x1286; + fiat_secp384r1_uint1 x1287; + uint32_t x1288; + fiat_secp384r1_uint1 x1289; + uint32_t x1290; + fiat_secp384r1_uint1 x1291; + uint32_t x1292; + uint32_t x1293; + uint32_t x1294; + uint32_t x1295; + uint32_t x1296; + uint32_t x1297; + uint32_t x1298; + uint32_t x1299; + uint32_t x1300; + uint32_t x1301; + uint32_t x1302; + uint32_t x1303; + uint32_t x1304; + uint32_t x1305; + uint32_t x1306; + uint32_t x1307; + uint32_t x1308; + uint32_t x1309; + uint32_t x1310; + uint32_t x1311; + uint32_t x1312; + fiat_secp384r1_uint1 x1313; + uint32_t x1314; + fiat_secp384r1_uint1 x1315; + uint32_t x1316; + fiat_secp384r1_uint1 x1317; + uint32_t x1318; + fiat_secp384r1_uint1 x1319; + uint32_t x1320; + fiat_secp384r1_uint1 x1321; + uint32_t x1322; + fiat_secp384r1_uint1 x1323; + uint32_t x1324; + fiat_secp384r1_uint1 x1325; + uint32_t x1326; + fiat_secp384r1_uint1 x1327; + uint32_t x1328; + uint32_t x1329; + fiat_secp384r1_uint1 x1330; + uint32_t x1331; + fiat_secp384r1_uint1 x1332; + uint32_t x1333; + fiat_secp384r1_uint1 x1334; + uint32_t x1335; + fiat_secp384r1_uint1 x1336; + uint32_t x1337; + fiat_secp384r1_uint1 x1338; + uint32_t x1339; + fiat_secp384r1_uint1 x1340; + uint32_t x1341; + fiat_secp384r1_uint1 x1342; + uint32_t x1343; + fiat_secp384r1_uint1 x1344; + uint32_t x1345; + fiat_secp384r1_uint1 x1346; + uint32_t x1347; + fiat_secp384r1_uint1 x1348; + uint32_t x1349; + fiat_secp384r1_uint1 x1350; + uint32_t x1351; + fiat_secp384r1_uint1 x1352; + uint32_t x1353; + fiat_secp384r1_uint1 x1354; + uint32_t x1355; + uint32_t x1356; + uint32_t x1357; + uint32_t x1358; + uint32_t x1359; + uint32_t x1360; + uint32_t x1361; + uint32_t x1362; + uint32_t x1363; + uint32_t x1364; + uint32_t x1365; + uint32_t x1366; + uint32_t x1367; + uint32_t x1368; + uint32_t x1369; + uint32_t x1370; + uint32_t x1371; + uint32_t x1372; + uint32_t x1373; + uint32_t x1374; + uint32_t x1375; + uint32_t x1376; + uint32_t x1377; + uint32_t x1378; + uint32_t x1379; + uint32_t x1380; + fiat_secp384r1_uint1 x1381; + uint32_t x1382; + fiat_secp384r1_uint1 x1383; + uint32_t x1384; + fiat_secp384r1_uint1 x1385; + uint32_t x1386; + fiat_secp384r1_uint1 x1387; + uint32_t x1388; + fiat_secp384r1_uint1 x1389; + uint32_t x1390; + fiat_secp384r1_uint1 x1391; + uint32_t x1392; + fiat_secp384r1_uint1 x1393; + uint32_t x1394; + fiat_secp384r1_uint1 x1395; + uint32_t x1396; + fiat_secp384r1_uint1 x1397; + uint32_t x1398; + fiat_secp384r1_uint1 x1399; + uint32_t x1400; + fiat_secp384r1_uint1 x1401; + uint32_t x1402; + uint32_t x1403; + fiat_secp384r1_uint1 x1404; + uint32_t x1405; + fiat_secp384r1_uint1 x1406; + uint32_t x1407; + fiat_secp384r1_uint1 x1408; + uint32_t x1409; + fiat_secp384r1_uint1 x1410; + uint32_t x1411; + fiat_secp384r1_uint1 x1412; + uint32_t x1413; + fiat_secp384r1_uint1 x1414; + uint32_t x1415; + fiat_secp384r1_uint1 x1416; + uint32_t x1417; + fiat_secp384r1_uint1 x1418; + uint32_t x1419; + fiat_secp384r1_uint1 x1420; + uint32_t x1421; + fiat_secp384r1_uint1 x1422; + uint32_t x1423; + fiat_secp384r1_uint1 x1424; + uint32_t x1425; + fiat_secp384r1_uint1 x1426; + uint32_t x1427; + fiat_secp384r1_uint1 x1428; + uint32_t x1429; + uint32_t x1430; + uint32_t x1431; + uint32_t x1432; + uint32_t x1433; + uint32_t x1434; + uint32_t x1435; + uint32_t x1436; + uint32_t x1437; + uint32_t x1438; + uint32_t x1439; + uint32_t x1440; + uint32_t x1441; + uint32_t x1442; + uint32_t x1443; + uint32_t x1444; + uint32_t x1445; + uint32_t x1446; + uint32_t x1447; + uint32_t x1448; + uint32_t x1449; + fiat_secp384r1_uint1 x1450; + uint32_t x1451; + fiat_secp384r1_uint1 x1452; + uint32_t x1453; + fiat_secp384r1_uint1 x1454; + uint32_t x1455; + fiat_secp384r1_uint1 x1456; + uint32_t x1457; + fiat_secp384r1_uint1 x1458; + uint32_t x1459; + fiat_secp384r1_uint1 x1460; + uint32_t x1461; + fiat_secp384r1_uint1 x1462; + uint32_t x1463; + fiat_secp384r1_uint1 x1464; + uint32_t x1465; + uint32_t x1466; + fiat_secp384r1_uint1 x1467; + uint32_t x1468; + fiat_secp384r1_uint1 x1469; + uint32_t x1470; + fiat_secp384r1_uint1 x1471; + uint32_t x1472; + fiat_secp384r1_uint1 x1473; + uint32_t x1474; + fiat_secp384r1_uint1 x1475; + uint32_t x1476; + fiat_secp384r1_uint1 x1477; + uint32_t x1478; + fiat_secp384r1_uint1 x1479; + uint32_t x1480; + fiat_secp384r1_uint1 x1481; + uint32_t x1482; + fiat_secp384r1_uint1 x1483; + uint32_t x1484; + fiat_secp384r1_uint1 x1485; + uint32_t x1486; + fiat_secp384r1_uint1 x1487; + uint32_t x1488; + fiat_secp384r1_uint1 x1489; + uint32_t x1490; + fiat_secp384r1_uint1 x1491; + uint32_t x1492; + uint32_t x1493; + uint32_t x1494; + uint32_t x1495; + uint32_t x1496; + uint32_t x1497; + uint32_t x1498; + uint32_t x1499; + uint32_t x1500; + uint32_t x1501; + uint32_t x1502; + uint32_t x1503; + uint32_t x1504; + uint32_t x1505; + uint32_t x1506; + uint32_t x1507; + uint32_t x1508; + uint32_t x1509; + uint32_t x1510; + uint32_t x1511; + uint32_t x1512; + uint32_t x1513; + uint32_t x1514; + uint32_t x1515; + uint32_t x1516; + uint32_t x1517; + fiat_secp384r1_uint1 x1518; + uint32_t x1519; + fiat_secp384r1_uint1 x1520; + uint32_t x1521; + fiat_secp384r1_uint1 x1522; + uint32_t x1523; + fiat_secp384r1_uint1 x1524; + uint32_t x1525; + fiat_secp384r1_uint1 x1526; + uint32_t x1527; + fiat_secp384r1_uint1 x1528; + uint32_t x1529; + fiat_secp384r1_uint1 x1530; + uint32_t x1531; + fiat_secp384r1_uint1 x1532; + uint32_t x1533; + fiat_secp384r1_uint1 x1534; + uint32_t x1535; + fiat_secp384r1_uint1 x1536; + uint32_t x1537; + fiat_secp384r1_uint1 x1538; + uint32_t x1539; + uint32_t x1540; + fiat_secp384r1_uint1 x1541; + uint32_t x1542; + fiat_secp384r1_uint1 x1543; + uint32_t x1544; + fiat_secp384r1_uint1 x1545; + uint32_t x1546; + fiat_secp384r1_uint1 x1547; + uint32_t x1548; + fiat_secp384r1_uint1 x1549; + uint32_t x1550; + fiat_secp384r1_uint1 x1551; + uint32_t x1552; + fiat_secp384r1_uint1 x1553; + uint32_t x1554; + fiat_secp384r1_uint1 x1555; + uint32_t x1556; + fiat_secp384r1_uint1 x1557; + uint32_t x1558; + fiat_secp384r1_uint1 x1559; + uint32_t x1560; + fiat_secp384r1_uint1 x1561; + uint32_t x1562; + fiat_secp384r1_uint1 x1563; + uint32_t x1564; + fiat_secp384r1_uint1 x1565; + uint32_t x1566; + uint32_t x1567; + uint32_t x1568; + uint32_t x1569; + uint32_t x1570; + uint32_t x1571; + uint32_t x1572; + uint32_t x1573; + uint32_t x1574; + uint32_t x1575; + uint32_t x1576; + uint32_t x1577; + uint32_t x1578; + uint32_t x1579; + uint32_t x1580; + uint32_t x1581; + uint32_t x1582; + uint32_t x1583; + uint32_t x1584; + uint32_t x1585; + uint32_t x1586; + fiat_secp384r1_uint1 x1587; + uint32_t x1588; + fiat_secp384r1_uint1 x1589; + uint32_t x1590; + fiat_secp384r1_uint1 x1591; + uint32_t x1592; + fiat_secp384r1_uint1 x1593; + uint32_t x1594; + fiat_secp384r1_uint1 x1595; + uint32_t x1596; + fiat_secp384r1_uint1 x1597; + uint32_t x1598; + fiat_secp384r1_uint1 x1599; + uint32_t x1600; + fiat_secp384r1_uint1 x1601; + uint32_t x1602; + uint32_t x1603; + fiat_secp384r1_uint1 x1604; + uint32_t x1605; + fiat_secp384r1_uint1 x1606; + uint32_t x1607; + fiat_secp384r1_uint1 x1608; + uint32_t x1609; + fiat_secp384r1_uint1 x1610; + uint32_t x1611; + fiat_secp384r1_uint1 x1612; + uint32_t x1613; + fiat_secp384r1_uint1 x1614; + uint32_t x1615; + fiat_secp384r1_uint1 x1616; + uint32_t x1617; + fiat_secp384r1_uint1 x1618; + uint32_t x1619; + fiat_secp384r1_uint1 x1620; + uint32_t x1621; + fiat_secp384r1_uint1 x1622; + uint32_t x1623; + fiat_secp384r1_uint1 x1624; + uint32_t x1625; + fiat_secp384r1_uint1 x1626; + uint32_t x1627; + fiat_secp384r1_uint1 x1628; + uint32_t x1629; + uint32_t x1630; + fiat_secp384r1_uint1 x1631; + uint32_t x1632; + fiat_secp384r1_uint1 x1633; + uint32_t x1634; + fiat_secp384r1_uint1 x1635; + uint32_t x1636; + fiat_secp384r1_uint1 x1637; + uint32_t x1638; + fiat_secp384r1_uint1 x1639; + uint32_t x1640; + fiat_secp384r1_uint1 x1641; + uint32_t x1642; + fiat_secp384r1_uint1 x1643; + uint32_t x1644; + fiat_secp384r1_uint1 x1645; + uint32_t x1646; + fiat_secp384r1_uint1 x1647; + uint32_t x1648; + fiat_secp384r1_uint1 x1649; + uint32_t x1650; + fiat_secp384r1_uint1 x1651; + uint32_t x1652; + fiat_secp384r1_uint1 x1653; + uint32_t x1654; + fiat_secp384r1_uint1 x1655; + uint32_t x1656; + uint32_t x1657; + uint32_t x1658; + uint32_t x1659; + uint32_t x1660; + uint32_t x1661; + uint32_t x1662; + uint32_t x1663; + uint32_t x1664; + uint32_t x1665; + uint32_t x1666; + uint32_t x1667; + x1 = (arg1[1]); + x2 = (arg1[2]); + x3 = (arg1[3]); + x4 = (arg1[4]); + x5 = (arg1[5]); + x6 = (arg1[6]); + x7 = (arg1[7]); + x8 = (arg1[8]); + x9 = (arg1[9]); + x10 = (arg1[10]); + x11 = (arg1[11]); + x12 = (arg1[0]); + fiat_secp384r1_mulx_u32(&x13, &x14, x12, (arg1[11])); + fiat_secp384r1_mulx_u32(&x15, &x16, x12, (arg1[10])); + fiat_secp384r1_mulx_u32(&x17, &x18, x12, (arg1[9])); + fiat_secp384r1_mulx_u32(&x19, &x20, x12, (arg1[8])); + fiat_secp384r1_mulx_u32(&x21, &x22, x12, (arg1[7])); + fiat_secp384r1_mulx_u32(&x23, &x24, x12, (arg1[6])); + fiat_secp384r1_mulx_u32(&x25, &x26, x12, (arg1[5])); + fiat_secp384r1_mulx_u32(&x27, &x28, x12, (arg1[4])); + fiat_secp384r1_mulx_u32(&x29, &x30, x12, (arg1[3])); + fiat_secp384r1_mulx_u32(&x31, &x32, x12, (arg1[2])); + fiat_secp384r1_mulx_u32(&x33, &x34, x12, (arg1[1])); + fiat_secp384r1_mulx_u32(&x35, &x36, x12, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x37, &x38, 0x0, x36, x33); + fiat_secp384r1_addcarryx_u32(&x39, &x40, x38, x34, x31); + fiat_secp384r1_addcarryx_u32(&x41, &x42, x40, x32, x29); + fiat_secp384r1_addcarryx_u32(&x43, &x44, x42, x30, x27); + fiat_secp384r1_addcarryx_u32(&x45, &x46, x44, x28, x25); + fiat_secp384r1_addcarryx_u32(&x47, &x48, x46, x26, x23); + fiat_secp384r1_addcarryx_u32(&x49, &x50, x48, x24, x21); + fiat_secp384r1_addcarryx_u32(&x51, &x52, x50, x22, x19); + fiat_secp384r1_addcarryx_u32(&x53, &x54, x52, x20, x17); + fiat_secp384r1_addcarryx_u32(&x55, &x56, x54, x18, x15); + fiat_secp384r1_addcarryx_u32(&x57, &x58, x56, x16, x13); + x59 = (x58 + x14); + fiat_secp384r1_mulx_u32(&x60, &x61, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x62, &x63, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x64, &x65, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x66, &x67, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x68, &x69, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x70, &x71, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x72, &x73, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x74, &x75, x35, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x76, &x77, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x78, &x79, x35, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x80, &x81, 0x0, x77, x74); + fiat_secp384r1_addcarryx_u32(&x82, &x83, x81, x75, x72); + fiat_secp384r1_addcarryx_u32(&x84, &x85, x83, x73, x70); + fiat_secp384r1_addcarryx_u32(&x86, &x87, x85, x71, x68); + fiat_secp384r1_addcarryx_u32(&x88, &x89, x87, x69, x66); + fiat_secp384r1_addcarryx_u32(&x90, &x91, x89, x67, x64); + fiat_secp384r1_addcarryx_u32(&x92, &x93, x91, x65, x62); + fiat_secp384r1_addcarryx_u32(&x94, &x95, x93, x63, x60); + x96 = (x95 + x61); + fiat_secp384r1_addcarryx_u32(&x97, &x98, 0x0, x35, x78); + fiat_secp384r1_addcarryx_u32(&x99, &x100, x98, x37, x79); + fiat_secp384r1_addcarryx_u32(&x101, &x102, x100, x39, 0x0); + fiat_secp384r1_addcarryx_u32(&x103, &x104, x102, x41, x76); + fiat_secp384r1_addcarryx_u32(&x105, &x106, x104, x43, x80); + fiat_secp384r1_addcarryx_u32(&x107, &x108, x106, x45, x82); + fiat_secp384r1_addcarryx_u32(&x109, &x110, x108, x47, x84); + fiat_secp384r1_addcarryx_u32(&x111, &x112, x110, x49, x86); + fiat_secp384r1_addcarryx_u32(&x113, &x114, x112, x51, x88); + fiat_secp384r1_addcarryx_u32(&x115, &x116, x114, x53, x90); + fiat_secp384r1_addcarryx_u32(&x117, &x118, x116, x55, x92); + fiat_secp384r1_addcarryx_u32(&x119, &x120, x118, x57, x94); + fiat_secp384r1_addcarryx_u32(&x121, &x122, x120, x59, x96); + fiat_secp384r1_mulx_u32(&x123, &x124, x1, (arg1[11])); + fiat_secp384r1_mulx_u32(&x125, &x126, x1, (arg1[10])); + fiat_secp384r1_mulx_u32(&x127, &x128, x1, (arg1[9])); + fiat_secp384r1_mulx_u32(&x129, &x130, x1, (arg1[8])); + fiat_secp384r1_mulx_u32(&x131, &x132, x1, (arg1[7])); + fiat_secp384r1_mulx_u32(&x133, &x134, x1, (arg1[6])); + fiat_secp384r1_mulx_u32(&x135, &x136, x1, (arg1[5])); + fiat_secp384r1_mulx_u32(&x137, &x138, x1, (arg1[4])); + fiat_secp384r1_mulx_u32(&x139, &x140, x1, (arg1[3])); + fiat_secp384r1_mulx_u32(&x141, &x142, x1, (arg1[2])); + fiat_secp384r1_mulx_u32(&x143, &x144, x1, (arg1[1])); + fiat_secp384r1_mulx_u32(&x145, &x146, x1, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x147, &x148, 0x0, x146, x143); + fiat_secp384r1_addcarryx_u32(&x149, &x150, x148, x144, x141); + fiat_secp384r1_addcarryx_u32(&x151, &x152, x150, x142, x139); + fiat_secp384r1_addcarryx_u32(&x153, &x154, x152, x140, x137); + fiat_secp384r1_addcarryx_u32(&x155, &x156, x154, x138, x135); + fiat_secp384r1_addcarryx_u32(&x157, &x158, x156, x136, x133); + fiat_secp384r1_addcarryx_u32(&x159, &x160, x158, x134, x131); + fiat_secp384r1_addcarryx_u32(&x161, &x162, x160, x132, x129); + fiat_secp384r1_addcarryx_u32(&x163, &x164, x162, x130, x127); + fiat_secp384r1_addcarryx_u32(&x165, &x166, x164, x128, x125); + fiat_secp384r1_addcarryx_u32(&x167, &x168, x166, x126, x123); + x169 = (x168 + x124); + fiat_secp384r1_addcarryx_u32(&x170, &x171, 0x0, x99, x145); + fiat_secp384r1_addcarryx_u32(&x172, &x173, x171, x101, x147); + fiat_secp384r1_addcarryx_u32(&x174, &x175, x173, x103, x149); + fiat_secp384r1_addcarryx_u32(&x176, &x177, x175, x105, x151); + fiat_secp384r1_addcarryx_u32(&x178, &x179, x177, x107, x153); + fiat_secp384r1_addcarryx_u32(&x180, &x181, x179, x109, x155); + fiat_secp384r1_addcarryx_u32(&x182, &x183, x181, x111, x157); + fiat_secp384r1_addcarryx_u32(&x184, &x185, x183, x113, x159); + fiat_secp384r1_addcarryx_u32(&x186, &x187, x185, x115, x161); + fiat_secp384r1_addcarryx_u32(&x188, &x189, x187, x117, x163); + fiat_secp384r1_addcarryx_u32(&x190, &x191, x189, x119, x165); + fiat_secp384r1_addcarryx_u32(&x192, &x193, x191, x121, x167); + fiat_secp384r1_addcarryx_u32(&x194, &x195, x193, x122, x169); + fiat_secp384r1_mulx_u32(&x196, &x197, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x198, &x199, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x200, &x201, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x202, &x203, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x204, &x205, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x206, &x207, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x208, &x209, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x210, &x211, x170, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x212, &x213, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x214, &x215, x170, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x216, &x217, 0x0, x213, x210); + fiat_secp384r1_addcarryx_u32(&x218, &x219, x217, x211, x208); + fiat_secp384r1_addcarryx_u32(&x220, &x221, x219, x209, x206); + fiat_secp384r1_addcarryx_u32(&x222, &x223, x221, x207, x204); + fiat_secp384r1_addcarryx_u32(&x224, &x225, x223, x205, x202); + fiat_secp384r1_addcarryx_u32(&x226, &x227, x225, x203, x200); + fiat_secp384r1_addcarryx_u32(&x228, &x229, x227, x201, x198); + fiat_secp384r1_addcarryx_u32(&x230, &x231, x229, x199, x196); + x232 = (x231 + x197); + fiat_secp384r1_addcarryx_u32(&x233, &x234, 0x0, x170, x214); + fiat_secp384r1_addcarryx_u32(&x235, &x236, x234, x172, x215); + fiat_secp384r1_addcarryx_u32(&x237, &x238, x236, x174, 0x0); + fiat_secp384r1_addcarryx_u32(&x239, &x240, x238, x176, x212); + fiat_secp384r1_addcarryx_u32(&x241, &x242, x240, x178, x216); + fiat_secp384r1_addcarryx_u32(&x243, &x244, x242, x180, x218); + fiat_secp384r1_addcarryx_u32(&x245, &x246, x244, x182, x220); + fiat_secp384r1_addcarryx_u32(&x247, &x248, x246, x184, x222); + fiat_secp384r1_addcarryx_u32(&x249, &x250, x248, x186, x224); + fiat_secp384r1_addcarryx_u32(&x251, &x252, x250, x188, x226); + fiat_secp384r1_addcarryx_u32(&x253, &x254, x252, x190, x228); + fiat_secp384r1_addcarryx_u32(&x255, &x256, x254, x192, x230); + fiat_secp384r1_addcarryx_u32(&x257, &x258, x256, x194, x232); + x259 = ((uint32_t)x258 + x195); + fiat_secp384r1_mulx_u32(&x260, &x261, x2, (arg1[11])); + fiat_secp384r1_mulx_u32(&x262, &x263, x2, (arg1[10])); + fiat_secp384r1_mulx_u32(&x264, &x265, x2, (arg1[9])); + fiat_secp384r1_mulx_u32(&x266, &x267, x2, (arg1[8])); + fiat_secp384r1_mulx_u32(&x268, &x269, x2, (arg1[7])); + fiat_secp384r1_mulx_u32(&x270, &x271, x2, (arg1[6])); + fiat_secp384r1_mulx_u32(&x272, &x273, x2, (arg1[5])); + fiat_secp384r1_mulx_u32(&x274, &x275, x2, (arg1[4])); + fiat_secp384r1_mulx_u32(&x276, &x277, x2, (arg1[3])); + fiat_secp384r1_mulx_u32(&x278, &x279, x2, (arg1[2])); + fiat_secp384r1_mulx_u32(&x280, &x281, x2, (arg1[1])); + fiat_secp384r1_mulx_u32(&x282, &x283, x2, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x284, &x285, 0x0, x283, x280); + fiat_secp384r1_addcarryx_u32(&x286, &x287, x285, x281, x278); + fiat_secp384r1_addcarryx_u32(&x288, &x289, x287, x279, x276); + fiat_secp384r1_addcarryx_u32(&x290, &x291, x289, x277, x274); + fiat_secp384r1_addcarryx_u32(&x292, &x293, x291, x275, x272); + fiat_secp384r1_addcarryx_u32(&x294, &x295, x293, x273, x270); + fiat_secp384r1_addcarryx_u32(&x296, &x297, x295, x271, x268); + fiat_secp384r1_addcarryx_u32(&x298, &x299, x297, x269, x266); + fiat_secp384r1_addcarryx_u32(&x300, &x301, x299, x267, x264); + fiat_secp384r1_addcarryx_u32(&x302, &x303, x301, x265, x262); + fiat_secp384r1_addcarryx_u32(&x304, &x305, x303, x263, x260); + x306 = (x305 + x261); + fiat_secp384r1_addcarryx_u32(&x307, &x308, 0x0, x235, x282); + fiat_secp384r1_addcarryx_u32(&x309, &x310, x308, x237, x284); + fiat_secp384r1_addcarryx_u32(&x311, &x312, x310, x239, x286); + fiat_secp384r1_addcarryx_u32(&x313, &x314, x312, x241, x288); + fiat_secp384r1_addcarryx_u32(&x315, &x316, x314, x243, x290); + fiat_secp384r1_addcarryx_u32(&x317, &x318, x316, x245, x292); + fiat_secp384r1_addcarryx_u32(&x319, &x320, x318, x247, x294); + fiat_secp384r1_addcarryx_u32(&x321, &x322, x320, x249, x296); + fiat_secp384r1_addcarryx_u32(&x323, &x324, x322, x251, x298); + fiat_secp384r1_addcarryx_u32(&x325, &x326, x324, x253, x300); + fiat_secp384r1_addcarryx_u32(&x327, &x328, x326, x255, x302); + fiat_secp384r1_addcarryx_u32(&x329, &x330, x328, x257, x304); + fiat_secp384r1_addcarryx_u32(&x331, &x332, x330, x259, x306); + fiat_secp384r1_mulx_u32(&x333, &x334, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x335, &x336, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x337, &x338, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x339, &x340, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x341, &x342, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x343, &x344, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x345, &x346, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x347, &x348, x307, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x349, &x350, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x351, &x352, x307, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x353, &x354, 0x0, x350, x347); + fiat_secp384r1_addcarryx_u32(&x355, &x356, x354, x348, x345); + fiat_secp384r1_addcarryx_u32(&x357, &x358, x356, x346, x343); + fiat_secp384r1_addcarryx_u32(&x359, &x360, x358, x344, x341); + fiat_secp384r1_addcarryx_u32(&x361, &x362, x360, x342, x339); + fiat_secp384r1_addcarryx_u32(&x363, &x364, x362, x340, x337); + fiat_secp384r1_addcarryx_u32(&x365, &x366, x364, x338, x335); + fiat_secp384r1_addcarryx_u32(&x367, &x368, x366, x336, x333); + x369 = (x368 + x334); + fiat_secp384r1_addcarryx_u32(&x370, &x371, 0x0, x307, x351); + fiat_secp384r1_addcarryx_u32(&x372, &x373, x371, x309, x352); + fiat_secp384r1_addcarryx_u32(&x374, &x375, x373, x311, 0x0); + fiat_secp384r1_addcarryx_u32(&x376, &x377, x375, x313, x349); + fiat_secp384r1_addcarryx_u32(&x378, &x379, x377, x315, x353); + fiat_secp384r1_addcarryx_u32(&x380, &x381, x379, x317, x355); + fiat_secp384r1_addcarryx_u32(&x382, &x383, x381, x319, x357); + fiat_secp384r1_addcarryx_u32(&x384, &x385, x383, x321, x359); + fiat_secp384r1_addcarryx_u32(&x386, &x387, x385, x323, x361); + fiat_secp384r1_addcarryx_u32(&x388, &x389, x387, x325, x363); + fiat_secp384r1_addcarryx_u32(&x390, &x391, x389, x327, x365); + fiat_secp384r1_addcarryx_u32(&x392, &x393, x391, x329, x367); + fiat_secp384r1_addcarryx_u32(&x394, &x395, x393, x331, x369); + x396 = ((uint32_t)x395 + x332); + fiat_secp384r1_mulx_u32(&x397, &x398, x3, (arg1[11])); + fiat_secp384r1_mulx_u32(&x399, &x400, x3, (arg1[10])); + fiat_secp384r1_mulx_u32(&x401, &x402, x3, (arg1[9])); + fiat_secp384r1_mulx_u32(&x403, &x404, x3, (arg1[8])); + fiat_secp384r1_mulx_u32(&x405, &x406, x3, (arg1[7])); + fiat_secp384r1_mulx_u32(&x407, &x408, x3, (arg1[6])); + fiat_secp384r1_mulx_u32(&x409, &x410, x3, (arg1[5])); + fiat_secp384r1_mulx_u32(&x411, &x412, x3, (arg1[4])); + fiat_secp384r1_mulx_u32(&x413, &x414, x3, (arg1[3])); + fiat_secp384r1_mulx_u32(&x415, &x416, x3, (arg1[2])); + fiat_secp384r1_mulx_u32(&x417, &x418, x3, (arg1[1])); + fiat_secp384r1_mulx_u32(&x419, &x420, x3, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x421, &x422, 0x0, x420, x417); + fiat_secp384r1_addcarryx_u32(&x423, &x424, x422, x418, x415); + fiat_secp384r1_addcarryx_u32(&x425, &x426, x424, x416, x413); + fiat_secp384r1_addcarryx_u32(&x427, &x428, x426, x414, x411); + fiat_secp384r1_addcarryx_u32(&x429, &x430, x428, x412, x409); + fiat_secp384r1_addcarryx_u32(&x431, &x432, x430, x410, x407); + fiat_secp384r1_addcarryx_u32(&x433, &x434, x432, x408, x405); + fiat_secp384r1_addcarryx_u32(&x435, &x436, x434, x406, x403); + fiat_secp384r1_addcarryx_u32(&x437, &x438, x436, x404, x401); + fiat_secp384r1_addcarryx_u32(&x439, &x440, x438, x402, x399); + fiat_secp384r1_addcarryx_u32(&x441, &x442, x440, x400, x397); + x443 = (x442 + x398); + fiat_secp384r1_addcarryx_u32(&x444, &x445, 0x0, x372, x419); + fiat_secp384r1_addcarryx_u32(&x446, &x447, x445, x374, x421); + fiat_secp384r1_addcarryx_u32(&x448, &x449, x447, x376, x423); + fiat_secp384r1_addcarryx_u32(&x450, &x451, x449, x378, x425); + fiat_secp384r1_addcarryx_u32(&x452, &x453, x451, x380, x427); + fiat_secp384r1_addcarryx_u32(&x454, &x455, x453, x382, x429); + fiat_secp384r1_addcarryx_u32(&x456, &x457, x455, x384, x431); + fiat_secp384r1_addcarryx_u32(&x458, &x459, x457, x386, x433); + fiat_secp384r1_addcarryx_u32(&x460, &x461, x459, x388, x435); + fiat_secp384r1_addcarryx_u32(&x462, &x463, x461, x390, x437); + fiat_secp384r1_addcarryx_u32(&x464, &x465, x463, x392, x439); + fiat_secp384r1_addcarryx_u32(&x466, &x467, x465, x394, x441); + fiat_secp384r1_addcarryx_u32(&x468, &x469, x467, x396, x443); + fiat_secp384r1_mulx_u32(&x470, &x471, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x472, &x473, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x474, &x475, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x476, &x477, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x478, &x479, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x480, &x481, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x482, &x483, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x484, &x485, x444, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x486, &x487, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x488, &x489, x444, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x490, &x491, 0x0, x487, x484); + fiat_secp384r1_addcarryx_u32(&x492, &x493, x491, x485, x482); + fiat_secp384r1_addcarryx_u32(&x494, &x495, x493, x483, x480); + fiat_secp384r1_addcarryx_u32(&x496, &x497, x495, x481, x478); + fiat_secp384r1_addcarryx_u32(&x498, &x499, x497, x479, x476); + fiat_secp384r1_addcarryx_u32(&x500, &x501, x499, x477, x474); + fiat_secp384r1_addcarryx_u32(&x502, &x503, x501, x475, x472); + fiat_secp384r1_addcarryx_u32(&x504, &x505, x503, x473, x470); + x506 = (x505 + x471); + fiat_secp384r1_addcarryx_u32(&x507, &x508, 0x0, x444, x488); + fiat_secp384r1_addcarryx_u32(&x509, &x510, x508, x446, x489); + fiat_secp384r1_addcarryx_u32(&x511, &x512, x510, x448, 0x0); + fiat_secp384r1_addcarryx_u32(&x513, &x514, x512, x450, x486); + fiat_secp384r1_addcarryx_u32(&x515, &x516, x514, x452, x490); + fiat_secp384r1_addcarryx_u32(&x517, &x518, x516, x454, x492); + fiat_secp384r1_addcarryx_u32(&x519, &x520, x518, x456, x494); + fiat_secp384r1_addcarryx_u32(&x521, &x522, x520, x458, x496); + fiat_secp384r1_addcarryx_u32(&x523, &x524, x522, x460, x498); + fiat_secp384r1_addcarryx_u32(&x525, &x526, x524, x462, x500); + fiat_secp384r1_addcarryx_u32(&x527, &x528, x526, x464, x502); + fiat_secp384r1_addcarryx_u32(&x529, &x530, x528, x466, x504); + fiat_secp384r1_addcarryx_u32(&x531, &x532, x530, x468, x506); + x533 = ((uint32_t)x532 + x469); + fiat_secp384r1_mulx_u32(&x534, &x535, x4, (arg1[11])); + fiat_secp384r1_mulx_u32(&x536, &x537, x4, (arg1[10])); + fiat_secp384r1_mulx_u32(&x538, &x539, x4, (arg1[9])); + fiat_secp384r1_mulx_u32(&x540, &x541, x4, (arg1[8])); + fiat_secp384r1_mulx_u32(&x542, &x543, x4, (arg1[7])); + fiat_secp384r1_mulx_u32(&x544, &x545, x4, (arg1[6])); + fiat_secp384r1_mulx_u32(&x546, &x547, x4, (arg1[5])); + fiat_secp384r1_mulx_u32(&x548, &x549, x4, (arg1[4])); + fiat_secp384r1_mulx_u32(&x550, &x551, x4, (arg1[3])); + fiat_secp384r1_mulx_u32(&x552, &x553, x4, (arg1[2])); + fiat_secp384r1_mulx_u32(&x554, &x555, x4, (arg1[1])); + fiat_secp384r1_mulx_u32(&x556, &x557, x4, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x558, &x559, 0x0, x557, x554); + fiat_secp384r1_addcarryx_u32(&x560, &x561, x559, x555, x552); + fiat_secp384r1_addcarryx_u32(&x562, &x563, x561, x553, x550); + fiat_secp384r1_addcarryx_u32(&x564, &x565, x563, x551, x548); + fiat_secp384r1_addcarryx_u32(&x566, &x567, x565, x549, x546); + fiat_secp384r1_addcarryx_u32(&x568, &x569, x567, x547, x544); + fiat_secp384r1_addcarryx_u32(&x570, &x571, x569, x545, x542); + fiat_secp384r1_addcarryx_u32(&x572, &x573, x571, x543, x540); + fiat_secp384r1_addcarryx_u32(&x574, &x575, x573, x541, x538); + fiat_secp384r1_addcarryx_u32(&x576, &x577, x575, x539, x536); + fiat_secp384r1_addcarryx_u32(&x578, &x579, x577, x537, x534); + x580 = (x579 + x535); + fiat_secp384r1_addcarryx_u32(&x581, &x582, 0x0, x509, x556); + fiat_secp384r1_addcarryx_u32(&x583, &x584, x582, x511, x558); + fiat_secp384r1_addcarryx_u32(&x585, &x586, x584, x513, x560); + fiat_secp384r1_addcarryx_u32(&x587, &x588, x586, x515, x562); + fiat_secp384r1_addcarryx_u32(&x589, &x590, x588, x517, x564); + fiat_secp384r1_addcarryx_u32(&x591, &x592, x590, x519, x566); + fiat_secp384r1_addcarryx_u32(&x593, &x594, x592, x521, x568); + fiat_secp384r1_addcarryx_u32(&x595, &x596, x594, x523, x570); + fiat_secp384r1_addcarryx_u32(&x597, &x598, x596, x525, x572); + fiat_secp384r1_addcarryx_u32(&x599, &x600, x598, x527, x574); + fiat_secp384r1_addcarryx_u32(&x601, &x602, x600, x529, x576); + fiat_secp384r1_addcarryx_u32(&x603, &x604, x602, x531, x578); + fiat_secp384r1_addcarryx_u32(&x605, &x606, x604, x533, x580); + fiat_secp384r1_mulx_u32(&x607, &x608, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x609, &x610, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x611, &x612, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x613, &x614, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x615, &x616, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x617, &x618, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x619, &x620, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x621, &x622, x581, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x623, &x624, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x625, &x626, x581, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x627, &x628, 0x0, x624, x621); + fiat_secp384r1_addcarryx_u32(&x629, &x630, x628, x622, x619); + fiat_secp384r1_addcarryx_u32(&x631, &x632, x630, x620, x617); + fiat_secp384r1_addcarryx_u32(&x633, &x634, x632, x618, x615); + fiat_secp384r1_addcarryx_u32(&x635, &x636, x634, x616, x613); + fiat_secp384r1_addcarryx_u32(&x637, &x638, x636, x614, x611); + fiat_secp384r1_addcarryx_u32(&x639, &x640, x638, x612, x609); + fiat_secp384r1_addcarryx_u32(&x641, &x642, x640, x610, x607); + x643 = (x642 + x608); + fiat_secp384r1_addcarryx_u32(&x644, &x645, 0x0, x581, x625); + fiat_secp384r1_addcarryx_u32(&x646, &x647, x645, x583, x626); + fiat_secp384r1_addcarryx_u32(&x648, &x649, x647, x585, 0x0); + fiat_secp384r1_addcarryx_u32(&x650, &x651, x649, x587, x623); + fiat_secp384r1_addcarryx_u32(&x652, &x653, x651, x589, x627); + fiat_secp384r1_addcarryx_u32(&x654, &x655, x653, x591, x629); + fiat_secp384r1_addcarryx_u32(&x656, &x657, x655, x593, x631); + fiat_secp384r1_addcarryx_u32(&x658, &x659, x657, x595, x633); + fiat_secp384r1_addcarryx_u32(&x660, &x661, x659, x597, x635); + fiat_secp384r1_addcarryx_u32(&x662, &x663, x661, x599, x637); + fiat_secp384r1_addcarryx_u32(&x664, &x665, x663, x601, x639); + fiat_secp384r1_addcarryx_u32(&x666, &x667, x665, x603, x641); + fiat_secp384r1_addcarryx_u32(&x668, &x669, x667, x605, x643); + x670 = ((uint32_t)x669 + x606); + fiat_secp384r1_mulx_u32(&x671, &x672, x5, (arg1[11])); + fiat_secp384r1_mulx_u32(&x673, &x674, x5, (arg1[10])); + fiat_secp384r1_mulx_u32(&x675, &x676, x5, (arg1[9])); + fiat_secp384r1_mulx_u32(&x677, &x678, x5, (arg1[8])); + fiat_secp384r1_mulx_u32(&x679, &x680, x5, (arg1[7])); + fiat_secp384r1_mulx_u32(&x681, &x682, x5, (arg1[6])); + fiat_secp384r1_mulx_u32(&x683, &x684, x5, (arg1[5])); + fiat_secp384r1_mulx_u32(&x685, &x686, x5, (arg1[4])); + fiat_secp384r1_mulx_u32(&x687, &x688, x5, (arg1[3])); + fiat_secp384r1_mulx_u32(&x689, &x690, x5, (arg1[2])); + fiat_secp384r1_mulx_u32(&x691, &x692, x5, (arg1[1])); + fiat_secp384r1_mulx_u32(&x693, &x694, x5, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x695, &x696, 0x0, x694, x691); + fiat_secp384r1_addcarryx_u32(&x697, &x698, x696, x692, x689); + fiat_secp384r1_addcarryx_u32(&x699, &x700, x698, x690, x687); + fiat_secp384r1_addcarryx_u32(&x701, &x702, x700, x688, x685); + fiat_secp384r1_addcarryx_u32(&x703, &x704, x702, x686, x683); + fiat_secp384r1_addcarryx_u32(&x705, &x706, x704, x684, x681); + fiat_secp384r1_addcarryx_u32(&x707, &x708, x706, x682, x679); + fiat_secp384r1_addcarryx_u32(&x709, &x710, x708, x680, x677); + fiat_secp384r1_addcarryx_u32(&x711, &x712, x710, x678, x675); + fiat_secp384r1_addcarryx_u32(&x713, &x714, x712, x676, x673); + fiat_secp384r1_addcarryx_u32(&x715, &x716, x714, x674, x671); + x717 = (x716 + x672); + fiat_secp384r1_addcarryx_u32(&x718, &x719, 0x0, x646, x693); + fiat_secp384r1_addcarryx_u32(&x720, &x721, x719, x648, x695); + fiat_secp384r1_addcarryx_u32(&x722, &x723, x721, x650, x697); + fiat_secp384r1_addcarryx_u32(&x724, &x725, x723, x652, x699); + fiat_secp384r1_addcarryx_u32(&x726, &x727, x725, x654, x701); + fiat_secp384r1_addcarryx_u32(&x728, &x729, x727, x656, x703); + fiat_secp384r1_addcarryx_u32(&x730, &x731, x729, x658, x705); + fiat_secp384r1_addcarryx_u32(&x732, &x733, x731, x660, x707); + fiat_secp384r1_addcarryx_u32(&x734, &x735, x733, x662, x709); + fiat_secp384r1_addcarryx_u32(&x736, &x737, x735, x664, x711); + fiat_secp384r1_addcarryx_u32(&x738, &x739, x737, x666, x713); + fiat_secp384r1_addcarryx_u32(&x740, &x741, x739, x668, x715); + fiat_secp384r1_addcarryx_u32(&x742, &x743, x741, x670, x717); + fiat_secp384r1_mulx_u32(&x744, &x745, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x746, &x747, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x748, &x749, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x750, &x751, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x752, &x753, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x754, &x755, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x756, &x757, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x758, &x759, x718, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x760, &x761, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x762, &x763, x718, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x764, &x765, 0x0, x761, x758); + fiat_secp384r1_addcarryx_u32(&x766, &x767, x765, x759, x756); + fiat_secp384r1_addcarryx_u32(&x768, &x769, x767, x757, x754); + fiat_secp384r1_addcarryx_u32(&x770, &x771, x769, x755, x752); + fiat_secp384r1_addcarryx_u32(&x772, &x773, x771, x753, x750); + fiat_secp384r1_addcarryx_u32(&x774, &x775, x773, x751, x748); + fiat_secp384r1_addcarryx_u32(&x776, &x777, x775, x749, x746); + fiat_secp384r1_addcarryx_u32(&x778, &x779, x777, x747, x744); + x780 = (x779 + x745); + fiat_secp384r1_addcarryx_u32(&x781, &x782, 0x0, x718, x762); + fiat_secp384r1_addcarryx_u32(&x783, &x784, x782, x720, x763); + fiat_secp384r1_addcarryx_u32(&x785, &x786, x784, x722, 0x0); + fiat_secp384r1_addcarryx_u32(&x787, &x788, x786, x724, x760); + fiat_secp384r1_addcarryx_u32(&x789, &x790, x788, x726, x764); + fiat_secp384r1_addcarryx_u32(&x791, &x792, x790, x728, x766); + fiat_secp384r1_addcarryx_u32(&x793, &x794, x792, x730, x768); + fiat_secp384r1_addcarryx_u32(&x795, &x796, x794, x732, x770); + fiat_secp384r1_addcarryx_u32(&x797, &x798, x796, x734, x772); + fiat_secp384r1_addcarryx_u32(&x799, &x800, x798, x736, x774); + fiat_secp384r1_addcarryx_u32(&x801, &x802, x800, x738, x776); + fiat_secp384r1_addcarryx_u32(&x803, &x804, x802, x740, x778); + fiat_secp384r1_addcarryx_u32(&x805, &x806, x804, x742, x780); + x807 = ((uint32_t)x806 + x743); + fiat_secp384r1_mulx_u32(&x808, &x809, x6, (arg1[11])); + fiat_secp384r1_mulx_u32(&x810, &x811, x6, (arg1[10])); + fiat_secp384r1_mulx_u32(&x812, &x813, x6, (arg1[9])); + fiat_secp384r1_mulx_u32(&x814, &x815, x6, (arg1[8])); + fiat_secp384r1_mulx_u32(&x816, &x817, x6, (arg1[7])); + fiat_secp384r1_mulx_u32(&x818, &x819, x6, (arg1[6])); + fiat_secp384r1_mulx_u32(&x820, &x821, x6, (arg1[5])); + fiat_secp384r1_mulx_u32(&x822, &x823, x6, (arg1[4])); + fiat_secp384r1_mulx_u32(&x824, &x825, x6, (arg1[3])); + fiat_secp384r1_mulx_u32(&x826, &x827, x6, (arg1[2])); + fiat_secp384r1_mulx_u32(&x828, &x829, x6, (arg1[1])); + fiat_secp384r1_mulx_u32(&x830, &x831, x6, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x832, &x833, 0x0, x831, x828); + fiat_secp384r1_addcarryx_u32(&x834, &x835, x833, x829, x826); + fiat_secp384r1_addcarryx_u32(&x836, &x837, x835, x827, x824); + fiat_secp384r1_addcarryx_u32(&x838, &x839, x837, x825, x822); + fiat_secp384r1_addcarryx_u32(&x840, &x841, x839, x823, x820); + fiat_secp384r1_addcarryx_u32(&x842, &x843, x841, x821, x818); + fiat_secp384r1_addcarryx_u32(&x844, &x845, x843, x819, x816); + fiat_secp384r1_addcarryx_u32(&x846, &x847, x845, x817, x814); + fiat_secp384r1_addcarryx_u32(&x848, &x849, x847, x815, x812); + fiat_secp384r1_addcarryx_u32(&x850, &x851, x849, x813, x810); + fiat_secp384r1_addcarryx_u32(&x852, &x853, x851, x811, x808); + x854 = (x853 + x809); + fiat_secp384r1_addcarryx_u32(&x855, &x856, 0x0, x783, x830); + fiat_secp384r1_addcarryx_u32(&x857, &x858, x856, x785, x832); + fiat_secp384r1_addcarryx_u32(&x859, &x860, x858, x787, x834); + fiat_secp384r1_addcarryx_u32(&x861, &x862, x860, x789, x836); + fiat_secp384r1_addcarryx_u32(&x863, &x864, x862, x791, x838); + fiat_secp384r1_addcarryx_u32(&x865, &x866, x864, x793, x840); + fiat_secp384r1_addcarryx_u32(&x867, &x868, x866, x795, x842); + fiat_secp384r1_addcarryx_u32(&x869, &x870, x868, x797, x844); + fiat_secp384r1_addcarryx_u32(&x871, &x872, x870, x799, x846); + fiat_secp384r1_addcarryx_u32(&x873, &x874, x872, x801, x848); + fiat_secp384r1_addcarryx_u32(&x875, &x876, x874, x803, x850); + fiat_secp384r1_addcarryx_u32(&x877, &x878, x876, x805, x852); + fiat_secp384r1_addcarryx_u32(&x879, &x880, x878, x807, x854); + fiat_secp384r1_mulx_u32(&x881, &x882, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x883, &x884, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x885, &x886, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x887, &x888, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x889, &x890, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x891, &x892, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x893, &x894, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x895, &x896, x855, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x897, &x898, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x899, &x900, x855, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x901, &x902, 0x0, x898, x895); + fiat_secp384r1_addcarryx_u32(&x903, &x904, x902, x896, x893); + fiat_secp384r1_addcarryx_u32(&x905, &x906, x904, x894, x891); + fiat_secp384r1_addcarryx_u32(&x907, &x908, x906, x892, x889); + fiat_secp384r1_addcarryx_u32(&x909, &x910, x908, x890, x887); + fiat_secp384r1_addcarryx_u32(&x911, &x912, x910, x888, x885); + fiat_secp384r1_addcarryx_u32(&x913, &x914, x912, x886, x883); + fiat_secp384r1_addcarryx_u32(&x915, &x916, x914, x884, x881); + x917 = (x916 + x882); + fiat_secp384r1_addcarryx_u32(&x918, &x919, 0x0, x855, x899); + fiat_secp384r1_addcarryx_u32(&x920, &x921, x919, x857, x900); + fiat_secp384r1_addcarryx_u32(&x922, &x923, x921, x859, 0x0); + fiat_secp384r1_addcarryx_u32(&x924, &x925, x923, x861, x897); + fiat_secp384r1_addcarryx_u32(&x926, &x927, x925, x863, x901); + fiat_secp384r1_addcarryx_u32(&x928, &x929, x927, x865, x903); + fiat_secp384r1_addcarryx_u32(&x930, &x931, x929, x867, x905); + fiat_secp384r1_addcarryx_u32(&x932, &x933, x931, x869, x907); + fiat_secp384r1_addcarryx_u32(&x934, &x935, x933, x871, x909); + fiat_secp384r1_addcarryx_u32(&x936, &x937, x935, x873, x911); + fiat_secp384r1_addcarryx_u32(&x938, &x939, x937, x875, x913); + fiat_secp384r1_addcarryx_u32(&x940, &x941, x939, x877, x915); + fiat_secp384r1_addcarryx_u32(&x942, &x943, x941, x879, x917); + x944 = ((uint32_t)x943 + x880); + fiat_secp384r1_mulx_u32(&x945, &x946, x7, (arg1[11])); + fiat_secp384r1_mulx_u32(&x947, &x948, x7, (arg1[10])); + fiat_secp384r1_mulx_u32(&x949, &x950, x7, (arg1[9])); + fiat_secp384r1_mulx_u32(&x951, &x952, x7, (arg1[8])); + fiat_secp384r1_mulx_u32(&x953, &x954, x7, (arg1[7])); + fiat_secp384r1_mulx_u32(&x955, &x956, x7, (arg1[6])); + fiat_secp384r1_mulx_u32(&x957, &x958, x7, (arg1[5])); + fiat_secp384r1_mulx_u32(&x959, &x960, x7, (arg1[4])); + fiat_secp384r1_mulx_u32(&x961, &x962, x7, (arg1[3])); + fiat_secp384r1_mulx_u32(&x963, &x964, x7, (arg1[2])); + fiat_secp384r1_mulx_u32(&x965, &x966, x7, (arg1[1])); + fiat_secp384r1_mulx_u32(&x967, &x968, x7, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x969, &x970, 0x0, x968, x965); + fiat_secp384r1_addcarryx_u32(&x971, &x972, x970, x966, x963); + fiat_secp384r1_addcarryx_u32(&x973, &x974, x972, x964, x961); + fiat_secp384r1_addcarryx_u32(&x975, &x976, x974, x962, x959); + fiat_secp384r1_addcarryx_u32(&x977, &x978, x976, x960, x957); + fiat_secp384r1_addcarryx_u32(&x979, &x980, x978, x958, x955); + fiat_secp384r1_addcarryx_u32(&x981, &x982, x980, x956, x953); + fiat_secp384r1_addcarryx_u32(&x983, &x984, x982, x954, x951); + fiat_secp384r1_addcarryx_u32(&x985, &x986, x984, x952, x949); + fiat_secp384r1_addcarryx_u32(&x987, &x988, x986, x950, x947); + fiat_secp384r1_addcarryx_u32(&x989, &x990, x988, x948, x945); + x991 = (x990 + x946); + fiat_secp384r1_addcarryx_u32(&x992, &x993, 0x0, x920, x967); + fiat_secp384r1_addcarryx_u32(&x994, &x995, x993, x922, x969); + fiat_secp384r1_addcarryx_u32(&x996, &x997, x995, x924, x971); + fiat_secp384r1_addcarryx_u32(&x998, &x999, x997, x926, x973); + fiat_secp384r1_addcarryx_u32(&x1000, &x1001, x999, x928, x975); + fiat_secp384r1_addcarryx_u32(&x1002, &x1003, x1001, x930, x977); + fiat_secp384r1_addcarryx_u32(&x1004, &x1005, x1003, x932, x979); + fiat_secp384r1_addcarryx_u32(&x1006, &x1007, x1005, x934, x981); + fiat_secp384r1_addcarryx_u32(&x1008, &x1009, x1007, x936, x983); + fiat_secp384r1_addcarryx_u32(&x1010, &x1011, x1009, x938, x985); + fiat_secp384r1_addcarryx_u32(&x1012, &x1013, x1011, x940, x987); + fiat_secp384r1_addcarryx_u32(&x1014, &x1015, x1013, x942, x989); + fiat_secp384r1_addcarryx_u32(&x1016, &x1017, x1015, x944, x991); + fiat_secp384r1_mulx_u32(&x1018, &x1019, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1020, &x1021, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1022, &x1023, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1024, &x1025, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1026, &x1027, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1028, &x1029, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1030, &x1031, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1032, &x1033, x992, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1034, &x1035, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1036, &x1037, x992, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1038, &x1039, 0x0, x1035, x1032); + fiat_secp384r1_addcarryx_u32(&x1040, &x1041, x1039, x1033, x1030); + fiat_secp384r1_addcarryx_u32(&x1042, &x1043, x1041, x1031, x1028); + fiat_secp384r1_addcarryx_u32(&x1044, &x1045, x1043, x1029, x1026); + fiat_secp384r1_addcarryx_u32(&x1046, &x1047, x1045, x1027, x1024); + fiat_secp384r1_addcarryx_u32(&x1048, &x1049, x1047, x1025, x1022); + fiat_secp384r1_addcarryx_u32(&x1050, &x1051, x1049, x1023, x1020); + fiat_secp384r1_addcarryx_u32(&x1052, &x1053, x1051, x1021, x1018); + x1054 = (x1053 + x1019); + fiat_secp384r1_addcarryx_u32(&x1055, &x1056, 0x0, x992, x1036); + fiat_secp384r1_addcarryx_u32(&x1057, &x1058, x1056, x994, x1037); + fiat_secp384r1_addcarryx_u32(&x1059, &x1060, x1058, x996, 0x0); + fiat_secp384r1_addcarryx_u32(&x1061, &x1062, x1060, x998, x1034); + fiat_secp384r1_addcarryx_u32(&x1063, &x1064, x1062, x1000, x1038); + fiat_secp384r1_addcarryx_u32(&x1065, &x1066, x1064, x1002, x1040); + fiat_secp384r1_addcarryx_u32(&x1067, &x1068, x1066, x1004, x1042); + fiat_secp384r1_addcarryx_u32(&x1069, &x1070, x1068, x1006, x1044); + fiat_secp384r1_addcarryx_u32(&x1071, &x1072, x1070, x1008, x1046); + fiat_secp384r1_addcarryx_u32(&x1073, &x1074, x1072, x1010, x1048); + fiat_secp384r1_addcarryx_u32(&x1075, &x1076, x1074, x1012, x1050); + fiat_secp384r1_addcarryx_u32(&x1077, &x1078, x1076, x1014, x1052); + fiat_secp384r1_addcarryx_u32(&x1079, &x1080, x1078, x1016, x1054); + x1081 = ((uint32_t)x1080 + x1017); + fiat_secp384r1_mulx_u32(&x1082, &x1083, x8, (arg1[11])); + fiat_secp384r1_mulx_u32(&x1084, &x1085, x8, (arg1[10])); + fiat_secp384r1_mulx_u32(&x1086, &x1087, x8, (arg1[9])); + fiat_secp384r1_mulx_u32(&x1088, &x1089, x8, (arg1[8])); + fiat_secp384r1_mulx_u32(&x1090, &x1091, x8, (arg1[7])); + fiat_secp384r1_mulx_u32(&x1092, &x1093, x8, (arg1[6])); + fiat_secp384r1_mulx_u32(&x1094, &x1095, x8, (arg1[5])); + fiat_secp384r1_mulx_u32(&x1096, &x1097, x8, (arg1[4])); + fiat_secp384r1_mulx_u32(&x1098, &x1099, x8, (arg1[3])); + fiat_secp384r1_mulx_u32(&x1100, &x1101, x8, (arg1[2])); + fiat_secp384r1_mulx_u32(&x1102, &x1103, x8, (arg1[1])); + fiat_secp384r1_mulx_u32(&x1104, &x1105, x8, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x1106, &x1107, 0x0, x1105, x1102); + fiat_secp384r1_addcarryx_u32(&x1108, &x1109, x1107, x1103, x1100); + fiat_secp384r1_addcarryx_u32(&x1110, &x1111, x1109, x1101, x1098); + fiat_secp384r1_addcarryx_u32(&x1112, &x1113, x1111, x1099, x1096); + fiat_secp384r1_addcarryx_u32(&x1114, &x1115, x1113, x1097, x1094); + fiat_secp384r1_addcarryx_u32(&x1116, &x1117, x1115, x1095, x1092); + fiat_secp384r1_addcarryx_u32(&x1118, &x1119, x1117, x1093, x1090); + fiat_secp384r1_addcarryx_u32(&x1120, &x1121, x1119, x1091, x1088); + fiat_secp384r1_addcarryx_u32(&x1122, &x1123, x1121, x1089, x1086); + fiat_secp384r1_addcarryx_u32(&x1124, &x1125, x1123, x1087, x1084); + fiat_secp384r1_addcarryx_u32(&x1126, &x1127, x1125, x1085, x1082); + x1128 = (x1127 + x1083); + fiat_secp384r1_addcarryx_u32(&x1129, &x1130, 0x0, x1057, x1104); + fiat_secp384r1_addcarryx_u32(&x1131, &x1132, x1130, x1059, x1106); + fiat_secp384r1_addcarryx_u32(&x1133, &x1134, x1132, x1061, x1108); + fiat_secp384r1_addcarryx_u32(&x1135, &x1136, x1134, x1063, x1110); + fiat_secp384r1_addcarryx_u32(&x1137, &x1138, x1136, x1065, x1112); + fiat_secp384r1_addcarryx_u32(&x1139, &x1140, x1138, x1067, x1114); + fiat_secp384r1_addcarryx_u32(&x1141, &x1142, x1140, x1069, x1116); + fiat_secp384r1_addcarryx_u32(&x1143, &x1144, x1142, x1071, x1118); + fiat_secp384r1_addcarryx_u32(&x1145, &x1146, x1144, x1073, x1120); + fiat_secp384r1_addcarryx_u32(&x1147, &x1148, x1146, x1075, x1122); + fiat_secp384r1_addcarryx_u32(&x1149, &x1150, x1148, x1077, x1124); + fiat_secp384r1_addcarryx_u32(&x1151, &x1152, x1150, x1079, x1126); + fiat_secp384r1_addcarryx_u32(&x1153, &x1154, x1152, x1081, x1128); + fiat_secp384r1_mulx_u32(&x1155, &x1156, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1157, &x1158, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1159, &x1160, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1161, &x1162, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1163, &x1164, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1165, &x1166, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1167, &x1168, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1169, &x1170, x1129, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1171, &x1172, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1173, &x1174, x1129, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1175, &x1176, 0x0, x1172, x1169); + fiat_secp384r1_addcarryx_u32(&x1177, &x1178, x1176, x1170, x1167); + fiat_secp384r1_addcarryx_u32(&x1179, &x1180, x1178, x1168, x1165); + fiat_secp384r1_addcarryx_u32(&x1181, &x1182, x1180, x1166, x1163); + fiat_secp384r1_addcarryx_u32(&x1183, &x1184, x1182, x1164, x1161); + fiat_secp384r1_addcarryx_u32(&x1185, &x1186, x1184, x1162, x1159); + fiat_secp384r1_addcarryx_u32(&x1187, &x1188, x1186, x1160, x1157); + fiat_secp384r1_addcarryx_u32(&x1189, &x1190, x1188, x1158, x1155); + x1191 = (x1190 + x1156); + fiat_secp384r1_addcarryx_u32(&x1192, &x1193, 0x0, x1129, x1173); + fiat_secp384r1_addcarryx_u32(&x1194, &x1195, x1193, x1131, x1174); + fiat_secp384r1_addcarryx_u32(&x1196, &x1197, x1195, x1133, 0x0); + fiat_secp384r1_addcarryx_u32(&x1198, &x1199, x1197, x1135, x1171); + fiat_secp384r1_addcarryx_u32(&x1200, &x1201, x1199, x1137, x1175); + fiat_secp384r1_addcarryx_u32(&x1202, &x1203, x1201, x1139, x1177); + fiat_secp384r1_addcarryx_u32(&x1204, &x1205, x1203, x1141, x1179); + fiat_secp384r1_addcarryx_u32(&x1206, &x1207, x1205, x1143, x1181); + fiat_secp384r1_addcarryx_u32(&x1208, &x1209, x1207, x1145, x1183); + fiat_secp384r1_addcarryx_u32(&x1210, &x1211, x1209, x1147, x1185); + fiat_secp384r1_addcarryx_u32(&x1212, &x1213, x1211, x1149, x1187); + fiat_secp384r1_addcarryx_u32(&x1214, &x1215, x1213, x1151, x1189); + fiat_secp384r1_addcarryx_u32(&x1216, &x1217, x1215, x1153, x1191); + x1218 = ((uint32_t)x1217 + x1154); + fiat_secp384r1_mulx_u32(&x1219, &x1220, x9, (arg1[11])); + fiat_secp384r1_mulx_u32(&x1221, &x1222, x9, (arg1[10])); + fiat_secp384r1_mulx_u32(&x1223, &x1224, x9, (arg1[9])); + fiat_secp384r1_mulx_u32(&x1225, &x1226, x9, (arg1[8])); + fiat_secp384r1_mulx_u32(&x1227, &x1228, x9, (arg1[7])); + fiat_secp384r1_mulx_u32(&x1229, &x1230, x9, (arg1[6])); + fiat_secp384r1_mulx_u32(&x1231, &x1232, x9, (arg1[5])); + fiat_secp384r1_mulx_u32(&x1233, &x1234, x9, (arg1[4])); + fiat_secp384r1_mulx_u32(&x1235, &x1236, x9, (arg1[3])); + fiat_secp384r1_mulx_u32(&x1237, &x1238, x9, (arg1[2])); + fiat_secp384r1_mulx_u32(&x1239, &x1240, x9, (arg1[1])); + fiat_secp384r1_mulx_u32(&x1241, &x1242, x9, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x1243, &x1244, 0x0, x1242, x1239); + fiat_secp384r1_addcarryx_u32(&x1245, &x1246, x1244, x1240, x1237); + fiat_secp384r1_addcarryx_u32(&x1247, &x1248, x1246, x1238, x1235); + fiat_secp384r1_addcarryx_u32(&x1249, &x1250, x1248, x1236, x1233); + fiat_secp384r1_addcarryx_u32(&x1251, &x1252, x1250, x1234, x1231); + fiat_secp384r1_addcarryx_u32(&x1253, &x1254, x1252, x1232, x1229); + fiat_secp384r1_addcarryx_u32(&x1255, &x1256, x1254, x1230, x1227); + fiat_secp384r1_addcarryx_u32(&x1257, &x1258, x1256, x1228, x1225); + fiat_secp384r1_addcarryx_u32(&x1259, &x1260, x1258, x1226, x1223); + fiat_secp384r1_addcarryx_u32(&x1261, &x1262, x1260, x1224, x1221); + fiat_secp384r1_addcarryx_u32(&x1263, &x1264, x1262, x1222, x1219); + x1265 = (x1264 + x1220); + fiat_secp384r1_addcarryx_u32(&x1266, &x1267, 0x0, x1194, x1241); + fiat_secp384r1_addcarryx_u32(&x1268, &x1269, x1267, x1196, x1243); + fiat_secp384r1_addcarryx_u32(&x1270, &x1271, x1269, x1198, x1245); + fiat_secp384r1_addcarryx_u32(&x1272, &x1273, x1271, x1200, x1247); + fiat_secp384r1_addcarryx_u32(&x1274, &x1275, x1273, x1202, x1249); + fiat_secp384r1_addcarryx_u32(&x1276, &x1277, x1275, x1204, x1251); + fiat_secp384r1_addcarryx_u32(&x1278, &x1279, x1277, x1206, x1253); + fiat_secp384r1_addcarryx_u32(&x1280, &x1281, x1279, x1208, x1255); + fiat_secp384r1_addcarryx_u32(&x1282, &x1283, x1281, x1210, x1257); + fiat_secp384r1_addcarryx_u32(&x1284, &x1285, x1283, x1212, x1259); + fiat_secp384r1_addcarryx_u32(&x1286, &x1287, x1285, x1214, x1261); + fiat_secp384r1_addcarryx_u32(&x1288, &x1289, x1287, x1216, x1263); + fiat_secp384r1_addcarryx_u32(&x1290, &x1291, x1289, x1218, x1265); + fiat_secp384r1_mulx_u32(&x1292, &x1293, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1294, &x1295, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1296, &x1297, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1298, &x1299, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1300, &x1301, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1302, &x1303, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1304, &x1305, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1306, &x1307, x1266, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1308, &x1309, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1310, &x1311, x1266, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1312, &x1313, 0x0, x1309, x1306); + fiat_secp384r1_addcarryx_u32(&x1314, &x1315, x1313, x1307, x1304); + fiat_secp384r1_addcarryx_u32(&x1316, &x1317, x1315, x1305, x1302); + fiat_secp384r1_addcarryx_u32(&x1318, &x1319, x1317, x1303, x1300); + fiat_secp384r1_addcarryx_u32(&x1320, &x1321, x1319, x1301, x1298); + fiat_secp384r1_addcarryx_u32(&x1322, &x1323, x1321, x1299, x1296); + fiat_secp384r1_addcarryx_u32(&x1324, &x1325, x1323, x1297, x1294); + fiat_secp384r1_addcarryx_u32(&x1326, &x1327, x1325, x1295, x1292); + x1328 = (x1327 + x1293); + fiat_secp384r1_addcarryx_u32(&x1329, &x1330, 0x0, x1266, x1310); + fiat_secp384r1_addcarryx_u32(&x1331, &x1332, x1330, x1268, x1311); + fiat_secp384r1_addcarryx_u32(&x1333, &x1334, x1332, x1270, 0x0); + fiat_secp384r1_addcarryx_u32(&x1335, &x1336, x1334, x1272, x1308); + fiat_secp384r1_addcarryx_u32(&x1337, &x1338, x1336, x1274, x1312); + fiat_secp384r1_addcarryx_u32(&x1339, &x1340, x1338, x1276, x1314); + fiat_secp384r1_addcarryx_u32(&x1341, &x1342, x1340, x1278, x1316); + fiat_secp384r1_addcarryx_u32(&x1343, &x1344, x1342, x1280, x1318); + fiat_secp384r1_addcarryx_u32(&x1345, &x1346, x1344, x1282, x1320); + fiat_secp384r1_addcarryx_u32(&x1347, &x1348, x1346, x1284, x1322); + fiat_secp384r1_addcarryx_u32(&x1349, &x1350, x1348, x1286, x1324); + fiat_secp384r1_addcarryx_u32(&x1351, &x1352, x1350, x1288, x1326); + fiat_secp384r1_addcarryx_u32(&x1353, &x1354, x1352, x1290, x1328); + x1355 = ((uint32_t)x1354 + x1291); + fiat_secp384r1_mulx_u32(&x1356, &x1357, x10, (arg1[11])); + fiat_secp384r1_mulx_u32(&x1358, &x1359, x10, (arg1[10])); + fiat_secp384r1_mulx_u32(&x1360, &x1361, x10, (arg1[9])); + fiat_secp384r1_mulx_u32(&x1362, &x1363, x10, (arg1[8])); + fiat_secp384r1_mulx_u32(&x1364, &x1365, x10, (arg1[7])); + fiat_secp384r1_mulx_u32(&x1366, &x1367, x10, (arg1[6])); + fiat_secp384r1_mulx_u32(&x1368, &x1369, x10, (arg1[5])); + fiat_secp384r1_mulx_u32(&x1370, &x1371, x10, (arg1[4])); + fiat_secp384r1_mulx_u32(&x1372, &x1373, x10, (arg1[3])); + fiat_secp384r1_mulx_u32(&x1374, &x1375, x10, (arg1[2])); + fiat_secp384r1_mulx_u32(&x1376, &x1377, x10, (arg1[1])); + fiat_secp384r1_mulx_u32(&x1378, &x1379, x10, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x1380, &x1381, 0x0, x1379, x1376); + fiat_secp384r1_addcarryx_u32(&x1382, &x1383, x1381, x1377, x1374); + fiat_secp384r1_addcarryx_u32(&x1384, &x1385, x1383, x1375, x1372); + fiat_secp384r1_addcarryx_u32(&x1386, &x1387, x1385, x1373, x1370); + fiat_secp384r1_addcarryx_u32(&x1388, &x1389, x1387, x1371, x1368); + fiat_secp384r1_addcarryx_u32(&x1390, &x1391, x1389, x1369, x1366); + fiat_secp384r1_addcarryx_u32(&x1392, &x1393, x1391, x1367, x1364); + fiat_secp384r1_addcarryx_u32(&x1394, &x1395, x1393, x1365, x1362); + fiat_secp384r1_addcarryx_u32(&x1396, &x1397, x1395, x1363, x1360); + fiat_secp384r1_addcarryx_u32(&x1398, &x1399, x1397, x1361, x1358); + fiat_secp384r1_addcarryx_u32(&x1400, &x1401, x1399, x1359, x1356); + x1402 = (x1401 + x1357); + fiat_secp384r1_addcarryx_u32(&x1403, &x1404, 0x0, x1331, x1378); + fiat_secp384r1_addcarryx_u32(&x1405, &x1406, x1404, x1333, x1380); + fiat_secp384r1_addcarryx_u32(&x1407, &x1408, x1406, x1335, x1382); + fiat_secp384r1_addcarryx_u32(&x1409, &x1410, x1408, x1337, x1384); + fiat_secp384r1_addcarryx_u32(&x1411, &x1412, x1410, x1339, x1386); + fiat_secp384r1_addcarryx_u32(&x1413, &x1414, x1412, x1341, x1388); + fiat_secp384r1_addcarryx_u32(&x1415, &x1416, x1414, x1343, x1390); + fiat_secp384r1_addcarryx_u32(&x1417, &x1418, x1416, x1345, x1392); + fiat_secp384r1_addcarryx_u32(&x1419, &x1420, x1418, x1347, x1394); + fiat_secp384r1_addcarryx_u32(&x1421, &x1422, x1420, x1349, x1396); + fiat_secp384r1_addcarryx_u32(&x1423, &x1424, x1422, x1351, x1398); + fiat_secp384r1_addcarryx_u32(&x1425, &x1426, x1424, x1353, x1400); + fiat_secp384r1_addcarryx_u32(&x1427, &x1428, x1426, x1355, x1402); + fiat_secp384r1_mulx_u32(&x1429, &x1430, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1431, &x1432, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1433, &x1434, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1435, &x1436, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1437, &x1438, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1439, &x1440, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1441, &x1442, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1443, &x1444, x1403, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1445, &x1446, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1447, &x1448, x1403, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1449, &x1450, 0x0, x1446, x1443); + fiat_secp384r1_addcarryx_u32(&x1451, &x1452, x1450, x1444, x1441); + fiat_secp384r1_addcarryx_u32(&x1453, &x1454, x1452, x1442, x1439); + fiat_secp384r1_addcarryx_u32(&x1455, &x1456, x1454, x1440, x1437); + fiat_secp384r1_addcarryx_u32(&x1457, &x1458, x1456, x1438, x1435); + fiat_secp384r1_addcarryx_u32(&x1459, &x1460, x1458, x1436, x1433); + fiat_secp384r1_addcarryx_u32(&x1461, &x1462, x1460, x1434, x1431); + fiat_secp384r1_addcarryx_u32(&x1463, &x1464, x1462, x1432, x1429); + x1465 = (x1464 + x1430); + fiat_secp384r1_addcarryx_u32(&x1466, &x1467, 0x0, x1403, x1447); + fiat_secp384r1_addcarryx_u32(&x1468, &x1469, x1467, x1405, x1448); + fiat_secp384r1_addcarryx_u32(&x1470, &x1471, x1469, x1407, 0x0); + fiat_secp384r1_addcarryx_u32(&x1472, &x1473, x1471, x1409, x1445); + fiat_secp384r1_addcarryx_u32(&x1474, &x1475, x1473, x1411, x1449); + fiat_secp384r1_addcarryx_u32(&x1476, &x1477, x1475, x1413, x1451); + fiat_secp384r1_addcarryx_u32(&x1478, &x1479, x1477, x1415, x1453); + fiat_secp384r1_addcarryx_u32(&x1480, &x1481, x1479, x1417, x1455); + fiat_secp384r1_addcarryx_u32(&x1482, &x1483, x1481, x1419, x1457); + fiat_secp384r1_addcarryx_u32(&x1484, &x1485, x1483, x1421, x1459); + fiat_secp384r1_addcarryx_u32(&x1486, &x1487, x1485, x1423, x1461); + fiat_secp384r1_addcarryx_u32(&x1488, &x1489, x1487, x1425, x1463); + fiat_secp384r1_addcarryx_u32(&x1490, &x1491, x1489, x1427, x1465); + x1492 = ((uint32_t)x1491 + x1428); + fiat_secp384r1_mulx_u32(&x1493, &x1494, x11, (arg1[11])); + fiat_secp384r1_mulx_u32(&x1495, &x1496, x11, (arg1[10])); + fiat_secp384r1_mulx_u32(&x1497, &x1498, x11, (arg1[9])); + fiat_secp384r1_mulx_u32(&x1499, &x1500, x11, (arg1[8])); + fiat_secp384r1_mulx_u32(&x1501, &x1502, x11, (arg1[7])); + fiat_secp384r1_mulx_u32(&x1503, &x1504, x11, (arg1[6])); + fiat_secp384r1_mulx_u32(&x1505, &x1506, x11, (arg1[5])); + fiat_secp384r1_mulx_u32(&x1507, &x1508, x11, (arg1[4])); + fiat_secp384r1_mulx_u32(&x1509, &x1510, x11, (arg1[3])); + fiat_secp384r1_mulx_u32(&x1511, &x1512, x11, (arg1[2])); + fiat_secp384r1_mulx_u32(&x1513, &x1514, x11, (arg1[1])); + fiat_secp384r1_mulx_u32(&x1515, &x1516, x11, (arg1[0])); + fiat_secp384r1_addcarryx_u32(&x1517, &x1518, 0x0, x1516, x1513); + fiat_secp384r1_addcarryx_u32(&x1519, &x1520, x1518, x1514, x1511); + fiat_secp384r1_addcarryx_u32(&x1521, &x1522, x1520, x1512, x1509); + fiat_secp384r1_addcarryx_u32(&x1523, &x1524, x1522, x1510, x1507); + fiat_secp384r1_addcarryx_u32(&x1525, &x1526, x1524, x1508, x1505); + fiat_secp384r1_addcarryx_u32(&x1527, &x1528, x1526, x1506, x1503); + fiat_secp384r1_addcarryx_u32(&x1529, &x1530, x1528, x1504, x1501); + fiat_secp384r1_addcarryx_u32(&x1531, &x1532, x1530, x1502, x1499); + fiat_secp384r1_addcarryx_u32(&x1533, &x1534, x1532, x1500, x1497); + fiat_secp384r1_addcarryx_u32(&x1535, &x1536, x1534, x1498, x1495); + fiat_secp384r1_addcarryx_u32(&x1537, &x1538, x1536, x1496, x1493); + x1539 = (x1538 + x1494); + fiat_secp384r1_addcarryx_u32(&x1540, &x1541, 0x0, x1468, x1515); + fiat_secp384r1_addcarryx_u32(&x1542, &x1543, x1541, x1470, x1517); + fiat_secp384r1_addcarryx_u32(&x1544, &x1545, x1543, x1472, x1519); + fiat_secp384r1_addcarryx_u32(&x1546, &x1547, x1545, x1474, x1521); + fiat_secp384r1_addcarryx_u32(&x1548, &x1549, x1547, x1476, x1523); + fiat_secp384r1_addcarryx_u32(&x1550, &x1551, x1549, x1478, x1525); + fiat_secp384r1_addcarryx_u32(&x1552, &x1553, x1551, x1480, x1527); + fiat_secp384r1_addcarryx_u32(&x1554, &x1555, x1553, x1482, x1529); + fiat_secp384r1_addcarryx_u32(&x1556, &x1557, x1555, x1484, x1531); + fiat_secp384r1_addcarryx_u32(&x1558, &x1559, x1557, x1486, x1533); + fiat_secp384r1_addcarryx_u32(&x1560, &x1561, x1559, x1488, x1535); + fiat_secp384r1_addcarryx_u32(&x1562, &x1563, x1561, x1490, x1537); + fiat_secp384r1_addcarryx_u32(&x1564, &x1565, x1563, x1492, x1539); + fiat_secp384r1_mulx_u32(&x1566, &x1567, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1568, &x1569, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1570, &x1571, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1572, &x1573, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1574, &x1575, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1576, &x1577, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1578, &x1579, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1580, &x1581, x1540, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1582, &x1583, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1584, &x1585, x1540, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1586, &x1587, 0x0, x1583, x1580); + fiat_secp384r1_addcarryx_u32(&x1588, &x1589, x1587, x1581, x1578); + fiat_secp384r1_addcarryx_u32(&x1590, &x1591, x1589, x1579, x1576); + fiat_secp384r1_addcarryx_u32(&x1592, &x1593, x1591, x1577, x1574); + fiat_secp384r1_addcarryx_u32(&x1594, &x1595, x1593, x1575, x1572); + fiat_secp384r1_addcarryx_u32(&x1596, &x1597, x1595, x1573, x1570); + fiat_secp384r1_addcarryx_u32(&x1598, &x1599, x1597, x1571, x1568); + fiat_secp384r1_addcarryx_u32(&x1600, &x1601, x1599, x1569, x1566); + x1602 = (x1601 + x1567); + fiat_secp384r1_addcarryx_u32(&x1603, &x1604, 0x0, x1540, x1584); + fiat_secp384r1_addcarryx_u32(&x1605, &x1606, x1604, x1542, x1585); + fiat_secp384r1_addcarryx_u32(&x1607, &x1608, x1606, x1544, 0x0); + fiat_secp384r1_addcarryx_u32(&x1609, &x1610, x1608, x1546, x1582); + fiat_secp384r1_addcarryx_u32(&x1611, &x1612, x1610, x1548, x1586); + fiat_secp384r1_addcarryx_u32(&x1613, &x1614, x1612, x1550, x1588); + fiat_secp384r1_addcarryx_u32(&x1615, &x1616, x1614, x1552, x1590); + fiat_secp384r1_addcarryx_u32(&x1617, &x1618, x1616, x1554, x1592); + fiat_secp384r1_addcarryx_u32(&x1619, &x1620, x1618, x1556, x1594); + fiat_secp384r1_addcarryx_u32(&x1621, &x1622, x1620, x1558, x1596); + fiat_secp384r1_addcarryx_u32(&x1623, &x1624, x1622, x1560, x1598); + fiat_secp384r1_addcarryx_u32(&x1625, &x1626, x1624, x1562, x1600); + fiat_secp384r1_addcarryx_u32(&x1627, &x1628, x1626, x1564, x1602); + x1629 = ((uint32_t)x1628 + x1565); + fiat_secp384r1_subborrowx_u32(&x1630, &x1631, 0x0, x1605, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1632, &x1633, x1631, x1607, 0x0); + fiat_secp384r1_subborrowx_u32(&x1634, &x1635, x1633, x1609, 0x0); + fiat_secp384r1_subborrowx_u32(&x1636, &x1637, x1635, x1611, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1638, &x1639, x1637, x1613, + UINT32_C(0xfffffffe)); + fiat_secp384r1_subborrowx_u32(&x1640, &x1641, x1639, x1615, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1642, &x1643, x1641, x1617, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1644, &x1645, x1643, x1619, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1646, &x1647, x1645, x1621, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1648, &x1649, x1647, x1623, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1650, &x1651, x1649, x1625, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1652, &x1653, x1651, x1627, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1654, &x1655, x1653, x1629, 0x0); + fiat_secp384r1_cmovznz_u32(&x1656, x1655, x1630, x1605); + fiat_secp384r1_cmovznz_u32(&x1657, x1655, x1632, x1607); + fiat_secp384r1_cmovznz_u32(&x1658, x1655, x1634, x1609); + fiat_secp384r1_cmovznz_u32(&x1659, x1655, x1636, x1611); + fiat_secp384r1_cmovznz_u32(&x1660, x1655, x1638, x1613); + fiat_secp384r1_cmovznz_u32(&x1661, x1655, x1640, x1615); + fiat_secp384r1_cmovznz_u32(&x1662, x1655, x1642, x1617); + fiat_secp384r1_cmovznz_u32(&x1663, x1655, x1644, x1619); + fiat_secp384r1_cmovznz_u32(&x1664, x1655, x1646, x1621); + fiat_secp384r1_cmovznz_u32(&x1665, x1655, x1648, x1623); + fiat_secp384r1_cmovznz_u32(&x1666, x1655, x1650, x1625); + fiat_secp384r1_cmovznz_u32(&x1667, x1655, x1652, x1627); + out1[0] = x1656; + out1[1] = x1657; + out1[2] = x1658; + out1[3] = x1659; + out1[4] = x1660; + out1[5] = x1661; + out1[6] = x1662; + out1[7] = x1663; + out1[8] = x1664; + out1[9] = x1665; + out1[10] = x1666; + out1[11] = x1667; +} + +/* + * The function fiat_secp384r1_add adds two field elements in the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * 0 ≤ eval arg2 < m + * Postconditions: + * eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) + eval (from_montgomery arg2)) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * arg2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + */ +static void +fiat_secp384r1_add(uint32_t out1[12], const uint32_t arg1[12], + const uint32_t arg2[12]) +{ + uint32_t x1; + fiat_secp384r1_uint1 x2; + uint32_t x3; + fiat_secp384r1_uint1 x4; + uint32_t x5; + fiat_secp384r1_uint1 x6; + uint32_t x7; + fiat_secp384r1_uint1 x8; + uint32_t x9; + fiat_secp384r1_uint1 x10; + uint32_t x11; + fiat_secp384r1_uint1 x12; + uint32_t x13; + fiat_secp384r1_uint1 x14; + uint32_t x15; + fiat_secp384r1_uint1 x16; + uint32_t x17; + fiat_secp384r1_uint1 x18; + uint32_t x19; + fiat_secp384r1_uint1 x20; + uint32_t x21; + fiat_secp384r1_uint1 x22; + uint32_t x23; + fiat_secp384r1_uint1 x24; + uint32_t x25; + fiat_secp384r1_uint1 x26; + uint32_t x27; + fiat_secp384r1_uint1 x28; + uint32_t x29; + fiat_secp384r1_uint1 x30; + uint32_t x31; + fiat_secp384r1_uint1 x32; + uint32_t x33; + fiat_secp384r1_uint1 x34; + uint32_t x35; + fiat_secp384r1_uint1 x36; + uint32_t x37; + fiat_secp384r1_uint1 x38; + uint32_t x39; + fiat_secp384r1_uint1 x40; + uint32_t x41; + fiat_secp384r1_uint1 x42; + uint32_t x43; + fiat_secp384r1_uint1 x44; + uint32_t x45; + fiat_secp384r1_uint1 x46; + uint32_t x47; + fiat_secp384r1_uint1 x48; + uint32_t x49; + fiat_secp384r1_uint1 x50; + uint32_t x51; + uint32_t x52; + uint32_t x53; + uint32_t x54; + uint32_t x55; + uint32_t x56; + uint32_t x57; + uint32_t x58; + uint32_t x59; + uint32_t x60; + uint32_t x61; + uint32_t x62; + fiat_secp384r1_addcarryx_u32(&x1, &x2, 0x0, (arg1[0]), (arg2[0])); + fiat_secp384r1_addcarryx_u32(&x3, &x4, x2, (arg1[1]), (arg2[1])); + fiat_secp384r1_addcarryx_u32(&x5, &x6, x4, (arg1[2]), (arg2[2])); + fiat_secp384r1_addcarryx_u32(&x7, &x8, x6, (arg1[3]), (arg2[3])); + fiat_secp384r1_addcarryx_u32(&x9, &x10, x8, (arg1[4]), (arg2[4])); + fiat_secp384r1_addcarryx_u32(&x11, &x12, x10, (arg1[5]), (arg2[5])); + fiat_secp384r1_addcarryx_u32(&x13, &x14, x12, (arg1[6]), (arg2[6])); + fiat_secp384r1_addcarryx_u32(&x15, &x16, x14, (arg1[7]), (arg2[7])); + fiat_secp384r1_addcarryx_u32(&x17, &x18, x16, (arg1[8]), (arg2[8])); + fiat_secp384r1_addcarryx_u32(&x19, &x20, x18, (arg1[9]), (arg2[9])); + fiat_secp384r1_addcarryx_u32(&x21, &x22, x20, (arg1[10]), (arg2[10])); + fiat_secp384r1_addcarryx_u32(&x23, &x24, x22, (arg1[11]), (arg2[11])); + fiat_secp384r1_subborrowx_u32(&x25, &x26, 0x0, x1, UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x27, &x28, x26, x3, 0x0); + fiat_secp384r1_subborrowx_u32(&x29, &x30, x28, x5, 0x0); + fiat_secp384r1_subborrowx_u32(&x31, &x32, x30, x7, UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x33, &x34, x32, x9, UINT32_C(0xfffffffe)); + fiat_secp384r1_subborrowx_u32(&x35, &x36, x34, x11, UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x37, &x38, x36, x13, UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x39, &x40, x38, x15, UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x41, &x42, x40, x17, UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x43, &x44, x42, x19, UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x45, &x46, x44, x21, UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x47, &x48, x46, x23, UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x49, &x50, x48, x24, 0x0); + fiat_secp384r1_cmovznz_u32(&x51, x50, x25, x1); + fiat_secp384r1_cmovznz_u32(&x52, x50, x27, x3); + fiat_secp384r1_cmovznz_u32(&x53, x50, x29, x5); + fiat_secp384r1_cmovznz_u32(&x54, x50, x31, x7); + fiat_secp384r1_cmovznz_u32(&x55, x50, x33, x9); + fiat_secp384r1_cmovznz_u32(&x56, x50, x35, x11); + fiat_secp384r1_cmovznz_u32(&x57, x50, x37, x13); + fiat_secp384r1_cmovznz_u32(&x58, x50, x39, x15); + fiat_secp384r1_cmovznz_u32(&x59, x50, x41, x17); + fiat_secp384r1_cmovznz_u32(&x60, x50, x43, x19); + fiat_secp384r1_cmovznz_u32(&x61, x50, x45, x21); + fiat_secp384r1_cmovznz_u32(&x62, x50, x47, x23); + out1[0] = x51; + out1[1] = x52; + out1[2] = x53; + out1[3] = x54; + out1[4] = x55; + out1[5] = x56; + out1[6] = x57; + out1[7] = x58; + out1[8] = x59; + out1[9] = x60; + out1[10] = x61; + out1[11] = x62; +} + +/* + * The function fiat_secp384r1_sub subtracts two field elements in the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * 0 ≤ eval arg2 < m + * Postconditions: + * eval (from_montgomery out1) mod m = (eval (from_montgomery arg1) - eval (from_montgomery arg2)) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * arg2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + */ +static void +fiat_secp384r1_sub(uint32_t out1[12], const uint32_t arg1[12], + const uint32_t arg2[12]) +{ + uint32_t x1; + fiat_secp384r1_uint1 x2; + uint32_t x3; + fiat_secp384r1_uint1 x4; + uint32_t x5; + fiat_secp384r1_uint1 x6; + uint32_t x7; + fiat_secp384r1_uint1 x8; + uint32_t x9; + fiat_secp384r1_uint1 x10; + uint32_t x11; + fiat_secp384r1_uint1 x12; + uint32_t x13; + fiat_secp384r1_uint1 x14; + uint32_t x15; + fiat_secp384r1_uint1 x16; + uint32_t x17; + fiat_secp384r1_uint1 x18; + uint32_t x19; + fiat_secp384r1_uint1 x20; + uint32_t x21; + fiat_secp384r1_uint1 x22; + uint32_t x23; + fiat_secp384r1_uint1 x24; + uint32_t x25; + uint32_t x26; + fiat_secp384r1_uint1 x27; + uint32_t x28; + fiat_secp384r1_uint1 x29; + uint32_t x30; + fiat_secp384r1_uint1 x31; + uint32_t x32; + fiat_secp384r1_uint1 x33; + uint32_t x34; + fiat_secp384r1_uint1 x35; + uint32_t x36; + fiat_secp384r1_uint1 x37; + uint32_t x38; + fiat_secp384r1_uint1 x39; + uint32_t x40; + fiat_secp384r1_uint1 x41; + uint32_t x42; + fiat_secp384r1_uint1 x43; + uint32_t x44; + fiat_secp384r1_uint1 x45; + uint32_t x46; + fiat_secp384r1_uint1 x47; + uint32_t x48; + fiat_secp384r1_uint1 x49; + fiat_secp384r1_subborrowx_u32(&x1, &x2, 0x0, (arg1[0]), (arg2[0])); + fiat_secp384r1_subborrowx_u32(&x3, &x4, x2, (arg1[1]), (arg2[1])); + fiat_secp384r1_subborrowx_u32(&x5, &x6, x4, (arg1[2]), (arg2[2])); + fiat_secp384r1_subborrowx_u32(&x7, &x8, x6, (arg1[3]), (arg2[3])); + fiat_secp384r1_subborrowx_u32(&x9, &x10, x8, (arg1[4]), (arg2[4])); + fiat_secp384r1_subborrowx_u32(&x11, &x12, x10, (arg1[5]), (arg2[5])); + fiat_secp384r1_subborrowx_u32(&x13, &x14, x12, (arg1[6]), (arg2[6])); + fiat_secp384r1_subborrowx_u32(&x15, &x16, x14, (arg1[7]), (arg2[7])); + fiat_secp384r1_subborrowx_u32(&x17, &x18, x16, (arg1[8]), (arg2[8])); + fiat_secp384r1_subborrowx_u32(&x19, &x20, x18, (arg1[9]), (arg2[9])); + fiat_secp384r1_subborrowx_u32(&x21, &x22, x20, (arg1[10]), (arg2[10])); + fiat_secp384r1_subborrowx_u32(&x23, &x24, x22, (arg1[11]), (arg2[11])); + fiat_secp384r1_cmovznz_u32(&x25, x24, 0x0, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x26, &x27, 0x0, x1, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x28, &x29, x27, x3, 0x0); + fiat_secp384r1_addcarryx_u32(&x30, &x31, x29, x5, 0x0); + fiat_secp384r1_addcarryx_u32(&x32, &x33, x31, x7, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x34, &x35, x33, x9, + (x25 & UINT32_C(0xfffffffe))); + fiat_secp384r1_addcarryx_u32(&x36, &x37, x35, x11, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x38, &x39, x37, x13, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x40, &x41, x39, x15, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x42, &x43, x41, x17, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x44, &x45, x43, x19, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x46, &x47, x45, x21, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x48, &x49, x47, x23, + (x25 & UINT32_C(0xffffffff))); + out1[0] = x26; + out1[1] = x28; + out1[2] = x30; + out1[3] = x32; + out1[4] = x34; + out1[5] = x36; + out1[6] = x38; + out1[7] = x40; + out1[8] = x42; + out1[9] = x44; + out1[10] = x46; + out1[11] = x48; +} + +/* + * The function fiat_secp384r1_opp negates a field element in the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * eval (from_montgomery out1) mod m = -eval (from_montgomery arg1) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + */ +static void +fiat_secp384r1_opp(uint32_t out1[12], const uint32_t arg1[12]) +{ + uint32_t x1; + fiat_secp384r1_uint1 x2; + uint32_t x3; + fiat_secp384r1_uint1 x4; + uint32_t x5; + fiat_secp384r1_uint1 x6; + uint32_t x7; + fiat_secp384r1_uint1 x8; + uint32_t x9; + fiat_secp384r1_uint1 x10; + uint32_t x11; + fiat_secp384r1_uint1 x12; + uint32_t x13; + fiat_secp384r1_uint1 x14; + uint32_t x15; + fiat_secp384r1_uint1 x16; + uint32_t x17; + fiat_secp384r1_uint1 x18; + uint32_t x19; + fiat_secp384r1_uint1 x20; + uint32_t x21; + fiat_secp384r1_uint1 x22; + uint32_t x23; + fiat_secp384r1_uint1 x24; + uint32_t x25; + uint32_t x26; + fiat_secp384r1_uint1 x27; + uint32_t x28; + fiat_secp384r1_uint1 x29; + uint32_t x30; + fiat_secp384r1_uint1 x31; + uint32_t x32; + fiat_secp384r1_uint1 x33; + uint32_t x34; + fiat_secp384r1_uint1 x35; + uint32_t x36; + fiat_secp384r1_uint1 x37; + uint32_t x38; + fiat_secp384r1_uint1 x39; + uint32_t x40; + fiat_secp384r1_uint1 x41; + uint32_t x42; + fiat_secp384r1_uint1 x43; + uint32_t x44; + fiat_secp384r1_uint1 x45; + uint32_t x46; + fiat_secp384r1_uint1 x47; + uint32_t x48; + fiat_secp384r1_uint1 x49; + fiat_secp384r1_subborrowx_u32(&x1, &x2, 0x0, 0x0, (arg1[0])); + fiat_secp384r1_subborrowx_u32(&x3, &x4, x2, 0x0, (arg1[1])); + fiat_secp384r1_subborrowx_u32(&x5, &x6, x4, 0x0, (arg1[2])); + fiat_secp384r1_subborrowx_u32(&x7, &x8, x6, 0x0, (arg1[3])); + fiat_secp384r1_subborrowx_u32(&x9, &x10, x8, 0x0, (arg1[4])); + fiat_secp384r1_subborrowx_u32(&x11, &x12, x10, 0x0, (arg1[5])); + fiat_secp384r1_subborrowx_u32(&x13, &x14, x12, 0x0, (arg1[6])); + fiat_secp384r1_subborrowx_u32(&x15, &x16, x14, 0x0, (arg1[7])); + fiat_secp384r1_subborrowx_u32(&x17, &x18, x16, 0x0, (arg1[8])); + fiat_secp384r1_subborrowx_u32(&x19, &x20, x18, 0x0, (arg1[9])); + fiat_secp384r1_subborrowx_u32(&x21, &x22, x20, 0x0, (arg1[10])); + fiat_secp384r1_subborrowx_u32(&x23, &x24, x22, 0x0, (arg1[11])); + fiat_secp384r1_cmovznz_u32(&x25, x24, 0x0, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x26, &x27, 0x0, x1, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x28, &x29, x27, x3, 0x0); + fiat_secp384r1_addcarryx_u32(&x30, &x31, x29, x5, 0x0); + fiat_secp384r1_addcarryx_u32(&x32, &x33, x31, x7, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x34, &x35, x33, x9, + (x25 & UINT32_C(0xfffffffe))); + fiat_secp384r1_addcarryx_u32(&x36, &x37, x35, x11, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x38, &x39, x37, x13, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x40, &x41, x39, x15, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x42, &x43, x41, x17, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x44, &x45, x43, x19, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x46, &x47, x45, x21, + (x25 & UINT32_C(0xffffffff))); + fiat_secp384r1_addcarryx_u32(&x48, &x49, x47, x23, + (x25 & UINT32_C(0xffffffff))); + out1[0] = x26; + out1[1] = x28; + out1[2] = x30; + out1[3] = x32; + out1[4] = x34; + out1[5] = x36; + out1[6] = x38; + out1[7] = x40; + out1[8] = x42; + out1[9] = x44; + out1[10] = x46; + out1[11] = x48; +} + +/* + * The function fiat_secp384r1_from_montgomery translates a field element out of the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * eval out1 mod m = (eval arg1 * ((2^32)⁻¹ mod m)^12) mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + */ +static void +fiat_secp384r1_from_montgomery(uint32_t out1[12], + const uint32_t arg1[12]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint32_t x16; + uint32_t x17; + uint32_t x18; + uint32_t x19; + uint32_t x20; + uint32_t x21; + uint32_t x22; + fiat_secp384r1_uint1 x23; + uint32_t x24; + fiat_secp384r1_uint1 x25; + uint32_t x26; + fiat_secp384r1_uint1 x27; + uint32_t x28; + fiat_secp384r1_uint1 x29; + uint32_t x30; + fiat_secp384r1_uint1 x31; + uint32_t x32; + fiat_secp384r1_uint1 x33; + uint32_t x34; + fiat_secp384r1_uint1 x35; + uint32_t x36; + fiat_secp384r1_uint1 x37; + uint32_t x38; + fiat_secp384r1_uint1 x39; + uint32_t x40; + fiat_secp384r1_uint1 x41; + uint32_t x42; + uint32_t x43; + uint32_t x44; + uint32_t x45; + uint32_t x46; + uint32_t x47; + uint32_t x48; + uint32_t x49; + uint32_t x50; + uint32_t x51; + uint32_t x52; + uint32_t x53; + uint32_t x54; + uint32_t x55; + uint32_t x56; + uint32_t x57; + uint32_t x58; + uint32_t x59; + uint32_t x60; + uint32_t x61; + uint32_t x62; + fiat_secp384r1_uint1 x63; + uint32_t x64; + fiat_secp384r1_uint1 x65; + uint32_t x66; + fiat_secp384r1_uint1 x67; + uint32_t x68; + fiat_secp384r1_uint1 x69; + uint32_t x70; + fiat_secp384r1_uint1 x71; + uint32_t x72; + fiat_secp384r1_uint1 x73; + uint32_t x74; + fiat_secp384r1_uint1 x75; + uint32_t x76; + fiat_secp384r1_uint1 x77; + uint32_t x78; + fiat_secp384r1_uint1 x79; + uint32_t x80; + fiat_secp384r1_uint1 x81; + uint32_t x82; + fiat_secp384r1_uint1 x83; + uint32_t x84; + fiat_secp384r1_uint1 x85; + uint32_t x86; + fiat_secp384r1_uint1 x87; + uint32_t x88; + fiat_secp384r1_uint1 x89; + uint32_t x90; + fiat_secp384r1_uint1 x91; + uint32_t x92; + fiat_secp384r1_uint1 x93; + uint32_t x94; + fiat_secp384r1_uint1 x95; + uint32_t x96; + fiat_secp384r1_uint1 x97; + uint32_t x98; + fiat_secp384r1_uint1 x99; + uint32_t x100; + fiat_secp384r1_uint1 x101; + uint32_t x102; + fiat_secp384r1_uint1 x103; + uint32_t x104; + fiat_secp384r1_uint1 x105; + uint32_t x106; + fiat_secp384r1_uint1 x107; + uint32_t x108; + fiat_secp384r1_uint1 x109; + uint32_t x110; + fiat_secp384r1_uint1 x111; + uint32_t x112; + fiat_secp384r1_uint1 x113; + uint32_t x114; + fiat_secp384r1_uint1 x115; + uint32_t x116; + fiat_secp384r1_uint1 x117; + uint32_t x118; + fiat_secp384r1_uint1 x119; + uint32_t x120; + fiat_secp384r1_uint1 x121; + uint32_t x122; + fiat_secp384r1_uint1 x123; + uint32_t x124; + fiat_secp384r1_uint1 x125; + uint32_t x126; + fiat_secp384r1_uint1 x127; + uint32_t x128; + uint32_t x129; + uint32_t x130; + uint32_t x131; + uint32_t x132; + uint32_t x133; + uint32_t x134; + uint32_t x135; + uint32_t x136; + uint32_t x137; + uint32_t x138; + uint32_t x139; + uint32_t x140; + uint32_t x141; + uint32_t x142; + uint32_t x143; + uint32_t x144; + uint32_t x145; + uint32_t x146; + uint32_t x147; + uint32_t x148; + fiat_secp384r1_uint1 x149; + uint32_t x150; + fiat_secp384r1_uint1 x151; + uint32_t x152; + fiat_secp384r1_uint1 x153; + uint32_t x154; + fiat_secp384r1_uint1 x155; + uint32_t x156; + fiat_secp384r1_uint1 x157; + uint32_t x158; + fiat_secp384r1_uint1 x159; + uint32_t x160; + fiat_secp384r1_uint1 x161; + uint32_t x162; + fiat_secp384r1_uint1 x163; + uint32_t x164; + fiat_secp384r1_uint1 x165; + uint32_t x166; + fiat_secp384r1_uint1 x167; + uint32_t x168; + fiat_secp384r1_uint1 x169; + uint32_t x170; + fiat_secp384r1_uint1 x171; + uint32_t x172; + fiat_secp384r1_uint1 x173; + uint32_t x174; + fiat_secp384r1_uint1 x175; + uint32_t x176; + fiat_secp384r1_uint1 x177; + uint32_t x178; + fiat_secp384r1_uint1 x179; + uint32_t x180; + fiat_secp384r1_uint1 x181; + uint32_t x182; + fiat_secp384r1_uint1 x183; + uint32_t x184; + fiat_secp384r1_uint1 x185; + uint32_t x186; + fiat_secp384r1_uint1 x187; + uint32_t x188; + fiat_secp384r1_uint1 x189; + uint32_t x190; + fiat_secp384r1_uint1 x191; + uint32_t x192; + fiat_secp384r1_uint1 x193; + uint32_t x194; + fiat_secp384r1_uint1 x195; + uint32_t x196; + fiat_secp384r1_uint1 x197; + uint32_t x198; + fiat_secp384r1_uint1 x199; + uint32_t x200; + fiat_secp384r1_uint1 x201; + uint32_t x202; + fiat_secp384r1_uint1 x203; + uint32_t x204; + fiat_secp384r1_uint1 x205; + uint32_t x206; + fiat_secp384r1_uint1 x207; + uint32_t x208; + fiat_secp384r1_uint1 x209; + uint32_t x210; + fiat_secp384r1_uint1 x211; + uint32_t x212; + fiat_secp384r1_uint1 x213; + uint32_t x214; + uint32_t x215; + uint32_t x216; + uint32_t x217; + uint32_t x218; + uint32_t x219; + uint32_t x220; + uint32_t x221; + uint32_t x222; + uint32_t x223; + uint32_t x224; + uint32_t x225; + uint32_t x226; + uint32_t x227; + uint32_t x228; + uint32_t x229; + uint32_t x230; + uint32_t x231; + uint32_t x232; + uint32_t x233; + uint32_t x234; + fiat_secp384r1_uint1 x235; + uint32_t x236; + fiat_secp384r1_uint1 x237; + uint32_t x238; + fiat_secp384r1_uint1 x239; + uint32_t x240; + fiat_secp384r1_uint1 x241; + uint32_t x242; + fiat_secp384r1_uint1 x243; + uint32_t x244; + fiat_secp384r1_uint1 x245; + uint32_t x246; + fiat_secp384r1_uint1 x247; + uint32_t x248; + fiat_secp384r1_uint1 x249; + uint32_t x250; + fiat_secp384r1_uint1 x251; + uint32_t x252; + fiat_secp384r1_uint1 x253; + uint32_t x254; + fiat_secp384r1_uint1 x255; + uint32_t x256; + fiat_secp384r1_uint1 x257; + uint32_t x258; + fiat_secp384r1_uint1 x259; + uint32_t x260; + fiat_secp384r1_uint1 x261; + uint32_t x262; + fiat_secp384r1_uint1 x263; + uint32_t x264; + fiat_secp384r1_uint1 x265; + uint32_t x266; + fiat_secp384r1_uint1 x267; + uint32_t x268; + fiat_secp384r1_uint1 x269; + uint32_t x270; + fiat_secp384r1_uint1 x271; + uint32_t x272; + fiat_secp384r1_uint1 x273; + uint32_t x274; + fiat_secp384r1_uint1 x275; + uint32_t x276; + fiat_secp384r1_uint1 x277; + uint32_t x278; + fiat_secp384r1_uint1 x279; + uint32_t x280; + fiat_secp384r1_uint1 x281; + uint32_t x282; + fiat_secp384r1_uint1 x283; + uint32_t x284; + fiat_secp384r1_uint1 x285; + uint32_t x286; + fiat_secp384r1_uint1 x287; + uint32_t x288; + fiat_secp384r1_uint1 x289; + uint32_t x290; + fiat_secp384r1_uint1 x291; + uint32_t x292; + fiat_secp384r1_uint1 x293; + uint32_t x294; + fiat_secp384r1_uint1 x295; + uint32_t x296; + fiat_secp384r1_uint1 x297; + uint32_t x298; + fiat_secp384r1_uint1 x299; + uint32_t x300; + uint32_t x301; + uint32_t x302; + uint32_t x303; + uint32_t x304; + uint32_t x305; + uint32_t x306; + uint32_t x307; + uint32_t x308; + uint32_t x309; + uint32_t x310; + uint32_t x311; + uint32_t x312; + uint32_t x313; + uint32_t x314; + uint32_t x315; + uint32_t x316; + uint32_t x317; + uint32_t x318; + uint32_t x319; + uint32_t x320; + fiat_secp384r1_uint1 x321; + uint32_t x322; + fiat_secp384r1_uint1 x323; + uint32_t x324; + fiat_secp384r1_uint1 x325; + uint32_t x326; + fiat_secp384r1_uint1 x327; + uint32_t x328; + fiat_secp384r1_uint1 x329; + uint32_t x330; + fiat_secp384r1_uint1 x331; + uint32_t x332; + fiat_secp384r1_uint1 x333; + uint32_t x334; + fiat_secp384r1_uint1 x335; + uint32_t x336; + fiat_secp384r1_uint1 x337; + uint32_t x338; + fiat_secp384r1_uint1 x339; + uint32_t x340; + fiat_secp384r1_uint1 x341; + uint32_t x342; + fiat_secp384r1_uint1 x343; + uint32_t x344; + fiat_secp384r1_uint1 x345; + uint32_t x346; + fiat_secp384r1_uint1 x347; + uint32_t x348; + fiat_secp384r1_uint1 x349; + uint32_t x350; + fiat_secp384r1_uint1 x351; + uint32_t x352; + fiat_secp384r1_uint1 x353; + uint32_t x354; + fiat_secp384r1_uint1 x355; + uint32_t x356; + fiat_secp384r1_uint1 x357; + uint32_t x358; + fiat_secp384r1_uint1 x359; + uint32_t x360; + fiat_secp384r1_uint1 x361; + uint32_t x362; + fiat_secp384r1_uint1 x363; + uint32_t x364; + fiat_secp384r1_uint1 x365; + uint32_t x366; + fiat_secp384r1_uint1 x367; + uint32_t x368; + fiat_secp384r1_uint1 x369; + uint32_t x370; + fiat_secp384r1_uint1 x371; + uint32_t x372; + fiat_secp384r1_uint1 x373; + uint32_t x374; + fiat_secp384r1_uint1 x375; + uint32_t x376; + fiat_secp384r1_uint1 x377; + uint32_t x378; + fiat_secp384r1_uint1 x379; + uint32_t x380; + fiat_secp384r1_uint1 x381; + uint32_t x382; + fiat_secp384r1_uint1 x383; + uint32_t x384; + fiat_secp384r1_uint1 x385; + uint32_t x386; + uint32_t x387; + uint32_t x388; + uint32_t x389; + uint32_t x390; + uint32_t x391; + uint32_t x392; + uint32_t x393; + uint32_t x394; + uint32_t x395; + uint32_t x396; + uint32_t x397; + uint32_t x398; + uint32_t x399; + uint32_t x400; + uint32_t x401; + uint32_t x402; + uint32_t x403; + uint32_t x404; + uint32_t x405; + uint32_t x406; + fiat_secp384r1_uint1 x407; + uint32_t x408; + fiat_secp384r1_uint1 x409; + uint32_t x410; + fiat_secp384r1_uint1 x411; + uint32_t x412; + fiat_secp384r1_uint1 x413; + uint32_t x414; + fiat_secp384r1_uint1 x415; + uint32_t x416; + fiat_secp384r1_uint1 x417; + uint32_t x418; + fiat_secp384r1_uint1 x419; + uint32_t x420; + fiat_secp384r1_uint1 x421; + uint32_t x422; + fiat_secp384r1_uint1 x423; + uint32_t x424; + fiat_secp384r1_uint1 x425; + uint32_t x426; + fiat_secp384r1_uint1 x427; + uint32_t x428; + fiat_secp384r1_uint1 x429; + uint32_t x430; + fiat_secp384r1_uint1 x431; + uint32_t x432; + fiat_secp384r1_uint1 x433; + uint32_t x434; + fiat_secp384r1_uint1 x435; + uint32_t x436; + fiat_secp384r1_uint1 x437; + uint32_t x438; + fiat_secp384r1_uint1 x439; + uint32_t x440; + fiat_secp384r1_uint1 x441; + uint32_t x442; + fiat_secp384r1_uint1 x443; + uint32_t x444; + fiat_secp384r1_uint1 x445; + uint32_t x446; + fiat_secp384r1_uint1 x447; + uint32_t x448; + fiat_secp384r1_uint1 x449; + uint32_t x450; + fiat_secp384r1_uint1 x451; + uint32_t x452; + fiat_secp384r1_uint1 x453; + uint32_t x454; + fiat_secp384r1_uint1 x455; + uint32_t x456; + fiat_secp384r1_uint1 x457; + uint32_t x458; + fiat_secp384r1_uint1 x459; + uint32_t x460; + fiat_secp384r1_uint1 x461; + uint32_t x462; + fiat_secp384r1_uint1 x463; + uint32_t x464; + fiat_secp384r1_uint1 x465; + uint32_t x466; + fiat_secp384r1_uint1 x467; + uint32_t x468; + fiat_secp384r1_uint1 x469; + uint32_t x470; + fiat_secp384r1_uint1 x471; + uint32_t x472; + uint32_t x473; + uint32_t x474; + uint32_t x475; + uint32_t x476; + uint32_t x477; + uint32_t x478; + uint32_t x479; + uint32_t x480; + uint32_t x481; + uint32_t x482; + uint32_t x483; + uint32_t x484; + uint32_t x485; + uint32_t x486; + uint32_t x487; + uint32_t x488; + uint32_t x489; + uint32_t x490; + uint32_t x491; + uint32_t x492; + fiat_secp384r1_uint1 x493; + uint32_t x494; + fiat_secp384r1_uint1 x495; + uint32_t x496; + fiat_secp384r1_uint1 x497; + uint32_t x498; + fiat_secp384r1_uint1 x499; + uint32_t x500; + fiat_secp384r1_uint1 x501; + uint32_t x502; + fiat_secp384r1_uint1 x503; + uint32_t x504; + fiat_secp384r1_uint1 x505; + uint32_t x506; + fiat_secp384r1_uint1 x507; + uint32_t x508; + fiat_secp384r1_uint1 x509; + uint32_t x510; + fiat_secp384r1_uint1 x511; + uint32_t x512; + fiat_secp384r1_uint1 x513; + uint32_t x514; + fiat_secp384r1_uint1 x515; + uint32_t x516; + fiat_secp384r1_uint1 x517; + uint32_t x518; + fiat_secp384r1_uint1 x519; + uint32_t x520; + fiat_secp384r1_uint1 x521; + uint32_t x522; + fiat_secp384r1_uint1 x523; + uint32_t x524; + fiat_secp384r1_uint1 x525; + uint32_t x526; + fiat_secp384r1_uint1 x527; + uint32_t x528; + fiat_secp384r1_uint1 x529; + uint32_t x530; + fiat_secp384r1_uint1 x531; + uint32_t x532; + fiat_secp384r1_uint1 x533; + uint32_t x534; + fiat_secp384r1_uint1 x535; + uint32_t x536; + fiat_secp384r1_uint1 x537; + uint32_t x538; + fiat_secp384r1_uint1 x539; + uint32_t x540; + fiat_secp384r1_uint1 x541; + uint32_t x542; + fiat_secp384r1_uint1 x543; + uint32_t x544; + fiat_secp384r1_uint1 x545; + uint32_t x546; + fiat_secp384r1_uint1 x547; + uint32_t x548; + fiat_secp384r1_uint1 x549; + uint32_t x550; + fiat_secp384r1_uint1 x551; + uint32_t x552; + fiat_secp384r1_uint1 x553; + uint32_t x554; + fiat_secp384r1_uint1 x555; + uint32_t x556; + fiat_secp384r1_uint1 x557; + uint32_t x558; + uint32_t x559; + uint32_t x560; + uint32_t x561; + uint32_t x562; + uint32_t x563; + uint32_t x564; + uint32_t x565; + uint32_t x566; + uint32_t x567; + uint32_t x568; + uint32_t x569; + uint32_t x570; + uint32_t x571; + uint32_t x572; + uint32_t x573; + uint32_t x574; + uint32_t x575; + uint32_t x576; + uint32_t x577; + uint32_t x578; + fiat_secp384r1_uint1 x579; + uint32_t x580; + fiat_secp384r1_uint1 x581; + uint32_t x582; + fiat_secp384r1_uint1 x583; + uint32_t x584; + fiat_secp384r1_uint1 x585; + uint32_t x586; + fiat_secp384r1_uint1 x587; + uint32_t x588; + fiat_secp384r1_uint1 x589; + uint32_t x590; + fiat_secp384r1_uint1 x591; + uint32_t x592; + fiat_secp384r1_uint1 x593; + uint32_t x594; + fiat_secp384r1_uint1 x595; + uint32_t x596; + fiat_secp384r1_uint1 x597; + uint32_t x598; + fiat_secp384r1_uint1 x599; + uint32_t x600; + fiat_secp384r1_uint1 x601; + uint32_t x602; + fiat_secp384r1_uint1 x603; + uint32_t x604; + fiat_secp384r1_uint1 x605; + uint32_t x606; + fiat_secp384r1_uint1 x607; + uint32_t x608; + fiat_secp384r1_uint1 x609; + uint32_t x610; + fiat_secp384r1_uint1 x611; + uint32_t x612; + fiat_secp384r1_uint1 x613; + uint32_t x614; + fiat_secp384r1_uint1 x615; + uint32_t x616; + fiat_secp384r1_uint1 x617; + uint32_t x618; + fiat_secp384r1_uint1 x619; + uint32_t x620; + fiat_secp384r1_uint1 x621; + uint32_t x622; + fiat_secp384r1_uint1 x623; + uint32_t x624; + fiat_secp384r1_uint1 x625; + uint32_t x626; + fiat_secp384r1_uint1 x627; + uint32_t x628; + fiat_secp384r1_uint1 x629; + uint32_t x630; + fiat_secp384r1_uint1 x631; + uint32_t x632; + fiat_secp384r1_uint1 x633; + uint32_t x634; + fiat_secp384r1_uint1 x635; + uint32_t x636; + fiat_secp384r1_uint1 x637; + uint32_t x638; + fiat_secp384r1_uint1 x639; + uint32_t x640; + fiat_secp384r1_uint1 x641; + uint32_t x642; + fiat_secp384r1_uint1 x643; + uint32_t x644; + uint32_t x645; + uint32_t x646; + uint32_t x647; + uint32_t x648; + uint32_t x649; + uint32_t x650; + uint32_t x651; + uint32_t x652; + uint32_t x653; + uint32_t x654; + uint32_t x655; + uint32_t x656; + uint32_t x657; + uint32_t x658; + uint32_t x659; + uint32_t x660; + uint32_t x661; + uint32_t x662; + uint32_t x663; + uint32_t x664; + fiat_secp384r1_uint1 x665; + uint32_t x666; + fiat_secp384r1_uint1 x667; + uint32_t x668; + fiat_secp384r1_uint1 x669; + uint32_t x670; + fiat_secp384r1_uint1 x671; + uint32_t x672; + fiat_secp384r1_uint1 x673; + uint32_t x674; + fiat_secp384r1_uint1 x675; + uint32_t x676; + fiat_secp384r1_uint1 x677; + uint32_t x678; + fiat_secp384r1_uint1 x679; + uint32_t x680; + fiat_secp384r1_uint1 x681; + uint32_t x682; + fiat_secp384r1_uint1 x683; + uint32_t x684; + fiat_secp384r1_uint1 x685; + uint32_t x686; + fiat_secp384r1_uint1 x687; + uint32_t x688; + fiat_secp384r1_uint1 x689; + uint32_t x690; + fiat_secp384r1_uint1 x691; + uint32_t x692; + fiat_secp384r1_uint1 x693; + uint32_t x694; + fiat_secp384r1_uint1 x695; + uint32_t x696; + fiat_secp384r1_uint1 x697; + uint32_t x698; + fiat_secp384r1_uint1 x699; + uint32_t x700; + fiat_secp384r1_uint1 x701; + uint32_t x702; + fiat_secp384r1_uint1 x703; + uint32_t x704; + fiat_secp384r1_uint1 x705; + uint32_t x706; + fiat_secp384r1_uint1 x707; + uint32_t x708; + fiat_secp384r1_uint1 x709; + uint32_t x710; + fiat_secp384r1_uint1 x711; + uint32_t x712; + fiat_secp384r1_uint1 x713; + uint32_t x714; + fiat_secp384r1_uint1 x715; + uint32_t x716; + fiat_secp384r1_uint1 x717; + uint32_t x718; + fiat_secp384r1_uint1 x719; + uint32_t x720; + fiat_secp384r1_uint1 x721; + uint32_t x722; + fiat_secp384r1_uint1 x723; + uint32_t x724; + fiat_secp384r1_uint1 x725; + uint32_t x726; + fiat_secp384r1_uint1 x727; + uint32_t x728; + fiat_secp384r1_uint1 x729; + uint32_t x730; + uint32_t x731; + uint32_t x732; + uint32_t x733; + uint32_t x734; + uint32_t x735; + uint32_t x736; + uint32_t x737; + uint32_t x738; + uint32_t x739; + uint32_t x740; + uint32_t x741; + uint32_t x742; + uint32_t x743; + uint32_t x744; + uint32_t x745; + uint32_t x746; + uint32_t x747; + uint32_t x748; + uint32_t x749; + uint32_t x750; + fiat_secp384r1_uint1 x751; + uint32_t x752; + fiat_secp384r1_uint1 x753; + uint32_t x754; + fiat_secp384r1_uint1 x755; + uint32_t x756; + fiat_secp384r1_uint1 x757; + uint32_t x758; + fiat_secp384r1_uint1 x759; + uint32_t x760; + fiat_secp384r1_uint1 x761; + uint32_t x762; + fiat_secp384r1_uint1 x763; + uint32_t x764; + fiat_secp384r1_uint1 x765; + uint32_t x766; + fiat_secp384r1_uint1 x767; + uint32_t x768; + fiat_secp384r1_uint1 x769; + uint32_t x770; + fiat_secp384r1_uint1 x771; + uint32_t x772; + fiat_secp384r1_uint1 x773; + uint32_t x774; + fiat_secp384r1_uint1 x775; + uint32_t x776; + fiat_secp384r1_uint1 x777; + uint32_t x778; + fiat_secp384r1_uint1 x779; + uint32_t x780; + fiat_secp384r1_uint1 x781; + uint32_t x782; + fiat_secp384r1_uint1 x783; + uint32_t x784; + fiat_secp384r1_uint1 x785; + uint32_t x786; + fiat_secp384r1_uint1 x787; + uint32_t x788; + fiat_secp384r1_uint1 x789; + uint32_t x790; + fiat_secp384r1_uint1 x791; + uint32_t x792; + fiat_secp384r1_uint1 x793; + uint32_t x794; + fiat_secp384r1_uint1 x795; + uint32_t x796; + fiat_secp384r1_uint1 x797; + uint32_t x798; + fiat_secp384r1_uint1 x799; + uint32_t x800; + fiat_secp384r1_uint1 x801; + uint32_t x802; + fiat_secp384r1_uint1 x803; + uint32_t x804; + fiat_secp384r1_uint1 x805; + uint32_t x806; + fiat_secp384r1_uint1 x807; + uint32_t x808; + fiat_secp384r1_uint1 x809; + uint32_t x810; + fiat_secp384r1_uint1 x811; + uint32_t x812; + fiat_secp384r1_uint1 x813; + uint32_t x814; + fiat_secp384r1_uint1 x815; + uint32_t x816; + uint32_t x817; + uint32_t x818; + uint32_t x819; + uint32_t x820; + uint32_t x821; + uint32_t x822; + uint32_t x823; + uint32_t x824; + uint32_t x825; + uint32_t x826; + uint32_t x827; + uint32_t x828; + uint32_t x829; + uint32_t x830; + uint32_t x831; + uint32_t x832; + uint32_t x833; + uint32_t x834; + uint32_t x835; + uint32_t x836; + fiat_secp384r1_uint1 x837; + uint32_t x838; + fiat_secp384r1_uint1 x839; + uint32_t x840; + fiat_secp384r1_uint1 x841; + uint32_t x842; + fiat_secp384r1_uint1 x843; + uint32_t x844; + fiat_secp384r1_uint1 x845; + uint32_t x846; + fiat_secp384r1_uint1 x847; + uint32_t x848; + fiat_secp384r1_uint1 x849; + uint32_t x850; + fiat_secp384r1_uint1 x851; + uint32_t x852; + fiat_secp384r1_uint1 x853; + uint32_t x854; + fiat_secp384r1_uint1 x855; + uint32_t x856; + fiat_secp384r1_uint1 x857; + uint32_t x858; + fiat_secp384r1_uint1 x859; + uint32_t x860; + fiat_secp384r1_uint1 x861; + uint32_t x862; + fiat_secp384r1_uint1 x863; + uint32_t x864; + fiat_secp384r1_uint1 x865; + uint32_t x866; + fiat_secp384r1_uint1 x867; + uint32_t x868; + fiat_secp384r1_uint1 x869; + uint32_t x870; + fiat_secp384r1_uint1 x871; + uint32_t x872; + fiat_secp384r1_uint1 x873; + uint32_t x874; + fiat_secp384r1_uint1 x875; + uint32_t x876; + fiat_secp384r1_uint1 x877; + uint32_t x878; + fiat_secp384r1_uint1 x879; + uint32_t x880; + fiat_secp384r1_uint1 x881; + uint32_t x882; + fiat_secp384r1_uint1 x883; + uint32_t x884; + fiat_secp384r1_uint1 x885; + uint32_t x886; + fiat_secp384r1_uint1 x887; + uint32_t x888; + fiat_secp384r1_uint1 x889; + uint32_t x890; + fiat_secp384r1_uint1 x891; + uint32_t x892; + fiat_secp384r1_uint1 x893; + uint32_t x894; + fiat_secp384r1_uint1 x895; + uint32_t x896; + fiat_secp384r1_uint1 x897; + uint32_t x898; + fiat_secp384r1_uint1 x899; + uint32_t x900; + fiat_secp384r1_uint1 x901; + uint32_t x902; + uint32_t x903; + uint32_t x904; + uint32_t x905; + uint32_t x906; + uint32_t x907; + uint32_t x908; + uint32_t x909; + uint32_t x910; + uint32_t x911; + uint32_t x912; + uint32_t x913; + uint32_t x914; + uint32_t x915; + uint32_t x916; + uint32_t x917; + uint32_t x918; + uint32_t x919; + uint32_t x920; + uint32_t x921; + uint32_t x922; + fiat_secp384r1_uint1 x923; + uint32_t x924; + fiat_secp384r1_uint1 x925; + uint32_t x926; + fiat_secp384r1_uint1 x927; + uint32_t x928; + fiat_secp384r1_uint1 x929; + uint32_t x930; + fiat_secp384r1_uint1 x931; + uint32_t x932; + fiat_secp384r1_uint1 x933; + uint32_t x934; + fiat_secp384r1_uint1 x935; + uint32_t x936; + fiat_secp384r1_uint1 x937; + uint32_t x938; + fiat_secp384r1_uint1 x939; + uint32_t x940; + fiat_secp384r1_uint1 x941; + uint32_t x942; + fiat_secp384r1_uint1 x943; + uint32_t x944; + fiat_secp384r1_uint1 x945; + uint32_t x946; + fiat_secp384r1_uint1 x947; + uint32_t x948; + fiat_secp384r1_uint1 x949; + uint32_t x950; + fiat_secp384r1_uint1 x951; + uint32_t x952; + fiat_secp384r1_uint1 x953; + uint32_t x954; + fiat_secp384r1_uint1 x955; + uint32_t x956; + fiat_secp384r1_uint1 x957; + uint32_t x958; + fiat_secp384r1_uint1 x959; + uint32_t x960; + fiat_secp384r1_uint1 x961; + uint32_t x962; + fiat_secp384r1_uint1 x963; + uint32_t x964; + fiat_secp384r1_uint1 x965; + uint32_t x966; + fiat_secp384r1_uint1 x967; + uint32_t x968; + fiat_secp384r1_uint1 x969; + uint32_t x970; + fiat_secp384r1_uint1 x971; + uint32_t x972; + fiat_secp384r1_uint1 x973; + uint32_t x974; + fiat_secp384r1_uint1 x975; + uint32_t x976; + fiat_secp384r1_uint1 x977; + uint32_t x978; + fiat_secp384r1_uint1 x979; + uint32_t x980; + fiat_secp384r1_uint1 x981; + uint32_t x982; + fiat_secp384r1_uint1 x983; + uint32_t x984; + fiat_secp384r1_uint1 x985; + uint32_t x986; + fiat_secp384r1_uint1 x987; + uint32_t x988; + fiat_secp384r1_uint1 x989; + uint32_t x990; + uint32_t x991; + uint32_t x992; + uint32_t x993; + uint32_t x994; + uint32_t x995; + uint32_t x996; + uint32_t x997; + uint32_t x998; + uint32_t x999; + uint32_t x1000; + uint32_t x1001; + x1 = (arg1[0]); + fiat_secp384r1_mulx_u32(&x2, &x3, x1, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x4, &x5, x1, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x6, &x7, x1, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x8, &x9, x1, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x10, &x11, x1, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x12, &x13, x1, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x14, &x15, x1, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x16, &x17, x1, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x18, &x19, x1, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x20, &x21, x1, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x22, &x23, 0x0, x19, x16); + fiat_secp384r1_addcarryx_u32(&x24, &x25, x23, x17, x14); + fiat_secp384r1_addcarryx_u32(&x26, &x27, x25, x15, x12); + fiat_secp384r1_addcarryx_u32(&x28, &x29, x27, x13, x10); + fiat_secp384r1_addcarryx_u32(&x30, &x31, x29, x11, x8); + fiat_secp384r1_addcarryx_u32(&x32, &x33, x31, x9, x6); + fiat_secp384r1_addcarryx_u32(&x34, &x35, x33, x7, x4); + fiat_secp384r1_addcarryx_u32(&x36, &x37, x35, x5, x2); + fiat_secp384r1_addcarryx_u32(&x38, &x39, 0x0, x1, x20); + fiat_secp384r1_addcarryx_u32(&x40, &x41, 0x0, (x39 + x21), (arg1[1])); + fiat_secp384r1_mulx_u32(&x42, &x43, x40, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x44, &x45, x40, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x46, &x47, x40, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x48, &x49, x40, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x50, &x51, x40, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x52, &x53, x40, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x54, &x55, x40, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x56, &x57, x40, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x58, &x59, x40, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x60, &x61, x40, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x62, &x63, 0x0, x59, x56); + fiat_secp384r1_addcarryx_u32(&x64, &x65, x63, x57, x54); + fiat_secp384r1_addcarryx_u32(&x66, &x67, x65, x55, x52); + fiat_secp384r1_addcarryx_u32(&x68, &x69, x67, x53, x50); + fiat_secp384r1_addcarryx_u32(&x70, &x71, x69, x51, x48); + fiat_secp384r1_addcarryx_u32(&x72, &x73, x71, x49, x46); + fiat_secp384r1_addcarryx_u32(&x74, &x75, x73, x47, x44); + fiat_secp384r1_addcarryx_u32(&x76, &x77, x75, x45, x42); + fiat_secp384r1_addcarryx_u32(&x78, &x79, 0x0, x40, x60); + fiat_secp384r1_addcarryx_u32(&x80, &x81, x79, x41, x61); + fiat_secp384r1_addcarryx_u32(&x82, &x83, x81, x18, 0x0); + fiat_secp384r1_addcarryx_u32(&x84, &x85, x83, x22, x58); + fiat_secp384r1_addcarryx_u32(&x86, &x87, x85, x24, x62); + fiat_secp384r1_addcarryx_u32(&x88, &x89, x87, x26, x64); + fiat_secp384r1_addcarryx_u32(&x90, &x91, x89, x28, x66); + fiat_secp384r1_addcarryx_u32(&x92, &x93, x91, x30, x68); + fiat_secp384r1_addcarryx_u32(&x94, &x95, x93, x32, x70); + fiat_secp384r1_addcarryx_u32(&x96, &x97, x95, x34, x72); + fiat_secp384r1_addcarryx_u32(&x98, &x99, x97, x36, x74); + fiat_secp384r1_addcarryx_u32(&x100, &x101, x99, (x37 + x3), x76); + fiat_secp384r1_addcarryx_u32(&x102, &x103, x101, 0x0, (x77 + x43)); + fiat_secp384r1_addcarryx_u32(&x104, &x105, 0x0, x80, (arg1[2])); + fiat_secp384r1_addcarryx_u32(&x106, &x107, x105, x82, 0x0); + fiat_secp384r1_addcarryx_u32(&x108, &x109, x107, x84, 0x0); + fiat_secp384r1_addcarryx_u32(&x110, &x111, x109, x86, 0x0); + fiat_secp384r1_addcarryx_u32(&x112, &x113, x111, x88, 0x0); + fiat_secp384r1_addcarryx_u32(&x114, &x115, x113, x90, 0x0); + fiat_secp384r1_addcarryx_u32(&x116, &x117, x115, x92, 0x0); + fiat_secp384r1_addcarryx_u32(&x118, &x119, x117, x94, 0x0); + fiat_secp384r1_addcarryx_u32(&x120, &x121, x119, x96, 0x0); + fiat_secp384r1_addcarryx_u32(&x122, &x123, x121, x98, 0x0); + fiat_secp384r1_addcarryx_u32(&x124, &x125, x123, x100, 0x0); + fiat_secp384r1_addcarryx_u32(&x126, &x127, x125, x102, 0x0); + fiat_secp384r1_mulx_u32(&x128, &x129, x104, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x130, &x131, x104, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x132, &x133, x104, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x134, &x135, x104, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x136, &x137, x104, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x138, &x139, x104, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x140, &x141, x104, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x142, &x143, x104, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x144, &x145, x104, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x146, &x147, x104, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x148, &x149, 0x0, x145, x142); + fiat_secp384r1_addcarryx_u32(&x150, &x151, x149, x143, x140); + fiat_secp384r1_addcarryx_u32(&x152, &x153, x151, x141, x138); + fiat_secp384r1_addcarryx_u32(&x154, &x155, x153, x139, x136); + fiat_secp384r1_addcarryx_u32(&x156, &x157, x155, x137, x134); + fiat_secp384r1_addcarryx_u32(&x158, &x159, x157, x135, x132); + fiat_secp384r1_addcarryx_u32(&x160, &x161, x159, x133, x130); + fiat_secp384r1_addcarryx_u32(&x162, &x163, x161, x131, x128); + fiat_secp384r1_addcarryx_u32(&x164, &x165, 0x0, x104, x146); + fiat_secp384r1_addcarryx_u32(&x166, &x167, x165, x106, x147); + fiat_secp384r1_addcarryx_u32(&x168, &x169, x167, x108, 0x0); + fiat_secp384r1_addcarryx_u32(&x170, &x171, x169, x110, x144); + fiat_secp384r1_addcarryx_u32(&x172, &x173, x171, x112, x148); + fiat_secp384r1_addcarryx_u32(&x174, &x175, x173, x114, x150); + fiat_secp384r1_addcarryx_u32(&x176, &x177, x175, x116, x152); + fiat_secp384r1_addcarryx_u32(&x178, &x179, x177, x118, x154); + fiat_secp384r1_addcarryx_u32(&x180, &x181, x179, x120, x156); + fiat_secp384r1_addcarryx_u32(&x182, &x183, x181, x122, x158); + fiat_secp384r1_addcarryx_u32(&x184, &x185, x183, x124, x160); + fiat_secp384r1_addcarryx_u32(&x186, &x187, x185, x126, x162); + fiat_secp384r1_addcarryx_u32(&x188, &x189, x187, ((uint32_t)x127 + x103), + (x163 + x129)); + fiat_secp384r1_addcarryx_u32(&x190, &x191, 0x0, x166, (arg1[3])); + fiat_secp384r1_addcarryx_u32(&x192, &x193, x191, x168, 0x0); + fiat_secp384r1_addcarryx_u32(&x194, &x195, x193, x170, 0x0); + fiat_secp384r1_addcarryx_u32(&x196, &x197, x195, x172, 0x0); + fiat_secp384r1_addcarryx_u32(&x198, &x199, x197, x174, 0x0); + fiat_secp384r1_addcarryx_u32(&x200, &x201, x199, x176, 0x0); + fiat_secp384r1_addcarryx_u32(&x202, &x203, x201, x178, 0x0); + fiat_secp384r1_addcarryx_u32(&x204, &x205, x203, x180, 0x0); + fiat_secp384r1_addcarryx_u32(&x206, &x207, x205, x182, 0x0); + fiat_secp384r1_addcarryx_u32(&x208, &x209, x207, x184, 0x0); + fiat_secp384r1_addcarryx_u32(&x210, &x211, x209, x186, 0x0); + fiat_secp384r1_addcarryx_u32(&x212, &x213, x211, x188, 0x0); + fiat_secp384r1_mulx_u32(&x214, &x215, x190, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x216, &x217, x190, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x218, &x219, x190, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x220, &x221, x190, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x222, &x223, x190, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x224, &x225, x190, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x226, &x227, x190, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x228, &x229, x190, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x230, &x231, x190, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x232, &x233, x190, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x234, &x235, 0x0, x231, x228); + fiat_secp384r1_addcarryx_u32(&x236, &x237, x235, x229, x226); + fiat_secp384r1_addcarryx_u32(&x238, &x239, x237, x227, x224); + fiat_secp384r1_addcarryx_u32(&x240, &x241, x239, x225, x222); + fiat_secp384r1_addcarryx_u32(&x242, &x243, x241, x223, x220); + fiat_secp384r1_addcarryx_u32(&x244, &x245, x243, x221, x218); + fiat_secp384r1_addcarryx_u32(&x246, &x247, x245, x219, x216); + fiat_secp384r1_addcarryx_u32(&x248, &x249, x247, x217, x214); + fiat_secp384r1_addcarryx_u32(&x250, &x251, 0x0, x190, x232); + fiat_secp384r1_addcarryx_u32(&x252, &x253, x251, x192, x233); + fiat_secp384r1_addcarryx_u32(&x254, &x255, x253, x194, 0x0); + fiat_secp384r1_addcarryx_u32(&x256, &x257, x255, x196, x230); + fiat_secp384r1_addcarryx_u32(&x258, &x259, x257, x198, x234); + fiat_secp384r1_addcarryx_u32(&x260, &x261, x259, x200, x236); + fiat_secp384r1_addcarryx_u32(&x262, &x263, x261, x202, x238); + fiat_secp384r1_addcarryx_u32(&x264, &x265, x263, x204, x240); + fiat_secp384r1_addcarryx_u32(&x266, &x267, x265, x206, x242); + fiat_secp384r1_addcarryx_u32(&x268, &x269, x267, x208, x244); + fiat_secp384r1_addcarryx_u32(&x270, &x271, x269, x210, x246); + fiat_secp384r1_addcarryx_u32(&x272, &x273, x271, x212, x248); + fiat_secp384r1_addcarryx_u32(&x274, &x275, x273, ((uint32_t)x213 + x189), + (x249 + x215)); + fiat_secp384r1_addcarryx_u32(&x276, &x277, 0x0, x252, (arg1[4])); + fiat_secp384r1_addcarryx_u32(&x278, &x279, x277, x254, 0x0); + fiat_secp384r1_addcarryx_u32(&x280, &x281, x279, x256, 0x0); + fiat_secp384r1_addcarryx_u32(&x282, &x283, x281, x258, 0x0); + fiat_secp384r1_addcarryx_u32(&x284, &x285, x283, x260, 0x0); + fiat_secp384r1_addcarryx_u32(&x286, &x287, x285, x262, 0x0); + fiat_secp384r1_addcarryx_u32(&x288, &x289, x287, x264, 0x0); + fiat_secp384r1_addcarryx_u32(&x290, &x291, x289, x266, 0x0); + fiat_secp384r1_addcarryx_u32(&x292, &x293, x291, x268, 0x0); + fiat_secp384r1_addcarryx_u32(&x294, &x295, x293, x270, 0x0); + fiat_secp384r1_addcarryx_u32(&x296, &x297, x295, x272, 0x0); + fiat_secp384r1_addcarryx_u32(&x298, &x299, x297, x274, 0x0); + fiat_secp384r1_mulx_u32(&x300, &x301, x276, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x302, &x303, x276, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x304, &x305, x276, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x306, &x307, x276, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x308, &x309, x276, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x310, &x311, x276, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x312, &x313, x276, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x314, &x315, x276, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x316, &x317, x276, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x318, &x319, x276, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x320, &x321, 0x0, x317, x314); + fiat_secp384r1_addcarryx_u32(&x322, &x323, x321, x315, x312); + fiat_secp384r1_addcarryx_u32(&x324, &x325, x323, x313, x310); + fiat_secp384r1_addcarryx_u32(&x326, &x327, x325, x311, x308); + fiat_secp384r1_addcarryx_u32(&x328, &x329, x327, x309, x306); + fiat_secp384r1_addcarryx_u32(&x330, &x331, x329, x307, x304); + fiat_secp384r1_addcarryx_u32(&x332, &x333, x331, x305, x302); + fiat_secp384r1_addcarryx_u32(&x334, &x335, x333, x303, x300); + fiat_secp384r1_addcarryx_u32(&x336, &x337, 0x0, x276, x318); + fiat_secp384r1_addcarryx_u32(&x338, &x339, x337, x278, x319); + fiat_secp384r1_addcarryx_u32(&x340, &x341, x339, x280, 0x0); + fiat_secp384r1_addcarryx_u32(&x342, &x343, x341, x282, x316); + fiat_secp384r1_addcarryx_u32(&x344, &x345, x343, x284, x320); + fiat_secp384r1_addcarryx_u32(&x346, &x347, x345, x286, x322); + fiat_secp384r1_addcarryx_u32(&x348, &x349, x347, x288, x324); + fiat_secp384r1_addcarryx_u32(&x350, &x351, x349, x290, x326); + fiat_secp384r1_addcarryx_u32(&x352, &x353, x351, x292, x328); + fiat_secp384r1_addcarryx_u32(&x354, &x355, x353, x294, x330); + fiat_secp384r1_addcarryx_u32(&x356, &x357, x355, x296, x332); + fiat_secp384r1_addcarryx_u32(&x358, &x359, x357, x298, x334); + fiat_secp384r1_addcarryx_u32(&x360, &x361, x359, ((uint32_t)x299 + x275), + (x335 + x301)); + fiat_secp384r1_addcarryx_u32(&x362, &x363, 0x0, x338, (arg1[5])); + fiat_secp384r1_addcarryx_u32(&x364, &x365, x363, x340, 0x0); + fiat_secp384r1_addcarryx_u32(&x366, &x367, x365, x342, 0x0); + fiat_secp384r1_addcarryx_u32(&x368, &x369, x367, x344, 0x0); + fiat_secp384r1_addcarryx_u32(&x370, &x371, x369, x346, 0x0); + fiat_secp384r1_addcarryx_u32(&x372, &x373, x371, x348, 0x0); + fiat_secp384r1_addcarryx_u32(&x374, &x375, x373, x350, 0x0); + fiat_secp384r1_addcarryx_u32(&x376, &x377, x375, x352, 0x0); + fiat_secp384r1_addcarryx_u32(&x378, &x379, x377, x354, 0x0); + fiat_secp384r1_addcarryx_u32(&x380, &x381, x379, x356, 0x0); + fiat_secp384r1_addcarryx_u32(&x382, &x383, x381, x358, 0x0); + fiat_secp384r1_addcarryx_u32(&x384, &x385, x383, x360, 0x0); + fiat_secp384r1_mulx_u32(&x386, &x387, x362, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x388, &x389, x362, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x390, &x391, x362, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x392, &x393, x362, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x394, &x395, x362, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x396, &x397, x362, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x398, &x399, x362, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x400, &x401, x362, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x402, &x403, x362, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x404, &x405, x362, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x406, &x407, 0x0, x403, x400); + fiat_secp384r1_addcarryx_u32(&x408, &x409, x407, x401, x398); + fiat_secp384r1_addcarryx_u32(&x410, &x411, x409, x399, x396); + fiat_secp384r1_addcarryx_u32(&x412, &x413, x411, x397, x394); + fiat_secp384r1_addcarryx_u32(&x414, &x415, x413, x395, x392); + fiat_secp384r1_addcarryx_u32(&x416, &x417, x415, x393, x390); + fiat_secp384r1_addcarryx_u32(&x418, &x419, x417, x391, x388); + fiat_secp384r1_addcarryx_u32(&x420, &x421, x419, x389, x386); + fiat_secp384r1_addcarryx_u32(&x422, &x423, 0x0, x362, x404); + fiat_secp384r1_addcarryx_u32(&x424, &x425, x423, x364, x405); + fiat_secp384r1_addcarryx_u32(&x426, &x427, x425, x366, 0x0); + fiat_secp384r1_addcarryx_u32(&x428, &x429, x427, x368, x402); + fiat_secp384r1_addcarryx_u32(&x430, &x431, x429, x370, x406); + fiat_secp384r1_addcarryx_u32(&x432, &x433, x431, x372, x408); + fiat_secp384r1_addcarryx_u32(&x434, &x435, x433, x374, x410); + fiat_secp384r1_addcarryx_u32(&x436, &x437, x435, x376, x412); + fiat_secp384r1_addcarryx_u32(&x438, &x439, x437, x378, x414); + fiat_secp384r1_addcarryx_u32(&x440, &x441, x439, x380, x416); + fiat_secp384r1_addcarryx_u32(&x442, &x443, x441, x382, x418); + fiat_secp384r1_addcarryx_u32(&x444, &x445, x443, x384, x420); + fiat_secp384r1_addcarryx_u32(&x446, &x447, x445, ((uint32_t)x385 + x361), + (x421 + x387)); + fiat_secp384r1_addcarryx_u32(&x448, &x449, 0x0, x424, (arg1[6])); + fiat_secp384r1_addcarryx_u32(&x450, &x451, x449, x426, 0x0); + fiat_secp384r1_addcarryx_u32(&x452, &x453, x451, x428, 0x0); + fiat_secp384r1_addcarryx_u32(&x454, &x455, x453, x430, 0x0); + fiat_secp384r1_addcarryx_u32(&x456, &x457, x455, x432, 0x0); + fiat_secp384r1_addcarryx_u32(&x458, &x459, x457, x434, 0x0); + fiat_secp384r1_addcarryx_u32(&x460, &x461, x459, x436, 0x0); + fiat_secp384r1_addcarryx_u32(&x462, &x463, x461, x438, 0x0); + fiat_secp384r1_addcarryx_u32(&x464, &x465, x463, x440, 0x0); + fiat_secp384r1_addcarryx_u32(&x466, &x467, x465, x442, 0x0); + fiat_secp384r1_addcarryx_u32(&x468, &x469, x467, x444, 0x0); + fiat_secp384r1_addcarryx_u32(&x470, &x471, x469, x446, 0x0); + fiat_secp384r1_mulx_u32(&x472, &x473, x448, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x474, &x475, x448, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x476, &x477, x448, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x478, &x479, x448, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x480, &x481, x448, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x482, &x483, x448, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x484, &x485, x448, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x486, &x487, x448, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x488, &x489, x448, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x490, &x491, x448, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x492, &x493, 0x0, x489, x486); + fiat_secp384r1_addcarryx_u32(&x494, &x495, x493, x487, x484); + fiat_secp384r1_addcarryx_u32(&x496, &x497, x495, x485, x482); + fiat_secp384r1_addcarryx_u32(&x498, &x499, x497, x483, x480); + fiat_secp384r1_addcarryx_u32(&x500, &x501, x499, x481, x478); + fiat_secp384r1_addcarryx_u32(&x502, &x503, x501, x479, x476); + fiat_secp384r1_addcarryx_u32(&x504, &x505, x503, x477, x474); + fiat_secp384r1_addcarryx_u32(&x506, &x507, x505, x475, x472); + fiat_secp384r1_addcarryx_u32(&x508, &x509, 0x0, x448, x490); + fiat_secp384r1_addcarryx_u32(&x510, &x511, x509, x450, x491); + fiat_secp384r1_addcarryx_u32(&x512, &x513, x511, x452, 0x0); + fiat_secp384r1_addcarryx_u32(&x514, &x515, x513, x454, x488); + fiat_secp384r1_addcarryx_u32(&x516, &x517, x515, x456, x492); + fiat_secp384r1_addcarryx_u32(&x518, &x519, x517, x458, x494); + fiat_secp384r1_addcarryx_u32(&x520, &x521, x519, x460, x496); + fiat_secp384r1_addcarryx_u32(&x522, &x523, x521, x462, x498); + fiat_secp384r1_addcarryx_u32(&x524, &x525, x523, x464, x500); + fiat_secp384r1_addcarryx_u32(&x526, &x527, x525, x466, x502); + fiat_secp384r1_addcarryx_u32(&x528, &x529, x527, x468, x504); + fiat_secp384r1_addcarryx_u32(&x530, &x531, x529, x470, x506); + fiat_secp384r1_addcarryx_u32(&x532, &x533, x531, ((uint32_t)x471 + x447), + (x507 + x473)); + fiat_secp384r1_addcarryx_u32(&x534, &x535, 0x0, x510, (arg1[7])); + fiat_secp384r1_addcarryx_u32(&x536, &x537, x535, x512, 0x0); + fiat_secp384r1_addcarryx_u32(&x538, &x539, x537, x514, 0x0); + fiat_secp384r1_addcarryx_u32(&x540, &x541, x539, x516, 0x0); + fiat_secp384r1_addcarryx_u32(&x542, &x543, x541, x518, 0x0); + fiat_secp384r1_addcarryx_u32(&x544, &x545, x543, x520, 0x0); + fiat_secp384r1_addcarryx_u32(&x546, &x547, x545, x522, 0x0); + fiat_secp384r1_addcarryx_u32(&x548, &x549, x547, x524, 0x0); + fiat_secp384r1_addcarryx_u32(&x550, &x551, x549, x526, 0x0); + fiat_secp384r1_addcarryx_u32(&x552, &x553, x551, x528, 0x0); + fiat_secp384r1_addcarryx_u32(&x554, &x555, x553, x530, 0x0); + fiat_secp384r1_addcarryx_u32(&x556, &x557, x555, x532, 0x0); + fiat_secp384r1_mulx_u32(&x558, &x559, x534, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x560, &x561, x534, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x562, &x563, x534, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x564, &x565, x534, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x566, &x567, x534, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x568, &x569, x534, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x570, &x571, x534, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x572, &x573, x534, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x574, &x575, x534, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x576, &x577, x534, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x578, &x579, 0x0, x575, x572); + fiat_secp384r1_addcarryx_u32(&x580, &x581, x579, x573, x570); + fiat_secp384r1_addcarryx_u32(&x582, &x583, x581, x571, x568); + fiat_secp384r1_addcarryx_u32(&x584, &x585, x583, x569, x566); + fiat_secp384r1_addcarryx_u32(&x586, &x587, x585, x567, x564); + fiat_secp384r1_addcarryx_u32(&x588, &x589, x587, x565, x562); + fiat_secp384r1_addcarryx_u32(&x590, &x591, x589, x563, x560); + fiat_secp384r1_addcarryx_u32(&x592, &x593, x591, x561, x558); + fiat_secp384r1_addcarryx_u32(&x594, &x595, 0x0, x534, x576); + fiat_secp384r1_addcarryx_u32(&x596, &x597, x595, x536, x577); + fiat_secp384r1_addcarryx_u32(&x598, &x599, x597, x538, 0x0); + fiat_secp384r1_addcarryx_u32(&x600, &x601, x599, x540, x574); + fiat_secp384r1_addcarryx_u32(&x602, &x603, x601, x542, x578); + fiat_secp384r1_addcarryx_u32(&x604, &x605, x603, x544, x580); + fiat_secp384r1_addcarryx_u32(&x606, &x607, x605, x546, x582); + fiat_secp384r1_addcarryx_u32(&x608, &x609, x607, x548, x584); + fiat_secp384r1_addcarryx_u32(&x610, &x611, x609, x550, x586); + fiat_secp384r1_addcarryx_u32(&x612, &x613, x611, x552, x588); + fiat_secp384r1_addcarryx_u32(&x614, &x615, x613, x554, x590); + fiat_secp384r1_addcarryx_u32(&x616, &x617, x615, x556, x592); + fiat_secp384r1_addcarryx_u32(&x618, &x619, x617, ((uint32_t)x557 + x533), + (x593 + x559)); + fiat_secp384r1_addcarryx_u32(&x620, &x621, 0x0, x596, (arg1[8])); + fiat_secp384r1_addcarryx_u32(&x622, &x623, x621, x598, 0x0); + fiat_secp384r1_addcarryx_u32(&x624, &x625, x623, x600, 0x0); + fiat_secp384r1_addcarryx_u32(&x626, &x627, x625, x602, 0x0); + fiat_secp384r1_addcarryx_u32(&x628, &x629, x627, x604, 0x0); + fiat_secp384r1_addcarryx_u32(&x630, &x631, x629, x606, 0x0); + fiat_secp384r1_addcarryx_u32(&x632, &x633, x631, x608, 0x0); + fiat_secp384r1_addcarryx_u32(&x634, &x635, x633, x610, 0x0); + fiat_secp384r1_addcarryx_u32(&x636, &x637, x635, x612, 0x0); + fiat_secp384r1_addcarryx_u32(&x638, &x639, x637, x614, 0x0); + fiat_secp384r1_addcarryx_u32(&x640, &x641, x639, x616, 0x0); + fiat_secp384r1_addcarryx_u32(&x642, &x643, x641, x618, 0x0); + fiat_secp384r1_mulx_u32(&x644, &x645, x620, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x646, &x647, x620, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x648, &x649, x620, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x650, &x651, x620, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x652, &x653, x620, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x654, &x655, x620, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x656, &x657, x620, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x658, &x659, x620, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x660, &x661, x620, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x662, &x663, x620, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x664, &x665, 0x0, x661, x658); + fiat_secp384r1_addcarryx_u32(&x666, &x667, x665, x659, x656); + fiat_secp384r1_addcarryx_u32(&x668, &x669, x667, x657, x654); + fiat_secp384r1_addcarryx_u32(&x670, &x671, x669, x655, x652); + fiat_secp384r1_addcarryx_u32(&x672, &x673, x671, x653, x650); + fiat_secp384r1_addcarryx_u32(&x674, &x675, x673, x651, x648); + fiat_secp384r1_addcarryx_u32(&x676, &x677, x675, x649, x646); + fiat_secp384r1_addcarryx_u32(&x678, &x679, x677, x647, x644); + fiat_secp384r1_addcarryx_u32(&x680, &x681, 0x0, x620, x662); + fiat_secp384r1_addcarryx_u32(&x682, &x683, x681, x622, x663); + fiat_secp384r1_addcarryx_u32(&x684, &x685, x683, x624, 0x0); + fiat_secp384r1_addcarryx_u32(&x686, &x687, x685, x626, x660); + fiat_secp384r1_addcarryx_u32(&x688, &x689, x687, x628, x664); + fiat_secp384r1_addcarryx_u32(&x690, &x691, x689, x630, x666); + fiat_secp384r1_addcarryx_u32(&x692, &x693, x691, x632, x668); + fiat_secp384r1_addcarryx_u32(&x694, &x695, x693, x634, x670); + fiat_secp384r1_addcarryx_u32(&x696, &x697, x695, x636, x672); + fiat_secp384r1_addcarryx_u32(&x698, &x699, x697, x638, x674); + fiat_secp384r1_addcarryx_u32(&x700, &x701, x699, x640, x676); + fiat_secp384r1_addcarryx_u32(&x702, &x703, x701, x642, x678); + fiat_secp384r1_addcarryx_u32(&x704, &x705, x703, ((uint32_t)x643 + x619), + (x679 + x645)); + fiat_secp384r1_addcarryx_u32(&x706, &x707, 0x0, x682, (arg1[9])); + fiat_secp384r1_addcarryx_u32(&x708, &x709, x707, x684, 0x0); + fiat_secp384r1_addcarryx_u32(&x710, &x711, x709, x686, 0x0); + fiat_secp384r1_addcarryx_u32(&x712, &x713, x711, x688, 0x0); + fiat_secp384r1_addcarryx_u32(&x714, &x715, x713, x690, 0x0); + fiat_secp384r1_addcarryx_u32(&x716, &x717, x715, x692, 0x0); + fiat_secp384r1_addcarryx_u32(&x718, &x719, x717, x694, 0x0); + fiat_secp384r1_addcarryx_u32(&x720, &x721, x719, x696, 0x0); + fiat_secp384r1_addcarryx_u32(&x722, &x723, x721, x698, 0x0); + fiat_secp384r1_addcarryx_u32(&x724, &x725, x723, x700, 0x0); + fiat_secp384r1_addcarryx_u32(&x726, &x727, x725, x702, 0x0); + fiat_secp384r1_addcarryx_u32(&x728, &x729, x727, x704, 0x0); + fiat_secp384r1_mulx_u32(&x730, &x731, x706, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x732, &x733, x706, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x734, &x735, x706, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x736, &x737, x706, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x738, &x739, x706, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x740, &x741, x706, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x742, &x743, x706, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x744, &x745, x706, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x746, &x747, x706, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x748, &x749, x706, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x750, &x751, 0x0, x747, x744); + fiat_secp384r1_addcarryx_u32(&x752, &x753, x751, x745, x742); + fiat_secp384r1_addcarryx_u32(&x754, &x755, x753, x743, x740); + fiat_secp384r1_addcarryx_u32(&x756, &x757, x755, x741, x738); + fiat_secp384r1_addcarryx_u32(&x758, &x759, x757, x739, x736); + fiat_secp384r1_addcarryx_u32(&x760, &x761, x759, x737, x734); + fiat_secp384r1_addcarryx_u32(&x762, &x763, x761, x735, x732); + fiat_secp384r1_addcarryx_u32(&x764, &x765, x763, x733, x730); + fiat_secp384r1_addcarryx_u32(&x766, &x767, 0x0, x706, x748); + fiat_secp384r1_addcarryx_u32(&x768, &x769, x767, x708, x749); + fiat_secp384r1_addcarryx_u32(&x770, &x771, x769, x710, 0x0); + fiat_secp384r1_addcarryx_u32(&x772, &x773, x771, x712, x746); + fiat_secp384r1_addcarryx_u32(&x774, &x775, x773, x714, x750); + fiat_secp384r1_addcarryx_u32(&x776, &x777, x775, x716, x752); + fiat_secp384r1_addcarryx_u32(&x778, &x779, x777, x718, x754); + fiat_secp384r1_addcarryx_u32(&x780, &x781, x779, x720, x756); + fiat_secp384r1_addcarryx_u32(&x782, &x783, x781, x722, x758); + fiat_secp384r1_addcarryx_u32(&x784, &x785, x783, x724, x760); + fiat_secp384r1_addcarryx_u32(&x786, &x787, x785, x726, x762); + fiat_secp384r1_addcarryx_u32(&x788, &x789, x787, x728, x764); + fiat_secp384r1_addcarryx_u32(&x790, &x791, x789, ((uint32_t)x729 + x705), + (x765 + x731)); + fiat_secp384r1_addcarryx_u32(&x792, &x793, 0x0, x768, (arg1[10])); + fiat_secp384r1_addcarryx_u32(&x794, &x795, x793, x770, 0x0); + fiat_secp384r1_addcarryx_u32(&x796, &x797, x795, x772, 0x0); + fiat_secp384r1_addcarryx_u32(&x798, &x799, x797, x774, 0x0); + fiat_secp384r1_addcarryx_u32(&x800, &x801, x799, x776, 0x0); + fiat_secp384r1_addcarryx_u32(&x802, &x803, x801, x778, 0x0); + fiat_secp384r1_addcarryx_u32(&x804, &x805, x803, x780, 0x0); + fiat_secp384r1_addcarryx_u32(&x806, &x807, x805, x782, 0x0); + fiat_secp384r1_addcarryx_u32(&x808, &x809, x807, x784, 0x0); + fiat_secp384r1_addcarryx_u32(&x810, &x811, x809, x786, 0x0); + fiat_secp384r1_addcarryx_u32(&x812, &x813, x811, x788, 0x0); + fiat_secp384r1_addcarryx_u32(&x814, &x815, x813, x790, 0x0); + fiat_secp384r1_mulx_u32(&x816, &x817, x792, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x818, &x819, x792, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x820, &x821, x792, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x822, &x823, x792, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x824, &x825, x792, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x826, &x827, x792, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x828, &x829, x792, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x830, &x831, x792, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x832, &x833, x792, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x834, &x835, x792, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x836, &x837, 0x0, x833, x830); + fiat_secp384r1_addcarryx_u32(&x838, &x839, x837, x831, x828); + fiat_secp384r1_addcarryx_u32(&x840, &x841, x839, x829, x826); + fiat_secp384r1_addcarryx_u32(&x842, &x843, x841, x827, x824); + fiat_secp384r1_addcarryx_u32(&x844, &x845, x843, x825, x822); + fiat_secp384r1_addcarryx_u32(&x846, &x847, x845, x823, x820); + fiat_secp384r1_addcarryx_u32(&x848, &x849, x847, x821, x818); + fiat_secp384r1_addcarryx_u32(&x850, &x851, x849, x819, x816); + fiat_secp384r1_addcarryx_u32(&x852, &x853, 0x0, x792, x834); + fiat_secp384r1_addcarryx_u32(&x854, &x855, x853, x794, x835); + fiat_secp384r1_addcarryx_u32(&x856, &x857, x855, x796, 0x0); + fiat_secp384r1_addcarryx_u32(&x858, &x859, x857, x798, x832); + fiat_secp384r1_addcarryx_u32(&x860, &x861, x859, x800, x836); + fiat_secp384r1_addcarryx_u32(&x862, &x863, x861, x802, x838); + fiat_secp384r1_addcarryx_u32(&x864, &x865, x863, x804, x840); + fiat_secp384r1_addcarryx_u32(&x866, &x867, x865, x806, x842); + fiat_secp384r1_addcarryx_u32(&x868, &x869, x867, x808, x844); + fiat_secp384r1_addcarryx_u32(&x870, &x871, x869, x810, x846); + fiat_secp384r1_addcarryx_u32(&x872, &x873, x871, x812, x848); + fiat_secp384r1_addcarryx_u32(&x874, &x875, x873, x814, x850); + fiat_secp384r1_addcarryx_u32(&x876, &x877, x875, ((uint32_t)x815 + x791), + (x851 + x817)); + fiat_secp384r1_addcarryx_u32(&x878, &x879, 0x0, x854, (arg1[11])); + fiat_secp384r1_addcarryx_u32(&x880, &x881, x879, x856, 0x0); + fiat_secp384r1_addcarryx_u32(&x882, &x883, x881, x858, 0x0); + fiat_secp384r1_addcarryx_u32(&x884, &x885, x883, x860, 0x0); + fiat_secp384r1_addcarryx_u32(&x886, &x887, x885, x862, 0x0); + fiat_secp384r1_addcarryx_u32(&x888, &x889, x887, x864, 0x0); + fiat_secp384r1_addcarryx_u32(&x890, &x891, x889, x866, 0x0); + fiat_secp384r1_addcarryx_u32(&x892, &x893, x891, x868, 0x0); + fiat_secp384r1_addcarryx_u32(&x894, &x895, x893, x870, 0x0); + fiat_secp384r1_addcarryx_u32(&x896, &x897, x895, x872, 0x0); + fiat_secp384r1_addcarryx_u32(&x898, &x899, x897, x874, 0x0); + fiat_secp384r1_addcarryx_u32(&x900, &x901, x899, x876, 0x0); + fiat_secp384r1_mulx_u32(&x902, &x903, x878, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x904, &x905, x878, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x906, &x907, x878, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x908, &x909, x878, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x910, &x911, x878, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x912, &x913, x878, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x914, &x915, x878, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x916, &x917, x878, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x918, &x919, x878, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x920, &x921, x878, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x922, &x923, 0x0, x919, x916); + fiat_secp384r1_addcarryx_u32(&x924, &x925, x923, x917, x914); + fiat_secp384r1_addcarryx_u32(&x926, &x927, x925, x915, x912); + fiat_secp384r1_addcarryx_u32(&x928, &x929, x927, x913, x910); + fiat_secp384r1_addcarryx_u32(&x930, &x931, x929, x911, x908); + fiat_secp384r1_addcarryx_u32(&x932, &x933, x931, x909, x906); + fiat_secp384r1_addcarryx_u32(&x934, &x935, x933, x907, x904); + fiat_secp384r1_addcarryx_u32(&x936, &x937, x935, x905, x902); + fiat_secp384r1_addcarryx_u32(&x938, &x939, 0x0, x878, x920); + fiat_secp384r1_addcarryx_u32(&x940, &x941, x939, x880, x921); + fiat_secp384r1_addcarryx_u32(&x942, &x943, x941, x882, 0x0); + fiat_secp384r1_addcarryx_u32(&x944, &x945, x943, x884, x918); + fiat_secp384r1_addcarryx_u32(&x946, &x947, x945, x886, x922); + fiat_secp384r1_addcarryx_u32(&x948, &x949, x947, x888, x924); + fiat_secp384r1_addcarryx_u32(&x950, &x951, x949, x890, x926); + fiat_secp384r1_addcarryx_u32(&x952, &x953, x951, x892, x928); + fiat_secp384r1_addcarryx_u32(&x954, &x955, x953, x894, x930); + fiat_secp384r1_addcarryx_u32(&x956, &x957, x955, x896, x932); + fiat_secp384r1_addcarryx_u32(&x958, &x959, x957, x898, x934); + fiat_secp384r1_addcarryx_u32(&x960, &x961, x959, x900, x936); + fiat_secp384r1_addcarryx_u32(&x962, &x963, x961, ((uint32_t)x901 + x877), + (x937 + x903)); + fiat_secp384r1_subborrowx_u32(&x964, &x965, 0x0, x940, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x966, &x967, x965, x942, 0x0); + fiat_secp384r1_subborrowx_u32(&x968, &x969, x967, x944, 0x0); + fiat_secp384r1_subborrowx_u32(&x970, &x971, x969, x946, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x972, &x973, x971, x948, + UINT32_C(0xfffffffe)); + fiat_secp384r1_subborrowx_u32(&x974, &x975, x973, x950, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x976, &x977, x975, x952, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x978, &x979, x977, x954, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x980, &x981, x979, x956, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x982, &x983, x981, x958, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x984, &x985, x983, x960, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x986, &x987, x985, x962, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x988, &x989, x987, x963, 0x0); + fiat_secp384r1_cmovznz_u32(&x990, x989, x964, x940); + fiat_secp384r1_cmovznz_u32(&x991, x989, x966, x942); + fiat_secp384r1_cmovznz_u32(&x992, x989, x968, x944); + fiat_secp384r1_cmovznz_u32(&x993, x989, x970, x946); + fiat_secp384r1_cmovznz_u32(&x994, x989, x972, x948); + fiat_secp384r1_cmovznz_u32(&x995, x989, x974, x950); + fiat_secp384r1_cmovznz_u32(&x996, x989, x976, x952); + fiat_secp384r1_cmovznz_u32(&x997, x989, x978, x954); + fiat_secp384r1_cmovznz_u32(&x998, x989, x980, x956); + fiat_secp384r1_cmovznz_u32(&x999, x989, x982, x958); + fiat_secp384r1_cmovznz_u32(&x1000, x989, x984, x960); + fiat_secp384r1_cmovznz_u32(&x1001, x989, x986, x962); + out1[0] = x990; + out1[1] = x991; + out1[2] = x992; + out1[3] = x993; + out1[4] = x994; + out1[5] = x995; + out1[6] = x996; + out1[7] = x997; + out1[8] = x998; + out1[9] = x999; + out1[10] = x1000; + out1[11] = x1001; +} + +/* + * The function fiat_secp384r1_to_montgomery translates a field element into the Montgomery domain. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * eval (from_montgomery out1) mod m = eval arg1 mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + */ +static void +fiat_secp384r1_to_montgomery(uint32_t out1[12], + const uint32_t arg1[12]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint32_t x16; + uint32_t x17; + uint32_t x18; + uint32_t x19; + uint32_t x20; + uint32_t x21; + fiat_secp384r1_uint1 x22; + uint32_t x23; + uint32_t x24; + uint32_t x25; + uint32_t x26; + uint32_t x27; + uint32_t x28; + uint32_t x29; + uint32_t x30; + uint32_t x31; + uint32_t x32; + uint32_t x33; + uint32_t x34; + uint32_t x35; + uint32_t x36; + uint32_t x37; + uint32_t x38; + uint32_t x39; + uint32_t x40; + uint32_t x41; + uint32_t x42; + uint32_t x43; + fiat_secp384r1_uint1 x44; + uint32_t x45; + fiat_secp384r1_uint1 x46; + uint32_t x47; + fiat_secp384r1_uint1 x48; + uint32_t x49; + fiat_secp384r1_uint1 x50; + uint32_t x51; + fiat_secp384r1_uint1 x52; + uint32_t x53; + fiat_secp384r1_uint1 x54; + uint32_t x55; + fiat_secp384r1_uint1 x56; + uint32_t x57; + fiat_secp384r1_uint1 x58; + uint32_t x59; + fiat_secp384r1_uint1 x60; + uint32_t x61; + fiat_secp384r1_uint1 x62; + uint32_t x63; + fiat_secp384r1_uint1 x64; + uint32_t x65; + fiat_secp384r1_uint1 x66; + uint32_t x67; + fiat_secp384r1_uint1 x68; + uint32_t x69; + fiat_secp384r1_uint1 x70; + uint32_t x71; + fiat_secp384r1_uint1 x72; + uint32_t x73; + fiat_secp384r1_uint1 x74; + uint32_t x75; + fiat_secp384r1_uint1 x76; + uint32_t x77; + fiat_secp384r1_uint1 x78; + uint32_t x79; + fiat_secp384r1_uint1 x80; + uint32_t x81; + fiat_secp384r1_uint1 x82; + uint32_t x83; + uint32_t x84; + uint32_t x85; + uint32_t x86; + uint32_t x87; + uint32_t x88; + uint32_t x89; + uint32_t x90; + uint32_t x91; + fiat_secp384r1_uint1 x92; + uint32_t x93; + fiat_secp384r1_uint1 x94; + uint32_t x95; + fiat_secp384r1_uint1 x96; + uint32_t x97; + fiat_secp384r1_uint1 x98; + uint32_t x99; + fiat_secp384r1_uint1 x100; + uint32_t x101; + fiat_secp384r1_uint1 x102; + uint32_t x103; + fiat_secp384r1_uint1 x104; + uint32_t x105; + fiat_secp384r1_uint1 x106; + uint32_t x107; + fiat_secp384r1_uint1 x108; + uint32_t x109; + fiat_secp384r1_uint1 x110; + uint32_t x111; + fiat_secp384r1_uint1 x112; + uint32_t x113; + fiat_secp384r1_uint1 x114; + uint32_t x115; + fiat_secp384r1_uint1 x116; + uint32_t x117; + uint32_t x118; + uint32_t x119; + uint32_t x120; + uint32_t x121; + uint32_t x122; + uint32_t x123; + uint32_t x124; + uint32_t x125; + uint32_t x126; + uint32_t x127; + uint32_t x128; + uint32_t x129; + uint32_t x130; + uint32_t x131; + uint32_t x132; + uint32_t x133; + uint32_t x134; + uint32_t x135; + uint32_t x136; + uint32_t x137; + fiat_secp384r1_uint1 x138; + uint32_t x139; + fiat_secp384r1_uint1 x140; + uint32_t x141; + fiat_secp384r1_uint1 x142; + uint32_t x143; + fiat_secp384r1_uint1 x144; + uint32_t x145; + fiat_secp384r1_uint1 x146; + uint32_t x147; + fiat_secp384r1_uint1 x148; + uint32_t x149; + fiat_secp384r1_uint1 x150; + uint32_t x151; + fiat_secp384r1_uint1 x152; + uint32_t x153; + fiat_secp384r1_uint1 x154; + uint32_t x155; + fiat_secp384r1_uint1 x156; + uint32_t x157; + fiat_secp384r1_uint1 x158; + uint32_t x159; + fiat_secp384r1_uint1 x160; + uint32_t x161; + fiat_secp384r1_uint1 x162; + uint32_t x163; + fiat_secp384r1_uint1 x164; + uint32_t x165; + fiat_secp384r1_uint1 x166; + uint32_t x167; + fiat_secp384r1_uint1 x168; + uint32_t x169; + fiat_secp384r1_uint1 x170; + uint32_t x171; + fiat_secp384r1_uint1 x172; + uint32_t x173; + fiat_secp384r1_uint1 x174; + uint32_t x175; + fiat_secp384r1_uint1 x176; + uint32_t x177; + fiat_secp384r1_uint1 x178; + uint32_t x179; + uint32_t x180; + uint32_t x181; + uint32_t x182; + uint32_t x183; + uint32_t x184; + uint32_t x185; + uint32_t x186; + uint32_t x187; + fiat_secp384r1_uint1 x188; + uint32_t x189; + fiat_secp384r1_uint1 x190; + uint32_t x191; + fiat_secp384r1_uint1 x192; + uint32_t x193; + fiat_secp384r1_uint1 x194; + uint32_t x195; + fiat_secp384r1_uint1 x196; + uint32_t x197; + fiat_secp384r1_uint1 x198; + uint32_t x199; + fiat_secp384r1_uint1 x200; + uint32_t x201; + fiat_secp384r1_uint1 x202; + uint32_t x203; + fiat_secp384r1_uint1 x204; + uint32_t x205; + fiat_secp384r1_uint1 x206; + uint32_t x207; + fiat_secp384r1_uint1 x208; + uint32_t x209; + fiat_secp384r1_uint1 x210; + uint32_t x211; + fiat_secp384r1_uint1 x212; + uint32_t x213; + uint32_t x214; + uint32_t x215; + uint32_t x216; + uint32_t x217; + uint32_t x218; + uint32_t x219; + uint32_t x220; + uint32_t x221; + uint32_t x222; + uint32_t x223; + uint32_t x224; + uint32_t x225; + uint32_t x226; + uint32_t x227; + uint32_t x228; + uint32_t x229; + uint32_t x230; + uint32_t x231; + uint32_t x232; + uint32_t x233; + fiat_secp384r1_uint1 x234; + uint32_t x235; + fiat_secp384r1_uint1 x236; + uint32_t x237; + fiat_secp384r1_uint1 x238; + uint32_t x239; + fiat_secp384r1_uint1 x240; + uint32_t x241; + fiat_secp384r1_uint1 x242; + uint32_t x243; + fiat_secp384r1_uint1 x244; + uint32_t x245; + fiat_secp384r1_uint1 x246; + uint32_t x247; + fiat_secp384r1_uint1 x248; + uint32_t x249; + fiat_secp384r1_uint1 x250; + uint32_t x251; + fiat_secp384r1_uint1 x252; + uint32_t x253; + fiat_secp384r1_uint1 x254; + uint32_t x255; + fiat_secp384r1_uint1 x256; + uint32_t x257; + fiat_secp384r1_uint1 x258; + uint32_t x259; + fiat_secp384r1_uint1 x260; + uint32_t x261; + fiat_secp384r1_uint1 x262; + uint32_t x263; + fiat_secp384r1_uint1 x264; + uint32_t x265; + fiat_secp384r1_uint1 x266; + uint32_t x267; + fiat_secp384r1_uint1 x268; + uint32_t x269; + fiat_secp384r1_uint1 x270; + uint32_t x271; + fiat_secp384r1_uint1 x272; + uint32_t x273; + fiat_secp384r1_uint1 x274; + uint32_t x275; + uint32_t x276; + uint32_t x277; + uint32_t x278; + uint32_t x279; + uint32_t x280; + uint32_t x281; + uint32_t x282; + uint32_t x283; + fiat_secp384r1_uint1 x284; + uint32_t x285; + fiat_secp384r1_uint1 x286; + uint32_t x287; + fiat_secp384r1_uint1 x288; + uint32_t x289; + fiat_secp384r1_uint1 x290; + uint32_t x291; + fiat_secp384r1_uint1 x292; + uint32_t x293; + fiat_secp384r1_uint1 x294; + uint32_t x295; + fiat_secp384r1_uint1 x296; + uint32_t x297; + fiat_secp384r1_uint1 x298; + uint32_t x299; + fiat_secp384r1_uint1 x300; + uint32_t x301; + fiat_secp384r1_uint1 x302; + uint32_t x303; + fiat_secp384r1_uint1 x304; + uint32_t x305; + fiat_secp384r1_uint1 x306; + uint32_t x307; + fiat_secp384r1_uint1 x308; + uint32_t x309; + uint32_t x310; + uint32_t x311; + uint32_t x312; + uint32_t x313; + uint32_t x314; + uint32_t x315; + uint32_t x316; + uint32_t x317; + uint32_t x318; + uint32_t x319; + uint32_t x320; + uint32_t x321; + uint32_t x322; + uint32_t x323; + uint32_t x324; + uint32_t x325; + uint32_t x326; + uint32_t x327; + uint32_t x328; + uint32_t x329; + fiat_secp384r1_uint1 x330; + uint32_t x331; + fiat_secp384r1_uint1 x332; + uint32_t x333; + fiat_secp384r1_uint1 x334; + uint32_t x335; + fiat_secp384r1_uint1 x336; + uint32_t x337; + fiat_secp384r1_uint1 x338; + uint32_t x339; + fiat_secp384r1_uint1 x340; + uint32_t x341; + fiat_secp384r1_uint1 x342; + uint32_t x343; + fiat_secp384r1_uint1 x344; + uint32_t x345; + fiat_secp384r1_uint1 x346; + uint32_t x347; + fiat_secp384r1_uint1 x348; + uint32_t x349; + fiat_secp384r1_uint1 x350; + uint32_t x351; + fiat_secp384r1_uint1 x352; + uint32_t x353; + fiat_secp384r1_uint1 x354; + uint32_t x355; + fiat_secp384r1_uint1 x356; + uint32_t x357; + fiat_secp384r1_uint1 x358; + uint32_t x359; + fiat_secp384r1_uint1 x360; + uint32_t x361; + fiat_secp384r1_uint1 x362; + uint32_t x363; + fiat_secp384r1_uint1 x364; + uint32_t x365; + fiat_secp384r1_uint1 x366; + uint32_t x367; + fiat_secp384r1_uint1 x368; + uint32_t x369; + fiat_secp384r1_uint1 x370; + uint32_t x371; + uint32_t x372; + uint32_t x373; + uint32_t x374; + uint32_t x375; + uint32_t x376; + uint32_t x377; + uint32_t x378; + uint32_t x379; + fiat_secp384r1_uint1 x380; + uint32_t x381; + fiat_secp384r1_uint1 x382; + uint32_t x383; + fiat_secp384r1_uint1 x384; + uint32_t x385; + fiat_secp384r1_uint1 x386; + uint32_t x387; + fiat_secp384r1_uint1 x388; + uint32_t x389; + fiat_secp384r1_uint1 x390; + uint32_t x391; + fiat_secp384r1_uint1 x392; + uint32_t x393; + fiat_secp384r1_uint1 x394; + uint32_t x395; + fiat_secp384r1_uint1 x396; + uint32_t x397; + fiat_secp384r1_uint1 x398; + uint32_t x399; + fiat_secp384r1_uint1 x400; + uint32_t x401; + fiat_secp384r1_uint1 x402; + uint32_t x403; + fiat_secp384r1_uint1 x404; + uint32_t x405; + uint32_t x406; + uint32_t x407; + uint32_t x408; + uint32_t x409; + uint32_t x410; + uint32_t x411; + uint32_t x412; + uint32_t x413; + uint32_t x414; + uint32_t x415; + uint32_t x416; + uint32_t x417; + uint32_t x418; + uint32_t x419; + uint32_t x420; + uint32_t x421; + uint32_t x422; + uint32_t x423; + uint32_t x424; + uint32_t x425; + fiat_secp384r1_uint1 x426; + uint32_t x427; + fiat_secp384r1_uint1 x428; + uint32_t x429; + fiat_secp384r1_uint1 x430; + uint32_t x431; + fiat_secp384r1_uint1 x432; + uint32_t x433; + fiat_secp384r1_uint1 x434; + uint32_t x435; + fiat_secp384r1_uint1 x436; + uint32_t x437; + fiat_secp384r1_uint1 x438; + uint32_t x439; + fiat_secp384r1_uint1 x440; + uint32_t x441; + fiat_secp384r1_uint1 x442; + uint32_t x443; + fiat_secp384r1_uint1 x444; + uint32_t x445; + fiat_secp384r1_uint1 x446; + uint32_t x447; + fiat_secp384r1_uint1 x448; + uint32_t x449; + fiat_secp384r1_uint1 x450; + uint32_t x451; + fiat_secp384r1_uint1 x452; + uint32_t x453; + fiat_secp384r1_uint1 x454; + uint32_t x455; + fiat_secp384r1_uint1 x456; + uint32_t x457; + fiat_secp384r1_uint1 x458; + uint32_t x459; + fiat_secp384r1_uint1 x460; + uint32_t x461; + fiat_secp384r1_uint1 x462; + uint32_t x463; + fiat_secp384r1_uint1 x464; + uint32_t x465; + fiat_secp384r1_uint1 x466; + uint32_t x467; + uint32_t x468; + uint32_t x469; + uint32_t x470; + uint32_t x471; + uint32_t x472; + uint32_t x473; + uint32_t x474; + uint32_t x475; + fiat_secp384r1_uint1 x476; + uint32_t x477; + fiat_secp384r1_uint1 x478; + uint32_t x479; + fiat_secp384r1_uint1 x480; + uint32_t x481; + fiat_secp384r1_uint1 x482; + uint32_t x483; + fiat_secp384r1_uint1 x484; + uint32_t x485; + fiat_secp384r1_uint1 x486; + uint32_t x487; + fiat_secp384r1_uint1 x488; + uint32_t x489; + fiat_secp384r1_uint1 x490; + uint32_t x491; + fiat_secp384r1_uint1 x492; + uint32_t x493; + fiat_secp384r1_uint1 x494; + uint32_t x495; + fiat_secp384r1_uint1 x496; + uint32_t x497; + fiat_secp384r1_uint1 x498; + uint32_t x499; + fiat_secp384r1_uint1 x500; + uint32_t x501; + uint32_t x502; + uint32_t x503; + uint32_t x504; + uint32_t x505; + uint32_t x506; + uint32_t x507; + uint32_t x508; + uint32_t x509; + uint32_t x510; + uint32_t x511; + uint32_t x512; + uint32_t x513; + uint32_t x514; + uint32_t x515; + uint32_t x516; + uint32_t x517; + uint32_t x518; + uint32_t x519; + uint32_t x520; + uint32_t x521; + fiat_secp384r1_uint1 x522; + uint32_t x523; + fiat_secp384r1_uint1 x524; + uint32_t x525; + fiat_secp384r1_uint1 x526; + uint32_t x527; + fiat_secp384r1_uint1 x528; + uint32_t x529; + fiat_secp384r1_uint1 x530; + uint32_t x531; + fiat_secp384r1_uint1 x532; + uint32_t x533; + fiat_secp384r1_uint1 x534; + uint32_t x535; + fiat_secp384r1_uint1 x536; + uint32_t x537; + fiat_secp384r1_uint1 x538; + uint32_t x539; + fiat_secp384r1_uint1 x540; + uint32_t x541; + fiat_secp384r1_uint1 x542; + uint32_t x543; + fiat_secp384r1_uint1 x544; + uint32_t x545; + fiat_secp384r1_uint1 x546; + uint32_t x547; + fiat_secp384r1_uint1 x548; + uint32_t x549; + fiat_secp384r1_uint1 x550; + uint32_t x551; + fiat_secp384r1_uint1 x552; + uint32_t x553; + fiat_secp384r1_uint1 x554; + uint32_t x555; + fiat_secp384r1_uint1 x556; + uint32_t x557; + fiat_secp384r1_uint1 x558; + uint32_t x559; + fiat_secp384r1_uint1 x560; + uint32_t x561; + fiat_secp384r1_uint1 x562; + uint32_t x563; + uint32_t x564; + uint32_t x565; + uint32_t x566; + uint32_t x567; + uint32_t x568; + uint32_t x569; + uint32_t x570; + uint32_t x571; + fiat_secp384r1_uint1 x572; + uint32_t x573; + fiat_secp384r1_uint1 x574; + uint32_t x575; + fiat_secp384r1_uint1 x576; + uint32_t x577; + fiat_secp384r1_uint1 x578; + uint32_t x579; + fiat_secp384r1_uint1 x580; + uint32_t x581; + fiat_secp384r1_uint1 x582; + uint32_t x583; + fiat_secp384r1_uint1 x584; + uint32_t x585; + fiat_secp384r1_uint1 x586; + uint32_t x587; + fiat_secp384r1_uint1 x588; + uint32_t x589; + fiat_secp384r1_uint1 x590; + uint32_t x591; + fiat_secp384r1_uint1 x592; + uint32_t x593; + fiat_secp384r1_uint1 x594; + uint32_t x595; + fiat_secp384r1_uint1 x596; + uint32_t x597; + uint32_t x598; + uint32_t x599; + uint32_t x600; + uint32_t x601; + uint32_t x602; + uint32_t x603; + uint32_t x604; + uint32_t x605; + uint32_t x606; + uint32_t x607; + uint32_t x608; + uint32_t x609; + uint32_t x610; + uint32_t x611; + uint32_t x612; + uint32_t x613; + uint32_t x614; + uint32_t x615; + uint32_t x616; + uint32_t x617; + fiat_secp384r1_uint1 x618; + uint32_t x619; + fiat_secp384r1_uint1 x620; + uint32_t x621; + fiat_secp384r1_uint1 x622; + uint32_t x623; + fiat_secp384r1_uint1 x624; + uint32_t x625; + fiat_secp384r1_uint1 x626; + uint32_t x627; + fiat_secp384r1_uint1 x628; + uint32_t x629; + fiat_secp384r1_uint1 x630; + uint32_t x631; + fiat_secp384r1_uint1 x632; + uint32_t x633; + fiat_secp384r1_uint1 x634; + uint32_t x635; + fiat_secp384r1_uint1 x636; + uint32_t x637; + fiat_secp384r1_uint1 x638; + uint32_t x639; + fiat_secp384r1_uint1 x640; + uint32_t x641; + fiat_secp384r1_uint1 x642; + uint32_t x643; + fiat_secp384r1_uint1 x644; + uint32_t x645; + fiat_secp384r1_uint1 x646; + uint32_t x647; + fiat_secp384r1_uint1 x648; + uint32_t x649; + fiat_secp384r1_uint1 x650; + uint32_t x651; + fiat_secp384r1_uint1 x652; + uint32_t x653; + fiat_secp384r1_uint1 x654; + uint32_t x655; + fiat_secp384r1_uint1 x656; + uint32_t x657; + fiat_secp384r1_uint1 x658; + uint32_t x659; + uint32_t x660; + uint32_t x661; + uint32_t x662; + uint32_t x663; + uint32_t x664; + uint32_t x665; + uint32_t x666; + uint32_t x667; + fiat_secp384r1_uint1 x668; + uint32_t x669; + fiat_secp384r1_uint1 x670; + uint32_t x671; + fiat_secp384r1_uint1 x672; + uint32_t x673; + fiat_secp384r1_uint1 x674; + uint32_t x675; + fiat_secp384r1_uint1 x676; + uint32_t x677; + fiat_secp384r1_uint1 x678; + uint32_t x679; + fiat_secp384r1_uint1 x680; + uint32_t x681; + fiat_secp384r1_uint1 x682; + uint32_t x683; + fiat_secp384r1_uint1 x684; + uint32_t x685; + fiat_secp384r1_uint1 x686; + uint32_t x687; + fiat_secp384r1_uint1 x688; + uint32_t x689; + fiat_secp384r1_uint1 x690; + uint32_t x691; + fiat_secp384r1_uint1 x692; + uint32_t x693; + uint32_t x694; + uint32_t x695; + uint32_t x696; + uint32_t x697; + uint32_t x698; + uint32_t x699; + uint32_t x700; + uint32_t x701; + uint32_t x702; + uint32_t x703; + uint32_t x704; + uint32_t x705; + uint32_t x706; + uint32_t x707; + uint32_t x708; + uint32_t x709; + uint32_t x710; + uint32_t x711; + uint32_t x712; + uint32_t x713; + fiat_secp384r1_uint1 x714; + uint32_t x715; + fiat_secp384r1_uint1 x716; + uint32_t x717; + fiat_secp384r1_uint1 x718; + uint32_t x719; + fiat_secp384r1_uint1 x720; + uint32_t x721; + fiat_secp384r1_uint1 x722; + uint32_t x723; + fiat_secp384r1_uint1 x724; + uint32_t x725; + fiat_secp384r1_uint1 x726; + uint32_t x727; + fiat_secp384r1_uint1 x728; + uint32_t x729; + fiat_secp384r1_uint1 x730; + uint32_t x731; + fiat_secp384r1_uint1 x732; + uint32_t x733; + fiat_secp384r1_uint1 x734; + uint32_t x735; + fiat_secp384r1_uint1 x736; + uint32_t x737; + fiat_secp384r1_uint1 x738; + uint32_t x739; + fiat_secp384r1_uint1 x740; + uint32_t x741; + fiat_secp384r1_uint1 x742; + uint32_t x743; + fiat_secp384r1_uint1 x744; + uint32_t x745; + fiat_secp384r1_uint1 x746; + uint32_t x747; + fiat_secp384r1_uint1 x748; + uint32_t x749; + fiat_secp384r1_uint1 x750; + uint32_t x751; + fiat_secp384r1_uint1 x752; + uint32_t x753; + fiat_secp384r1_uint1 x754; + uint32_t x755; + uint32_t x756; + uint32_t x757; + uint32_t x758; + uint32_t x759; + uint32_t x760; + uint32_t x761; + uint32_t x762; + uint32_t x763; + fiat_secp384r1_uint1 x764; + uint32_t x765; + fiat_secp384r1_uint1 x766; + uint32_t x767; + fiat_secp384r1_uint1 x768; + uint32_t x769; + fiat_secp384r1_uint1 x770; + uint32_t x771; + fiat_secp384r1_uint1 x772; + uint32_t x773; + fiat_secp384r1_uint1 x774; + uint32_t x775; + fiat_secp384r1_uint1 x776; + uint32_t x777; + fiat_secp384r1_uint1 x778; + uint32_t x779; + fiat_secp384r1_uint1 x780; + uint32_t x781; + fiat_secp384r1_uint1 x782; + uint32_t x783; + fiat_secp384r1_uint1 x784; + uint32_t x785; + fiat_secp384r1_uint1 x786; + uint32_t x787; + fiat_secp384r1_uint1 x788; + uint32_t x789; + uint32_t x790; + uint32_t x791; + uint32_t x792; + uint32_t x793; + uint32_t x794; + uint32_t x795; + uint32_t x796; + uint32_t x797; + uint32_t x798; + uint32_t x799; + uint32_t x800; + uint32_t x801; + uint32_t x802; + uint32_t x803; + uint32_t x804; + uint32_t x805; + uint32_t x806; + uint32_t x807; + uint32_t x808; + uint32_t x809; + fiat_secp384r1_uint1 x810; + uint32_t x811; + fiat_secp384r1_uint1 x812; + uint32_t x813; + fiat_secp384r1_uint1 x814; + uint32_t x815; + fiat_secp384r1_uint1 x816; + uint32_t x817; + fiat_secp384r1_uint1 x818; + uint32_t x819; + fiat_secp384r1_uint1 x820; + uint32_t x821; + fiat_secp384r1_uint1 x822; + uint32_t x823; + fiat_secp384r1_uint1 x824; + uint32_t x825; + fiat_secp384r1_uint1 x826; + uint32_t x827; + fiat_secp384r1_uint1 x828; + uint32_t x829; + fiat_secp384r1_uint1 x830; + uint32_t x831; + fiat_secp384r1_uint1 x832; + uint32_t x833; + fiat_secp384r1_uint1 x834; + uint32_t x835; + fiat_secp384r1_uint1 x836; + uint32_t x837; + fiat_secp384r1_uint1 x838; + uint32_t x839; + fiat_secp384r1_uint1 x840; + uint32_t x841; + fiat_secp384r1_uint1 x842; + uint32_t x843; + fiat_secp384r1_uint1 x844; + uint32_t x845; + fiat_secp384r1_uint1 x846; + uint32_t x847; + fiat_secp384r1_uint1 x848; + uint32_t x849; + fiat_secp384r1_uint1 x850; + uint32_t x851; + uint32_t x852; + uint32_t x853; + uint32_t x854; + uint32_t x855; + uint32_t x856; + uint32_t x857; + uint32_t x858; + uint32_t x859; + fiat_secp384r1_uint1 x860; + uint32_t x861; + fiat_secp384r1_uint1 x862; + uint32_t x863; + fiat_secp384r1_uint1 x864; + uint32_t x865; + fiat_secp384r1_uint1 x866; + uint32_t x867; + fiat_secp384r1_uint1 x868; + uint32_t x869; + fiat_secp384r1_uint1 x870; + uint32_t x871; + fiat_secp384r1_uint1 x872; + uint32_t x873; + fiat_secp384r1_uint1 x874; + uint32_t x875; + fiat_secp384r1_uint1 x876; + uint32_t x877; + fiat_secp384r1_uint1 x878; + uint32_t x879; + fiat_secp384r1_uint1 x880; + uint32_t x881; + fiat_secp384r1_uint1 x882; + uint32_t x883; + fiat_secp384r1_uint1 x884; + uint32_t x885; + uint32_t x886; + uint32_t x887; + uint32_t x888; + uint32_t x889; + uint32_t x890; + uint32_t x891; + uint32_t x892; + uint32_t x893; + uint32_t x894; + uint32_t x895; + uint32_t x896; + uint32_t x897; + uint32_t x898; + uint32_t x899; + uint32_t x900; + uint32_t x901; + uint32_t x902; + uint32_t x903; + uint32_t x904; + uint32_t x905; + fiat_secp384r1_uint1 x906; + uint32_t x907; + fiat_secp384r1_uint1 x908; + uint32_t x909; + fiat_secp384r1_uint1 x910; + uint32_t x911; + fiat_secp384r1_uint1 x912; + uint32_t x913; + fiat_secp384r1_uint1 x914; + uint32_t x915; + fiat_secp384r1_uint1 x916; + uint32_t x917; + fiat_secp384r1_uint1 x918; + uint32_t x919; + fiat_secp384r1_uint1 x920; + uint32_t x921; + fiat_secp384r1_uint1 x922; + uint32_t x923; + fiat_secp384r1_uint1 x924; + uint32_t x925; + fiat_secp384r1_uint1 x926; + uint32_t x927; + fiat_secp384r1_uint1 x928; + uint32_t x929; + fiat_secp384r1_uint1 x930; + uint32_t x931; + fiat_secp384r1_uint1 x932; + uint32_t x933; + fiat_secp384r1_uint1 x934; + uint32_t x935; + fiat_secp384r1_uint1 x936; + uint32_t x937; + fiat_secp384r1_uint1 x938; + uint32_t x939; + fiat_secp384r1_uint1 x940; + uint32_t x941; + fiat_secp384r1_uint1 x942; + uint32_t x943; + fiat_secp384r1_uint1 x944; + uint32_t x945; + fiat_secp384r1_uint1 x946; + uint32_t x947; + uint32_t x948; + uint32_t x949; + uint32_t x950; + uint32_t x951; + uint32_t x952; + uint32_t x953; + uint32_t x954; + uint32_t x955; + fiat_secp384r1_uint1 x956; + uint32_t x957; + fiat_secp384r1_uint1 x958; + uint32_t x959; + fiat_secp384r1_uint1 x960; + uint32_t x961; + fiat_secp384r1_uint1 x962; + uint32_t x963; + fiat_secp384r1_uint1 x964; + uint32_t x965; + fiat_secp384r1_uint1 x966; + uint32_t x967; + fiat_secp384r1_uint1 x968; + uint32_t x969; + fiat_secp384r1_uint1 x970; + uint32_t x971; + fiat_secp384r1_uint1 x972; + uint32_t x973; + fiat_secp384r1_uint1 x974; + uint32_t x975; + fiat_secp384r1_uint1 x976; + uint32_t x977; + fiat_secp384r1_uint1 x978; + uint32_t x979; + fiat_secp384r1_uint1 x980; + uint32_t x981; + uint32_t x982; + uint32_t x983; + uint32_t x984; + uint32_t x985; + uint32_t x986; + uint32_t x987; + uint32_t x988; + uint32_t x989; + uint32_t x990; + uint32_t x991; + uint32_t x992; + uint32_t x993; + uint32_t x994; + uint32_t x995; + uint32_t x996; + uint32_t x997; + uint32_t x998; + uint32_t x999; + uint32_t x1000; + uint32_t x1001; + fiat_secp384r1_uint1 x1002; + uint32_t x1003; + fiat_secp384r1_uint1 x1004; + uint32_t x1005; + fiat_secp384r1_uint1 x1006; + uint32_t x1007; + fiat_secp384r1_uint1 x1008; + uint32_t x1009; + fiat_secp384r1_uint1 x1010; + uint32_t x1011; + fiat_secp384r1_uint1 x1012; + uint32_t x1013; + fiat_secp384r1_uint1 x1014; + uint32_t x1015; + fiat_secp384r1_uint1 x1016; + uint32_t x1017; + fiat_secp384r1_uint1 x1018; + uint32_t x1019; + fiat_secp384r1_uint1 x1020; + uint32_t x1021; + fiat_secp384r1_uint1 x1022; + uint32_t x1023; + fiat_secp384r1_uint1 x1024; + uint32_t x1025; + fiat_secp384r1_uint1 x1026; + uint32_t x1027; + fiat_secp384r1_uint1 x1028; + uint32_t x1029; + fiat_secp384r1_uint1 x1030; + uint32_t x1031; + fiat_secp384r1_uint1 x1032; + uint32_t x1033; + fiat_secp384r1_uint1 x1034; + uint32_t x1035; + fiat_secp384r1_uint1 x1036; + uint32_t x1037; + fiat_secp384r1_uint1 x1038; + uint32_t x1039; + fiat_secp384r1_uint1 x1040; + uint32_t x1041; + fiat_secp384r1_uint1 x1042; + uint32_t x1043; + uint32_t x1044; + uint32_t x1045; + uint32_t x1046; + uint32_t x1047; + uint32_t x1048; + uint32_t x1049; + uint32_t x1050; + uint32_t x1051; + fiat_secp384r1_uint1 x1052; + uint32_t x1053; + fiat_secp384r1_uint1 x1054; + uint32_t x1055; + fiat_secp384r1_uint1 x1056; + uint32_t x1057; + fiat_secp384r1_uint1 x1058; + uint32_t x1059; + fiat_secp384r1_uint1 x1060; + uint32_t x1061; + fiat_secp384r1_uint1 x1062; + uint32_t x1063; + fiat_secp384r1_uint1 x1064; + uint32_t x1065; + fiat_secp384r1_uint1 x1066; + uint32_t x1067; + fiat_secp384r1_uint1 x1068; + uint32_t x1069; + fiat_secp384r1_uint1 x1070; + uint32_t x1071; + fiat_secp384r1_uint1 x1072; + uint32_t x1073; + fiat_secp384r1_uint1 x1074; + uint32_t x1075; + fiat_secp384r1_uint1 x1076; + uint32_t x1077; + uint32_t x1078; + uint32_t x1079; + uint32_t x1080; + uint32_t x1081; + uint32_t x1082; + uint32_t x1083; + uint32_t x1084; + uint32_t x1085; + uint32_t x1086; + uint32_t x1087; + uint32_t x1088; + uint32_t x1089; + uint32_t x1090; + uint32_t x1091; + uint32_t x1092; + uint32_t x1093; + uint32_t x1094; + uint32_t x1095; + uint32_t x1096; + uint32_t x1097; + fiat_secp384r1_uint1 x1098; + uint32_t x1099; + fiat_secp384r1_uint1 x1100; + uint32_t x1101; + fiat_secp384r1_uint1 x1102; + uint32_t x1103; + fiat_secp384r1_uint1 x1104; + uint32_t x1105; + fiat_secp384r1_uint1 x1106; + uint32_t x1107; + fiat_secp384r1_uint1 x1108; + uint32_t x1109; + fiat_secp384r1_uint1 x1110; + uint32_t x1111; + fiat_secp384r1_uint1 x1112; + uint32_t x1113; + fiat_secp384r1_uint1 x1114; + uint32_t x1115; + fiat_secp384r1_uint1 x1116; + uint32_t x1117; + fiat_secp384r1_uint1 x1118; + uint32_t x1119; + fiat_secp384r1_uint1 x1120; + uint32_t x1121; + fiat_secp384r1_uint1 x1122; + uint32_t x1123; + fiat_secp384r1_uint1 x1124; + uint32_t x1125; + fiat_secp384r1_uint1 x1126; + uint32_t x1127; + fiat_secp384r1_uint1 x1128; + uint32_t x1129; + fiat_secp384r1_uint1 x1130; + uint32_t x1131; + fiat_secp384r1_uint1 x1132; + uint32_t x1133; + fiat_secp384r1_uint1 x1134; + uint32_t x1135; + fiat_secp384r1_uint1 x1136; + uint32_t x1137; + fiat_secp384r1_uint1 x1138; + uint32_t x1139; + fiat_secp384r1_uint1 x1140; + uint32_t x1141; + fiat_secp384r1_uint1 x1142; + uint32_t x1143; + fiat_secp384r1_uint1 x1144; + uint32_t x1145; + fiat_secp384r1_uint1 x1146; + uint32_t x1147; + fiat_secp384r1_uint1 x1148; + uint32_t x1149; + fiat_secp384r1_uint1 x1150; + uint32_t x1151; + fiat_secp384r1_uint1 x1152; + uint32_t x1153; + fiat_secp384r1_uint1 x1154; + uint32_t x1155; + fiat_secp384r1_uint1 x1156; + uint32_t x1157; + fiat_secp384r1_uint1 x1158; + uint32_t x1159; + fiat_secp384r1_uint1 x1160; + uint32_t x1161; + fiat_secp384r1_uint1 x1162; + uint32_t x1163; + fiat_secp384r1_uint1 x1164; + uint32_t x1165; + uint32_t x1166; + uint32_t x1167; + uint32_t x1168; + uint32_t x1169; + uint32_t x1170; + uint32_t x1171; + uint32_t x1172; + uint32_t x1173; + uint32_t x1174; + uint32_t x1175; + uint32_t x1176; + x1 = (arg1[1]); + x2 = (arg1[2]); + x3 = (arg1[3]); + x4 = (arg1[4]); + x5 = (arg1[5]); + x6 = (arg1[6]); + x7 = (arg1[7]); + x8 = (arg1[8]); + x9 = (arg1[9]); + x10 = (arg1[10]); + x11 = (arg1[11]); + x12 = (arg1[0]); + fiat_secp384r1_mulx_u32(&x13, &x14, x12, 0x2); + fiat_secp384r1_mulx_u32(&x15, &x16, x12, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x17, &x18, x12, 0x2); + fiat_secp384r1_mulx_u32(&x19, &x20, x12, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x21, &x22, 0x0, (fiat_secp384r1_uint1)x14, + x12); + fiat_secp384r1_mulx_u32(&x23, &x24, x12, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x25, &x26, x12, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x27, &x28, x12, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x29, &x30, x12, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x31, &x32, x12, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x33, &x34, x12, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x35, &x36, x12, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x37, &x38, x12, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x39, &x40, x12, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x41, &x42, x12, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x43, &x44, 0x0, x40, x37); + fiat_secp384r1_addcarryx_u32(&x45, &x46, x44, x38, x35); + fiat_secp384r1_addcarryx_u32(&x47, &x48, x46, x36, x33); + fiat_secp384r1_addcarryx_u32(&x49, &x50, x48, x34, x31); + fiat_secp384r1_addcarryx_u32(&x51, &x52, x50, x32, x29); + fiat_secp384r1_addcarryx_u32(&x53, &x54, x52, x30, x27); + fiat_secp384r1_addcarryx_u32(&x55, &x56, x54, x28, x25); + fiat_secp384r1_addcarryx_u32(&x57, &x58, x56, x26, x23); + fiat_secp384r1_addcarryx_u32(&x59, &x60, 0x0, x12, x41); + fiat_secp384r1_addcarryx_u32(&x61, &x62, x60, x19, x42); + fiat_secp384r1_addcarryx_u32(&x63, &x64, 0x0, x17, x39); + fiat_secp384r1_addcarryx_u32(&x65, &x66, x64, (fiat_secp384r1_uint1)x18, + x43); + fiat_secp384r1_addcarryx_u32(&x67, &x68, x66, x15, x45); + fiat_secp384r1_addcarryx_u32(&x69, &x70, x68, x16, x47); + fiat_secp384r1_addcarryx_u32(&x71, &x72, x70, x13, x49); + fiat_secp384r1_addcarryx_u32(&x73, &x74, x72, x21, x51); + fiat_secp384r1_addcarryx_u32(&x75, &x76, x74, x22, x53); + fiat_secp384r1_addcarryx_u32(&x77, &x78, x76, 0x0, x55); + fiat_secp384r1_addcarryx_u32(&x79, &x80, x78, 0x0, x57); + fiat_secp384r1_addcarryx_u32(&x81, &x82, x80, 0x0, (x58 + x24)); + fiat_secp384r1_mulx_u32(&x83, &x84, x1, 0x2); + fiat_secp384r1_mulx_u32(&x85, &x86, x1, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x87, &x88, x1, 0x2); + fiat_secp384r1_mulx_u32(&x89, &x90, x1, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x91, &x92, 0x0, (fiat_secp384r1_uint1)x84, + x1); + fiat_secp384r1_addcarryx_u32(&x93, &x94, 0x0, x61, x1); + fiat_secp384r1_addcarryx_u32(&x95, &x96, x94, (x62 + x20), x89); + fiat_secp384r1_addcarryx_u32(&x97, &x98, x96, x63, x90); + fiat_secp384r1_addcarryx_u32(&x99, &x100, x98, x65, x87); + fiat_secp384r1_addcarryx_u32(&x101, &x102, x100, x67, + (fiat_secp384r1_uint1)x88); + fiat_secp384r1_addcarryx_u32(&x103, &x104, x102, x69, x85); + fiat_secp384r1_addcarryx_u32(&x105, &x106, x104, x71, x86); + fiat_secp384r1_addcarryx_u32(&x107, &x108, x106, x73, x83); + fiat_secp384r1_addcarryx_u32(&x109, &x110, x108, x75, x91); + fiat_secp384r1_addcarryx_u32(&x111, &x112, x110, x77, x92); + fiat_secp384r1_addcarryx_u32(&x113, &x114, x112, x79, 0x0); + fiat_secp384r1_addcarryx_u32(&x115, &x116, x114, x81, 0x0); + fiat_secp384r1_mulx_u32(&x117, &x118, x93, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x119, &x120, x93, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x121, &x122, x93, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x123, &x124, x93, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x125, &x126, x93, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x127, &x128, x93, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x129, &x130, x93, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x131, &x132, x93, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x133, &x134, x93, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x135, &x136, x93, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x137, &x138, 0x0, x134, x131); + fiat_secp384r1_addcarryx_u32(&x139, &x140, x138, x132, x129); + fiat_secp384r1_addcarryx_u32(&x141, &x142, x140, x130, x127); + fiat_secp384r1_addcarryx_u32(&x143, &x144, x142, x128, x125); + fiat_secp384r1_addcarryx_u32(&x145, &x146, x144, x126, x123); + fiat_secp384r1_addcarryx_u32(&x147, &x148, x146, x124, x121); + fiat_secp384r1_addcarryx_u32(&x149, &x150, x148, x122, x119); + fiat_secp384r1_addcarryx_u32(&x151, &x152, x150, x120, x117); + fiat_secp384r1_addcarryx_u32(&x153, &x154, 0x0, x93, x135); + fiat_secp384r1_addcarryx_u32(&x155, &x156, x154, x95, x136); + fiat_secp384r1_addcarryx_u32(&x157, &x158, x156, x97, 0x0); + fiat_secp384r1_addcarryx_u32(&x159, &x160, x158, x99, x133); + fiat_secp384r1_addcarryx_u32(&x161, &x162, x160, x101, x137); + fiat_secp384r1_addcarryx_u32(&x163, &x164, x162, x103, x139); + fiat_secp384r1_addcarryx_u32(&x165, &x166, x164, x105, x141); + fiat_secp384r1_addcarryx_u32(&x167, &x168, x166, x107, x143); + fiat_secp384r1_addcarryx_u32(&x169, &x170, x168, x109, x145); + fiat_secp384r1_addcarryx_u32(&x171, &x172, x170, x111, x147); + fiat_secp384r1_addcarryx_u32(&x173, &x174, x172, x113, x149); + fiat_secp384r1_addcarryx_u32(&x175, &x176, x174, x115, x151); + fiat_secp384r1_addcarryx_u32(&x177, &x178, x176, ((uint32_t)x116 + x82), + (x152 + x118)); + fiat_secp384r1_mulx_u32(&x179, &x180, x2, 0x2); + fiat_secp384r1_mulx_u32(&x181, &x182, x2, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x183, &x184, x2, 0x2); + fiat_secp384r1_mulx_u32(&x185, &x186, x2, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x187, &x188, 0x0, (fiat_secp384r1_uint1)x180, + x2); + fiat_secp384r1_addcarryx_u32(&x189, &x190, 0x0, x155, x2); + fiat_secp384r1_addcarryx_u32(&x191, &x192, x190, x157, x185); + fiat_secp384r1_addcarryx_u32(&x193, &x194, x192, x159, x186); + fiat_secp384r1_addcarryx_u32(&x195, &x196, x194, x161, x183); + fiat_secp384r1_addcarryx_u32(&x197, &x198, x196, x163, + (fiat_secp384r1_uint1)x184); + fiat_secp384r1_addcarryx_u32(&x199, &x200, x198, x165, x181); + fiat_secp384r1_addcarryx_u32(&x201, &x202, x200, x167, x182); + fiat_secp384r1_addcarryx_u32(&x203, &x204, x202, x169, x179); + fiat_secp384r1_addcarryx_u32(&x205, &x206, x204, x171, x187); + fiat_secp384r1_addcarryx_u32(&x207, &x208, x206, x173, x188); + fiat_secp384r1_addcarryx_u32(&x209, &x210, x208, x175, 0x0); + fiat_secp384r1_addcarryx_u32(&x211, &x212, x210, x177, 0x0); + fiat_secp384r1_mulx_u32(&x213, &x214, x189, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x215, &x216, x189, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x217, &x218, x189, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x219, &x220, x189, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x221, &x222, x189, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x223, &x224, x189, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x225, &x226, x189, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x227, &x228, x189, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x229, &x230, x189, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x231, &x232, x189, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x233, &x234, 0x0, x230, x227); + fiat_secp384r1_addcarryx_u32(&x235, &x236, x234, x228, x225); + fiat_secp384r1_addcarryx_u32(&x237, &x238, x236, x226, x223); + fiat_secp384r1_addcarryx_u32(&x239, &x240, x238, x224, x221); + fiat_secp384r1_addcarryx_u32(&x241, &x242, x240, x222, x219); + fiat_secp384r1_addcarryx_u32(&x243, &x244, x242, x220, x217); + fiat_secp384r1_addcarryx_u32(&x245, &x246, x244, x218, x215); + fiat_secp384r1_addcarryx_u32(&x247, &x248, x246, x216, x213); + fiat_secp384r1_addcarryx_u32(&x249, &x250, 0x0, x189, x231); + fiat_secp384r1_addcarryx_u32(&x251, &x252, x250, x191, x232); + fiat_secp384r1_addcarryx_u32(&x253, &x254, x252, x193, 0x0); + fiat_secp384r1_addcarryx_u32(&x255, &x256, x254, x195, x229); + fiat_secp384r1_addcarryx_u32(&x257, &x258, x256, x197, x233); + fiat_secp384r1_addcarryx_u32(&x259, &x260, x258, x199, x235); + fiat_secp384r1_addcarryx_u32(&x261, &x262, x260, x201, x237); + fiat_secp384r1_addcarryx_u32(&x263, &x264, x262, x203, x239); + fiat_secp384r1_addcarryx_u32(&x265, &x266, x264, x205, x241); + fiat_secp384r1_addcarryx_u32(&x267, &x268, x266, x207, x243); + fiat_secp384r1_addcarryx_u32(&x269, &x270, x268, x209, x245); + fiat_secp384r1_addcarryx_u32(&x271, &x272, x270, x211, x247); + fiat_secp384r1_addcarryx_u32(&x273, &x274, x272, ((uint32_t)x212 + x178), + (x248 + x214)); + fiat_secp384r1_mulx_u32(&x275, &x276, x3, 0x2); + fiat_secp384r1_mulx_u32(&x277, &x278, x3, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x279, &x280, x3, 0x2); + fiat_secp384r1_mulx_u32(&x281, &x282, x3, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x283, &x284, 0x0, (fiat_secp384r1_uint1)x276, + x3); + fiat_secp384r1_addcarryx_u32(&x285, &x286, 0x0, x251, x3); + fiat_secp384r1_addcarryx_u32(&x287, &x288, x286, x253, x281); + fiat_secp384r1_addcarryx_u32(&x289, &x290, x288, x255, x282); + fiat_secp384r1_addcarryx_u32(&x291, &x292, x290, x257, x279); + fiat_secp384r1_addcarryx_u32(&x293, &x294, x292, x259, + (fiat_secp384r1_uint1)x280); + fiat_secp384r1_addcarryx_u32(&x295, &x296, x294, x261, x277); + fiat_secp384r1_addcarryx_u32(&x297, &x298, x296, x263, x278); + fiat_secp384r1_addcarryx_u32(&x299, &x300, x298, x265, x275); + fiat_secp384r1_addcarryx_u32(&x301, &x302, x300, x267, x283); + fiat_secp384r1_addcarryx_u32(&x303, &x304, x302, x269, x284); + fiat_secp384r1_addcarryx_u32(&x305, &x306, x304, x271, 0x0); + fiat_secp384r1_addcarryx_u32(&x307, &x308, x306, x273, 0x0); + fiat_secp384r1_mulx_u32(&x309, &x310, x285, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x311, &x312, x285, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x313, &x314, x285, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x315, &x316, x285, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x317, &x318, x285, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x319, &x320, x285, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x321, &x322, x285, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x323, &x324, x285, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x325, &x326, x285, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x327, &x328, x285, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x329, &x330, 0x0, x326, x323); + fiat_secp384r1_addcarryx_u32(&x331, &x332, x330, x324, x321); + fiat_secp384r1_addcarryx_u32(&x333, &x334, x332, x322, x319); + fiat_secp384r1_addcarryx_u32(&x335, &x336, x334, x320, x317); + fiat_secp384r1_addcarryx_u32(&x337, &x338, x336, x318, x315); + fiat_secp384r1_addcarryx_u32(&x339, &x340, x338, x316, x313); + fiat_secp384r1_addcarryx_u32(&x341, &x342, x340, x314, x311); + fiat_secp384r1_addcarryx_u32(&x343, &x344, x342, x312, x309); + fiat_secp384r1_addcarryx_u32(&x345, &x346, 0x0, x285, x327); + fiat_secp384r1_addcarryx_u32(&x347, &x348, x346, x287, x328); + fiat_secp384r1_addcarryx_u32(&x349, &x350, x348, x289, 0x0); + fiat_secp384r1_addcarryx_u32(&x351, &x352, x350, x291, x325); + fiat_secp384r1_addcarryx_u32(&x353, &x354, x352, x293, x329); + fiat_secp384r1_addcarryx_u32(&x355, &x356, x354, x295, x331); + fiat_secp384r1_addcarryx_u32(&x357, &x358, x356, x297, x333); + fiat_secp384r1_addcarryx_u32(&x359, &x360, x358, x299, x335); + fiat_secp384r1_addcarryx_u32(&x361, &x362, x360, x301, x337); + fiat_secp384r1_addcarryx_u32(&x363, &x364, x362, x303, x339); + fiat_secp384r1_addcarryx_u32(&x365, &x366, x364, x305, x341); + fiat_secp384r1_addcarryx_u32(&x367, &x368, x366, x307, x343); + fiat_secp384r1_addcarryx_u32(&x369, &x370, x368, ((uint32_t)x308 + x274), + (x344 + x310)); + fiat_secp384r1_mulx_u32(&x371, &x372, x4, 0x2); + fiat_secp384r1_mulx_u32(&x373, &x374, x4, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x375, &x376, x4, 0x2); + fiat_secp384r1_mulx_u32(&x377, &x378, x4, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x379, &x380, 0x0, (fiat_secp384r1_uint1)x372, + x4); + fiat_secp384r1_addcarryx_u32(&x381, &x382, 0x0, x347, x4); + fiat_secp384r1_addcarryx_u32(&x383, &x384, x382, x349, x377); + fiat_secp384r1_addcarryx_u32(&x385, &x386, x384, x351, x378); + fiat_secp384r1_addcarryx_u32(&x387, &x388, x386, x353, x375); + fiat_secp384r1_addcarryx_u32(&x389, &x390, x388, x355, + (fiat_secp384r1_uint1)x376); + fiat_secp384r1_addcarryx_u32(&x391, &x392, x390, x357, x373); + fiat_secp384r1_addcarryx_u32(&x393, &x394, x392, x359, x374); + fiat_secp384r1_addcarryx_u32(&x395, &x396, x394, x361, x371); + fiat_secp384r1_addcarryx_u32(&x397, &x398, x396, x363, x379); + fiat_secp384r1_addcarryx_u32(&x399, &x400, x398, x365, x380); + fiat_secp384r1_addcarryx_u32(&x401, &x402, x400, x367, 0x0); + fiat_secp384r1_addcarryx_u32(&x403, &x404, x402, x369, 0x0); + fiat_secp384r1_mulx_u32(&x405, &x406, x381, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x407, &x408, x381, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x409, &x410, x381, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x411, &x412, x381, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x413, &x414, x381, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x415, &x416, x381, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x417, &x418, x381, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x419, &x420, x381, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x421, &x422, x381, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x423, &x424, x381, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x425, &x426, 0x0, x422, x419); + fiat_secp384r1_addcarryx_u32(&x427, &x428, x426, x420, x417); + fiat_secp384r1_addcarryx_u32(&x429, &x430, x428, x418, x415); + fiat_secp384r1_addcarryx_u32(&x431, &x432, x430, x416, x413); + fiat_secp384r1_addcarryx_u32(&x433, &x434, x432, x414, x411); + fiat_secp384r1_addcarryx_u32(&x435, &x436, x434, x412, x409); + fiat_secp384r1_addcarryx_u32(&x437, &x438, x436, x410, x407); + fiat_secp384r1_addcarryx_u32(&x439, &x440, x438, x408, x405); + fiat_secp384r1_addcarryx_u32(&x441, &x442, 0x0, x381, x423); + fiat_secp384r1_addcarryx_u32(&x443, &x444, x442, x383, x424); + fiat_secp384r1_addcarryx_u32(&x445, &x446, x444, x385, 0x0); + fiat_secp384r1_addcarryx_u32(&x447, &x448, x446, x387, x421); + fiat_secp384r1_addcarryx_u32(&x449, &x450, x448, x389, x425); + fiat_secp384r1_addcarryx_u32(&x451, &x452, x450, x391, x427); + fiat_secp384r1_addcarryx_u32(&x453, &x454, x452, x393, x429); + fiat_secp384r1_addcarryx_u32(&x455, &x456, x454, x395, x431); + fiat_secp384r1_addcarryx_u32(&x457, &x458, x456, x397, x433); + fiat_secp384r1_addcarryx_u32(&x459, &x460, x458, x399, x435); + fiat_secp384r1_addcarryx_u32(&x461, &x462, x460, x401, x437); + fiat_secp384r1_addcarryx_u32(&x463, &x464, x462, x403, x439); + fiat_secp384r1_addcarryx_u32(&x465, &x466, x464, ((uint32_t)x404 + x370), + (x440 + x406)); + fiat_secp384r1_mulx_u32(&x467, &x468, x5, 0x2); + fiat_secp384r1_mulx_u32(&x469, &x470, x5, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x471, &x472, x5, 0x2); + fiat_secp384r1_mulx_u32(&x473, &x474, x5, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x475, &x476, 0x0, (fiat_secp384r1_uint1)x468, + x5); + fiat_secp384r1_addcarryx_u32(&x477, &x478, 0x0, x443, x5); + fiat_secp384r1_addcarryx_u32(&x479, &x480, x478, x445, x473); + fiat_secp384r1_addcarryx_u32(&x481, &x482, x480, x447, x474); + fiat_secp384r1_addcarryx_u32(&x483, &x484, x482, x449, x471); + fiat_secp384r1_addcarryx_u32(&x485, &x486, x484, x451, + (fiat_secp384r1_uint1)x472); + fiat_secp384r1_addcarryx_u32(&x487, &x488, x486, x453, x469); + fiat_secp384r1_addcarryx_u32(&x489, &x490, x488, x455, x470); + fiat_secp384r1_addcarryx_u32(&x491, &x492, x490, x457, x467); + fiat_secp384r1_addcarryx_u32(&x493, &x494, x492, x459, x475); + fiat_secp384r1_addcarryx_u32(&x495, &x496, x494, x461, x476); + fiat_secp384r1_addcarryx_u32(&x497, &x498, x496, x463, 0x0); + fiat_secp384r1_addcarryx_u32(&x499, &x500, x498, x465, 0x0); + fiat_secp384r1_mulx_u32(&x501, &x502, x477, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x503, &x504, x477, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x505, &x506, x477, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x507, &x508, x477, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x509, &x510, x477, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x511, &x512, x477, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x513, &x514, x477, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x515, &x516, x477, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x517, &x518, x477, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x519, &x520, x477, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x521, &x522, 0x0, x518, x515); + fiat_secp384r1_addcarryx_u32(&x523, &x524, x522, x516, x513); + fiat_secp384r1_addcarryx_u32(&x525, &x526, x524, x514, x511); + fiat_secp384r1_addcarryx_u32(&x527, &x528, x526, x512, x509); + fiat_secp384r1_addcarryx_u32(&x529, &x530, x528, x510, x507); + fiat_secp384r1_addcarryx_u32(&x531, &x532, x530, x508, x505); + fiat_secp384r1_addcarryx_u32(&x533, &x534, x532, x506, x503); + fiat_secp384r1_addcarryx_u32(&x535, &x536, x534, x504, x501); + fiat_secp384r1_addcarryx_u32(&x537, &x538, 0x0, x477, x519); + fiat_secp384r1_addcarryx_u32(&x539, &x540, x538, x479, x520); + fiat_secp384r1_addcarryx_u32(&x541, &x542, x540, x481, 0x0); + fiat_secp384r1_addcarryx_u32(&x543, &x544, x542, x483, x517); + fiat_secp384r1_addcarryx_u32(&x545, &x546, x544, x485, x521); + fiat_secp384r1_addcarryx_u32(&x547, &x548, x546, x487, x523); + fiat_secp384r1_addcarryx_u32(&x549, &x550, x548, x489, x525); + fiat_secp384r1_addcarryx_u32(&x551, &x552, x550, x491, x527); + fiat_secp384r1_addcarryx_u32(&x553, &x554, x552, x493, x529); + fiat_secp384r1_addcarryx_u32(&x555, &x556, x554, x495, x531); + fiat_secp384r1_addcarryx_u32(&x557, &x558, x556, x497, x533); + fiat_secp384r1_addcarryx_u32(&x559, &x560, x558, x499, x535); + fiat_secp384r1_addcarryx_u32(&x561, &x562, x560, ((uint32_t)x500 + x466), + (x536 + x502)); + fiat_secp384r1_mulx_u32(&x563, &x564, x6, 0x2); + fiat_secp384r1_mulx_u32(&x565, &x566, x6, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x567, &x568, x6, 0x2); + fiat_secp384r1_mulx_u32(&x569, &x570, x6, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x571, &x572, 0x0, (fiat_secp384r1_uint1)x564, + x6); + fiat_secp384r1_addcarryx_u32(&x573, &x574, 0x0, x539, x6); + fiat_secp384r1_addcarryx_u32(&x575, &x576, x574, x541, x569); + fiat_secp384r1_addcarryx_u32(&x577, &x578, x576, x543, x570); + fiat_secp384r1_addcarryx_u32(&x579, &x580, x578, x545, x567); + fiat_secp384r1_addcarryx_u32(&x581, &x582, x580, x547, + (fiat_secp384r1_uint1)x568); + fiat_secp384r1_addcarryx_u32(&x583, &x584, x582, x549, x565); + fiat_secp384r1_addcarryx_u32(&x585, &x586, x584, x551, x566); + fiat_secp384r1_addcarryx_u32(&x587, &x588, x586, x553, x563); + fiat_secp384r1_addcarryx_u32(&x589, &x590, x588, x555, x571); + fiat_secp384r1_addcarryx_u32(&x591, &x592, x590, x557, x572); + fiat_secp384r1_addcarryx_u32(&x593, &x594, x592, x559, 0x0); + fiat_secp384r1_addcarryx_u32(&x595, &x596, x594, x561, 0x0); + fiat_secp384r1_mulx_u32(&x597, &x598, x573, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x599, &x600, x573, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x601, &x602, x573, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x603, &x604, x573, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x605, &x606, x573, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x607, &x608, x573, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x609, &x610, x573, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x611, &x612, x573, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x613, &x614, x573, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x615, &x616, x573, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x617, &x618, 0x0, x614, x611); + fiat_secp384r1_addcarryx_u32(&x619, &x620, x618, x612, x609); + fiat_secp384r1_addcarryx_u32(&x621, &x622, x620, x610, x607); + fiat_secp384r1_addcarryx_u32(&x623, &x624, x622, x608, x605); + fiat_secp384r1_addcarryx_u32(&x625, &x626, x624, x606, x603); + fiat_secp384r1_addcarryx_u32(&x627, &x628, x626, x604, x601); + fiat_secp384r1_addcarryx_u32(&x629, &x630, x628, x602, x599); + fiat_secp384r1_addcarryx_u32(&x631, &x632, x630, x600, x597); + fiat_secp384r1_addcarryx_u32(&x633, &x634, 0x0, x573, x615); + fiat_secp384r1_addcarryx_u32(&x635, &x636, x634, x575, x616); + fiat_secp384r1_addcarryx_u32(&x637, &x638, x636, x577, 0x0); + fiat_secp384r1_addcarryx_u32(&x639, &x640, x638, x579, x613); + fiat_secp384r1_addcarryx_u32(&x641, &x642, x640, x581, x617); + fiat_secp384r1_addcarryx_u32(&x643, &x644, x642, x583, x619); + fiat_secp384r1_addcarryx_u32(&x645, &x646, x644, x585, x621); + fiat_secp384r1_addcarryx_u32(&x647, &x648, x646, x587, x623); + fiat_secp384r1_addcarryx_u32(&x649, &x650, x648, x589, x625); + fiat_secp384r1_addcarryx_u32(&x651, &x652, x650, x591, x627); + fiat_secp384r1_addcarryx_u32(&x653, &x654, x652, x593, x629); + fiat_secp384r1_addcarryx_u32(&x655, &x656, x654, x595, x631); + fiat_secp384r1_addcarryx_u32(&x657, &x658, x656, ((uint32_t)x596 + x562), + (x632 + x598)); + fiat_secp384r1_mulx_u32(&x659, &x660, x7, 0x2); + fiat_secp384r1_mulx_u32(&x661, &x662, x7, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x663, &x664, x7, 0x2); + fiat_secp384r1_mulx_u32(&x665, &x666, x7, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x667, &x668, 0x0, (fiat_secp384r1_uint1)x660, + x7); + fiat_secp384r1_addcarryx_u32(&x669, &x670, 0x0, x635, x7); + fiat_secp384r1_addcarryx_u32(&x671, &x672, x670, x637, x665); + fiat_secp384r1_addcarryx_u32(&x673, &x674, x672, x639, x666); + fiat_secp384r1_addcarryx_u32(&x675, &x676, x674, x641, x663); + fiat_secp384r1_addcarryx_u32(&x677, &x678, x676, x643, + (fiat_secp384r1_uint1)x664); + fiat_secp384r1_addcarryx_u32(&x679, &x680, x678, x645, x661); + fiat_secp384r1_addcarryx_u32(&x681, &x682, x680, x647, x662); + fiat_secp384r1_addcarryx_u32(&x683, &x684, x682, x649, x659); + fiat_secp384r1_addcarryx_u32(&x685, &x686, x684, x651, x667); + fiat_secp384r1_addcarryx_u32(&x687, &x688, x686, x653, x668); + fiat_secp384r1_addcarryx_u32(&x689, &x690, x688, x655, 0x0); + fiat_secp384r1_addcarryx_u32(&x691, &x692, x690, x657, 0x0); + fiat_secp384r1_mulx_u32(&x693, &x694, x669, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x695, &x696, x669, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x697, &x698, x669, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x699, &x700, x669, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x701, &x702, x669, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x703, &x704, x669, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x705, &x706, x669, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x707, &x708, x669, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x709, &x710, x669, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x711, &x712, x669, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x713, &x714, 0x0, x710, x707); + fiat_secp384r1_addcarryx_u32(&x715, &x716, x714, x708, x705); + fiat_secp384r1_addcarryx_u32(&x717, &x718, x716, x706, x703); + fiat_secp384r1_addcarryx_u32(&x719, &x720, x718, x704, x701); + fiat_secp384r1_addcarryx_u32(&x721, &x722, x720, x702, x699); + fiat_secp384r1_addcarryx_u32(&x723, &x724, x722, x700, x697); + fiat_secp384r1_addcarryx_u32(&x725, &x726, x724, x698, x695); + fiat_secp384r1_addcarryx_u32(&x727, &x728, x726, x696, x693); + fiat_secp384r1_addcarryx_u32(&x729, &x730, 0x0, x669, x711); + fiat_secp384r1_addcarryx_u32(&x731, &x732, x730, x671, x712); + fiat_secp384r1_addcarryx_u32(&x733, &x734, x732, x673, 0x0); + fiat_secp384r1_addcarryx_u32(&x735, &x736, x734, x675, x709); + fiat_secp384r1_addcarryx_u32(&x737, &x738, x736, x677, x713); + fiat_secp384r1_addcarryx_u32(&x739, &x740, x738, x679, x715); + fiat_secp384r1_addcarryx_u32(&x741, &x742, x740, x681, x717); + fiat_secp384r1_addcarryx_u32(&x743, &x744, x742, x683, x719); + fiat_secp384r1_addcarryx_u32(&x745, &x746, x744, x685, x721); + fiat_secp384r1_addcarryx_u32(&x747, &x748, x746, x687, x723); + fiat_secp384r1_addcarryx_u32(&x749, &x750, x748, x689, x725); + fiat_secp384r1_addcarryx_u32(&x751, &x752, x750, x691, x727); + fiat_secp384r1_addcarryx_u32(&x753, &x754, x752, ((uint32_t)x692 + x658), + (x728 + x694)); + fiat_secp384r1_mulx_u32(&x755, &x756, x8, 0x2); + fiat_secp384r1_mulx_u32(&x757, &x758, x8, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x759, &x760, x8, 0x2); + fiat_secp384r1_mulx_u32(&x761, &x762, x8, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x763, &x764, 0x0, (fiat_secp384r1_uint1)x756, + x8); + fiat_secp384r1_addcarryx_u32(&x765, &x766, 0x0, x731, x8); + fiat_secp384r1_addcarryx_u32(&x767, &x768, x766, x733, x761); + fiat_secp384r1_addcarryx_u32(&x769, &x770, x768, x735, x762); + fiat_secp384r1_addcarryx_u32(&x771, &x772, x770, x737, x759); + fiat_secp384r1_addcarryx_u32(&x773, &x774, x772, x739, + (fiat_secp384r1_uint1)x760); + fiat_secp384r1_addcarryx_u32(&x775, &x776, x774, x741, x757); + fiat_secp384r1_addcarryx_u32(&x777, &x778, x776, x743, x758); + fiat_secp384r1_addcarryx_u32(&x779, &x780, x778, x745, x755); + fiat_secp384r1_addcarryx_u32(&x781, &x782, x780, x747, x763); + fiat_secp384r1_addcarryx_u32(&x783, &x784, x782, x749, x764); + fiat_secp384r1_addcarryx_u32(&x785, &x786, x784, x751, 0x0); + fiat_secp384r1_addcarryx_u32(&x787, &x788, x786, x753, 0x0); + fiat_secp384r1_mulx_u32(&x789, &x790, x765, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x791, &x792, x765, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x793, &x794, x765, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x795, &x796, x765, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x797, &x798, x765, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x799, &x800, x765, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x801, &x802, x765, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x803, &x804, x765, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x805, &x806, x765, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x807, &x808, x765, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x809, &x810, 0x0, x806, x803); + fiat_secp384r1_addcarryx_u32(&x811, &x812, x810, x804, x801); + fiat_secp384r1_addcarryx_u32(&x813, &x814, x812, x802, x799); + fiat_secp384r1_addcarryx_u32(&x815, &x816, x814, x800, x797); + fiat_secp384r1_addcarryx_u32(&x817, &x818, x816, x798, x795); + fiat_secp384r1_addcarryx_u32(&x819, &x820, x818, x796, x793); + fiat_secp384r1_addcarryx_u32(&x821, &x822, x820, x794, x791); + fiat_secp384r1_addcarryx_u32(&x823, &x824, x822, x792, x789); + fiat_secp384r1_addcarryx_u32(&x825, &x826, 0x0, x765, x807); + fiat_secp384r1_addcarryx_u32(&x827, &x828, x826, x767, x808); + fiat_secp384r1_addcarryx_u32(&x829, &x830, x828, x769, 0x0); + fiat_secp384r1_addcarryx_u32(&x831, &x832, x830, x771, x805); + fiat_secp384r1_addcarryx_u32(&x833, &x834, x832, x773, x809); + fiat_secp384r1_addcarryx_u32(&x835, &x836, x834, x775, x811); + fiat_secp384r1_addcarryx_u32(&x837, &x838, x836, x777, x813); + fiat_secp384r1_addcarryx_u32(&x839, &x840, x838, x779, x815); + fiat_secp384r1_addcarryx_u32(&x841, &x842, x840, x781, x817); + fiat_secp384r1_addcarryx_u32(&x843, &x844, x842, x783, x819); + fiat_secp384r1_addcarryx_u32(&x845, &x846, x844, x785, x821); + fiat_secp384r1_addcarryx_u32(&x847, &x848, x846, x787, x823); + fiat_secp384r1_addcarryx_u32(&x849, &x850, x848, ((uint32_t)x788 + x754), + (x824 + x790)); + fiat_secp384r1_mulx_u32(&x851, &x852, x9, 0x2); + fiat_secp384r1_mulx_u32(&x853, &x854, x9, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x855, &x856, x9, 0x2); + fiat_secp384r1_mulx_u32(&x857, &x858, x9, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x859, &x860, 0x0, (fiat_secp384r1_uint1)x852, + x9); + fiat_secp384r1_addcarryx_u32(&x861, &x862, 0x0, x827, x9); + fiat_secp384r1_addcarryx_u32(&x863, &x864, x862, x829, x857); + fiat_secp384r1_addcarryx_u32(&x865, &x866, x864, x831, x858); + fiat_secp384r1_addcarryx_u32(&x867, &x868, x866, x833, x855); + fiat_secp384r1_addcarryx_u32(&x869, &x870, x868, x835, + (fiat_secp384r1_uint1)x856); + fiat_secp384r1_addcarryx_u32(&x871, &x872, x870, x837, x853); + fiat_secp384r1_addcarryx_u32(&x873, &x874, x872, x839, x854); + fiat_secp384r1_addcarryx_u32(&x875, &x876, x874, x841, x851); + fiat_secp384r1_addcarryx_u32(&x877, &x878, x876, x843, x859); + fiat_secp384r1_addcarryx_u32(&x879, &x880, x878, x845, x860); + fiat_secp384r1_addcarryx_u32(&x881, &x882, x880, x847, 0x0); + fiat_secp384r1_addcarryx_u32(&x883, &x884, x882, x849, 0x0); + fiat_secp384r1_mulx_u32(&x885, &x886, x861, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x887, &x888, x861, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x889, &x890, x861, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x891, &x892, x861, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x893, &x894, x861, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x895, &x896, x861, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x897, &x898, x861, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x899, &x900, x861, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x901, &x902, x861, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x903, &x904, x861, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x905, &x906, 0x0, x902, x899); + fiat_secp384r1_addcarryx_u32(&x907, &x908, x906, x900, x897); + fiat_secp384r1_addcarryx_u32(&x909, &x910, x908, x898, x895); + fiat_secp384r1_addcarryx_u32(&x911, &x912, x910, x896, x893); + fiat_secp384r1_addcarryx_u32(&x913, &x914, x912, x894, x891); + fiat_secp384r1_addcarryx_u32(&x915, &x916, x914, x892, x889); + fiat_secp384r1_addcarryx_u32(&x917, &x918, x916, x890, x887); + fiat_secp384r1_addcarryx_u32(&x919, &x920, x918, x888, x885); + fiat_secp384r1_addcarryx_u32(&x921, &x922, 0x0, x861, x903); + fiat_secp384r1_addcarryx_u32(&x923, &x924, x922, x863, x904); + fiat_secp384r1_addcarryx_u32(&x925, &x926, x924, x865, 0x0); + fiat_secp384r1_addcarryx_u32(&x927, &x928, x926, x867, x901); + fiat_secp384r1_addcarryx_u32(&x929, &x930, x928, x869, x905); + fiat_secp384r1_addcarryx_u32(&x931, &x932, x930, x871, x907); + fiat_secp384r1_addcarryx_u32(&x933, &x934, x932, x873, x909); + fiat_secp384r1_addcarryx_u32(&x935, &x936, x934, x875, x911); + fiat_secp384r1_addcarryx_u32(&x937, &x938, x936, x877, x913); + fiat_secp384r1_addcarryx_u32(&x939, &x940, x938, x879, x915); + fiat_secp384r1_addcarryx_u32(&x941, &x942, x940, x881, x917); + fiat_secp384r1_addcarryx_u32(&x943, &x944, x942, x883, x919); + fiat_secp384r1_addcarryx_u32(&x945, &x946, x944, ((uint32_t)x884 + x850), + (x920 + x886)); + fiat_secp384r1_mulx_u32(&x947, &x948, x10, 0x2); + fiat_secp384r1_mulx_u32(&x949, &x950, x10, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x951, &x952, x10, 0x2); + fiat_secp384r1_mulx_u32(&x953, &x954, x10, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x955, &x956, 0x0, (fiat_secp384r1_uint1)x948, + x10); + fiat_secp384r1_addcarryx_u32(&x957, &x958, 0x0, x923, x10); + fiat_secp384r1_addcarryx_u32(&x959, &x960, x958, x925, x953); + fiat_secp384r1_addcarryx_u32(&x961, &x962, x960, x927, x954); + fiat_secp384r1_addcarryx_u32(&x963, &x964, x962, x929, x951); + fiat_secp384r1_addcarryx_u32(&x965, &x966, x964, x931, + (fiat_secp384r1_uint1)x952); + fiat_secp384r1_addcarryx_u32(&x967, &x968, x966, x933, x949); + fiat_secp384r1_addcarryx_u32(&x969, &x970, x968, x935, x950); + fiat_secp384r1_addcarryx_u32(&x971, &x972, x970, x937, x947); + fiat_secp384r1_addcarryx_u32(&x973, &x974, x972, x939, x955); + fiat_secp384r1_addcarryx_u32(&x975, &x976, x974, x941, x956); + fiat_secp384r1_addcarryx_u32(&x977, &x978, x976, x943, 0x0); + fiat_secp384r1_addcarryx_u32(&x979, &x980, x978, x945, 0x0); + fiat_secp384r1_mulx_u32(&x981, &x982, x957, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x983, &x984, x957, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x985, &x986, x957, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x987, &x988, x957, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x989, &x990, x957, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x991, &x992, x957, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x993, &x994, x957, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x995, &x996, x957, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x997, &x998, x957, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x999, &x1000, x957, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1001, &x1002, 0x0, x998, x995); + fiat_secp384r1_addcarryx_u32(&x1003, &x1004, x1002, x996, x993); + fiat_secp384r1_addcarryx_u32(&x1005, &x1006, x1004, x994, x991); + fiat_secp384r1_addcarryx_u32(&x1007, &x1008, x1006, x992, x989); + fiat_secp384r1_addcarryx_u32(&x1009, &x1010, x1008, x990, x987); + fiat_secp384r1_addcarryx_u32(&x1011, &x1012, x1010, x988, x985); + fiat_secp384r1_addcarryx_u32(&x1013, &x1014, x1012, x986, x983); + fiat_secp384r1_addcarryx_u32(&x1015, &x1016, x1014, x984, x981); + fiat_secp384r1_addcarryx_u32(&x1017, &x1018, 0x0, x957, x999); + fiat_secp384r1_addcarryx_u32(&x1019, &x1020, x1018, x959, x1000); + fiat_secp384r1_addcarryx_u32(&x1021, &x1022, x1020, x961, 0x0); + fiat_secp384r1_addcarryx_u32(&x1023, &x1024, x1022, x963, x997); + fiat_secp384r1_addcarryx_u32(&x1025, &x1026, x1024, x965, x1001); + fiat_secp384r1_addcarryx_u32(&x1027, &x1028, x1026, x967, x1003); + fiat_secp384r1_addcarryx_u32(&x1029, &x1030, x1028, x969, x1005); + fiat_secp384r1_addcarryx_u32(&x1031, &x1032, x1030, x971, x1007); + fiat_secp384r1_addcarryx_u32(&x1033, &x1034, x1032, x973, x1009); + fiat_secp384r1_addcarryx_u32(&x1035, &x1036, x1034, x975, x1011); + fiat_secp384r1_addcarryx_u32(&x1037, &x1038, x1036, x977, x1013); + fiat_secp384r1_addcarryx_u32(&x1039, &x1040, x1038, x979, x1015); + fiat_secp384r1_addcarryx_u32(&x1041, &x1042, x1040, ((uint32_t)x980 + x946), + (x1016 + x982)); + fiat_secp384r1_mulx_u32(&x1043, &x1044, x11, 0x2); + fiat_secp384r1_mulx_u32(&x1045, &x1046, x11, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1047, &x1048, x11, 0x2); + fiat_secp384r1_mulx_u32(&x1049, &x1050, x11, UINT32_C(0xfffffffe)); + fiat_secp384r1_addcarryx_u32(&x1051, &x1052, 0x0, + (fiat_secp384r1_uint1)x1044, x11); + fiat_secp384r1_addcarryx_u32(&x1053, &x1054, 0x0, x1019, x11); + fiat_secp384r1_addcarryx_u32(&x1055, &x1056, x1054, x1021, x1049); + fiat_secp384r1_addcarryx_u32(&x1057, &x1058, x1056, x1023, x1050); + fiat_secp384r1_addcarryx_u32(&x1059, &x1060, x1058, x1025, x1047); + fiat_secp384r1_addcarryx_u32(&x1061, &x1062, x1060, x1027, + (fiat_secp384r1_uint1)x1048); + fiat_secp384r1_addcarryx_u32(&x1063, &x1064, x1062, x1029, x1045); + fiat_secp384r1_addcarryx_u32(&x1065, &x1066, x1064, x1031, x1046); + fiat_secp384r1_addcarryx_u32(&x1067, &x1068, x1066, x1033, x1043); + fiat_secp384r1_addcarryx_u32(&x1069, &x1070, x1068, x1035, x1051); + fiat_secp384r1_addcarryx_u32(&x1071, &x1072, x1070, x1037, x1052); + fiat_secp384r1_addcarryx_u32(&x1073, &x1074, x1072, x1039, 0x0); + fiat_secp384r1_addcarryx_u32(&x1075, &x1076, x1074, x1041, 0x0); + fiat_secp384r1_mulx_u32(&x1077, &x1078, x1053, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1079, &x1080, x1053, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1081, &x1082, x1053, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1083, &x1084, x1053, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1085, &x1086, x1053, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1087, &x1088, x1053, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1089, &x1090, x1053, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1091, &x1092, x1053, UINT32_C(0xfffffffe)); + fiat_secp384r1_mulx_u32(&x1093, &x1094, x1053, UINT32_C(0xffffffff)); + fiat_secp384r1_mulx_u32(&x1095, &x1096, x1053, UINT32_C(0xffffffff)); + fiat_secp384r1_addcarryx_u32(&x1097, &x1098, 0x0, x1094, x1091); + fiat_secp384r1_addcarryx_u32(&x1099, &x1100, x1098, x1092, x1089); + fiat_secp384r1_addcarryx_u32(&x1101, &x1102, x1100, x1090, x1087); + fiat_secp384r1_addcarryx_u32(&x1103, &x1104, x1102, x1088, x1085); + fiat_secp384r1_addcarryx_u32(&x1105, &x1106, x1104, x1086, x1083); + fiat_secp384r1_addcarryx_u32(&x1107, &x1108, x1106, x1084, x1081); + fiat_secp384r1_addcarryx_u32(&x1109, &x1110, x1108, x1082, x1079); + fiat_secp384r1_addcarryx_u32(&x1111, &x1112, x1110, x1080, x1077); + fiat_secp384r1_addcarryx_u32(&x1113, &x1114, 0x0, x1053, x1095); + fiat_secp384r1_addcarryx_u32(&x1115, &x1116, x1114, x1055, x1096); + fiat_secp384r1_addcarryx_u32(&x1117, &x1118, x1116, x1057, 0x0); + fiat_secp384r1_addcarryx_u32(&x1119, &x1120, x1118, x1059, x1093); + fiat_secp384r1_addcarryx_u32(&x1121, &x1122, x1120, x1061, x1097); + fiat_secp384r1_addcarryx_u32(&x1123, &x1124, x1122, x1063, x1099); + fiat_secp384r1_addcarryx_u32(&x1125, &x1126, x1124, x1065, x1101); + fiat_secp384r1_addcarryx_u32(&x1127, &x1128, x1126, x1067, x1103); + fiat_secp384r1_addcarryx_u32(&x1129, &x1130, x1128, x1069, x1105); + fiat_secp384r1_addcarryx_u32(&x1131, &x1132, x1130, x1071, x1107); + fiat_secp384r1_addcarryx_u32(&x1133, &x1134, x1132, x1073, x1109); + fiat_secp384r1_addcarryx_u32(&x1135, &x1136, x1134, x1075, x1111); + fiat_secp384r1_addcarryx_u32(&x1137, &x1138, x1136, + ((uint32_t)x1076 + x1042), (x1112 + x1078)); + fiat_secp384r1_subborrowx_u32(&x1139, &x1140, 0x0, x1115, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1141, &x1142, x1140, x1117, 0x0); + fiat_secp384r1_subborrowx_u32(&x1143, &x1144, x1142, x1119, 0x0); + fiat_secp384r1_subborrowx_u32(&x1145, &x1146, x1144, x1121, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1147, &x1148, x1146, x1123, + UINT32_C(0xfffffffe)); + fiat_secp384r1_subborrowx_u32(&x1149, &x1150, x1148, x1125, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1151, &x1152, x1150, x1127, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1153, &x1154, x1152, x1129, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1155, &x1156, x1154, x1131, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1157, &x1158, x1156, x1133, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1159, &x1160, x1158, x1135, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1161, &x1162, x1160, x1137, + UINT32_C(0xffffffff)); + fiat_secp384r1_subborrowx_u32(&x1163, &x1164, x1162, x1138, 0x0); + fiat_secp384r1_cmovznz_u32(&x1165, x1164, x1139, x1115); + fiat_secp384r1_cmovznz_u32(&x1166, x1164, x1141, x1117); + fiat_secp384r1_cmovznz_u32(&x1167, x1164, x1143, x1119); + fiat_secp384r1_cmovznz_u32(&x1168, x1164, x1145, x1121); + fiat_secp384r1_cmovznz_u32(&x1169, x1164, x1147, x1123); + fiat_secp384r1_cmovznz_u32(&x1170, x1164, x1149, x1125); + fiat_secp384r1_cmovznz_u32(&x1171, x1164, x1151, x1127); + fiat_secp384r1_cmovznz_u32(&x1172, x1164, x1153, x1129); + fiat_secp384r1_cmovznz_u32(&x1173, x1164, x1155, x1131); + fiat_secp384r1_cmovznz_u32(&x1174, x1164, x1157, x1133); + fiat_secp384r1_cmovznz_u32(&x1175, x1164, x1159, x1135); + fiat_secp384r1_cmovznz_u32(&x1176, x1164, x1161, x1137); + out1[0] = x1165; + out1[1] = x1166; + out1[2] = x1167; + out1[3] = x1168; + out1[4] = x1169; + out1[5] = x1170; + out1[6] = x1171; + out1[7] = x1172; + out1[8] = x1173; + out1[9] = x1174; + out1[10] = x1175; + out1[11] = x1176; +} + +/* + * The function fiat_secp384r1_nonzero outputs a single non-zero word if the input is non-zero and zero otherwise. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * out1 = 0 ↔ eval (from_montgomery arg1) mod m = 0 + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * Output Bounds: + * out1: [0x0 ~> 0xffffffff] + */ +static void +fiat_secp384r1_nonzero(uint32_t *out1, const uint32_t arg1[12]) +{ + uint32_t x1; + x1 = ((arg1[0]) | + ((arg1[1]) | + ((arg1[2]) | + ((arg1[3]) | + ((arg1[4]) | + ((arg1[5]) | + ((arg1[6]) | + ((arg1[7]) | + ((arg1[8]) | + ((arg1[9]) | + ((arg1[10]) | ((arg1[11]) | (uint32_t)0x0)))))))))))); + *out1 = x1; +} + +/* + * The function fiat_secp384r1_selectznz is a multi-limb conditional select. + * Postconditions: + * eval out1 = (if arg1 = 0 then eval arg2 else eval arg3) + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * arg3: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + */ +static void +fiat_secp384r1_selectznz(uint32_t out1[12], + fiat_secp384r1_uint1 arg1, + const uint32_t arg2[12], + const uint32_t arg3[12]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + fiat_secp384r1_cmovznz_u32(&x1, arg1, (arg2[0]), (arg3[0])); + fiat_secp384r1_cmovznz_u32(&x2, arg1, (arg2[1]), (arg3[1])); + fiat_secp384r1_cmovznz_u32(&x3, arg1, (arg2[2]), (arg3[2])); + fiat_secp384r1_cmovznz_u32(&x4, arg1, (arg2[3]), (arg3[3])); + fiat_secp384r1_cmovznz_u32(&x5, arg1, (arg2[4]), (arg3[4])); + fiat_secp384r1_cmovznz_u32(&x6, arg1, (arg2[5]), (arg3[5])); + fiat_secp384r1_cmovznz_u32(&x7, arg1, (arg2[6]), (arg3[6])); + fiat_secp384r1_cmovznz_u32(&x8, arg1, (arg2[7]), (arg3[7])); + fiat_secp384r1_cmovznz_u32(&x9, arg1, (arg2[8]), (arg3[8])); + fiat_secp384r1_cmovznz_u32(&x10, arg1, (arg2[9]), (arg3[9])); + fiat_secp384r1_cmovznz_u32(&x11, arg1, (arg2[10]), (arg3[10])); + fiat_secp384r1_cmovznz_u32(&x12, arg1, (arg2[11]), (arg3[11])); + out1[0] = x1; + out1[1] = x2; + out1[2] = x3; + out1[3] = x4; + out1[4] = x5; + out1[5] = x6; + out1[6] = x7; + out1[7] = x8; + out1[8] = x9; + out1[9] = x10; + out1[10] = x11; + out1[11] = x12; +} + +/* + * The function fiat_secp384r1_to_bytes serializes a field element in the Montgomery domain to bytes in little-endian order. + * Preconditions: + * 0 ≤ eval arg1 < m + * Postconditions: + * out1 = map (λ x, ⌊((eval arg1 mod m) mod 2^(8 * (x + 1))) / 2^(8 * x)⌋) [0..47] + * + * Input Bounds: + * arg1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff]] + */ +static void +fiat_secp384r1_to_bytes(uint8_t out1[48], const uint32_t arg1[12]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint8_t x14; + uint32_t x15; + uint8_t x16; + uint8_t x17; + uint8_t x18; + uint8_t x19; + uint32_t x20; + uint8_t x21; + uint32_t x22; + uint8_t x23; + uint8_t x24; + uint8_t x25; + uint8_t x26; + uint32_t x27; + uint8_t x28; + uint32_t x29; + uint8_t x30; + uint8_t x31; + uint8_t x32; + uint8_t x33; + uint32_t x34; + uint8_t x35; + uint32_t x36; + uint8_t x37; + uint8_t x38; + uint8_t x39; + uint8_t x40; + uint32_t x41; + uint8_t x42; + uint32_t x43; + uint8_t x44; + uint8_t x45; + uint8_t x46; + uint8_t x47; + uint32_t x48; + uint8_t x49; + uint32_t x50; + uint8_t x51; + uint8_t x52; + uint8_t x53; + uint8_t x54; + uint32_t x55; + uint8_t x56; + uint32_t x57; + uint8_t x58; + uint8_t x59; + uint8_t x60; + uint8_t x61; + uint32_t x62; + uint8_t x63; + uint32_t x64; + uint8_t x65; + uint8_t x66; + uint8_t x67; + uint8_t x68; + uint32_t x69; + uint8_t x70; + uint32_t x71; + uint8_t x72; + uint8_t x73; + uint8_t x74; + uint8_t x75; + uint32_t x76; + uint8_t x77; + uint32_t x78; + uint8_t x79; + uint8_t x80; + uint8_t x81; + uint8_t x82; + uint32_t x83; + uint8_t x84; + uint32_t x85; + uint8_t x86; + uint8_t x87; + uint8_t x88; + uint8_t x89; + uint32_t x90; + uint8_t x91; + uint32_t x92; + uint8_t x93; + uint8_t x94; + uint8_t x95; + x1 = (arg1[11]); + x2 = (arg1[10]); + x3 = (arg1[9]); + x4 = (arg1[8]); + x5 = (arg1[7]); + x6 = (arg1[6]); + x7 = (arg1[5]); + x8 = (arg1[4]); + x9 = (arg1[3]); + x10 = (arg1[2]); + x11 = (arg1[1]); + x12 = (arg1[0]); + x13 = (x12 >> 8); + x14 = (uint8_t)(x12 & UINT8_C(0xff)); + x15 = (x13 >> 8); + x16 = (uint8_t)(x13 & UINT8_C(0xff)); + x17 = (uint8_t)(x15 >> 8); + x18 = (uint8_t)(x15 & UINT8_C(0xff)); + x19 = (uint8_t)(x17 & UINT8_C(0xff)); + x20 = (x11 >> 8); + x21 = (uint8_t)(x11 & UINT8_C(0xff)); + x22 = (x20 >> 8); + x23 = (uint8_t)(x20 & UINT8_C(0xff)); + x24 = (uint8_t)(x22 >> 8); + x25 = (uint8_t)(x22 & UINT8_C(0xff)); + x26 = (uint8_t)(x24 & UINT8_C(0xff)); + x27 = (x10 >> 8); + x28 = (uint8_t)(x10 & UINT8_C(0xff)); + x29 = (x27 >> 8); + x30 = (uint8_t)(x27 & UINT8_C(0xff)); + x31 = (uint8_t)(x29 >> 8); + x32 = (uint8_t)(x29 & UINT8_C(0xff)); + x33 = (uint8_t)(x31 & UINT8_C(0xff)); + x34 = (x9 >> 8); + x35 = (uint8_t)(x9 & UINT8_C(0xff)); + x36 = (x34 >> 8); + x37 = (uint8_t)(x34 & UINT8_C(0xff)); + x38 = (uint8_t)(x36 >> 8); + x39 = (uint8_t)(x36 & UINT8_C(0xff)); + x40 = (uint8_t)(x38 & UINT8_C(0xff)); + x41 = (x8 >> 8); + x42 = (uint8_t)(x8 & UINT8_C(0xff)); + x43 = (x41 >> 8); + x44 = (uint8_t)(x41 & UINT8_C(0xff)); + x45 = (uint8_t)(x43 >> 8); + x46 = (uint8_t)(x43 & UINT8_C(0xff)); + x47 = (uint8_t)(x45 & UINT8_C(0xff)); + x48 = (x7 >> 8); + x49 = (uint8_t)(x7 & UINT8_C(0xff)); + x50 = (x48 >> 8); + x51 = (uint8_t)(x48 & UINT8_C(0xff)); + x52 = (uint8_t)(x50 >> 8); + x53 = (uint8_t)(x50 & UINT8_C(0xff)); + x54 = (uint8_t)(x52 & UINT8_C(0xff)); + x55 = (x6 >> 8); + x56 = (uint8_t)(x6 & UINT8_C(0xff)); + x57 = (x55 >> 8); + x58 = (uint8_t)(x55 & UINT8_C(0xff)); + x59 = (uint8_t)(x57 >> 8); + x60 = (uint8_t)(x57 & UINT8_C(0xff)); + x61 = (uint8_t)(x59 & UINT8_C(0xff)); + x62 = (x5 >> 8); + x63 = (uint8_t)(x5 & UINT8_C(0xff)); + x64 = (x62 >> 8); + x65 = (uint8_t)(x62 & UINT8_C(0xff)); + x66 = (uint8_t)(x64 >> 8); + x67 = (uint8_t)(x64 & UINT8_C(0xff)); + x68 = (uint8_t)(x66 & UINT8_C(0xff)); + x69 = (x4 >> 8); + x70 = (uint8_t)(x4 & UINT8_C(0xff)); + x71 = (x69 >> 8); + x72 = (uint8_t)(x69 & UINT8_C(0xff)); + x73 = (uint8_t)(x71 >> 8); + x74 = (uint8_t)(x71 & UINT8_C(0xff)); + x75 = (uint8_t)(x73 & UINT8_C(0xff)); + x76 = (x3 >> 8); + x77 = (uint8_t)(x3 & UINT8_C(0xff)); + x78 = (x76 >> 8); + x79 = (uint8_t)(x76 & UINT8_C(0xff)); + x80 = (uint8_t)(x78 >> 8); + x81 = (uint8_t)(x78 & UINT8_C(0xff)); + x82 = (uint8_t)(x80 & UINT8_C(0xff)); + x83 = (x2 >> 8); + x84 = (uint8_t)(x2 & UINT8_C(0xff)); + x85 = (x83 >> 8); + x86 = (uint8_t)(x83 & UINT8_C(0xff)); + x87 = (uint8_t)(x85 >> 8); + x88 = (uint8_t)(x85 & UINT8_C(0xff)); + x89 = (uint8_t)(x87 & UINT8_C(0xff)); + x90 = (x1 >> 8); + x91 = (uint8_t)(x1 & UINT8_C(0xff)); + x92 = (x90 >> 8); + x93 = (uint8_t)(x90 & UINT8_C(0xff)); + x94 = (uint8_t)(x92 >> 8); + x95 = (uint8_t)(x92 & UINT8_C(0xff)); + out1[0] = x14; + out1[1] = x16; + out1[2] = x18; + out1[3] = x19; + out1[4] = x21; + out1[5] = x23; + out1[6] = x25; + out1[7] = x26; + out1[8] = x28; + out1[9] = x30; + out1[10] = x32; + out1[11] = x33; + out1[12] = x35; + out1[13] = x37; + out1[14] = x39; + out1[15] = x40; + out1[16] = x42; + out1[17] = x44; + out1[18] = x46; + out1[19] = x47; + out1[20] = x49; + out1[21] = x51; + out1[22] = x53; + out1[23] = x54; + out1[24] = x56; + out1[25] = x58; + out1[26] = x60; + out1[27] = x61; + out1[28] = x63; + out1[29] = x65; + out1[30] = x67; + out1[31] = x68; + out1[32] = x70; + out1[33] = x72; + out1[34] = x74; + out1[35] = x75; + out1[36] = x77; + out1[37] = x79; + out1[38] = x81; + out1[39] = x82; + out1[40] = x84; + out1[41] = x86; + out1[42] = x88; + out1[43] = x89; + out1[44] = x91; + out1[45] = x93; + out1[46] = x95; + out1[47] = x94; +} + +/* + * The function fiat_secp384r1_from_bytes deserializes a field element in the Montgomery domain from bytes in little-endian order. + * Preconditions: + * 0 ≤ bytes_eval arg1 < m + * Postconditions: + * eval out1 mod m = bytes_eval arg1 mod m + * 0 ≤ eval out1 < m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + */ +static void +fiat_secp384r1_from_bytes(uint32_t out1[12], + const uint8_t arg1[48]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint8_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint8_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint8_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint8_t x16; + uint32_t x17; + uint32_t x18; + uint32_t x19; + uint8_t x20; + uint32_t x21; + uint32_t x22; + uint32_t x23; + uint8_t x24; + uint32_t x25; + uint32_t x26; + uint32_t x27; + uint8_t x28; + uint32_t x29; + uint32_t x30; + uint32_t x31; + uint8_t x32; + uint32_t x33; + uint32_t x34; + uint32_t x35; + uint8_t x36; + uint32_t x37; + uint32_t x38; + uint32_t x39; + uint8_t x40; + uint32_t x41; + uint32_t x42; + uint32_t x43; + uint8_t x44; + uint32_t x45; + uint32_t x46; + uint32_t x47; + uint8_t x48; + uint32_t x49; + uint32_t x50; + uint32_t x51; + uint32_t x52; + uint32_t x53; + uint32_t x54; + uint32_t x55; + uint32_t x56; + uint32_t x57; + uint32_t x58; + uint32_t x59; + uint32_t x60; + uint32_t x61; + uint32_t x62; + uint32_t x63; + uint32_t x64; + uint32_t x65; + uint32_t x66; + uint32_t x67; + uint32_t x68; + uint32_t x69; + uint32_t x70; + uint32_t x71; + x1 = ((uint32_t)(arg1[47]) << 24); + x2 = ((uint32_t)(arg1[46]) << 16); + x3 = ((uint32_t)(arg1[45]) << 8); + x4 = (arg1[44]); + x5 = ((uint32_t)(arg1[43]) << 24); + x6 = ((uint32_t)(arg1[42]) << 16); + x7 = ((uint32_t)(arg1[41]) << 8); + x8 = (arg1[40]); + x9 = ((uint32_t)(arg1[39]) << 24); + x10 = ((uint32_t)(arg1[38]) << 16); + x11 = ((uint32_t)(arg1[37]) << 8); + x12 = (arg1[36]); + x13 = ((uint32_t)(arg1[35]) << 24); + x14 = ((uint32_t)(arg1[34]) << 16); + x15 = ((uint32_t)(arg1[33]) << 8); + x16 = (arg1[32]); + x17 = ((uint32_t)(arg1[31]) << 24); + x18 = ((uint32_t)(arg1[30]) << 16); + x19 = ((uint32_t)(arg1[29]) << 8); + x20 = (arg1[28]); + x21 = ((uint32_t)(arg1[27]) << 24); + x22 = ((uint32_t)(arg1[26]) << 16); + x23 = ((uint32_t)(arg1[25]) << 8); + x24 = (arg1[24]); + x25 = ((uint32_t)(arg1[23]) << 24); + x26 = ((uint32_t)(arg1[22]) << 16); + x27 = ((uint32_t)(arg1[21]) << 8); + x28 = (arg1[20]); + x29 = ((uint32_t)(arg1[19]) << 24); + x30 = ((uint32_t)(arg1[18]) << 16); + x31 = ((uint32_t)(arg1[17]) << 8); + x32 = (arg1[16]); + x33 = ((uint32_t)(arg1[15]) << 24); + x34 = ((uint32_t)(arg1[14]) << 16); + x35 = ((uint32_t)(arg1[13]) << 8); + x36 = (arg1[12]); + x37 = ((uint32_t)(arg1[11]) << 24); + x38 = ((uint32_t)(arg1[10]) << 16); + x39 = ((uint32_t)(arg1[9]) << 8); + x40 = (arg1[8]); + x41 = ((uint32_t)(arg1[7]) << 24); + x42 = ((uint32_t)(arg1[6]) << 16); + x43 = ((uint32_t)(arg1[5]) << 8); + x44 = (arg1[4]); + x45 = ((uint32_t)(arg1[3]) << 24); + x46 = ((uint32_t)(arg1[2]) << 16); + x47 = ((uint32_t)(arg1[1]) << 8); + x48 = (arg1[0]); + x49 = (x48 + (x47 + (x46 + x45))); + x50 = (x49 & UINT32_C(0xffffffff)); + x51 = (x4 + (x3 + (x2 + x1))); + x52 = (x8 + (x7 + (x6 + x5))); + x53 = (x12 + (x11 + (x10 + x9))); + x54 = (x16 + (x15 + (x14 + x13))); + x55 = (x20 + (x19 + (x18 + x17))); + x56 = (x24 + (x23 + (x22 + x21))); + x57 = (x28 + (x27 + (x26 + x25))); + x58 = (x32 + (x31 + (x30 + x29))); + x59 = (x36 + (x35 + (x34 + x33))); + x60 = (x40 + (x39 + (x38 + x37))); + x61 = (x44 + (x43 + (x42 + x41))); + x62 = (x61 & UINT32_C(0xffffffff)); + x63 = (x60 & UINT32_C(0xffffffff)); + x64 = (x59 & UINT32_C(0xffffffff)); + x65 = (x58 & UINT32_C(0xffffffff)); + x66 = (x57 & UINT32_C(0xffffffff)); + x67 = (x56 & UINT32_C(0xffffffff)); + x68 = (x55 & UINT32_C(0xffffffff)); + x69 = (x54 & UINT32_C(0xffffffff)); + x70 = (x53 & UINT32_C(0xffffffff)); + x71 = (x52 & UINT32_C(0xffffffff)); + out1[0] = x50; + out1[1] = x62; + out1[2] = x63; + out1[3] = x64; + out1[4] = x65; + out1[5] = x66; + out1[6] = x67; + out1[7] = x68; + out1[8] = x69; + out1[9] = x70; + out1[10] = x71; + out1[11] = x51; +} + +/* END verbatim fiat code */ + +/*- + * Finite field inversion via FLT. + * NB: this is not a real Fiat function, just named that way for consistency. + * Autogenerated: ecp/secp384r1/fe_inv.op3 + * custom repunit addition chain + */ +static void +fiat_secp384r1_inv(fe_t output, const fe_t t1) +{ + int i; + /* temporary variables */ + fe_t acc, t10, t170, t2, t20, t255, t30, t32, t4, t64, t8, t84, t85; + + fiat_secp384r1_square(acc, t1); + fiat_secp384r1_mul(t2, acc, t1); + fiat_secp384r1_square(acc, t2); + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t4, acc, t2); + fiat_secp384r1_square(acc, t4); + for (i = 0; i < 3; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t8, acc, t4); + fiat_secp384r1_square(acc, t8); + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t10, acc, t2); + fiat_secp384r1_square(acc, t10); + for (i = 0; i < 9; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t20, acc, t10); + fiat_secp384r1_square(acc, t20); + for (i = 0; i < 9; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t30, acc, t10); + fiat_secp384r1_square(acc, t30); + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t32, acc, t2); + fiat_secp384r1_square(acc, t32); + for (i = 0; i < 31; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t64, acc, t32); + fiat_secp384r1_square(acc, t64); + for (i = 0; i < 19; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t84, acc, t20); + fiat_secp384r1_square(acc, t84); + fiat_secp384r1_mul(t85, acc, t1); + fiat_secp384r1_square(acc, t85); + for (i = 0; i < 84; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t170, acc, t85); + fiat_secp384r1_square(acc, t170); + for (i = 0; i < 84; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(t255, acc, t85); + fiat_secp384r1_square(acc, t255); + for (i = 0; i < 32; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(acc, acc, t32); + for (i = 0; i < 94; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(acc, acc, t30); + for (i = 0; i < 2; i++) + fiat_secp384r1_square(acc, acc); + fiat_secp384r1_mul(output, acc, t1); +} + +/* curve coefficient constants */ + +static const limb_t const_one[12] = { + UINT32_C(0x00000001), UINT32_C(0xFFFFFFFF), UINT32_C(0xFFFFFFFF), + UINT32_C(0x00000000), UINT32_C(0x00000001), UINT32_C(0x00000000), + UINT32_C(0x00000000), UINT32_C(0x00000000), UINT32_C(0x00000000), + UINT32_C(0x00000000), UINT32_C(0x00000000), UINT32_C(0x00000000) +}; + +static const limb_t const_b[12] = { + UINT32_C(0x9D412DCC), UINT32_C(0x08118871), UINT32_C(0x7A4C32EC), + UINT32_C(0xF729ADD8), UINT32_C(0x1920022E), UINT32_C(0x77F2209B), + UINT32_C(0x94938AE2), UINT32_C(0xE3374BEE), UINT32_C(0x1F022094), + UINT32_C(0xB62B21F4), UINT32_C(0x604FBFF9), UINT32_C(0xCD08114B) +}; + +/* LUT for scalar multiplication by comb interleaving */ +static const pt_aff_t lut_cmb[21][16] = { + { + { { UINT32_C(0x49C0B528), UINT32_C(0x3DD07566), UINT32_C(0xA0D6CE38), + UINT32_C(0x20E378E2), UINT32_C(0x541B4D6E), UINT32_C(0x879C3AFC), + UINT32_C(0x59A30EFF), UINT32_C(0x64548684), UINT32_C(0x614EDE2B), + UINT32_C(0x812FF723), UINT32_C(0x299E1513), UINT32_C(0x4D3AADC2) }, + { UINT32_C(0x4B03A4FE), UINT32_C(0x23043DAD), UINT32_C(0x7BB4A9AC), + UINT32_C(0xA1BFA8BF), UINT32_C(0x2E83B050), UINT32_C(0x8BADE756), + UINT32_C(0x68F4FFD9), UINT32_C(0xC6C35219), UINT32_C(0x3969A840), + UINT32_C(0xDD800226), UINT32_C(0x5A15C5E9), UINT32_C(0x2B78ABC2) } }, + { { UINT32_C(0xC1DC4073), UINT32_C(0x05E4DBE6), UINT32_C(0xF04F779C), + UINT32_C(0xC54EA9FF), UINT32_C(0xA170CCF0), UINT32_C(0x6B2034E9), + UINT32_C(0xD51C6C3E), UINT32_C(0x3A48D732), UINT32_C(0x263AA470), + UINT32_C(0xE36F7E2D), UINT32_C(0xE7C1C3AC), UINT32_C(0xD283FE68) }, + { UINT32_C(0xC04EE157), UINT32_C(0x7E284821), UINT32_C(0x7AE0E36D), + UINT32_C(0x92D789A7), UINT32_C(0x4EF67446), UINT32_C(0x132663C0), + UINT32_C(0xD2E1D0B4), UINT32_C(0x68012D5A), UINT32_C(0x5102B339), + UINT32_C(0xF6DB68B1), UINT32_C(0x983292AF), UINT32_C(0x465465FC) } }, + { { UINT32_C(0x68F1F0DF), UINT32_C(0xBB595EBA), UINT32_C(0xCC873466), + UINT32_C(0xC185C0CB), UINT32_C(0x293C703B), UINT32_C(0x7F1EB1B5), + UINT32_C(0xAACC05E6), UINT32_C(0x60DB2CF5), UINT32_C(0xE2E8E4C6), + UINT32_C(0xC676B987), UINT32_C(0x1D178FFB), UINT32_C(0xE1BB26B1) }, + { UINT32_C(0x7073FA21), UINT32_C(0x2B694BA0), UINT32_C(0x72F34566), + UINT32_C(0x22C16E2E), UINT32_C(0x01C35B99), UINT32_C(0x80B61B31), + UINT32_C(0x982C0411), UINT32_C(0x4B237FAF), UINT32_C(0x24DE236D), + UINT32_C(0xE6C59440), UINT32_C(0xE209E4A3), UINT32_C(0x4DB1C9D6) } }, + { { UINT32_C(0x7D69222B), UINT32_C(0xDF13B9D1), UINT32_C(0x874774B1), + UINT32_C(0x4CE6415F), UINT32_C(0x211FAA95), UINT32_C(0x731EDCF8), + UINT32_C(0x659753ED), UINT32_C(0x5F4215D1), UINT32_C(0x9DB2DF55), + UINT32_C(0xF893DB58), UINT32_C(0x1C89025B), UINT32_C(0x932C9F81) }, + { UINT32_C(0x7706A61E), UINT32_C(0x0996B220), UINT32_C(0xA8641C79), + UINT32_C(0x135349D5), UINT32_C(0x50130844), UINT32_C(0x65AAD76F), + UINT32_C(0x01FFF780), UINT32_C(0x0FF37C04), UINT32_C(0x693B0706), + UINT32_C(0xF57F238E), UINT32_C(0xAF6C9B3E), UINT32_C(0xD90A16B6) } }, + { { UINT32_C(0x2353B92F), UINT32_C(0x2F5D200E), UINT32_C(0x3FD7E4F9), + UINT32_C(0xE35D8729), UINT32_C(0xA96D745D), UINT32_C(0x26094833), + UINT32_C(0x3CBFFF3F), UINT32_C(0xDC351DC1), UINT32_C(0xDAD54D6A), + UINT32_C(0x26D464C6), UINT32_C(0x53636C6A), UINT32_C(0x5CAB1D1D) }, + { UINT32_C(0xB18EC0B0), UINT32_C(0xF2813072), UINT32_C(0xD742AA2F), + UINT32_C(0x3777E270), UINT32_C(0x033CA7C2), UINT32_C(0x27F061C7), + UINT32_C(0x68EAD0D8), UINT32_C(0xA6ECACCC), UINT32_C(0xEE69A754), + UINT32_C(0x7D9429F4), UINT32_C(0x31E8F5C6), UINT32_C(0xE7706334) } }, + { { UINT32_C(0xB68B8C7D), UINT32_C(0xC7708B19), UINT32_C(0x44377ABA), + UINT32_C(0x4532077C), UINT32_C(0x6CDAD64F), UINT32_C(0x0DCC6770), + UINT32_C(0x147B6602), UINT32_C(0x01B8BF56), UINT32_C(0xF0561D79), + UINT32_C(0xF8D89885), UINT32_C(0x7BA9C437), UINT32_C(0x9C19E9FC) }, + { UINT32_C(0xBDC4BA25), UINT32_C(0x764EB146), UINT32_C(0xAC144B83), + UINT32_C(0x604FE46B), UINT32_C(0x8A77E780), UINT32_C(0x3CE81329), + UINT32_C(0xFE9E682E), UINT32_C(0x2E070F36), UINT32_C(0x3A53287A), + UINT32_C(0x41821D0C), UINT32_C(0x3533F918), UINT32_C(0x9AA62F9F) } }, + { { UINT32_C(0x75CCBDFB), UINT32_C(0x9B7AEB7E), UINT32_C(0xF6749A95), + UINT32_C(0xB25E28C5), UINT32_C(0x33B7D4AE), UINT32_C(0x8A7A8E46), + UINT32_C(0xD9C1BD56), UINT32_C(0xDB5203A8), UINT32_C(0xED22DF97), + UINT32_C(0xD2657265), UINT32_C(0x8CF23C94), UINT32_C(0xB51C56E1) }, + { UINT32_C(0x6C3D812D), UINT32_C(0xF4D39459), UINT32_C(0x87CAE0C2), + UINT32_C(0xD8E88F1A), UINT32_C(0xCF4D0FE3), UINT32_C(0x789A2A48), + UINT32_C(0xFEC38D60), UINT32_C(0xB7FEAC2D), UINT32_C(0x3B490EC3), + UINT32_C(0x81FDBD1C), UINT32_C(0xCC6979E1), UINT32_C(0x4617ADB7) } }, + { { UINT32_C(0x4709F4A9), UINT32_C(0x446AD888), UINT32_C(0xEC3DABD8), + UINT32_C(0x2B7210E2), UINT32_C(0x50E07B34), UINT32_C(0x83CCF195), + UINT32_C(0x789B3075), UINT32_C(0x59500917), UINT32_C(0xEB085993), + UINT32_C(0x0FC01FD4), UINT32_C(0x4903026B), UINT32_C(0xFB62D26F) }, + { UINT32_C(0x6FE989BB), UINT32_C(0x2309CC9D), UINT32_C(0x144BD586), + UINT32_C(0x61609CBD), UINT32_C(0xDE06610C), UINT32_C(0x4B23D3A0), + UINT32_C(0xD898F470), UINT32_C(0xDDDC2866), UINT32_C(0x400C5797), + UINT32_C(0x8733FC41), UINT32_C(0xD0BC2716), UINT32_C(0x5A68C6FE) } }, + { { UINT32_C(0x4B4A3CD0), UINT32_C(0x8903E130), UINT32_C(0x8FF1F43E), + UINT32_C(0x3EA4EA4C), UINT32_C(0xF655A10D), UINT32_C(0xE6FC3F2A), + UINT32_C(0x524FFEFC), UINT32_C(0x7BE3737D), UINT32_C(0x5330455E), + UINT32_C(0x9F692855), UINT32_C(0xE475CE70), UINT32_C(0x524F166E) }, + { UINT32_C(0x6C12F055), UINT32_C(0x3FCC69CD), UINT32_C(0xD5B9C0DA), + UINT32_C(0x4E23B6FF), UINT32_C(0x336BF183), UINT32_C(0x49CE6993), + UINT32_C(0x4A54504A), UINT32_C(0xF87D6D85), UINT32_C(0xB3C2677A), + UINT32_C(0x25EB5DF1), UINT32_C(0x55B164C9), UINT32_C(0xAC37986F) } }, + { { UINT32_C(0xBAA84C08), UINT32_C(0x82A2ED4A), UINT32_C(0x41A8C912), + UINT32_C(0x22C4CC5F), UINT32_C(0x154AAD5E), UINT32_C(0xCA109C3B), + UINT32_C(0xFC38538E), UINT32_C(0x23891298), UINT32_C(0x539802AE), + UINT32_C(0xB3B6639C), UINT32_C(0x0390D706), UINT32_C(0xFA0F1F45) }, + { UINT32_C(0xB0DC21D0), UINT32_C(0x46B78E5D), UINT32_C(0xC3DA2EAC), + UINT32_C(0xA8C72D3C), UINT32_C(0x6FF2F643), UINT32_C(0x9170B378), + UINT32_C(0xB67F30C3), UINT32_C(0x3F5A799B), UINT32_C(0x8264B672), + UINT32_C(0x15D1DC77), UINT32_C(0xE9577764), UINT32_C(0xA1D47B23) } }, + { { UINT32_C(0x0422CE2F), UINT32_C(0x08265E51), UINT32_C(0xDD2F9E21), + UINT32_C(0x88E0D496), UINT32_C(0x6177F75D), UINT32_C(0x30128AA0), + UINT32_C(0xBD9EBE69), UINT32_C(0x2E59AB62), UINT32_C(0x5DF0E537), + UINT32_C(0x1B1A0F6C), UINT32_C(0xDAC012B5), UINT32_C(0xAB16C626) }, + { UINT32_C(0x008C5DE7), UINT32_C(0x8014214B), UINT32_C(0x38F17BEA), + UINT32_C(0xAA740A9E), UINT32_C(0x8A149098), UINT32_C(0x262EBB49), + UINT32_C(0x8527CD59), UINT32_C(0xB454111E), UINT32_C(0xACEA5817), + UINT32_C(0x266AD15A), UINT32_C(0x1353CCBA), UINT32_C(0x21824F41) } }, + { { UINT32_C(0x12E3683B), UINT32_C(0xD1B4E74D), UINT32_C(0x569B8EF6), + UINT32_C(0x990ED20B), UINT32_C(0x429C0A18), UINT32_C(0xB9D3DD25), + UINT32_C(0x2A351783), UINT32_C(0x1C75B8AB), UINT32_C(0x905432F0), + UINT32_C(0x61E4CA2B), UINT32_C(0xEEA8F224), UINT32_C(0x80826A69) }, + { UINT32_C(0xEC52ABAD), UINT32_C(0x7FC33A6B), UINT32_C(0xA65E4813), + UINT32_C(0x0BCCA3F0), UINT32_C(0xA527CEBE), UINT32_C(0x7AD8A132), + UINT32_C(0xEAF22C7E), UINT32_C(0xF0138950), UINT32_C(0x566718C1), + UINT32_C(0x282D2437), UINT32_C(0xE2212559), UINT32_C(0x9DFCCB0D) } }, + { { UINT32_C(0x58CE3B83), UINT32_C(0x1E937227), UINT32_C(0x3CB3FB36), + UINT32_C(0xBB280DFA), UINT32_C(0xE2BE174A), UINT32_C(0x57D0F3D2), + UINT32_C(0x208ABE1E), UINT32_C(0x9BD51B99), UINT32_C(0xDE248024), + UINT32_C(0x3809AB50), UINT32_C(0xA5BB7331), UINT32_C(0xC29C6E2C) }, + { UINT32_C(0x61124F05), UINT32_C(0x9944FD2E), UINT32_C(0x9009E391), + UINT32_C(0x83CCBC4E), UINT32_C(0x9424A3CC), UINT32_C(0x01628F05), + UINT32_C(0xEA8E4344), UINT32_C(0xD6A2F51D), UINT32_C(0x4CEBC96E), + UINT32_C(0xDA3E1A3D), UINT32_C(0xE97809DC), UINT32_C(0x1FE6FB42) } }, + { { UINT32_C(0x467D66E4), UINT32_C(0xA04482D2), UINT32_C(0x4D78291D), + UINT32_C(0xCF191293), UINT32_C(0x482396F9), UINT32_C(0x8E0D4168), + UINT32_C(0xD18F14D0), UINT32_C(0x7228E2D5), UINT32_C(0x9C6A58FE), + UINT32_C(0x2F7E8D50), UINT32_C(0x373E5AEC), UINT32_C(0xE8CA780E) }, + { UINT32_C(0x1B68E9F8), UINT32_C(0x42AAD1D6), UINT32_C(0x69E2F8F4), + UINT32_C(0x58A6D7F5), UINT32_C(0x31DA1BEA), UINT32_C(0xD779ADFE), + UINT32_C(0x38C85A85), UINT32_C(0x7D265406), UINT32_C(0xD44D3CDF), + UINT32_C(0x67E67195), UINT32_C(0xC5134ED7), UINT32_C(0x17820A0B) } }, + { { UINT32_C(0xD3021470), UINT32_C(0x019D6AC5), UINT32_C(0x780443D6), + UINT32_C(0x25846B66), UINT32_C(0x55C97647), UINT32_C(0xCE3C15ED), + UINT32_C(0x0E3FEB0F), UINT32_C(0x3DC22D49), UINT32_C(0xA7DF26E4), + UINT32_C(0x2065B7CB), UINT32_C(0x187CEA1F), UINT32_C(0xC8B00AE8) }, + { UINT32_C(0x865DDED3), UINT32_C(0x1A5284A0), UINT32_C(0x20C83DE2), + UINT32_C(0x293C1649), UINT32_C(0xCCE851B3), UINT32_C(0xAB178D26), + UINT32_C(0x404505FB), UINT32_C(0x8E6DB10B), UINT32_C(0x90C82033), + UINT32_C(0xF6F57E71), UINT32_C(0x5977F16C), UINT32_C(0x1D2A1C01) } }, + { { UINT32_C(0x7C8906A4), UINT32_C(0xA39C8931), UINT32_C(0x9E821EE6), + UINT32_C(0xB6E7ECDD), UINT32_C(0xF0DF4FE6), UINT32_C(0x2ECF8340), + UINT32_C(0x53C14965), UINT32_C(0xD42F7DC9), UINT32_C(0xE3BA8285), + UINT32_C(0x1AFB51A3), UINT32_C(0x0A3305D1), UINT32_C(0x6C07C404) }, + { UINT32_C(0x127FC1DA), UINT32_C(0xDAB83288), UINT32_C(0x374C4B08), + UINT32_C(0xBC0A699B), UINT32_C(0x42EB20DD), UINT32_C(0x402A9BAB), + UINT32_C(0x045A7A1C), UINT32_C(0xD7DD464F), UINT32_C(0x36BEECC4), + UINT32_C(0x5B3D0D6D), UINT32_C(0x6398A19D), UINT32_C(0x475A3E75) } }, + }, + { + { { UINT32_C(0x72876AE8), UINT32_C(0x31BDB483), UINT32_C(0x961ED1BF), + UINT32_C(0xE3325D98), UINT32_C(0x9B6FC64D), UINT32_C(0x18C04246), + UINT32_C(0x15786B8C), UINT32_C(0x0DCC15FA), UINT32_C(0x8E63DA4A), + UINT32_C(0x81ACDB06), UINT32_C(0xDADA70FB), UINT32_C(0xD3A4B643) }, + { UINT32_C(0xDEA424EB), UINT32_C(0x46361AFE), UINT32_C(0x89B92970), + UINT32_C(0xDC2D2CAE), UINT32_C(0x615694E6), UINT32_C(0xF389B61B), + UINT32_C(0x872951D2), UINT32_C(0x7036DEF1), UINT32_C(0xD93BADC7), + UINT32_C(0x40FD3BDA), UINT32_C(0x380A68D3), UINT32_C(0x45AB6321) } }, + { { UINT32_C(0x81A2703A), UINT32_C(0x23C1F744), UINT32_C(0xB9859136), + UINT32_C(0x1A5D075C), UINT32_C(0x5AFD1BFD), UINT32_C(0xA4F82C9D), + UINT32_C(0xF89D76FE), UINT32_C(0xA3D1E9A4), UINT32_C(0x75702F80), + UINT32_C(0x964F7050), UINT32_C(0xF56C089D), UINT32_C(0x182BF349) }, + { UINT32_C(0xBE0DA6E1), UINT32_C(0xE205FA8F), UINT32_C(0x0A40F8F3), + UINT32_C(0x32905EB9), UINT32_C(0x356D4395), UINT32_C(0x331A1004), + UINT32_C(0xFDBBDFDE), UINT32_C(0x58B78901), UINT32_C(0x9BA00E71), + UINT32_C(0xA52A1597), UINT32_C(0x55497A30), UINT32_C(0xE0092E1F) } }, + { { UINT32_C(0x70EE8F39), UINT32_C(0x5562A856), UINT32_C(0x64E52A9C), + UINT32_C(0x86B0C117), UINT32_C(0x09C75B8C), UINT32_C(0xC19F3174), + UINT32_C(0x24923F80), UINT32_C(0x21C7CC31), UINT32_C(0x8F5B291E), + UINT32_C(0xE63FE47F), UINT32_C(0x0DC08B05), UINT32_C(0x3D6D3C05) }, + { UINT32_C(0xEE0C39A1), UINT32_C(0x58AE455E), UINT32_C(0x0AD97942), + UINT32_C(0x78BEA431), UINT32_C(0x3EE3989C), UINT32_C(0x42C7C97F), + UINT32_C(0xF38759AE), UINT32_C(0xC1B03AF5), UINT32_C(0xBCF46899), + UINT32_C(0x1A673C75), UINT32_C(0x8D508C7D), UINT32_C(0x4831B7D3) } }, + { { UINT32_C(0xC552E354), UINT32_C(0x76512D1B), UINT32_C(0x273020FD), + UINT32_C(0x2B7EB6DF), UINT32_C(0x025A5F25), UINT32_C(0xD1C73AA8), + UINT32_C(0x5CBD2A40), UINT32_C(0x2ABA1929), UINT32_C(0xC88D61C6), + UINT32_C(0xB53CADC3), UINT32_C(0x098290F3), UINT32_C(0x7E66A95E) }, + { UINT32_C(0xAF4C5073), UINT32_C(0x72800ECB), UINT32_C(0x9DC63FAF), + UINT32_C(0x81F2725E), UINT32_C(0x282BA9D1), UINT32_C(0x14BF92A7), + UINT32_C(0xBD5F1BB2), UINT32_C(0x90629672), UINT32_C(0xA97C6C96), + UINT32_C(0x362F68EB), UINT32_C(0x7EA9D601), UINT32_C(0xB1D3BB8B) } }, + { { UINT32_C(0xA9C94429), UINT32_C(0x73878F7F), UINT32_C(0x456CA6D8), + UINT32_C(0xB35C3BC8), UINT32_C(0xF721923A), UINT32_C(0xD96F0B3C), + UINT32_C(0xE6D44FA1), UINT32_C(0x28D8F06C), UINT32_C(0xD5CD671A), + UINT32_C(0x94EFDCDC), UINT32_C(0x3F97D481), UINT32_C(0x0299AB93) }, + { UINT32_C(0x2FD1D324), UINT32_C(0xB7CED6EA), UINT32_C(0x7E932EC2), + UINT32_C(0xBD683208), UINT32_C(0xCB755A6E), UINT32_C(0x24ED31FB), + UINT32_C(0xE48781D2), UINT32_C(0xA636098E), UINT32_C(0xF0A4F297), + UINT32_C(0x8687C63C), UINT32_C(0x07478526), UINT32_C(0xBB523440) } }, + { { UINT32_C(0x34124B56), UINT32_C(0x2E5F7419), UINT32_C(0x4B3F02CA), + UINT32_C(0x1F223AE1), UINT32_C(0xE8336C7E), UINT32_C(0x6345B427), + UINT32_C(0xF5D0E3D0), UINT32_C(0x92123E16), UINT32_C(0x45E79F3A), + UINT32_C(0xDAF0D14D), UINT32_C(0x6F3BD0C6), UINT32_C(0x6ACA6765) }, + { UINT32_C(0x403813F4), UINT32_C(0xF6169FAB), UINT32_C(0x334A4C59), + UINT32_C(0x31DC39C0), UINT32_C(0xD589866D), UINT32_C(0x74C46753), + UINT32_C(0x984C6A5D), UINT32_C(0x5741511D), UINT32_C(0x97FED2D3), + UINT32_C(0xF2631287), UINT32_C(0x11614886), UINT32_C(0x5687CA1B) } }, + { { UINT32_C(0x33836D4B), UINT32_C(0x076D902A), UINT32_C(0x24AFB557), + UINT32_C(0xEC6C5C43), UINT32_C(0xA0516A0F), UINT32_C(0xA0FE2D1C), + UINT32_C(0x00D22ECC), UINT32_C(0x6FB8D737), UINT32_C(0xDAF1D7B3), + UINT32_C(0xF1DE9077), UINT32_C(0xD4C0C1EB), UINT32_C(0xE4695F77) }, + { UINT32_C(0xB4375573), UINT32_C(0x5F0FD8A8), UINT32_C(0x5E50944F), + UINT32_C(0x76238359), UINT32_C(0x635CD76F), UINT32_C(0x65EA2F28), + UINT32_C(0x25FDE7B0), UINT32_C(0x08547769), UINT32_C(0x51944304), + UINT32_C(0xB2345A2E), UINT32_C(0xA16C980D), UINT32_C(0x86EFA2F7) } }, + { { UINT32_C(0xBF4D1D63), UINT32_C(0x4CCBE2D0), UINT32_C(0x397366D5), + UINT32_C(0x32E33401), UINT32_C(0x71BDA2CE), UINT32_C(0xC83AFDDE), + UINT32_C(0x478ED9E6), UINT32_C(0x8DACE2AC), UINT32_C(0x763FDD9E), + UINT32_C(0x3AC6A559), UINT32_C(0xB398558F), UINT32_C(0x0FFDB04C) }, + { UINT32_C(0xAFB9D6B8), UINT32_C(0x6C1B99B2), UINT32_C(0x27F815DD), + UINT32_C(0x572BA39C), UINT32_C(0x0DBCF842), UINT32_C(0x9DE73EE7), + UINT32_C(0x29267B88), UINT32_C(0x2A3ED589), UINT32_C(0x15EBBBB3), + UINT32_C(0xD46A7FD3), UINT32_C(0xE29400C7), UINT32_C(0xD1D01863) } }, + { { UINT32_C(0xE1F89EC5), UINT32_C(0x8FB101D1), UINT32_C(0xF8508042), + UINT32_C(0xB87A1F53), UINT32_C(0x0ED7BEEF), UINT32_C(0x28C8DB24), + UINT32_C(0xACE8660A), UINT32_C(0x3940F845), UINT32_C(0xC6D453FD), + UINT32_C(0x4EACB619), UINT32_C(0x2BAD6160), UINT32_C(0x2E044C98) }, + { UINT32_C(0x80B16C02), UINT32_C(0x87928548), UINT32_C(0xC0A9EB64), + UINT32_C(0xF0D4BEB3), UINT32_C(0xC183C195), UINT32_C(0xD785B4AF), + UINT32_C(0x5E6C46EA), UINT32_C(0x23AAB0E6), UINT32_C(0xA930FECA), + UINT32_C(0x30F7E104), UINT32_C(0xD55C10FB), UINT32_C(0x6A1A7B8B) } }, + { { UINT32_C(0xDBFED1AA), UINT32_C(0xDA74EAEB), UINT32_C(0xDF0B025C), + UINT32_C(0xC8A59223), UINT32_C(0xD5B627F7), UINT32_C(0x7EF7DC85), + UINT32_C(0x197D7624), UINT32_C(0x02A13AE1), UINT32_C(0x2F785A9B), + UINT32_C(0x119E9BE1), UINT32_C(0x00D6B219), UINT32_C(0xC0B7572F) }, + { UINT32_C(0x6D4CAF30), UINT32_C(0x9B1E5126), UINT32_C(0x0A840BD1), + UINT32_C(0xA16A5117), UINT32_C(0x0E9CCF43), UINT32_C(0x5BE17B91), + UINT32_C(0x69CF2C9C), UINT32_C(0x5BDBEDDD), UINT32_C(0x4CF4F289), + UINT32_C(0x9FFBFBCF), UINT32_C(0x6C355CE9), UINT32_C(0xE1A62183) } }, + { { UINT32_C(0xA7B2FCCF), UINT32_C(0x056199D9), UINT32_C(0xCE1D784E), + UINT32_C(0x51F2E7B6), UINT32_C(0x339E2FF0), UINT32_C(0xA1D09C47), + UINT32_C(0xB836D0A9), UINT32_C(0xC8E64890), UINT32_C(0xC0D07EBE), + UINT32_C(0x2F781DCB), UINT32_C(0x3ACF934C), UINT32_C(0x5CF3C2AD) }, + { UINT32_C(0xA17E26AE), UINT32_C(0xE55DB190), UINT32_C(0x91245513), + UINT32_C(0xC9C61E1F), UINT32_C(0x61998C15), UINT32_C(0x83D7E6CF), + UINT32_C(0xE41D38E3), UINT32_C(0x4DB33C85), UINT32_C(0xC2FEE43D), + UINT32_C(0x74D5F91D), UINT32_C(0x36BBC826), UINT32_C(0x7EBBDB45) } }, + { { UINT32_C(0xCB655A9D), UINT32_C(0xE20EC7E9), UINT32_C(0x5C47D421), + UINT32_C(0x4977EB92), UINT32_C(0x3B9D72FA), UINT32_C(0xA237E12C), + UINT32_C(0xCBF7B145), UINT32_C(0xCAAEDBC1), UINT32_C(0x3B77AAA3), + UINT32_C(0x5200F5B2), UINT32_C(0xBDBE5380), UINT32_C(0x32EDED55) }, + { UINT32_C(0xE7C9B80A), UINT32_C(0x74E38A40), UINT32_C(0xAB6DE911), + UINT32_C(0x3A3F0CF8), UINT32_C(0xAD16AAF0), UINT32_C(0x56DCDD7A), + UINT32_C(0x8E861D5E), UINT32_C(0x3D292449), UINT32_C(0x985733E2), + UINT32_C(0xD6C61878), UINT32_C(0x6AA6CD5B), UINT32_C(0x2401FE7D) } }, + { { UINT32_C(0xB42E3686), UINT32_C(0xABB3DC75), UINT32_C(0xB4C57E61), + UINT32_C(0xAE712419), UINT32_C(0xB21B009B), UINT32_C(0x2C565F72), + UINT32_C(0x710C3699), UINT32_C(0xA5F1DA2E), UINT32_C(0xA5EBA59A), + UINT32_C(0x771099A0), UINT32_C(0xC10017A0), UINT32_C(0x4DA88F4A) }, + { UINT32_C(0x1927B56D), UINT32_C(0x987FFFD3), UINT32_C(0xC4E33478), + UINT32_C(0xB98CB8EC), UINT32_C(0xC2248166), UINT32_C(0xB224A971), + UINT32_C(0xDE1DC794), UINT32_C(0x5470F554), UINT32_C(0xE31FF983), + UINT32_C(0xD747CC24), UINT32_C(0xB5B22DAE), UINT32_C(0xB91745E9) } }, + { { UINT32_C(0x72F34420), UINT32_C(0x6CCBFED0), UINT32_C(0xA53039D2), + UINT32_C(0x95045E4D), UINT32_C(0x5A793944), UINT32_C(0x3B6C1154), + UINT32_C(0xDDB6B799), UINT32_C(0xAA114145), UINT32_C(0x252B7637), + UINT32_C(0xABC15CA4), UINT32_C(0xA5744634), UINT32_C(0x5745A35B) }, + { UINT32_C(0xDA596FC0), UINT32_C(0x05DC6BDE), UINT32_C(0xA8020881), + UINT32_C(0xCD52C18C), UINT32_C(0xD296BAD0), UINT32_C(0x03FA9F47), + UINT32_C(0x7268E139), UINT32_C(0xD8E2C129), UINT32_C(0x9EC450B0), + UINT32_C(0x58C1A98D), UINT32_C(0xDE48B20D), UINT32_C(0x909638DA) } }, + { { UINT32_C(0x9B7F8311), UINT32_C(0x7AFC30D4), UINT32_C(0x42368EA3), + UINT32_C(0x82A00422), UINT32_C(0x6F5F9865), UINT32_C(0xBFF95198), + UINT32_C(0xFC0A070F), UINT32_C(0x9B24F612), UINT32_C(0x620F489D), + UINT32_C(0x22C06CF2), UINT32_C(0x780F7DBB), UINT32_C(0x3C7ED052) }, + { UINT32_C(0x34DAFE9B), UINT32_C(0xDB87AB18), UINT32_C(0x9C4BBCA1), + UINT32_C(0x20C03B40), UINT32_C(0x59A42341), UINT32_C(0x5D718CF0), + UINT32_C(0x69E84538), UINT32_C(0x98631706), UINT32_C(0xD27D64E1), + UINT32_C(0x5557192B), UINT32_C(0xDA822766), UINT32_C(0x08B4EC52) } }, + { { UINT32_C(0xD66C1A59), UINT32_C(0xB2D986F6), UINT32_C(0x78E0E423), + UINT32_C(0x927DEB16), UINT32_C(0x49C3DEDC), UINT32_C(0x9E673CDE), + UINT32_C(0xF7ECB6CF), UINT32_C(0xFA362D84), UINT32_C(0x1BA17340), + UINT32_C(0x078E5F40), UINT32_C(0x1F4E489C), UINT32_C(0x934CA5D1) }, + { UINT32_C(0x64EEF493), UINT32_C(0xC03C0731), UINT32_C(0xD7931A7E), + UINT32_C(0x631A353B), UINT32_C(0x65DD74F1), UINT32_C(0x8E7CC3BB), + UINT32_C(0x702676A5), UINT32_C(0xD55864C5), UINT32_C(0x439F04BD), + UINT32_C(0x6D306AC4), UINT32_C(0x2BAFED57), UINT32_C(0x58544F67) } }, + }, + { + { { UINT32_C(0xEC074AEA), UINT32_C(0xB083BA6A), UINT32_C(0x7F0B505B), + UINT32_C(0x46FAC5EF), UINT32_C(0xFC82DC03), UINT32_C(0x95367A21), + UINT32_C(0x9D3679D8), UINT32_C(0x227BE26A), UINT32_C(0x7E9724C0), + UINT32_C(0xC70F6D6C), UINT32_C(0xF9EBEC0F), UINT32_C(0xCD68C757) }, + { UINT32_C(0x8FF321B2), UINT32_C(0x29DDE03E), UINT32_C(0x031939DC), + UINT32_C(0xF84AD7BB), UINT32_C(0x0F602F4B), UINT32_C(0xDAF590C9), + UINT32_C(0x49722BC4), UINT32_C(0x17C52888), UINT32_C(0x089B22B6), + UINT32_C(0xA8DF99F0), UINT32_C(0xE59B9B90), UINT32_C(0xC21BC5D4) } }, + { { UINT32_C(0x8A31973F), UINT32_C(0x4936C6A0), UINT32_C(0x83B8C205), + UINT32_C(0x54D442FA), UINT32_C(0x5714F2C6), UINT32_C(0x03AEE8B4), + UINT32_C(0x3F5AC25A), UINT32_C(0x139BD692), UINT32_C(0xB5B33794), + UINT32_C(0x6A2E42BA), UINT32_C(0x3FF7BBA9), UINT32_C(0x50FA1164) }, + { UINT32_C(0xF7E2C099), UINT32_C(0xB61D8643), UINT32_C(0xBD5C6637), + UINT32_C(0x2366C993), UINT32_C(0x72EB77FA), UINT32_C(0x62110E14), + UINT32_C(0x3B99C635), UINT32_C(0x3D5B96F1), UINT32_C(0xF674C9F2), + UINT32_C(0x956ECF64), UINT32_C(0xEF2BA250), UINT32_C(0xC56F7E51) } }, + { { UINT32_C(0xFF602C1B), UINT32_C(0x246FFCB6), UINT32_C(0x6E1258E0), + UINT32_C(0x1E1A1D74), UINT32_C(0x250E6676), UINT32_C(0xB4B43AE2), + UINT32_C(0x924CE5FA), UINT32_C(0x95C1B5F0), UINT32_C(0xEBD8C776), + UINT32_C(0x2555795B), UINT32_C(0xACD9D9D0), UINT32_C(0x4C1E03DC) }, + { UINT32_C(0x9CE90C61), UINT32_C(0xE1D74AA6), UINT32_C(0xA9C4B9F9), + UINT32_C(0xA88C0769), UINT32_C(0x95AF56DE), UINT32_C(0xDF74DF27), + UINT32_C(0xB331B6F4), UINT32_C(0x24B10C5F), UINT32_C(0x6559E137), + UINT32_C(0xB0A6DF9A), UINT32_C(0xC06637F2), UINT32_C(0x6ACC1B8F) } }, + { { UINT32_C(0x34B4E381), UINT32_C(0xBD8C0868), UINT32_C(0x30DFF271), + UINT32_C(0x278CACC7), UINT32_C(0x02459389), UINT32_C(0x87ED12DE), + UINT32_C(0xDEF840B6), UINT32_C(0x3F7D98FF), UINT32_C(0x5F0B56E1), + UINT32_C(0x71EEE0CB), UINT32_C(0xD8D9BE87), UINT32_C(0x462B5C9B) }, + { UINT32_C(0x98094C0F), UINT32_C(0xE6B50B5A), UINT32_C(0x508C67CE), + UINT32_C(0x26F3B274), UINT32_C(0x7CB1F992), UINT32_C(0x418B1BD1), + UINT32_C(0x4FF11827), UINT32_C(0x607818ED), UINT32_C(0x9B042C63), + UINT32_C(0xE630D93A), UINT32_C(0x8C779AE3), UINT32_C(0x38B9EFF3) } }, + { { UINT32_C(0x729C5431), UINT32_C(0xE8767D36), UINT32_C(0xBB94642C), + UINT32_C(0xA8BD07C0), UINT32_C(0x58F2E5B2), UINT32_C(0x0C11FC8E), + UINT32_C(0x547533FE), UINT32_C(0xD8912D48), UINT32_C(0x230D91FB), + UINT32_C(0xAAE14F5E), UINT32_C(0x676DFBA0), UINT32_C(0xC122051A) }, + { UINT32_C(0x5EA93078), UINT32_C(0x9ED4501F), UINT32_C(0xBD4BEE0A), + UINT32_C(0x2758515C), UINT32_C(0x94D21F52), UINT32_C(0x97733C6C), + UINT32_C(0x4AD306A2), UINT32_C(0x139BCD6D), UINT32_C(0x298123CC), + UINT32_C(0x0AAECBDC), UINT32_C(0x1CB7C7C9), UINT32_C(0x102B8A31) } }, + { { UINT32_C(0xFAF46675), UINT32_C(0x22A28E59), UINT32_C(0x10A31E7D), + UINT32_C(0x10757308), UINT32_C(0x2B4C2F4F), UINT32_C(0xC7EEAC84), + UINT32_C(0xB5EF5184), UINT32_C(0xBA370148), UINT32_C(0x8732E055), + UINT32_C(0x4A5A2866), UINT32_C(0xB887C36F), UINT32_C(0x14B8DCDC) }, + { UINT32_C(0x433F093D), UINT32_C(0xDBA8C85C), UINT32_C(0x1C9A201C), + UINT32_C(0x73DF549D), UINT32_C(0x70F927D8), UINT32_C(0x69AA0D7B), + UINT32_C(0xD7D2493A), UINT32_C(0xFA3A8685), UINT32_C(0x0A7F4013), + UINT32_C(0x6F48A255), UINT32_C(0xDD393067), UINT32_C(0xD20C8BF9) } }, + { { UINT32_C(0x81625E78), UINT32_C(0x4EC874EA), UINT32_C(0x3FBE9267), + UINT32_C(0x8B8D8B5A), UINT32_C(0x9421EC2F), UINT32_C(0xA3D9D164), + UINT32_C(0x880EA295), UINT32_C(0x490E92D9), UINT32_C(0xD8F3B6DA), + UINT32_C(0x745D1EDC), UINT32_C(0x8F18BA03), UINT32_C(0x0116628B) }, + { UINT32_C(0x834EADCE), UINT32_C(0x0FF6BCE0), UINT32_C(0x000827F7), + UINT32_C(0x464697F2), UINT32_C(0x498D724E), UINT32_C(0x08DCCF84), + UINT32_C(0x1E88304C), UINT32_C(0x7896D365), UINT32_C(0x135E3622), + UINT32_C(0xE63EBCCE), UINT32_C(0xDC007521), UINT32_C(0xFB942E8E) } }, + { { UINT32_C(0xA3688621), UINT32_C(0xBB155A66), UINT32_C(0xF91B52A3), + UINT32_C(0xED2FD7CD), UINT32_C(0xEA20CB88), UINT32_C(0x52798F5D), + UINT32_C(0x373F7DD8), UINT32_C(0x069CE105), UINT32_C(0x8CA78F6B), + UINT32_C(0xF9392EC7), UINT32_C(0x6B335169), UINT32_C(0xB3013E25) }, + { UINT32_C(0x6B11715C), UINT32_C(0x1D92F800), UINT32_C(0xFF9DC464), + UINT32_C(0xADD4050E), UINT32_C(0x8465B84A), UINT32_C(0x2AC22659), + UINT32_C(0x465B2BD6), UINT32_C(0x2729D646), UINT32_C(0xE4EFF9DD), + UINT32_C(0x6202344A), UINT32_C(0xCD9B90B9), UINT32_C(0x51F3198F) } }, + { { UINT32_C(0xE5F0AE1D), UINT32_C(0x17CE54EF), UINT32_C(0xB09852AF), + UINT32_C(0x984E8204), UINT32_C(0xC4B27A71), UINT32_C(0x3365B37A), + UINT32_C(0xA00E0A9C), UINT32_C(0x720E3152), UINT32_C(0x925BD606), + UINT32_C(0x3692F70D), UINT32_C(0x7BC7E9AB), UINT32_C(0xBE6E699D) }, + { UINT32_C(0x4C89A3C0), UINT32_C(0xD75C041F), UINT32_C(0x8DC100C0), + UINT32_C(0x8B9F592D), UINT32_C(0xAD228F71), UINT32_C(0x30750F3A), + UINT32_C(0xE8B17A11), UINT32_C(0x1B9ECF84), UINT32_C(0x0FBFA8A2), + UINT32_C(0xDF202562), UINT32_C(0xAA1B6D67), UINT32_C(0x45C811FC) } }, + { { UINT32_C(0x1A5151F8), UINT32_C(0xEC5B84B7), UINT32_C(0x550AB2D2), + UINT32_C(0x118E59E8), UINT32_C(0x049BD735), UINT32_C(0x2CCDEDA4), + UINT32_C(0x9CD62F0F), UINT32_C(0xC99CBA71), UINT32_C(0x62C9E4F8), + UINT32_C(0x69B8040A), UINT32_C(0x110B8283), UINT32_C(0x16F1A31A) }, + { UINT32_C(0x98E908A3), UINT32_C(0x53F63802), UINT32_C(0xD862F9DE), + UINT32_C(0x308CB6EF), UINT32_C(0xA521A95A), UINT32_C(0xE185DAD8), + UINT32_C(0x097F75CA), UINT32_C(0x4D8FE9A4), UINT32_C(0x1CA07D53), + UINT32_C(0xD1ECCEC7), UINT32_C(0x0DB07E83), UINT32_C(0x13DFA1DC) } }, + { { UINT32_C(0x0F591A76), UINT32_C(0xDDAF9DC6), UINT32_C(0x1685F412), + UINT32_C(0xE1A6D7CC), UINT32_C(0x002B6E8D), UINT32_C(0x153DE557), + UINT32_C(0xC6DA37D9), UINT32_C(0x730C38BC), UINT32_C(0x0914B597), + UINT32_C(0xAE180622), UINT32_C(0xDD8C3A0A), UINT32_C(0x84F98103) }, + { UINT32_C(0x8DA205B0), UINT32_C(0x369C5398), UINT32_C(0x3888A720), + UINT32_C(0xA3D95B81), UINT32_C(0xE10E2806), UINT32_C(0x1F3F8BBF), + UINT32_C(0x4530D1F3), UINT32_C(0x48663DF5), UINT32_C(0x3E377713), + UINT32_C(0x320523B4), UINT32_C(0xC7894814), UINT32_C(0xE8B1A575) } }, + { { UINT32_C(0x2EE8EA07), UINT32_C(0x33066871), UINT32_C(0x60DA199D), + UINT32_C(0xC6FB4EC5), UINT32_C(0xF4370A05), UINT32_C(0x33231860), + UINT32_C(0xC6DE4E26), UINT32_C(0x7ABECE72), UINT32_C(0xEBDECE7A), + UINT32_C(0xDE8D4BD8), UINT32_C(0x1CBE93C7), UINT32_C(0xC90EE657) }, + { UINT32_C(0x85AC2509), UINT32_C(0x0246751B), UINT32_C(0x30380245), + UINT32_C(0xD0EF142C), UINT32_C(0x7C76E39C), UINT32_C(0x086DF9C4), + UINT32_C(0xB789FB56), UINT32_C(0x68F1304F), UINT32_C(0xA5E4BD56), + UINT32_C(0x23E4CB98), UINT32_C(0x64663DCA), UINT32_C(0x69A4C63C) } }, + { { UINT32_C(0x7CB34E63), UINT32_C(0x6C72B6AF), UINT32_C(0x6DFC23FE), + UINT32_C(0x073C40CD), UINT32_C(0xC936693A), UINT32_C(0xBDEEE7A1), + UINT32_C(0x6EFAD378), UINT32_C(0xBC858E80), UINT32_C(0xF5BE55D4), + UINT32_C(0xEAD719FF), UINT32_C(0x04552F5F), UINT32_C(0xC8C3238F) }, + { UINT32_C(0x928D5784), UINT32_C(0x0952C068), UINT32_C(0x94C58F2B), + UINT32_C(0x89DFDF22), UINT32_C(0x67502C50), UINT32_C(0x332DEDF3), + UINT32_C(0xAC0BE258), UINT32_C(0x3ED2FA3A), UINT32_C(0x7C5C8244), + UINT32_C(0xAEDC9B8A), UINT32_C(0xDC0EA34F), UINT32_C(0x43A761B9) } }, + { { UINT32_C(0xCC5E21A5), UINT32_C(0x8FD683A2), UINT32_C(0xFBA2BB68), + UINT32_C(0x5F444C6E), UINT32_C(0xAF05586D), UINT32_C(0x709ACD0E), + UINT32_C(0xDE8FB348), UINT32_C(0x8EFA54D2), UINT32_C(0x34CFE29E), + UINT32_C(0x35276B71), UINT32_C(0x941EAC8C), UINT32_C(0x77A06FCD) }, + { UINT32_C(0x928322DD), UINT32_C(0x5815792D), UINT32_C(0x67F7CB59), + UINT32_C(0x82FF356B), UINT32_C(0x304980F4), UINT32_C(0x71E40A78), + UINT32_C(0x3667D021), UINT32_C(0xC8645C27), UINT32_C(0xAEBAE28F), + UINT32_C(0xE785741C), UINT32_C(0x53ECAC37), UINT32_C(0xB2C1BC75) } }, + { { UINT32_C(0x1D0A74DB), UINT32_C(0x633EB24F), UINT32_C(0xFA752512), + UINT32_C(0xF1F55E56), UINT32_C(0x8EFE11DE), UINT32_C(0x75FECA68), + UINT32_C(0xE6BF19EC), UINT32_C(0xC80FD91C), UINT32_C(0x2A14C908), + UINT32_C(0xAD0BAFEC), UINT32_C(0xADE4031F), UINT32_C(0x4E1C4ACA) }, + { UINT32_C(0x1EB1549A), UINT32_C(0x463A815B), UINT32_C(0x668F1298), + UINT32_C(0x5AD4253C), UINT32_C(0x38A37151), UINT32_C(0x5CB38662), + UINT32_C(0xAFF16B96), UINT32_C(0x34BB1CCF), UINT32_C(0xEE731AB0), + UINT32_C(0xDCA93B13), UINT32_C(0x9BE01A0B), UINT32_C(0x9F3CE5CC) } }, + { { UINT32_C(0xA110D331), UINT32_C(0x75DB5723), UINT32_C(0x7123D89F), + UINT32_C(0x67C66F6A), UINT32_C(0x4009D570), UINT32_C(0x27ABBD4B), + UINT32_C(0xC73451BC), UINT32_C(0xACDA6F84), UINT32_C(0x05575ACF), + UINT32_C(0xE4B9A239), UINT32_C(0xAB2D3D6C), UINT32_C(0x3C2DB7EF) }, + { UINT32_C(0x29115145), UINT32_C(0x01CCDD08), UINT32_C(0x57B5814A), + UINT32_C(0x9E0602FE), UINT32_C(0x87862838), UINT32_C(0x679B35C2), + UINT32_C(0x38AD598D), UINT32_C(0x0277DC4C), UINT32_C(0x6D896DD4), + UINT32_C(0xEF80A213), UINT32_C(0xE7B9047B), UINT32_C(0xC8812213) } }, + }, + { + { { UINT32_C(0xEDC9CE62), UINT32_C(0xAC6DBDF6), UINT32_C(0x0F9C006E), + UINT32_C(0xA58F5B44), UINT32_C(0xDC28E1B0), UINT32_C(0x16694DE3), + UINT32_C(0xA6647711), UINT32_C(0x2D039CF2), UINT32_C(0xC5B08B4B), + UINT32_C(0xA13BBE6F), UINT32_C(0x10EBD8CE), UINT32_C(0xE44DA930) }, + { UINT32_C(0x19649A16), UINT32_C(0xCD472087), UINT32_C(0x683E5DF1), + UINT32_C(0xE18F4E44), UINT32_C(0x929BFA28), UINT32_C(0xB3F66303), + UINT32_C(0x818249BF), UINT32_C(0x7C378E43), UINT32_C(0x847F7CD9), + UINT32_C(0x76068C80), UINT32_C(0x987EBA16), UINT32_C(0xEE3DB6D1) } }, + { { UINT32_C(0xC42A2F52), UINT32_C(0xCBBD8576), UINT32_C(0x9D2B06BB), + UINT32_C(0x9ACC6F70), UINT32_C(0x2E6B72A4), UINT32_C(0xE5CB5620), + UINT32_C(0x7C024443), UINT32_C(0x5738EA0E), UINT32_C(0xB55368F3), + UINT32_C(0x8ED06170), UINT32_C(0x1AEED44F), UINT32_C(0xE54C99BB) }, + { UINT32_C(0xE2E0D8B2), UINT32_C(0x3D90A6B2), UINT32_C(0xCF7B2856), + UINT32_C(0x21718977), UINT32_C(0xC5612AEC), UINT32_C(0x089093DC), + UINT32_C(0x99C1BACC), UINT32_C(0xC272EF6F), UINT32_C(0xDC43EAAD), + UINT32_C(0x47DB3B43), UINT32_C(0x0832D891), UINT32_C(0x730F30E4) } }, + { { UINT32_C(0x0C7FECDB), UINT32_C(0x9FFE5563), UINT32_C(0xF88101E5), + UINT32_C(0x55CC67B6), UINT32_C(0xCBEFA3C7), UINT32_C(0x3039F981), + UINT32_C(0x667BFD64), UINT32_C(0x2AB06883), UINT32_C(0x4340E3DF), + UINT32_C(0x9007A257), UINT32_C(0x5A3A49CA), UINT32_C(0x1AC3F3FA) }, + { UINT32_C(0xC97E20FD), UINT32_C(0x9C7BE629), UINT32_C(0xA3DAE003), + UINT32_C(0xF61823D3), UINT32_C(0xE7380DBA), UINT32_C(0xFFE7FF39), + UINT32_C(0x9FACC3B8), UINT32_C(0x620BB9B5), UINT32_C(0x31AE422C), + UINT32_C(0x2DDCB8CD), UINT32_C(0xD12C3C43), UINT32_C(0x1DE3BCFA) } }, + { { UINT32_C(0xD6E0F9A9), UINT32_C(0x8C074946), UINT32_C(0x51C3B05B), + UINT32_C(0x662FA995), UINT32_C(0x04BB2048), UINT32_C(0x6CDAE969), + UINT32_C(0xD6DC8B60), UINT32_C(0x6DEC9594), UINT32_C(0x54438BBC), + UINT32_C(0x8D265869), UINT32_C(0x1B0E95A5), UINT32_C(0x88E983E3) }, + { UINT32_C(0x60CBF838), UINT32_C(0x8189F114), UINT32_C(0x771DC46B), + UINT32_C(0x77190697), UINT32_C(0x27F8EC1A), UINT32_C(0x775775A2), + UINT32_C(0x607E3739), UINT32_C(0x7A125240), UINT32_C(0x4F793E4E), + UINT32_C(0xAFAE84E7), UINT32_C(0x5BF5BAF4), UINT32_C(0x44FA17F3) } }, + { { UINT32_C(0xD03AC439), UINT32_C(0xA21E69A5), UINT32_C(0x88AA8094), + UINT32_C(0x2069C5FC), UINT32_C(0x8C08F206), UINT32_C(0xB041EEA7), + UINT32_C(0x3D65B8ED), UINT32_C(0x55B9D461), UINT32_C(0xD392C7C4), + UINT32_C(0x951EA25C), UINT32_C(0x9D166232), UINT32_C(0x4B9A1CEC) }, + { UINT32_C(0xFCF931A4), UINT32_C(0xC184FCD8), UINT32_C(0x063AD374), + UINT32_C(0xBA59AD44), UINT32_C(0x1AA9796F), UINT32_C(0x1868AD2A), + UINT32_C(0xDFF29832), UINT32_C(0x38A34018), UINT32_C(0x03DF8070), + UINT32_C(0x01FC8801), UINT32_C(0x48DD334A), UINT32_C(0x1282CCE0) } }, + { { UINT32_C(0x26D8503C), UINT32_C(0x76AA9557), UINT32_C(0x6BC3E3D0), + UINT32_C(0xBE962B63), UINT32_C(0x97DE8841), UINT32_C(0xF5CA93E5), + UINT32_C(0xAF3F2C16), UINT32_C(0x1561B05E), UINT32_C(0xD34BFF98), + UINT32_C(0x34BE00AA), UINT32_C(0xD23D2925), UINT32_C(0xEA21E6E9) }, + { UINT32_C(0x394C3AFB), UINT32_C(0x55713230), UINT32_C(0xD6C8BECA), + UINT32_C(0xEAF0529B), UINT32_C(0x202B9A11), UINT32_C(0xFF38A743), + UINT32_C(0x6D3A398B), UINT32_C(0xA13E39FC), UINT32_C(0x86E2615A), + UINT32_C(0x8CBD644B), UINT32_C(0x191057EC), UINT32_C(0x92063988) } }, + { { UINT32_C(0x13F89146), UINT32_C(0x787835CE), UINT32_C(0x69446C3F), + UINT32_C(0x7FCD42CC), UINT32_C(0x840E679D), UINT32_C(0x0DA2AA98), + UINT32_C(0x18779A1B), UINT32_C(0x44F20523), UINT32_C(0xEFBF5935), + UINT32_C(0xE3A3B34F), UINT32_C(0xB9947B70), UINT32_C(0xA5D2CFD0) }, + { UINT32_C(0x27F4E16F), UINT32_C(0xAE2AF4EF), UINT32_C(0xB9D21322), + UINT32_C(0xA7FA70D2), UINT32_C(0xB3FD566B), UINT32_C(0x68084919), + UINT32_C(0xD7AAD6AB), UINT32_C(0xF04D71C8), UINT32_C(0x10BC4260), + UINT32_C(0xDBEA21E4), UINT32_C(0x8D949B42), UINT32_C(0xAA7DC665) } }, + { { UINT32_C(0x6CCB8213), UINT32_C(0xD8E958A0), UINT32_C(0x91900B54), + UINT32_C(0x118D9DB9), UINT32_C(0x85E8CED6), UINT32_C(0x09BB9D49), + UINT32_C(0x24019281), UINT32_C(0x410E9FB5), UINT32_C(0x6D74C86E), + UINT32_C(0x3B31B4E1), UINT32_C(0x020BB77D), UINT32_C(0x52BC0252) }, + { UINT32_C(0x27092CE4), UINT32_C(0x5616A26F), UINT32_C(0xA08F65CD), + UINT32_C(0x67774DBC), UINT32_C(0xC08BD569), UINT32_C(0x560AD494), + UINT32_C(0xAD498783), UINT32_C(0xBE26DA36), UINT32_C(0x7F019C91), + UINT32_C(0x0276C8AB), UINT32_C(0x5248266E), UINT32_C(0x09843ADA) } }, + { { UINT32_C(0x7D963CF2), UINT32_C(0xA0AE88A7), UINT32_C(0xD0E84920), + UINT32_C(0x91EF8986), UINT32_C(0xF8C58104), UINT32_C(0xC7EFE344), + UINT32_C(0xECA20773), UINT32_C(0x0A25D9FD), UINT32_C(0x00D8F1D5), + UINT32_C(0x9D989FAA), UINT32_C(0xC8B06264), UINT32_C(0x4204C8CE) }, + { UINT32_C(0xBE1A2796), UINT32_C(0x717C12E0), UINT32_C(0xC190C728), + UINT32_C(0x1FA4BA8C), UINT32_C(0x8C8A59BA), UINT32_C(0xA245CA8D), + UINT32_C(0x7672B935), UINT32_C(0xE3C37475), UINT32_C(0x2E4D6375), + UINT32_C(0x083D5E40), UINT32_C(0x5455E16E), UINT32_C(0x0B8D5AB3) } }, + { { UINT32_C(0xEED765D4), UINT32_C(0x1DB17DBF), UINT32_C(0xA5DDB965), + UINT32_C(0xBBC9B1BE), UINT32_C(0xDFC12ABC), UINT32_C(0x1948F76D), + UINT32_C(0x134EF489), UINT32_C(0x2C2714E5), UINT32_C(0x741C600F), + UINT32_C(0x60CE2EE8), UINT32_C(0xF80E6E63), UINT32_C(0x32396F22) }, + { UINT32_C(0x22537F59), UINT32_C(0x421DAC75), UINT32_C(0x49475DF5), + UINT32_C(0x58FB73C6), UINT32_C(0x6F18F1C7), UINT32_C(0x0ABF2885), + UINT32_C(0x9A398D16), UINT32_C(0x36474468), UINT32_C(0xBF673B87), + UINT32_C(0x87A661A7), UINT32_C(0x73819E17), UINT32_C(0x3E80698F) } }, + { { UINT32_C(0x53784CC4), UINT32_C(0xDFE49793), UINT32_C(0x486D508F), + UINT32_C(0x4280EAB0), UINT32_C(0xE534F5A4), UINT32_C(0x119593FF), + UINT32_C(0x9F63242F), UINT32_C(0x98AEFADD), UINT32_C(0xC4829CAE), + UINT32_C(0x9AE6A24A), UINT32_C(0x58E8BA80), UINT32_C(0xF2373CA5) }, + { UINT32_C(0x51765FB3), UINT32_C(0x4017AF7E), UINT32_C(0xAF4AEC4B), + UINT32_C(0xD1E40F7C), UINT32_C(0x0898E3BC), UINT32_C(0x87372C7A), + UINT32_C(0x85452CA9), UINT32_C(0x688982B2), UINT32_C(0xB1E50BCA), + UINT32_C(0x71E0B4BF), UINT32_C(0xF70E714A), UINT32_C(0x21FD2DBF) } }, + { { UINT32_C(0xFB78DDAC), UINT32_C(0xEE6E8820), UINT32_C(0x063892CD), + UINT32_C(0x0BAED29C), UINT32_C(0x28C0588D), UINT32_C(0x5F33049C), + UINT32_C(0x18DBC432), UINT32_C(0x90C2515E), UINT32_C(0x3B4CB0BD), + UINT32_C(0xB8A1B143), UINT32_C(0x68103043), UINT32_C(0x0AB5C0C9) }, + { UINT32_C(0x4005EC40), UINT32_C(0xF3788FA0), UINT32_C(0x039EE115), + UINT32_C(0x82571C99), UINT32_C(0x93260BED), UINT32_C(0xEE8FCED5), + UINT32_C(0x10836D18), UINT32_C(0x5A9BAF79), UINT32_C(0xC46AA4F6), + UINT32_C(0x7C258B09), UINT32_C(0x37F53D31), UINT32_C(0x46ECC5E8) } }, + { { UINT32_C(0xBFE0DD98), UINT32_C(0xFA32C0DC), UINT32_C(0x962B1066), + UINT32_C(0x66EFAFC4), UINT32_C(0x64BDF5EB), UINT32_C(0xBA81D33E), + UINT32_C(0xFC7FC512), UINT32_C(0x36C28536), UINT32_C(0xE0B4FA97), + UINT32_C(0x0C95176B), UINT32_C(0x3B9BC64A), UINT32_C(0x47DDE29B) }, + { UINT32_C(0x5C173B36), UINT32_C(0x08D986FD), UINT32_C(0x6CF3F28C), + UINT32_C(0x46D84B52), UINT32_C(0xF026BDB9), UINT32_C(0x6F6ED6C3), + UINT32_C(0x68206DC5), UINT32_C(0xAC90668B), UINT32_C(0xECBE4E70), + UINT32_C(0xE8ED5D98), UINT32_C(0xDC1A6974), UINT32_C(0xCFFF61DD) } }, + { { UINT32_C(0x77B1A5C1), UINT32_C(0xFF5C3A29), UINT32_C(0x0DDF995D), + UINT32_C(0x10C27E4A), UINT32_C(0xE23363E3), UINT32_C(0xCB745F77), + UINT32_C(0x32F399A3), UINT32_C(0xD765DF6F), UINT32_C(0x8A99E109), + UINT32_C(0xF0CA0C2F), UINT32_C(0x1E025CA0), UINT32_C(0xC3A6BFB7) }, + { UINT32_C(0x4F9D9FA5), UINT32_C(0x830B2C0A), UINT32_C(0xBD1A84E5), + UINT32_C(0xAE914CAC), UINT32_C(0xA4FEBCC1), UINT32_C(0x30B35ED8), + UINT32_C(0x84CFBF2E), UINT32_C(0xCB902B46), UINT32_C(0x25FC6375), + UINT32_C(0x0BD47628), UINT32_C(0x85509D04), UINT32_C(0xA858A53C) } }, + { { UINT32_C(0x552E0A3F), UINT32_C(0x8B995D0C), UINT32_C(0x17BE9FF7), + UINT32_C(0xEDBD4E94), UINT32_C(0x95085178), UINT32_C(0x3432E839), + UINT32_C(0x80C256F5), UINT32_C(0x0FE5C181), UINT32_C(0xEBF9597C), + UINT32_C(0x05A64EA8), UINT32_C(0x3F80371F), UINT32_C(0x6ED44BB1) }, + { UINT32_C(0xFE4C12EE), UINT32_C(0x6A29A05E), UINT32_C(0xE0BB83B3), + UINT32_C(0x3E436A43), UINT32_C(0x74D72921), UINT32_C(0x38365D9A), + UINT32_C(0xC38E1ED7), UINT32_C(0x3F5EE823), UINT32_C(0xE8FA063F), + UINT32_C(0x09A53213), UINT32_C(0xB435E713), UINT32_C(0x1E7FE47A) } }, + { { UINT32_C(0xFDDD17F3), UINT32_C(0xE4D9BC94), UINT32_C(0xC1016C20), + UINT32_C(0xC74B8FED), UINT32_C(0xB49C060E), UINT32_C(0x095DE39B), + UINT32_C(0x8AC0DF00), UINT32_C(0xDBCC6795), UINT32_C(0x1C34F4DF), + UINT32_C(0x4CF6BAEB), UINT32_C(0xE8390170), UINT32_C(0x72C55C21) }, + { UINT32_C(0xF6C48E79), UINT32_C(0x4F17BFD2), UINT32_C(0x017A80BA), + UINT32_C(0x18BF4DA0), UINT32_C(0xBCF4B138), UINT32_C(0xCF51D829), + UINT32_C(0xF48F8B0D), UINT32_C(0x598AEE5F), UINT32_C(0x20F10809), + UINT32_C(0x83FAEE56), UINT32_C(0x779F0850), UINT32_C(0x4615D4DC) } }, + }, + { + { { UINT32_C(0x5852B59B), UINT32_C(0x22313DEE), UINT32_C(0xB6A0B37F), + UINT32_C(0x6F56C8E8), UINT32_C(0xA76EC380), UINT32_C(0x43D6EEAE), + UINT32_C(0x0275AD36), UINT32_C(0xA1655136), UINT32_C(0xDF095BDA), + UINT32_C(0xE5C1B65A), UINT32_C(0x367C44B0), UINT32_C(0xBD1FFA8D) }, + { UINT32_C(0x6B48AF2B), UINT32_C(0xE2B419C2), UINT32_C(0x3DA194C8), + UINT32_C(0x57BBBD97), UINT32_C(0xA2BAFF05), UINT32_C(0xB5FBE51F), + UINT32_C(0x6269B5D0), UINT32_C(0xA0594D70), UINT32_C(0x23E8D667), + UINT32_C(0x0B07B705), UINT32_C(0x63E016E7), UINT32_C(0xAE1976B5) } }, + { { UINT32_C(0xFBECAAAE), UINT32_C(0x2FDE4893), UINT32_C(0x30332229), + UINT32_C(0x444346DE), UINT32_C(0x09456ED5), UINT32_C(0x157B8A5B), + UINT32_C(0x25797C6C), UINT32_C(0x73606A79), UINT32_C(0x33C14C06), + UINT32_C(0xA9D0F47C), UINT32_C(0xFAF971CA), UINT32_C(0x7BC8962C) }, + { UINT32_C(0x65909DFD), UINT32_C(0x6E763C51), UINT32_C(0x14A9BF42), + UINT32_C(0x1BBBE41B), UINT32_C(0xC49E9EFC), UINT32_C(0xD95B7ECB), + UINT32_C(0xB38F2B59), UINT32_C(0x0C317927), UINT32_C(0xB3C397DB), + UINT32_C(0x97912B53), UINT32_C(0x45C7ABC7), UINT32_C(0xCB3879AA) } }, + { { UINT32_C(0x24359B81), UINT32_C(0xCD81BDCF), UINT32_C(0xDB4C321C), + UINT32_C(0x6FD326E2), UINT32_C(0xF8EBE39C), UINT32_C(0x4CB0228B), + UINT32_C(0xB2CDD852), UINT32_C(0x496A9DCE), UINT32_C(0xD0E9B3AF), + UINT32_C(0x0F115A1A), UINT32_C(0xD8EEEF8A), UINT32_C(0xAA08BF36) }, + { UINT32_C(0x06E5E739), UINT32_C(0x5232A515), UINT32_C(0x8407A551), + UINT32_C(0x21FAE9D5), UINT32_C(0x8994B4E8), UINT32_C(0x289D18B0), + UINT32_C(0x09097A52), UINT32_C(0xB4E346A8), UINT32_C(0x324621D0), + UINT32_C(0xC641510F), UINT32_C(0x95A41AB8), UINT32_C(0xC567FD4A) } }, + { { UINT32_C(0xD57C8DE9), UINT32_C(0x261578C7), UINT32_C(0x3836C5C8), + UINT32_C(0xB9BC491F), UINT32_C(0x14C8038F), UINT32_C(0x993266B4), + UINT32_C(0xFAA7CC39), UINT32_C(0xBACAD755), UINT32_C(0xD69B7E27), + UINT32_C(0x418C4DEF), UINT32_C(0xAE751533), UINT32_C(0x53FDC5CD) }, + { UINT32_C(0xC3EEA63A), UINT32_C(0x6F3BD329), UINT32_C(0xE53DD29E), + UINT32_C(0xA7A22091), UINT32_C(0xDC4C54EC), UINT32_C(0xB7164F73), + UINT32_C(0x44D3D74E), UINT32_C(0xCA66290D), UINT32_C(0x4C9EA511), + UINT32_C(0xF77C6242), UINT32_C(0x1F714C49), UINT32_C(0x34337F55) } }, + { { UINT32_C(0xA64B6C4B), UINT32_C(0x5ED2B216), UINT32_C(0x3AAE640D), + UINT32_C(0x1C38794F), UINT32_C(0x8905794F), UINT32_C(0x30BBAEE0), + UINT32_C(0xC8699CFB), UINT32_C(0x0D9EE41E), UINT32_C(0xCF7B7C29), + UINT32_C(0xAF38DAF2), UINT32_C(0x43E53513), UINT32_C(0x0D6A05CA) }, + { UINT32_C(0x2606AB56), UINT32_C(0xBE96C644), UINT32_C(0xE9EB9734), + UINT32_C(0x13E7A072), UINT32_C(0x5FF50CD7), UINT32_C(0xF9669445), + UINT32_C(0x47DA6F1D), UINT32_C(0x68EF26B5), UINT32_C(0x23687CB7), + UINT32_C(0xF0028738), UINT32_C(0x6217C1CE), UINT32_C(0x5ED9C876) } }, + { { UINT32_C(0x0A3A9691), UINT32_C(0x423BA513), UINT32_C(0xB3179296), + UINT32_C(0xF421B1E7), UINT32_C(0x1A871E1B), UINT32_C(0x6B51BCDB), + UINT32_C(0x464E4300), UINT32_C(0x6E3BB5B5), UINT32_C(0xFC6C54CC), + UINT32_C(0x24171E2E), UINT32_C(0xD3E58DC2), UINT32_C(0xA9DFA947) }, + { UINT32_C(0x9DE9CFA7), UINT32_C(0x175B3309), UINT32_C(0x2D1015DA), + UINT32_C(0x707B2529), UINT32_C(0x993EA65A), UINT32_C(0xCBB95F17), + UINT32_C(0x0447450D), UINT32_C(0x93515063), UINT32_C(0x1B2753C9), + UINT32_C(0x0F47B205), UINT32_C(0xE7D427CF), UINT32_C(0x4A0BAB14) } }, + { { UINT32_C(0xB5AA7CA1), UINT32_C(0xA39DEF39), UINT32_C(0xC47C33DF), + UINT32_C(0x591CB173), UINT32_C(0x6BBAB872), UINT32_C(0xA09DAC79), + UINT32_C(0x7208BA2F), UINT32_C(0x3EF9D7CF), UINT32_C(0x7A0A34FC), + UINT32_C(0x3CC18931), UINT32_C(0xBCC3380F), UINT32_C(0xAE31C62B) }, + { UINT32_C(0x0287C0B4), UINT32_C(0xD72A6794), UINT32_C(0x68E334F1), + UINT32_C(0x3373382C), UINT32_C(0xBD20C6A6), UINT32_C(0xD0310CA8), + UINT32_C(0x42C033FD), UINT32_C(0xA2734B87), UINT32_C(0x8DCE4509), + UINT32_C(0xA5D390F1), UINT32_C(0x3E1AFCB5), UINT32_C(0xFC84E74B) } }, + { { UINT32_C(0xF2CD8A9C), UINT32_C(0xB028334D), UINT32_C(0x570F76F6), + UINT32_C(0xB8719291), UINT32_C(0x01065A2D), UINT32_C(0x662A386E), + UINT32_C(0x53D940AE), UINT32_C(0xDF1634CB), UINT32_C(0x8F5B41F9), + UINT32_C(0x625A7B83), UINT32_C(0xEE6AA1B4), UINT32_C(0xA033E4FE) }, + { UINT32_C(0x1E42BABB), UINT32_C(0x51E9D463), UINT32_C(0x0D388468), + UINT32_C(0x660BC2E4), UINT32_C(0xFCBB114A), UINT32_C(0x3F702189), + UINT32_C(0xB414CA78), UINT32_C(0x6B46FE35), UINT32_C(0x4A57316B), + UINT32_C(0x328F6CF2), UINT32_C(0x381AD156), UINT32_C(0x917423B5) } }, + { { UINT32_C(0x5373A607), UINT32_C(0xAC19306E), UINT32_C(0x191D0969), + UINT32_C(0x471DF8E3), UINT32_C(0xB9720D83), UINT32_C(0x380ADE35), + UINT32_C(0x48F1FD5C), UINT32_C(0x7423FDF5), UINT32_C(0x49CABC95), + UINT32_C(0x8B090C9F), UINT32_C(0xC9842F2F), UINT32_C(0xB768E8CD) }, + { UINT32_C(0xE56162D6), UINT32_C(0x399F456D), UINT32_C(0x4F326791), + UINT32_C(0xBB6BA240), UINT32_C(0x342590BE), UINT32_C(0x8F4FBA3B), + UINT32_C(0x3DFB6B3E), UINT32_C(0x053986B9), UINT32_C(0x190C7425), + UINT32_C(0xBB6739F1), UINT32_C(0x32F7E95F), UINT32_C(0x32D4A553) } }, + { { UINT32_C(0x0DDBFB21), UINT32_C(0x0205A0EC), UINT32_C(0x33AC3407), + UINT32_C(0x3010327D), UINT32_C(0x3348999B), UINT32_C(0xCF2F4DB3), + UINT32_C(0x1551604A), UINT32_C(0x660DB9F4), UINT32_C(0x5D38D335), + UINT32_C(0xC346C69A), UINT32_C(0x38882479), UINT32_C(0x64AAB3D3) }, + { UINT32_C(0x6AE44403), UINT32_C(0xA096B5E7), UINT32_C(0x645F76CD), + UINT32_C(0x6B4C9571), UINT32_C(0x4711120F), UINT32_C(0x72E1CD5F), + UINT32_C(0xF27CC3E1), UINT32_C(0x93EC42AC), UINT32_C(0xA72ABB12), + UINT32_C(0x2D18D004), UINT32_C(0xC9841A04), UINT32_C(0x232E9568) } }, + { { UINT32_C(0x3CC7F908), UINT32_C(0xFF01DB22), UINT32_C(0xD13CDD3B), + UINT32_C(0x9F214F8F), UINT32_C(0xE0B014B5), UINT32_C(0x38DADBB7), + UINT32_C(0x94245C95), UINT32_C(0x2C548CCC), UINT32_C(0x809AFCE3), + UINT32_C(0x714BE331), UINT32_C(0x9BFE957E), UINT32_C(0xBCC64410) }, + { UINT32_C(0x5B957F80), UINT32_C(0xC21C2D21), UINT32_C(0xBB8A4C42), + UINT32_C(0xBA2D4FDC), UINT32_C(0x74817CEC), UINT32_C(0xFA6CD4AF), + UINT32_C(0xC528EAD6), UINT32_C(0x9E7FB523), UINT32_C(0x7714B10E), + UINT32_C(0xAED781FF), UINT32_C(0x94F04455), UINT32_C(0xB52BB592) } }, + { { UINT32_C(0x868CC68B), UINT32_C(0xA578BD69), UINT32_C(0x603F2C08), + UINT32_C(0xA40FDC8D), UINT32_C(0x2D81B042), UINT32_C(0x53D79BD1), + UINT32_C(0xA7587EAB), UINT32_C(0x1B136AF3), UINT32_C(0x868A16DB), + UINT32_C(0x1ED4F939), UINT32_C(0xD0B98273), UINT32_C(0x775A61FB) }, + { UINT32_C(0xE56BEF8C), UINT32_C(0xBA5C12A6), UINT32_C(0xDDDC8595), + UINT32_C(0xF926CE52), UINT32_C(0x586FE1F8), UINT32_C(0xA13F5C8F), + UINT32_C(0x060DBB54), UINT32_C(0xEAC9F7F2), UINT32_C(0x51AF4342), + UINT32_C(0x70C0AC3A), UINT32_C(0x79CDA450), UINT32_C(0xC16E303C) } }, + { { UINT32_C(0x8113F4EA), UINT32_C(0xD0DADD6C), UINT32_C(0x07BDF09F), + UINT32_C(0xF14E3922), UINT32_C(0xAA7D877C), UINT32_C(0x3FE5E9C2), + UINT32_C(0x48779264), UINT32_C(0x9EA95C19), UINT32_C(0x4FCB8344), + UINT32_C(0xE93F65A7), UINT32_C(0x76D925A4), UINT32_C(0x9F40837E) }, + { UINT32_C(0x8271FFC7), UINT32_C(0x0EA6DA3F), UINT32_C(0xCC8F9B19), + UINT32_C(0x557FA529), UINT32_C(0x78E6DDFD), UINT32_C(0x2613DBF1), + UINT32_C(0x36B1E954), UINT32_C(0x7A7523B8), UINT32_C(0x406A87FB), + UINT32_C(0x20EB3168), UINT32_C(0x03ABA56A), UINT32_C(0x64C21C14) } }, + { { UINT32_C(0xC032DD5F), UINT32_C(0xE86C9C2D), UINT32_C(0x86F16A21), + UINT32_C(0x158CEB8E), UINT32_C(0x68326AF1), UINT32_C(0x0279FF53), + UINT32_C(0x59F12BA5), UINT32_C(0x1FFE2E2B), UINT32_C(0x86826D45), + UINT32_C(0xD75A46DB), UINT32_C(0x1E33E6AC), UINT32_C(0xE19B4841) }, + { UINT32_C(0x0E52991C), UINT32_C(0x5F0CC524), UINT32_C(0x8B116286), + UINT32_C(0x645871F9), UINT32_C(0xFCAEC5D3), UINT32_C(0xAB3B4B1E), + UINT32_C(0x51D0F698), UINT32_C(0x994C8DF0), UINT32_C(0xE5D13040), + UINT32_C(0x06F890AF), UINT32_C(0x5F96C7C2), UINT32_C(0x72D9DC23) } }, + { { UINT32_C(0xE7886A80), UINT32_C(0x7C018DEE), UINT32_C(0x8786E4A3), + UINT32_C(0xFA209330), UINT32_C(0xA4415CA1), UINT32_C(0xCEC8E2A3), + UINT32_C(0xCC83CC60), UINT32_C(0x5C736FC1), UINT32_C(0xF00C259F), + UINT32_C(0xFEF9788C), UINT32_C(0xDD29A6AD), UINT32_C(0xED5C01CB) }, + { UINT32_C(0x3E20825B), UINT32_C(0x87834A03), UINT32_C(0x123F9358), + UINT32_C(0x13B1239D), UINT32_C(0xFBC286C1), UINT32_C(0x7E8869D0), + UINT32_C(0x24CE8609), UINT32_C(0xC4AB5AA3), UINT32_C(0xB6349208), + UINT32_C(0x38716BEE), UINT32_C(0xB322AE21), UINT32_C(0x0BDF4F99) } }, + { { UINT32_C(0x53E3494B), UINT32_C(0x6B97A2BF), UINT32_C(0x70F7A13E), + UINT32_C(0xA8AA05C5), UINT32_C(0xF1305B51), UINT32_C(0x209709C2), + UINT32_C(0xDAB76F2C), UINT32_C(0x57B31888), UINT32_C(0xAA2A406A), + UINT32_C(0x75B2ECD7), UINT32_C(0xA35374A4), UINT32_C(0x88801A00) }, + { UINT32_C(0x45C0471B), UINT32_C(0xE1458D1C), UINT32_C(0x322C1AB0), + UINT32_C(0x5760E306), UINT32_C(0xAD6AB0A6), UINT32_C(0x789A0AF1), + UINT32_C(0xF458B9CE), UINT32_C(0x74398DE1), UINT32_C(0x32E0C65F), + UINT32_C(0x1652FF9F), UINT32_C(0xFFFB3A52), UINT32_C(0xFAF1F9D5) } }, + }, + { + { { UINT32_C(0xD1D1B007), UINT32_C(0xA05C751C), UINT32_C(0x0213E478), + UINT32_C(0x016C213B), UINT32_C(0xF4C98FEE), UINT32_C(0x9C56E26C), + UINT32_C(0xE7B3A7C7), UINT32_C(0x6084F8B9), UINT32_C(0xDECC1646), + UINT32_C(0xA0B042F6), UINT32_C(0xFBF3A0BC), UINT32_C(0x4A6F3C1A) }, + { UINT32_C(0x51C9F909), UINT32_C(0x94524C2C), UINT32_C(0x3A6D3748), + UINT32_C(0xF3B3AD40), UINT32_C(0x7CE1F9F5), UINT32_C(0x18792D6E), + UINT32_C(0xFC0C34FA), UINT32_C(0x8EBC2FD7), UINT32_C(0x780A1693), + UINT32_C(0x032A9F41), UINT32_C(0x56A60019), UINT32_C(0x34F9801E) } }, + { { UINT32_C(0xF0DB3751), UINT32_C(0xB398290C), UINT32_C(0xBA42C976), + UINT32_C(0x01170580), UINT32_C(0x56560B89), UINT32_C(0x3E71AA29), + UINT32_C(0x50E6647B), UINT32_C(0x80817AAC), UINT32_C(0xA0BE42DA), + UINT32_C(0x35C833AD), UINT32_C(0xF1BABA4E), UINT32_C(0xFA3C6148) }, + { UINT32_C(0xCD8F6253), UINT32_C(0xC57BE645), UINT32_C(0xC657AD0D), + UINT32_C(0x77CEE46B), UINT32_C(0x0DEFD908), UINT32_C(0x83007731), + UINT32_C(0x899CBA56), UINT32_C(0x92FE9BCE), UINT32_C(0xBCEFFB5A), + UINT32_C(0x48450EC4), UINT32_C(0xF2F5F4BF), UINT32_C(0xE615148D) } }, + { { UINT32_C(0x90B86166), UINT32_C(0xF55EDABB), UINT32_C(0x075430A2), + UINT32_C(0x27F7D784), UINT32_C(0x9BF17161), UINT32_C(0xF53E822B), + UINT32_C(0xAFE808DC), UINT32_C(0x4A5B3B93), UINT32_C(0xD7272F55), + UINT32_C(0x590BBBDE), UINT32_C(0xEAEA79A1), UINT32_C(0x233D63FA) }, + { UINT32_C(0xFE1EBA07), UINT32_C(0xD7042BEA), UINT32_C(0x10750D7E), + UINT32_C(0xD2B9AEA0), UINT32_C(0x31078AA5), UINT32_C(0xD8D1E690), + UINT32_C(0x7E37BC8B), UINT32_C(0x9E837F18), UINT32_C(0x85008975), + UINT32_C(0x9558FF4F), UINT32_C(0x421FE867), UINT32_C(0x93EDB837) } }, + { { UINT32_C(0x83D55B5A), UINT32_C(0xAA6489DF), UINT32_C(0x86BF27F7), + UINT32_C(0xEA092E49), UINT32_C(0x5FA2EFEC), UINT32_C(0x4D8943A9), + UINT32_C(0x720E1A8C), UINT32_C(0xC9BAAE53), UINT32_C(0x95A4F8A3), + UINT32_C(0xC055444B), UINT32_C(0xA7C1206B), UINT32_C(0x93BD01E8) }, + { UINT32_C(0x714A27DF), UINT32_C(0xD97765B6), UINT32_C(0x193F1B16), + UINT32_C(0xD622D954), UINT32_C(0xF1503B15), UINT32_C(0x115CC35A), + UINT32_C(0xA9FA21F8), UINT32_C(0x1DD5359F), UINT32_C(0x6DFED1F1), + UINT32_C(0x197C3299), UINT32_C(0xF77F2679), UINT32_C(0xDEE8B7C9) } }, + { { UINT32_C(0x394FD855), UINT32_C(0x5405179F), UINT32_C(0x49FDFB33), + UINT32_C(0xC9D6E244), UINT32_C(0xBD903393), UINT32_C(0x70EBCAB4), + UINT32_C(0xA2C56780), UINT32_C(0x0D3A3899), UINT32_C(0x683D1A0A), + UINT32_C(0x012C7256), UINT32_C(0x80A48F3B), UINT32_C(0xC688FC88) }, + { UINT32_C(0x6F7DF527), UINT32_C(0x18095754), UINT32_C(0x71315D16), + UINT32_C(0x9E339B4B), UINT32_C(0xA956BB12), UINT32_C(0x90560C28), + UINT32_C(0xD42EEE8D), UINT32_C(0x2BECEA60), UINT32_C(0x50632653), + UINT32_C(0x82AEB9A7), UINT32_C(0xDFA5CD6A), UINT32_C(0xED34353E) } }, + { { UINT32_C(0x91AECCE4), UINT32_C(0x82154D2C), UINT32_C(0x5041887F), + UINT32_C(0x312C6070), UINT32_C(0xFB9FBD71), UINT32_C(0xECF589F3), + UINT32_C(0xB524BDE4), UINT32_C(0x67660A7D), UINT32_C(0x724ACF23), + UINT32_C(0xE99B029D), UINT32_C(0x6D1CD891), UINT32_C(0xDF06E4AF) }, + { UINT32_C(0x80EE304D), UINT32_C(0x07806CB5), UINT32_C(0x7443A8F8), + UINT32_C(0x0C70BB9F), UINT32_C(0x08B0830A), UINT32_C(0x01EC3414), + UINT32_C(0x5A81510B), UINT32_C(0xFD7B63C3), UINT32_C(0x453B5F93), + UINT32_C(0xE90A0A39), UINT32_C(0x9BC71725), UINT32_C(0xAB700F8F) } }, + { { UINT32_C(0xB9F00793), UINT32_C(0x9401AEC2), UINT32_C(0xB997F0BF), + UINT32_C(0x064EC4F4), UINT32_C(0x849240C8), UINT32_C(0xDC0CC1FD), + UINT32_C(0xB6E92D72), UINT32_C(0x39A75F37), UINT32_C(0x0224A4AB), + UINT32_C(0xAA43CA5D), UINT32_C(0x54614C47), UINT32_C(0x9C4D6325) }, + { UINT32_C(0xC6709DA3), UINT32_C(0x1767366F), UINT32_C(0x23479232), + UINT32_C(0xA6B482D1), UINT32_C(0x84D63E85), UINT32_C(0x54DC6DDC), + UINT32_C(0xC99D3B9E), UINT32_C(0x0ACCB5AD), UINT32_C(0xE8AA3ABF), + UINT32_C(0x211716BB), UINT32_C(0x69EC6406), UINT32_C(0xD0FE25AD) } }, + { { UINT32_C(0xDF85C705), UINT32_C(0x0D5C1769), UINT32_C(0xA409DCD1), + UINT32_C(0x7086C93D), UINT32_C(0x0E8D75D8), UINT32_C(0x9710839D), + UINT32_C(0xEBDD4177), UINT32_C(0x17B7DB75), UINT32_C(0xF649A809), + UINT32_C(0xAF69EB58), UINT32_C(0x8A84E220), UINT32_C(0x6EF19EA2) }, + { UINT32_C(0x65C278B2), UINT32_C(0x36EB5C66), UINT32_C(0x81EA9D65), + UINT32_C(0xD2A15128), UINT32_C(0x769300AD), UINT32_C(0x4FCBA840), + UINT32_C(0xC8E536E5), UINT32_C(0xC2052CCD), UINT32_C(0xAC263B8F), + UINT32_C(0x9CAEE014), UINT32_C(0xF9239663), UINT32_C(0x56F7ED7A) } }, + { { UINT32_C(0xAC9E09E1), UINT32_C(0xF6FA251F), UINT32_C(0x955A2853), + UINT32_C(0xA3775605), UINT32_C(0xF2A4BD78), UINT32_C(0x977B8D21), + UINT32_C(0x3E096410), UINT32_C(0xF68AA7FF), UINT32_C(0x65F88419), + UINT32_C(0x01AB0552), UINT32_C(0xBB93F64E), UINT32_C(0xC4C8D77E) }, + { UINT32_C(0x3451FE64), UINT32_C(0x71825111), UINT32_C(0x46F9BAF0), + UINT32_C(0xFA0F905B), UINT32_C(0xCA49EF1A), UINT32_C(0x79BE3BF3), + UINT32_C(0x6CB02071), UINT32_C(0x831109B2), UINT32_C(0xC4DDBFE5), + UINT32_C(0x765F935F), UINT32_C(0x80E5A3BA), UINT32_C(0x6F99CD14) } }, + { { UINT32_C(0x234F91FF), UINT32_C(0xD2E8DA04), UINT32_C(0x813867AA), + UINT32_C(0x4DED4D6D), UINT32_C(0xE0A0D945), UINT32_C(0x3B50175D), + UINT32_C(0x4EB78137), UINT32_C(0x55AC7406), UINT32_C(0xE1D47730), + UINT32_C(0xE9FA7F6E), UINT32_C(0x5CBF2176), UINT32_C(0x2C171531) }, + { UINT32_C(0x2BE7A47D), UINT32_C(0xA521788F), UINT32_C(0x3FCF1AB3), + UINT32_C(0x95B15A27), UINT32_C(0xF28A946A), UINT32_C(0xAADA6401), + UINT32_C(0x8B4E898B), UINT32_C(0x628B2EF4), UINT32_C(0x6D6592CC), + UINT32_C(0x0E6F4629), UINT32_C(0xA723CADD), UINT32_C(0x997C7094) } }, + { { UINT32_C(0x6AFE80C6), UINT32_C(0x878BCE11), UINT32_C(0x007BBA38), + UINT32_C(0xA89ABC9D), UINT32_C(0xA7CC267F), UINT32_C(0xB0C1F87B), + UINT32_C(0x5104FF04), UINT32_C(0x86D33B9D), UINT32_C(0x2EF1BA42), + UINT32_C(0xB0504B1B), UINT32_C(0xB2827E88), UINT32_C(0x21693048) }, + { UINT32_C(0x79CFCD14), UINT32_C(0x11F1CCD5), UINT32_C(0x94AD227E), + UINT32_C(0x59C09FFA), UINT32_C(0x3EA91ACF), UINT32_C(0x95A4ADCB), + UINT32_C(0xB4370BAA), UINT32_C(0x1346238B), UINT32_C(0x3E1367B0), + UINT32_C(0xB099D202), UINT32_C(0x90F23CEA), UINT32_C(0xCF5BBDE6) } }, + { { UINT32_C(0xBCB3BE5E), UINT32_C(0x453299BB), UINT32_C(0x38E9FF97), + UINT32_C(0x123C588E), UINT32_C(0xF6A2E521), UINT32_C(0x8C115DD9), + UINT32_C(0xFF7D4B98), UINT32_C(0x6E333C11), UINT32_C(0xDA73E736), + UINT32_C(0x9DD061E5), UINT32_C(0x5CA53056), UINT32_C(0xC6AB7B3A) }, + { UINT32_C(0x5B30A76B), UINT32_C(0xF1EF3EE3), UINT32_C(0x961BA11F), + UINT32_C(0xADD6B44A), UINT32_C(0x2CA6E030), UINT32_C(0x7BB00B75), + UINT32_C(0x2FE270AD), UINT32_C(0x270272E8), UINT32_C(0x241A9239), + UINT32_C(0x23BC6F4F), UINT32_C(0x0BB94A94), UINT32_C(0x88581E13) } }, + { { UINT32_C(0x24EEF67F), UINT32_C(0xBD225A69), UINT32_C(0x0412CEB7), + UINT32_C(0x7CFD9614), UINT32_C(0x99AC298E), UINT32_C(0xF6DE1679), + UINT32_C(0xED6C3571), UINT32_C(0xB20FD895), UINT32_C(0x61836C56), + UINT32_C(0x03C73B78), UINT32_C(0xABA6CB34), UINT32_C(0xEE3C3A16) }, + { UINT32_C(0x4138408A), UINT32_C(0x9E8C5667), UINT32_C(0x2DD6EBDF), + UINT32_C(0xEC25FCB1), UINT32_C(0xDBBDF6E3), UINT32_C(0xC54C33FD), + UINT32_C(0x4A3C9DD4), UINT32_C(0x93E0913B), UINT32_C(0x35EDEED4), + UINT32_C(0x66D7D135), UINT32_C(0x453FB66E), UINT32_C(0xD29A36C4) } }, + { { UINT32_C(0x9F1943AF), UINT32_C(0x7F192F03), UINT32_C(0x4E0B5FB0), + UINT32_C(0x6488163F), UINT32_C(0x53599226), UINT32_C(0x66A45C69), + UINT32_C(0x9AD15A73), UINT32_C(0x924E2E43), UINT32_C(0x42A99D76), + UINT32_C(0x8B553DB7), UINT32_C(0x0451F521), UINT32_C(0x4BC6B53B) }, + { UINT32_C(0x101F8AD6), UINT32_C(0xC029B5EF), UINT32_C(0xC507EED9), + UINT32_C(0x6A4DA71C), UINT32_C(0x30BB22F3), UINT32_C(0x3ADFAEC0), + UINT32_C(0xB514F85B), UINT32_C(0x81BCAF7A), UINT32_C(0x5A7E60D3), + UINT32_C(0x2E1E6EFF), UINT32_C(0xAE39D42F), UINT32_C(0x5270ABC0) } }, + { { UINT32_C(0x3901F0F8), UINT32_C(0x86D56DEB), UINT32_C(0xEED5F650), + UINT32_C(0x1D0BC792), UINT32_C(0xCA1114A3), UINT32_C(0x1A2DDFD8), + UINT32_C(0xF1DD316D), UINT32_C(0x94ABF4B1), UINT32_C(0x3D9F18EF), + UINT32_C(0xF72179E4), UINT32_C(0x9AA2CABF), UINT32_C(0x52A0921E) }, + { UINT32_C(0xA7452883), UINT32_C(0xECDA9E27), UINT32_C(0xAFD771B4), + UINT32_C(0x7E90850A), UINT32_C(0x9CC0465C), UINT32_C(0xD40F87EA), + UINT32_C(0x865CDA36), UINT32_C(0x8CFCB60A), UINT32_C(0x7C650942), + UINT32_C(0x3DBEC2CC), UINT32_C(0xE718CA9D), UINT32_C(0x071A4EE7) } }, + { { UINT32_C(0x276AC5F3), UINT32_C(0x73C0E4FF), UINT32_C(0xBDB97EA1), + UINT32_C(0xE7BA5A6A), UINT32_C(0xC5808398), UINT32_C(0x638CA54E), + UINT32_C(0x413855E5), UINT32_C(0x8258DC82), UINT32_C(0x57F07614), + UINT32_C(0x35DDD2E9), UINT32_C(0x1DC13BF9), UINT32_C(0xF98DD692) }, + { UINT32_C(0xF16DCD84), UINT32_C(0x3A4C0088), UINT32_C(0x833D83F9), + UINT32_C(0xF192EADD), UINT32_C(0xA6D61D29), UINT32_C(0x3C26C931), + UINT32_C(0xDE0AD7A1), UINT32_C(0x589FDD52), UINT32_C(0x0442D37F), + UINT32_C(0x7CD83DD2), UINT32_C(0x403ECBFC), UINT32_C(0x1E47E777) } }, + }, + { + { { UINT32_C(0x70D4D7BC), UINT32_C(0x2AF8ED81), UINT32_C(0xB632435C), + UINT32_C(0xABC3E15F), UINT32_C(0x78219356), UINT32_C(0x4C0E726F), + UINT32_C(0xB87254C4), UINT32_C(0x8C1962A1), UINT32_C(0xC9E7691A), + UINT32_C(0x30796A71), UINT32_C(0xA75A12EE), UINT32_C(0xD453EF19) }, + { UINT32_C(0x13AE4964), UINT32_C(0x535F42C2), UINT32_C(0x0DA9586A), + UINT32_C(0x86831C3C), UINT32_C(0xE39A7A58), UINT32_C(0xB7F1EF35), + UINT32_C(0xD459B91A), UINT32_C(0xA2789AE2), UINT32_C(0x02FD429D), + UINT32_C(0xEADBCA7F), UINT32_C(0x65290F57), UINT32_C(0x94F215D4) } }, + { { UINT32_C(0x1CFB79AC), UINT32_C(0x37ED2BE5), UINT32_C(0xE7AF84C3), + UINT32_C(0x801946F3), UINT32_C(0xE77C2F00), UINT32_C(0xB061AD8A), + UINT32_C(0x44DE16A8), UINT32_C(0xE87E1A9A), UINT32_C(0x7EE490FF), + UINT32_C(0xDF4F57C8), UINT32_C(0x005993ED), UINT32_C(0x4E793B49) }, + { UINT32_C(0xBCCB593F), UINT32_C(0xE1036387), UINT32_C(0x95E09B80), + UINT32_C(0xF1749411), UINT32_C(0x5AB42F91), UINT32_C(0x59CB20D1), + UINT32_C(0xAC0FF033), UINT32_C(0xA738A18D), UINT32_C(0x2AC1E7F4), + UINT32_C(0xDA501A2E), UINT32_C(0x84D8A6E0), UINT32_C(0x1B67EDA0) } }, + { { UINT32_C(0x1080E90B), UINT32_C(0x1D27EFCE), UINT32_C(0x3FD01DC6), + UINT32_C(0xA2815246), UINT32_C(0xCAA26D18), UINT32_C(0x99A3FB83), + UINT32_C(0xB82BABBE), UINT32_C(0xD27E6133), UINT32_C(0xD783DD60), + UINT32_C(0x61030DFD), UINT32_C(0x73C78CB8), UINT32_C(0x295A2913) }, + { UINT32_C(0x68BE6A92), UINT32_C(0x8707A2CF), UINT32_C(0xEEB3474A), + UINT32_C(0xC9C2FB98), UINT32_C(0xA2B176B8), UINT32_C(0x7C3FD412), + UINT32_C(0xC7202101), UINT32_C(0xD5B52E2F), UINT32_C(0xF0A6D536), + UINT32_C(0x24A63030), UINT32_C(0x04648EC0), UINT32_C(0x05842DE3) } }, + { { UINT32_C(0x30577AC9), UINT32_C(0x67477CDC), UINT32_C(0x244F92A8), + UINT32_C(0x51DD9775), UINT32_C(0x917EEC66), UINT32_C(0x31FD60B9), + UINT32_C(0xD66C5C1D), UINT32_C(0xACD95BD4), UINT32_C(0xBF9508BA), + UINT32_C(0x2E0551F3), UINT32_C(0x688CB243), UINT32_C(0x121168E1) }, + { UINT32_C(0x4540D230), UINT32_C(0x8C039740), UINT32_C(0x009ECDF9), + UINT32_C(0xC4ED3CF6), UINT32_C(0x44DB62AF), UINT32_C(0x191825E1), + UINT32_C(0xC4A030DA), UINT32_C(0x3EE8ACAB), UINT32_C(0x94081504), + UINT32_C(0x8AB154A8), UINT32_C(0x486C9CD0), UINT32_C(0x1FE09E4B) } }, + { { UINT32_C(0xD113450B), UINT32_C(0x512F82F9), UINT32_C(0x2DBC9197), + UINT32_C(0x5878C901), UINT32_C(0xE13F355B), UINT32_C(0xDB87412B), + UINT32_C(0x935B8A5E), UINT32_C(0x0A0A4A9B), UINT32_C(0xF25A5351), + UINT32_C(0x818587BD), UINT32_C(0x31E3D9C7), UINT32_C(0xE8079310) }, + { UINT32_C(0x611BC1B1), UINT32_C(0x8B1D47C7), UINT32_C(0x72A823F2), + UINT32_C(0x51722B58), UINT32_C(0x53B36B3E), UINT32_C(0x6F97EE8A), + UINT32_C(0x946DD453), UINT32_C(0x6E085AAC), UINT32_C(0xE65E6533), + UINT32_C(0x2EC5057D), UINT32_C(0x4BB18801), UINT32_C(0xF82D9D71) } }, + { { UINT32_C(0x8BA5AA8E), UINT32_C(0xAD81FA93), UINT32_C(0x8F7AA69E), + UINT32_C(0x723E628E), UINT32_C(0xEF35937C), UINT32_C(0x0BA7C2DE), + UINT32_C(0x6DECFB40), UINT32_C(0x83A43EC5), UINT32_C(0xE60C4F2D), + UINT32_C(0xF520F849), UINT32_C(0x457E3B5E), UINT32_C(0x8260E8AE) }, + { UINT32_C(0xBF1D9ED7), UINT32_C(0x7CE874F0), UINT32_C(0x7F1A5466), + UINT32_C(0x5FDE3553), UINT32_C(0x0C162DBB), UINT32_C(0x5A63777C), + UINT32_C(0xDAD87289), UINT32_C(0x0FD04F8C), UINT32_C(0x640761D5), + UINT32_C(0xCA2D9E0E), UINT32_C(0x38501ADB), UINT32_C(0x4615CFF8) } }, + { { UINT32_C(0x110B4A25), UINT32_C(0x9422789B), UINT32_C(0x70AD8CC1), + UINT32_C(0x5C26779F), UINT32_C(0xEC4F1E14), UINT32_C(0x4EE6A748), + UINT32_C(0x5C7AB5E0), UINT32_C(0xFB584A0D), UINT32_C(0xFB21EE66), + UINT32_C(0xED1DCB0B), UINT32_C(0x11C6863C), UINT32_C(0xDBED1F00) }, + { UINT32_C(0xB1B1D187), UINT32_C(0xD2969269), UINT32_C(0xAFE964E6), + UINT32_C(0xF7D0C3F2), UINT32_C(0x12BB865E), UINT32_C(0xE05EE93F), + UINT32_C(0xED79118E), UINT32_C(0x1AFB7BEE), UINT32_C(0x0F0FE453), + UINT32_C(0x220AF138), UINT32_C(0x52782AB9), UINT32_C(0x1463AA1A) } }, + { { UINT32_C(0xD7DBE5F9), UINT32_C(0x7C139D56), UINT32_C(0x0B83685B), + UINT32_C(0xFC16E611), UINT32_C(0x9018463C), UINT32_C(0xFA723C02), + UINT32_C(0x840BF5D7), UINT32_C(0xC472458C), UINT32_C(0x0AF07591), + UINT32_C(0x4D809359), UINT32_C(0x3308DFD9), UINT32_C(0x418D8830) }, + { UINT32_C(0x0C365AE3), UINT32_C(0x9B381E04), UINT32_C(0xF8190FD1), + UINT32_C(0x3780BF33), UINT32_C(0xDD03E854), UINT32_C(0x45397418), + UINT32_C(0x4E51E491), UINT32_C(0xA95D030F), UINT32_C(0xE3286CEA), + UINT32_C(0x87C8C686), UINT32_C(0x900B5F83), UINT32_C(0x01C773BF) } }, + { { UINT32_C(0x78673B02), UINT32_C(0xDABE3475), UINT32_C(0xF6E7395E), + UINT32_C(0x4F0F25CE), UINT32_C(0xD181AD45), UINT32_C(0x3117ABB9), + UINT32_C(0xAA13DE0B), UINT32_C(0x4B559F88), UINT32_C(0xEA7C9745), + UINT32_C(0xFD8EFE78), UINT32_C(0x5DD21682), UINT32_C(0x08060047) }, + { UINT32_C(0xD4C86FFC), UINT32_C(0xC0F5DE4B), UINT32_C(0xF21AB6A2), + UINT32_C(0x4BB14B1E), UINT32_C(0xF50C1D12), UINT32_C(0xACB53A6C), + UINT32_C(0x5CC9162E), UINT32_C(0x46AAC450), UINT32_C(0x2DE240B6), + UINT32_C(0x049C51E0), UINT32_C(0xE383C3B0), UINT32_C(0xBB2DC016) } }, + { { UINT32_C(0x8E438C92), UINT32_C(0xA3C56AD2), UINT32_C(0xB2CEAF1A), + UINT32_C(0x7C43F98F), UINT32_C(0xE2150778), UINT32_C(0x397C44F7), + UINT32_C(0x71A24131), UINT32_C(0x48D17AB7), UINT32_C(0x1E2ACDA9), + UINT32_C(0xCC513863), UINT32_C(0xF0C9BAC9), UINT32_C(0x2C76A55E) }, + { UINT32_C(0x7EA4BB7B), UINT32_C(0x4D74CDCE), UINT32_C(0xB1B3C2BA), + UINT32_C(0x834BD5BF), UINT32_C(0xCCC310A4), UINT32_C(0x46E2911E), + UINT32_C(0x0FC1BF13), UINT32_C(0xD3DE84AA), UINT32_C(0x80A03AD3), + UINT32_C(0x27F2892F), UINT32_C(0x3BD2F08B), UINT32_C(0x85B47620) } }, + { { UINT32_C(0x567AF533), UINT32_C(0xAB1CB818), UINT32_C(0xBAC2705A), + UINT32_C(0x273B4537), UINT32_C(0x22C84AB6), UINT32_C(0x133066C4), + UINT32_C(0x4830BFC1), UINT32_C(0xC3590DE6), UINT32_C(0x5E4742D0), + UINT32_C(0xEA297869), UINT32_C(0x4F3164C0), UINT32_C(0xF6D8C694) }, + { UINT32_C(0xC1249588), UINT32_C(0x09E85F3D), UINT32_C(0x4EC64DF7), + UINT32_C(0x6C2BB05D), UINT32_C(0x8B78000F), UINT32_C(0xD267115E), + UINT32_C(0xC7E4A316), UINT32_C(0x07C5D7AE), UINT32_C(0x4619E5BD), + UINT32_C(0xCB1187BA), UINT32_C(0xA43F7EEE), UINT32_C(0x57B1D4EF) } }, + { { UINT32_C(0xC8176A96), UINT32_C(0x3618891F), UINT32_C(0xE5808B97), + UINT32_C(0x62C4B084), UINT32_C(0x4DD95D6E), UINT32_C(0xDE558546), + UINT32_C(0x730B2EA4), UINT32_C(0x27A8133E), UINT32_C(0x6AF318A0), + UINT32_C(0xE07CEEC3), UINT32_C(0xCE24FD2C), UINT32_C(0x0ACC1286) }, + { UINT32_C(0xDD4D307C), UINT32_C(0x8A48FE4A), UINT32_C(0x18CDE0DA), + UINT32_C(0x71A9BA9C), UINT32_C(0xD5D79747), UINT32_C(0x655E2B66), + UINT32_C(0xA79AEDC7), UINT32_C(0x409FE856), UINT32_C(0xD287E5CF), + UINT32_C(0xC5A9F244), UINT32_C(0x4E82EC39), UINT32_C(0xCCE10384) } }, + { { UINT32_C(0xF25D364C), UINT32_C(0x00675BA7), UINT32_C(0x68D36BDF), + UINT32_C(0x7A7F1629), UINT32_C(0xA9E23F29), UINT32_C(0x35EC468A), + UINT32_C(0x2D926E6C), UINT32_C(0xF797AC50), UINT32_C(0x4B4F4376), + UINT32_C(0x639BA453), UINT32_C(0x51FF9519), UINT32_C(0xD71B430F) }, + { UINT32_C(0x2CF5635C), UINT32_C(0xB8C439EC), UINT32_C(0x81980393), + UINT32_C(0x0CE4C8D1), UINT32_C(0x64123B15), UINT32_C(0x4C5362A9), + UINT32_C(0xFFDCF096), UINT32_C(0x6E0421E0), UINT32_C(0x10D1F914), + UINT32_C(0x624A855F), UINT32_C(0x614DCD29), UINT32_C(0x7D8F3AB7) } }, + { { UINT32_C(0xB3493CE0), UINT32_C(0xD9219ADA), UINT32_C(0x52F09AE5), + UINT32_C(0x971B243A), UINT32_C(0xE24E3674), UINT32_C(0xC16C9BF8), + UINT32_C(0xCE68C7CD), UINT32_C(0x026D408D), UINT32_C(0x358209E3), + UINT32_C(0xF9B33DD9), UINT32_C(0xF3B2A206), UINT32_C(0x02D0595D) }, + { UINT32_C(0x60D15640), UINT32_C(0xBF994271), UINT32_C(0x15B5466A), + UINT32_C(0x6DA7A04E), UINT32_C(0x1CADB50D), UINT32_C(0x03AA4ED8), + UINT32_C(0x129A4253), UINT32_C(0x1548F029), UINT32_C(0xB842865A), + UINT32_C(0x41741F7E), UINT32_C(0xA3F88C98), UINT32_C(0x859FE0A4) } }, + { { UINT32_C(0x05FD7553), UINT32_C(0x80DE085A), UINT32_C(0xB897566B), + UINT32_C(0x4A4AB91E), UINT32_C(0x2F1C173F), UINT32_C(0x33BCD475), + UINT32_C(0xC100C013), UINT32_C(0x4E238896), UINT32_C(0xD614B34B), + UINT32_C(0x1C88500D), UINT32_C(0xC3BA9E23), UINT32_C(0x0401C5F6) }, + { UINT32_C(0xD0AF0DE5), UINT32_C(0x8E8003C4), UINT32_C(0x9D0DCBB9), + UINT32_C(0x19B1DFB5), UINT32_C(0xEBEF7AB6), UINT32_C(0x4A3640A9), + UINT32_C(0x959B15F6), UINT32_C(0xEDAFD65B), UINT32_C(0x7FB95821), + UINT32_C(0x8092EF7F), UINT32_C(0xCE2E45D1), UINT32_C(0xAB8DD52E) } }, + { { UINT32_C(0xB9CFE6BF), UINT32_C(0xD1F2D6B8), UINT32_C(0x00073F6F), + UINT32_C(0x6358810B), UINT32_C(0xD712106E), UINT32_C(0x5FCE5993), + UINT32_C(0x1C024C91), UINT32_C(0x5EE6B271), UINT32_C(0x453DB663), + UINT32_C(0xD0248FF5), UINT32_C(0xADB835E8), UINT32_C(0xD6D81CB2) }, + { UINT32_C(0xFDFCB4C7), UINT32_C(0x8696CFEC), UINT32_C(0x53BC9045), + UINT32_C(0x696B7FCB), UINT32_C(0xDDA56981), UINT32_C(0xAB4D3807), + UINT32_C(0x1E4B943B), UINT32_C(0x2F998052), UINT32_C(0x166B7F18), + UINT32_C(0x8AA76ADB), UINT32_C(0x52A2D7ED), UINT32_C(0x63934301) } }, + }, + { + { { UINT32_C(0xA368EFF6), UINT32_C(0xBBCCCE39), UINT32_C(0x8CEB5C43), + UINT32_C(0xD8CAABDF), UINT32_C(0xD2252FDA), UINT32_C(0x9EAE35A5), + UINT32_C(0x54E7DD49), UINT32_C(0xA8F4F209), UINT32_C(0x295100FD), + UINT32_C(0xA56D72A6), UINT32_C(0x56767727), UINT32_C(0x20FC1FE8) }, + { UINT32_C(0x0BBAA5AB), UINT32_C(0xBF60B248), UINT32_C(0x313911F2), + UINT32_C(0xA4F3CE5A), UINT32_C(0xB93DAB9C), UINT32_C(0xC2A67AD4), + UINT32_C(0x22D71F39), UINT32_C(0x18CD0ED0), UINT32_C(0x5F304DB2), + UINT32_C(0x04380C42), UINT32_C(0x6729C821), UINT32_C(0x26420CBB) } }, + { { UINT32_C(0xBDFBCAE8), UINT32_C(0x26BD07D6), UINT32_C(0xDF01A80A), + UINT32_C(0x10B5173F), UINT32_C(0x6798B96C), UINT32_C(0xD831C546), + UINT32_C(0x1D3F3859), UINT32_C(0x1D6B4108), UINT32_C(0x991B9EC7), + UINT32_C(0x501D38EC), UINT32_C(0xD78431A9), UINT32_C(0x26319283) }, + { UINT32_C(0x118B343C), UINT32_C(0x8B85BAF7), UINT32_C(0x58DEF7D0), + UINT32_C(0x4696CDDD), UINT32_C(0x7ACDCF58), UINT32_C(0xEFC7C110), + UINT32_C(0x848D5842), UINT32_C(0xD9AF415C), UINT32_C(0x0AC7FDAC), + UINT32_C(0x6B5A06BC), UINT32_C(0xA344319B), UINT32_C(0x7D623E0D) } }, + { { UINT32_C(0x0C9D3547), UINT32_C(0x4C0D7806), UINT32_C(0xCF2AED47), + UINT32_C(0x993F048D), UINT32_C(0xE4B57E22), UINT32_C(0x5217C453), + UINT32_C(0xF4172B28), UINT32_C(0xB4669E35), UINT32_C(0x49F999F8), + UINT32_C(0x509A3CD0), UINT32_C(0x87C69D41), UINT32_C(0xD19F8632) }, + { UINT32_C(0x4C8FDED0), UINT32_C(0xE14D01E8), UINT32_C(0xEAFD9E1C), + UINT32_C(0x342880FD), UINT32_C(0x70DC2BF0), UINT32_C(0x0E17BFF2), + UINT32_C(0xC0186400), UINT32_C(0x46560B7B), UINT32_C(0x49A4DD34), + UINT32_C(0xE28C7B9C), UINT32_C(0x0F325D06), UINT32_C(0x18211916) } }, + { { UINT32_C(0xD7E02E18), UINT32_C(0x46D70888), UINT32_C(0xD9F11FD9), + UINT32_C(0x7C806954), UINT32_C(0x4FBEA271), UINT32_C(0xE4948FCA), + UINT32_C(0xBD80A9DF), UINT32_C(0x7D6C7765), UINT32_C(0xF3871C71), + UINT32_C(0x1B470EA6), UINT32_C(0x8330A570), UINT32_C(0xD62DE244) }, + { UINT32_C(0xC659C3A7), UINT32_C(0xDAECDDC1), UINT32_C(0x077F7AFC), + UINT32_C(0x8621E513), UINT32_C(0xCAEEEF13), UINT32_C(0x56C7CD84), + UINT32_C(0xC685A356), UINT32_C(0xC60C910F), UINT32_C(0x9DD93DDC), + UINT32_C(0xE68BC5C5), UINT32_C(0xFEB64895), UINT32_C(0xD904E89F) } }, + { { UINT32_C(0x8BA7917A), UINT32_C(0x75D874FB), UINT32_C(0xFD043BD4), + UINT32_C(0x18FA7F53), UINT32_C(0x1FC3979E), UINT32_C(0x212A0AD7), + UINT32_C(0x5D6EAC0E), UINT32_C(0x5703A7D9), UINT32_C(0x017DEAD5), + UINT32_C(0x222F7188), UINT32_C(0x0F6C1817), UINT32_C(0x1EC687B7) }, + { UINT32_C(0x238BACB6), UINT32_C(0x23412FC3), UINT32_C(0x54CED154), + UINT32_C(0xB85D70E9), UINT32_C(0xBDA674D0), UINT32_C(0xD4E06722), + UINT32_C(0x36F5A0C2), UINT32_C(0x3EA5F178), UINT32_C(0xF5C6D2CA), + UINT32_C(0x7E7D79CF), UINT32_C(0x3DBB3C73), UINT32_C(0x1FFF9464) } }, + { { UINT32_C(0xF163E4A8), UINT32_C(0x916E19D0), UINT32_C(0x1489DF17), + UINT32_C(0x1E6740E7), UINT32_C(0x339F3A47), UINT32_C(0x1EAF9723), + UINT32_C(0x124B8DAD), UINT32_C(0x22F0ED1A), UINT32_C(0x49C3DD04), + UINT32_C(0x39C9166C), UINT32_C(0xCE1E9ACC), UINT32_C(0x628E7FD4) }, + { UINT32_C(0x40031676), UINT32_C(0x124DDF27), UINT32_C(0x1EDDB9BE), + UINT32_C(0x00256939), UINT32_C(0xD360B0DA), UINT32_C(0xD39E25E7), + UINT32_C(0x4AA6C4C9), UINT32_C(0x6E3015A8), UINT32_C(0x623EDA09), + UINT32_C(0xC6A2F643), UINT32_C(0x50AA99FB), UINT32_C(0xBEFF2D12) } }, + { { UINT32_C(0x93EE8089), UINT32_C(0x1FEEF7CE), UINT32_C(0x252DD7BD), + UINT32_C(0xC6B180BC), UINT32_C(0x1788F051), UINT32_C(0xA16FB20B), + UINT32_C(0xE046ED39), UINT32_C(0xD86FD392), UINT32_C(0x9378CE1D), + UINT32_C(0xDA0A3611), UINT32_C(0xA5F7A61D), UINT32_C(0x121EF3E7) }, + { UINT32_C(0x92D13CAE), UINT32_C(0x94D22061), UINT32_C(0x77C72E08), + UINT32_C(0x5076046A), UINT32_C(0x7D2308B9), UINT32_C(0xF18BC233), + UINT32_C(0x17F977B1), UINT32_C(0x004DB3C5), UINT32_C(0x0471C11D), + UINT32_C(0xD05AE399), UINT32_C(0x85CD1726), UINT32_C(0x86A2A557) } }, + { { UINT32_C(0x72107804), UINT32_C(0xB8D9B286), UINT32_C(0x3303B79B), + UINT32_C(0xB5A7C413), UINT32_C(0x5FA37DED), UINT32_C(0x927EEF78), + UINT32_C(0xAD67DABA), UINT32_C(0xA1C5CF1E), UINT32_C(0x7360E7C7), + UINT32_C(0xAA5E3FB2), UINT32_C(0x0A0C0993), UINT32_C(0x8354E61A) }, + { UINT32_C(0x7F5458CC), UINT32_C(0x2EC73AF9), UINT32_C(0x48474325), + UINT32_C(0xDE4CB488), UINT32_C(0x7209BC69), UINT32_C(0x2DD134C7), + UINT32_C(0x451A2ABE), UINT32_C(0xB70C5567), UINT32_C(0x8E293018), + UINT32_C(0x2CD1B200), UINT32_C(0xD33C0D72), UINT32_C(0x15F8DA7A) } }, + { { UINT32_C(0xA8790657), UINT32_C(0x5DC386D0), UINT32_C(0xBC4D88BB), + UINT32_C(0xA4FDF676), UINT32_C(0x48BC6C49), UINT32_C(0x1B21F38F), + UINT32_C(0x543A7003), UINT32_C(0xCDCC7FAA), UINT32_C(0x8C9CF72C), + UINT32_C(0xEA97E7AA), UINT32_C(0x50D938A8), UINT32_C(0xA6B883F4) }, + { UINT32_C(0xA3A10F27), UINT32_C(0x51936F3A), UINT32_C(0xDECC76BF), + UINT32_C(0x0170785F), UINT32_C(0x908C578A), UINT32_C(0x7539ECE1), + UINT32_C(0x0F3E8C25), UINT32_C(0x5D9C8A8E), UINT32_C(0x9E4717A7), + UINT32_C(0x8681B43B), UINT32_C(0xA9D83E39), UINT32_C(0x94F42507) } }, + { { UINT32_C(0xA55ADDE7), UINT32_C(0xBBE11CA8), UINT32_C(0x3BC0896B), + UINT32_C(0x39E6F5CF), UINT32_C(0x1D2D8D94), UINT32_C(0x1447314E), + UINT32_C(0x5B012F8A), UINT32_C(0x45B48125), UINT32_C(0x08AD5283), + UINT32_C(0x41AD23FA), UINT32_C(0x41D13774), UINT32_C(0x837243E2) }, + { UINT32_C(0xBADCAA46), UINT32_C(0x1FC0BD9D), UINT32_C(0x26E84CAE), + UINT32_C(0x8DF164ED), UINT32_C(0x41017176), UINT32_C(0x8FF70EC0), + UINT32_C(0x5C848BA7), UINT32_C(0x23AD4BCE), UINT32_C(0x97A19CBB), + UINT32_C(0x89246FDE), UINT32_C(0x78397991), UINT32_C(0xA5EF987B) } }, + { { UINT32_C(0x4757964D), UINT32_C(0x111AF1B7), UINT32_C(0xDDBBF258), + UINT32_C(0x1D25D351), UINT32_C(0x7D2B06D6), UINT32_C(0x4161E776), + UINT32_C(0x1CAC0C5B), UINT32_C(0x6EFD2691), UINT32_C(0x211BFAEB), + UINT32_C(0x633B95DB), UINT32_C(0xE2BDF701), UINT32_C(0x9BEDFA5A) }, + { UINT32_C(0x73E099C8), UINT32_C(0xADAC2B0B), UINT32_C(0xBFB16BFF), + UINT32_C(0x436F0023), UINT32_C(0x30F55854), UINT32_C(0xB91B1002), + UINT32_C(0xF4C6C8B7), UINT32_C(0xAF6A2097), UINT32_C(0x3AD7B3D9), + UINT32_C(0x3FF65CED), UINT32_C(0x330E56DF), UINT32_C(0x6FA2626F) } }, + { { UINT32_C(0xFFCCFD07), UINT32_C(0x3D28BF2D), UINT32_C(0xD989603B), + UINT32_C(0x0514F6FF), UINT32_C(0x5514787A), UINT32_C(0xB9519629), + UINT32_C(0xC3DB4E9C), UINT32_C(0xA1848121), UINT32_C(0x2A3D4595), + UINT32_C(0x47FE2E39), UINT32_C(0x11B73ED4), UINT32_C(0x506F5D82) }, + { UINT32_C(0xA600D8BB), UINT32_C(0xA2257AE7), UINT32_C(0x0F9F122C), + UINT32_C(0xD659DBD1), UINT32_C(0x64DF160F), UINT32_C(0xDB0FDC67), + UINT32_C(0x7CB19690), UINT32_C(0xFF379339), UINT32_C(0x98E72EC1), + UINT32_C(0xDF4366B8), UINT32_C(0xDF437EB8), UINT32_C(0x97E72BEC) } }, + { { UINT32_C(0x1C81E5D9), UINT32_C(0x81DCEA27), UINT32_C(0x6717FC49), + UINT32_C(0x7E1B6CDA), UINT32_C(0x11EAE80D), UINT32_C(0xAA36B3B5), + UINT32_C(0x3CD7CBB3), UINT32_C(0x1306687C), UINT32_C(0xC4E89064), + UINT32_C(0xED670235), UINT32_C(0x58A94760), UINT32_C(0x9D3B0009) }, + { UINT32_C(0xE6A6333C), UINT32_C(0x5A64E158), UINT32_C(0x49453203), + UINT32_C(0x1A8B4A36), UINT32_C(0x1F77CC21), UINT32_C(0xF1CAD724), + UINT32_C(0x70518EF7), UINT32_C(0x693EBB4B), UINT32_C(0x0F39C91A), + UINT32_C(0xFB47BD81), UINT32_C(0xFA4BC64B), UINT32_C(0xCFE63DA2) } }, + { { UINT32_C(0xEAA66108), UINT32_C(0x82C1C684), UINT32_C(0x4CFE79FC), + UINT32_C(0xE3226218), UINT32_C(0x849C720E), UINT32_C(0x3F28B72B), + UINT32_C(0x8FEE1CA8), UINT32_C(0x137FB355), UINT32_C(0xE4F90C4E), + UINT32_C(0x4D18A9CD), UINT32_C(0xCC3E46FA), UINT32_C(0xC0344227) }, + { UINT32_C(0x79CDA392), UINT32_C(0x4FD5C08E), UINT32_C(0x8ADC87B5), + UINT32_C(0x65DB20DB), UINT32_C(0x916C1B84), UINT32_C(0x86F95D5B), + UINT32_C(0x17BB2B7C), UINT32_C(0x7EDA3871), UINT32_C(0x669A533B), + UINT32_C(0x18CCF7E7), UINT32_C(0xECAD0E06), UINT32_C(0x5E92421C) } }, + { { UINT32_C(0x4174B08B), UINT32_C(0x26063E12), UINT32_C(0x70DE8E4D), + UINT32_C(0xE621D9BE), UINT32_C(0x5ECDF350), UINT32_C(0xAEA0FD0F), + UINT32_C(0x9C20E5C9), UINT32_C(0x0D9F69E4), UINT32_C(0x0BBE2918), + UINT32_C(0xD3DADEB9), UINT32_C(0x58AA2F71), UINT32_C(0xD7B9B5DB) }, + { UINT32_C(0x3364CAF8), UINT32_C(0x7A971DD7), UINT32_C(0xC25D4BE4), + UINT32_C(0x702616A3), UINT32_C(0xA9E30071), UINT32_C(0xA30F0FA1), + UINT32_C(0x5573BC69), UINT32_C(0x98AB2438), UINT32_C(0x6FEC2E22), + UINT32_C(0xCBC63CDF), UINT32_C(0xCC901B9B), UINT32_C(0x965F90ED) } }, + { { UINT32_C(0x71E15BB3), UINT32_C(0xD53B592D), UINT32_C(0x8820E0D0), + UINT32_C(0x1F03C0E9), UINT32_C(0x3CCCB726), UINT32_C(0xCE93947D), + UINT32_C(0x1D547590), UINT32_C(0x2790FEE0), UINT32_C(0xC59CDD7A), + UINT32_C(0x4401D847), UINT32_C(0xA926DD9D), UINT32_C(0x72D69120) }, + { UINT32_C(0x4229F289), UINT32_C(0x38B8F21D), UINT32_C(0x7FE978AF), + UINT32_C(0x9F412E40), UINT32_C(0xCDB59AF1), UINT32_C(0xAE07901B), + UINT32_C(0xD1D4715E), UINT32_C(0x1E6BE5EB), UINT32_C(0x18C96BEF), + UINT32_C(0x3715BD8B), UINT32_C(0xE11B3798), UINT32_C(0x4B71F6E6) } }, + }, + { + { { UINT32_C(0xF0CE2DF4), UINT32_C(0x11A8FDE5), UINT32_C(0xFA8D26DF), + UINT32_C(0xBC70CA3E), UINT32_C(0xC74DFE82), UINT32_C(0x6818C275), + UINT32_C(0x38373A50), UINT32_C(0x2B0294AC), UINT32_C(0xE8E5F88F), + UINT32_C(0x584C4061), UINT32_C(0x7342383A), UINT32_C(0x1C05C1CA) }, + { UINT32_C(0x911430EC), UINT32_C(0x263895B3), UINT32_C(0xA5171453), + UINT32_C(0xEF9B0032), UINT32_C(0x84DA7F0C), UINT32_C(0x144359DA), + UINT32_C(0x924A09F2), UINT32_C(0x76E3095A), UINT32_C(0xD69AD835), + UINT32_C(0x612986E3), UINT32_C(0x392122AF), UINT32_C(0x70E03ADA) } }, + { { UINT32_C(0x67AAD17B), UINT32_C(0xFEB707EE), UINT32_C(0x83042995), + UINT32_C(0xBB21B287), UINT32_C(0x9A0D32BA), UINT32_C(0x26DE1645), + UINT32_C(0x1FFB9266), UINT32_C(0x9A2FF38A), UINT32_C(0x8F578B4A), + UINT32_C(0x4E5AD96D), UINT32_C(0x883E7443), UINT32_C(0x26CC0655) }, + { UINT32_C(0x2EE9367A), UINT32_C(0x1D8EECAB), UINT32_C(0x881DE2F8), + UINT32_C(0x42B84337), UINT32_C(0xD758AE41), UINT32_C(0xE49B2FAE), + UINT32_C(0x4A85D867), UINT32_C(0x6A9A2290), UINT32_C(0xE68CBA86), + UINT32_C(0x2FB89DCE), UINT32_C(0x7F09A982), UINT32_C(0xBC252635) } }, + { { UINT32_C(0x8C61AAAC), UINT32_C(0xADC79436), UINT32_C(0x5E926563), + UINT32_C(0x24C7FD13), UINT32_C(0x0406C129), UINT32_C(0xEF9FAAA4), + UINT32_C(0x8B658D3C), UINT32_C(0xF4E6388C), UINT32_C(0x1E435BAF), + UINT32_C(0x7262BEB4), UINT32_C(0xFDAEAC99), UINT32_C(0x3BF622CC) }, + { UINT32_C(0x4E1AEDDC), UINT32_C(0xD359F7D8), UINT32_C(0xD78C17B7), + UINT32_C(0x05DC4F8C), UINT32_C(0x29498BA5), UINT32_C(0xB18CF032), + UINT32_C(0x85BF35AD), UINT32_C(0xC67388CA), UINT32_C(0x62AA4BC8), + UINT32_C(0x8A7A6AA2), UINT32_C(0x72F4627A), UINT32_C(0x0B8F458E) } }, + { { UINT32_C(0xC68E4488), UINT32_C(0x3FB812EE), UINT32_C(0x60EF7281), + UINT32_C(0x53C5EAA4), UINT32_C(0x8FBEFBE4), UINT32_C(0xE5724183), + UINT32_C(0xA4B24A05), UINT32_C(0x2B7D49F4), UINT32_C(0x710C0A43), + UINT32_C(0x23B138D0), UINT32_C(0xA85EC1DB), UINT32_C(0x16A5B4C1) }, + { UINT32_C(0x305FEB02), UINT32_C(0x7CC1F3D7), UINT32_C(0x5B6C1B54), + UINT32_C(0x52F7947D), UINT32_C(0x8F56981C), UINT32_C(0x1BDA2312), + UINT32_C(0xB4080A01), UINT32_C(0x68663EAE), UINT32_C(0x9F999B7F), + UINT32_C(0x8DD7BA7E), UINT32_C(0xB686580C), UINT32_C(0xD8768D19) } }, + { { UINT32_C(0x7AFDDA94), UINT32_C(0xBCD0E0AD), UINT32_C(0x34A30687), + UINT32_C(0x95A0DBBE), UINT32_C(0x8C5E2665), UINT32_C(0xBBE3C3DF), + UINT32_C(0xEBF2BC16), UINT32_C(0x742BECD8), UINT32_C(0x3FA163A6), + UINT32_C(0x300CEB48), UINT32_C(0x4663354B), UINT32_C(0x0C5D02EE) }, + { UINT32_C(0xB5E606A4), UINT32_C(0xE4FB9AD6), UINT32_C(0xCF49FF95), + UINT32_C(0x93F507B8), UINT32_C(0x585C193B), UINT32_C(0x9406A90C), + UINT32_C(0x4ECF9517), UINT32_C(0xAD1440C1), UINT32_C(0x9CEA53F1), + UINT32_C(0x184CB475), UINT32_C(0x8EF11302), UINT32_C(0x6855C474) } }, + { { UINT32_C(0xEDCAFA52), UINT32_C(0x00ECB523), UINT32_C(0x086F69D3), + UINT32_C(0x0DA0AE0E), UINT32_C(0xC242F347), UINT32_C(0xC384DE15), + UINT32_C(0x848C12B7), UINT32_C(0xFB050E6E), UINT32_C(0x64E015CE), + UINT32_C(0x22F67654), UINT32_C(0x7CA122F2), UINT32_C(0xCBDC2A48) }, + { UINT32_C(0x445FB02C), UINT32_C(0xA940D973), UINT32_C(0x3767D89D), + UINT32_C(0x00F31E78), UINT32_C(0x613DABDD), UINT32_C(0x2B65A237), + UINT32_C(0xC875AE09), UINT32_C(0x2BE0AB05), UINT32_C(0xBA204F8E), + UINT32_C(0xB22E54FD), UINT32_C(0x0F7687B9), UINT32_C(0x65E2029D) } }, + { { UINT32_C(0x1855A71C), UINT32_C(0xFFD82538), UINT32_C(0x438BD8D8), + UINT32_C(0x26A330B3), UINT32_C(0xF9D8C5F9), UINT32_C(0x89628311), + UINT32_C(0x953738A0), UINT32_C(0x8D5FB9CF), UINT32_C(0xEDFCD4E5), + UINT32_C(0xCB7159C9), UINT32_C(0x2064C7C2), UINT32_C(0xD64E5230) }, + { UINT32_C(0x689F3CFE), UINT32_C(0xF858ED80), UINT32_C(0x56128B67), + UINT32_C(0x4830E309), UINT32_C(0xE0E90688), UINT32_C(0x2E1692DA), + UINT32_C(0xCA9CC232), UINT32_C(0xAB818913), UINT32_C(0xA5D229A6), + UINT32_C(0xE2E30C23), UINT32_C(0x0E740E23), UINT32_C(0xA544E8B1) } }, + { { UINT32_C(0xDC61E6CC), UINT32_C(0x1C15E569), UINT32_C(0x58FC7800), + UINT32_C(0x8FD72967), UINT32_C(0x37A9DFC5), UINT32_C(0xE61E7DB7), + UINT32_C(0x5AFD7822), UINT32_C(0x3F34A9C6), UINT32_C(0x19E80773), + UINT32_C(0x0A112742), UINT32_C(0x4760FC58), UINT32_C(0xA353460C) }, + { UINT32_C(0xB3124C71), UINT32_C(0x2FB7DEEB), UINT32_C(0x2D4009CC), + UINT32_C(0x48463627), UINT32_C(0xC3A10370), UINT32_C(0x399D1933), + UINT32_C(0x54388DBD), UINT32_C(0x7EB19450), UINT32_C(0x7C2A006A), + UINT32_C(0x8ECCE639), UINT32_C(0x55C932A0), UINT32_C(0x3D565DAF) } }, + { { UINT32_C(0xD9ADAE53), UINT32_C(0xCEF57A9F), UINT32_C(0xF83FD8CD), + UINT32_C(0xE2EB27D7), UINT32_C(0x9BBD2DDE), UINT32_C(0x4AC8F719), + UINT32_C(0xE91ABFB7), UINT32_C(0x604283AA), UINT32_C(0x34799F87), + UINT32_C(0xB6A4E115), UINT32_C(0xE4C2A8F3), UINT32_C(0x2B253224) }, + { UINT32_C(0xC8782294), UINT32_C(0xC34F8B92), UINT32_C(0xFCC2CB6B), + UINT32_C(0xC74D697D), UINT32_C(0xC2C84C46), UINT32_C(0xD990411B), + UINT32_C(0x31EA4955), UINT32_C(0x2807B5C6), UINT32_C(0xB9EB27F5), + UINT32_C(0x14AE2B93), UINT32_C(0x6163EDFA), UINT32_C(0xF0AE96A7) } }, + { { UINT32_C(0x42DB7180), UINT32_C(0xA7BDCBB4), UINT32_C(0xEDCA752F), + UINT32_C(0xC9FAA41F), UINT32_C(0xE820F401), UINT32_C(0x147F91B4), + UINT32_C(0xF5F2645F), UINT32_C(0x1E6CEF86), UINT32_C(0x31FE711D), + UINT32_C(0xB4AB4D7F), UINT32_C(0x743EF882), UINT32_C(0xCE68FB3C) }, + { UINT32_C(0x3EF2FCFF), UINT32_C(0xB9D7D682), UINT32_C(0x020DCAFD), + UINT32_C(0xF6893811), UINT32_C(0xBF81E760), UINT32_C(0x30D9A50C), + UINT32_C(0xB9B87228), UINT32_C(0x7F247D06), UINT32_C(0x5F40CFC0), + UINT32_C(0x143D4FEC), UINT32_C(0x329B2A88), UINT32_C(0x21D78D73) } }, + { { UINT32_C(0xED3F2055), UINT32_C(0x06B3FF8A), UINT32_C(0x522BE214), + UINT32_C(0x50482C77), UINT32_C(0xDDF54620), UINT32_C(0x8DF69CD8), + UINT32_C(0xF78A1165), UINT32_C(0x6D1DB204), UINT32_C(0x9AFE6BF2), + UINT32_C(0x459AE4A2), UINT32_C(0x24AC871E), UINT32_C(0xC23A9FFD) }, + { UINT32_C(0x89E85D81), UINT32_C(0xB7FD22E3), UINT32_C(0x122E9978), + UINT32_C(0x297F1F6B), UINT32_C(0x144BE1CE), UINT32_C(0xAB283D66), + UINT32_C(0xC00C614E), UINT32_C(0xC1F90AC2), UINT32_C(0x3224CD09), + UINT32_C(0x5465576E), UINT32_C(0x441B6059), UINT32_C(0x8E8D910D) } }, + { { UINT32_C(0xAAA228BC), UINT32_C(0xF73A060A), UINT32_C(0x56EFF87D), + UINT32_C(0xCF1B0783), UINT32_C(0xA54C9133), UINT32_C(0x11EF17C0), + UINT32_C(0x76A4DAA5), UINT32_C(0x9E476B15), UINT32_C(0x8018FB92), + UINT32_C(0x5624FEAC), UINT32_C(0xCFEEC1B9), UINT32_C(0x9826A0FC) }, + { UINT32_C(0x2DFE2046), UINT32_C(0xB732F7FE), UINT32_C(0x3B40DA6A), + UINT32_C(0x9260BD9F), UINT32_C(0x4F231773), UINT32_C(0xCC9F908F), + UINT32_C(0xDAFC0D55), UINT32_C(0x4827FEB9), UINT32_C(0x538ACE95), + UINT32_C(0x07D32E85), UINT32_C(0xB8EDAF37), UINT32_C(0xAD9F897C) } }, + { { UINT32_C(0xE3415498), UINT32_C(0x2F75B82F), UINT32_C(0xF1015F30), + UINT32_C(0xF99CAC5F), UINT32_C(0x7D7F25DE), UINT32_C(0x76640824), + UINT32_C(0xEE74C047), UINT32_C(0x714BC9CD), UINT32_C(0x07448879), + UINT32_C(0x70F847BF), UINT32_C(0x072165C0), UINT32_C(0xA14481DE) }, + { UINT32_C(0xDB1140A8), UINT32_C(0x9BFA59E3), UINT32_C(0xFCD13502), + UINT32_C(0x7B9C7FF0), UINT32_C(0x68459ABF), UINT32_C(0xF4D7538E), + UINT32_C(0xC8FC6AD2), UINT32_C(0xED93A791), UINT32_C(0xB51BD9B2), + UINT32_C(0xA8BBE2A8), UINT32_C(0x9FB34008), UINT32_C(0x084B5A27) } }, + { { UINT32_C(0xEB138C84), UINT32_C(0xB3BB9545), UINT32_C(0x3FC88BFD), + UINT32_C(0x59C3489C), UINT32_C(0x85F53EC7), UINT32_C(0x3A97FF63), + UINT32_C(0x0AA69C3D), UINT32_C(0x40FDF5A6), UINT32_C(0x53D19668), + UINT32_C(0x0E8CCEC7), UINT32_C(0x33FAA661), UINT32_C(0x0AA72EF9) }, + { UINT32_C(0x9B1E684B), UINT32_C(0xF5C5A6CF), UINT32_C(0x31A22EA1), + UINT32_C(0x630F9371), UINT32_C(0xAC60F7EA), UINT32_C(0x06B2AAC2), + UINT32_C(0x5BC37D80), UINT32_C(0xB181CAE2), UINT32_C(0x247B13EA), + UINT32_C(0x4601A929), UINT32_C(0x5F739797), UINT32_C(0x8A71C386) } }, + { { UINT32_C(0xAB134786), UINT32_C(0x545387B3), UINT32_C(0x1599B64A), + UINT32_C(0x3179BB06), UINT32_C(0x07593574), UINT32_C(0xB0A61986), + UINT32_C(0x63FA7C3B), UINT32_C(0xC7E39B21), UINT32_C(0x91585D13), + UINT32_C(0xA1173F86), UINT32_C(0xCB9525CD), UINT32_C(0x09D5CC8E) }, + { UINT32_C(0x8F3A3451), UINT32_C(0xAAD44FFD), UINT32_C(0x25820CC5), + UINT32_C(0x702B04F2), UINT32_C(0x1CB66C17), UINT32_C(0xE90CAC49), + UINT32_C(0xEE161DC4), UINT32_C(0x40F6B547), UINT32_C(0x1BA4AC4E), + UINT32_C(0xC08BB8B4), UINT32_C(0xAE5A6BC1), UINT32_C(0x7DC064FB) } }, + { { UINT32_C(0x9D76DDC7), UINT32_C(0x90A5E871), UINT32_C(0xEDFC8E2E), + UINT32_C(0x39DC8FAE), UINT32_C(0x5B079C62), UINT32_C(0x98467A23), + UINT32_C(0x05450C98), UINT32_C(0xE25E3785), UINT32_C(0x96140083), + UINT32_C(0x2FE23A4D), UINT32_C(0xE9900312), UINT32_C(0x65CE3B9A) }, + { UINT32_C(0x6B72B5D9), UINT32_C(0x1D87D088), UINT32_C(0xFD9AFC82), + UINT32_C(0x72F53220), UINT32_C(0x9E1F71FA), UINT32_C(0xC63C7C15), + UINT32_C(0x8D449637), UINT32_C(0x90DF26EA), UINT32_C(0xC1C2B215), + UINT32_C(0x97089F40), UINT32_C(0x42317FAA), UINT32_C(0x83AF2664) } }, + }, + { + { { UINT32_C(0x8D688E31), UINT32_C(0xFA2DB51A), UINT32_C(0xA09C88D4), + UINT32_C(0x225B696C), UINT32_C(0x6059171F), UINT32_C(0x9F88AF1D), + UINT32_C(0x782A0993), UINT32_C(0x1C5FEA5E), UINT32_C(0x4EC710D3), + UINT32_C(0xE0FB1588), UINT32_C(0xD32CE365), UINT32_C(0xFAF372E5) }, + { UINT32_C(0x26506F45), UINT32_C(0xD9F896AB), UINT32_C(0x8373C724), + UINT32_C(0x8D350338), UINT32_C(0xCA6E7342), UINT32_C(0x1B76992D), + UINT32_C(0x6FD0C08B), UINT32_C(0x76338FCA), UINT32_C(0xA00F5C23), + UINT32_C(0xC3EA4C65), UINT32_C(0xB316B35B), UINT32_C(0xDFAB29B3) } }, + { { UINT32_C(0x483AEBF9), UINT32_C(0x84E5541F), UINT32_C(0x49165772), + UINT32_C(0x8ADFF7DC), UINT32_C(0x9BEAAD3C), UINT32_C(0xE0A43AD6), + UINT32_C(0xF51C2714), UINT32_C(0x97DD1820), UINT32_C(0x57EA5B0C), + UINT32_C(0xAC2B4CB4), UINT32_C(0xD11767CA), UINT32_C(0x87DBD011) }, + { UINT32_C(0xBFC7957A), UINT32_C(0x18CCF36C), UINT32_C(0x1BC79227), + UINT32_C(0xD4A08841), UINT32_C(0xD8D292A8), UINT32_C(0x9811CE43), + UINT32_C(0xD58C4EE7), UINT32_C(0x72C5FC68), UINT32_C(0xD35C65A7), + UINT32_C(0x5BC0F0BE), UINT32_C(0xCBBF9669), UINT32_C(0x0B446DBC) } }, + { { UINT32_C(0x9CEE9BCE), UINT32_C(0x7EBA3DA6), UINT32_C(0xD5377750), + UINT32_C(0x3E2C1248), UINT32_C(0x2B93D8B2), UINT32_C(0x8C917D98), + UINT32_C(0x7CAD1F75), UINT32_C(0xCA8FC6AC), UINT32_C(0xA0FF150A), + UINT32_C(0x5F581F19), UINT32_C(0xE08327FA), UINT32_C(0x872CC14A) }, + { UINT32_C(0xE9333188), UINT32_C(0xC774F187), UINT32_C(0x497AF7E8), + UINT32_C(0x528ED4AC), UINT32_C(0x8AD72B10), UINT32_C(0xCE036E9B), + UINT32_C(0x917986CF), UINT32_C(0x463F9EBB), UINT32_C(0x1325CF9B), + UINT32_C(0xBE516328), UINT32_C(0xDD7E5FEA), UINT32_C(0xD28D5C50) } }, + { { UINT32_C(0xDD58BBE3), UINT32_C(0x714C1D1B), UINT32_C(0x039AFD0F), + UINT32_C(0x85BA01AE), UINT32_C(0x6951AC80), UINT32_C(0x7F23EA3A), + UINT32_C(0xAC00C837), UINT32_C(0x5C599290), UINT32_C(0xBF24CC1B), + UINT32_C(0xF6EFA2B3), UINT32_C(0x1E84462B), UINT32_C(0x393D8E42) }, + { UINT32_C(0xF8B89453), UINT32_C(0x9BDA627D), UINT32_C(0xB23E0D1B), + UINT32_C(0xE66FFF2E), UINT32_C(0xC3B94EC2), UINT32_C(0xD1EE7089), + UINT32_C(0x3031699A), UINT32_C(0xF75DBA6E), UINT32_C(0x242B2453), + UINT32_C(0x8FF75F79), UINT32_C(0x289BFED4), UINT32_C(0xE721EDEB) } }, + { { UINT32_C(0xC1390FA8), UINT32_C(0x083215A1), UINT32_C(0x6DCE8CE0), + UINT32_C(0x901D686A), UINT32_C(0x837073FF), UINT32_C(0x4AB1BA62), + UINT32_C(0x34BEABA5), UINT32_C(0x10C287AA), UINT32_C(0x46985239), + UINT32_C(0xB4931AF4), UINT32_C(0xB053C4DC), UINT32_C(0x07639899) }, + { UINT32_C(0xE721EECD), UINT32_C(0x29E7F44D), UINT32_C(0x57B3FF48), + UINT32_C(0x65817182), UINT32_C(0x5054E2E0), UINT32_C(0x198542E2), + UINT32_C(0x84616DE8), UINT32_C(0x923C9E15), UINT32_C(0xAD465BB9), + UINT32_C(0x2A9C15E1), UINT32_C(0x16319245), UINT32_C(0xD8D4EFC7) } }, + { { UINT32_C(0x9961A674), UINT32_C(0x72DC7943), UINT32_C(0xA0E13668), + UINT32_C(0x839A0A52), UINT32_C(0x334945EA), UINT32_C(0xD7A53FA9), + UINT32_C(0xE7AA25DB), UINT32_C(0xDB21DB77), UINT32_C(0x66E96DA3), + UINT32_C(0xB6675A7D), UINT32_C(0xE66F33C0), UINT32_C(0x2C31C406) }, + { UINT32_C(0x6EC7B9CB), UINT32_C(0x45020B62), UINT32_C(0x0391F267), + UINT32_C(0xFF46E9CD), UINT32_C(0x0FA2F221), UINT32_C(0x7DABD744), + UINT32_C(0x9D4A2A3E), UINT32_C(0x9A32364B), UINT32_C(0x52D2E47A), + UINT32_C(0xF0F84AE8), UINT32_C(0x888F488A), UINT32_C(0xD0B872BB) } }, + { { UINT32_C(0xC9790EEF), UINT32_C(0x531E4CEF), UINT32_C(0x2B8D1A58), + UINT32_C(0xF7B5735E), UINT32_C(0xEF568511), UINT32_C(0xB8882F1E), + UINT32_C(0x86A86DB3), UINT32_C(0xAFB08D1C), UINT32_C(0xF54DE8C7), + UINT32_C(0x88CB9DF2), UINT32_C(0x9A683282), UINT32_C(0xA44234F1) }, + { UINT32_C(0xA6E9AB2E), UINT32_C(0xBC1B3D3A), UINT32_C(0x87FC99EE), + UINT32_C(0xEFA071FB), UINT32_C(0xA102DC0F), UINT32_C(0xFA3C737D), + UINT32_C(0xD6A0CBD2), UINT32_C(0xDF3248A6), UINT32_C(0x1ECC1BF4), + UINT32_C(0x6E62A4FF), UINT32_C(0xC8F1BC17), UINT32_C(0xF718F940) } }, + { { UINT32_C(0x4F63F026), UINT32_C(0x2C8B0AAD), UINT32_C(0x50B253CC), + UINT32_C(0x2AFF6238), UINT32_C(0x10C4D122), UINT32_C(0xCAB3E942), + UINT32_C(0x07CD2816), UINT32_C(0x52B59F04), UINT32_C(0x982C41FC), + UINT32_C(0x22322803), UINT32_C(0x8CF50B19), UINT32_C(0x38844E66) }, + { UINT32_C(0xBE3264CD), UINT32_C(0x42A959F7), UINT32_C(0x6C983524), + UINT32_C(0xBDDC24BD), UINT32_C(0x462B8640), UINT32_C(0xA489EB0C), + UINT32_C(0x98029BE7), UINT32_C(0xB7C05092), UINT32_C(0xA1ADDC64), + UINT32_C(0xD5546B5F), UINT32_C(0xA0C655AF), UINT32_C(0xE7CAC1FC) } }, + { { UINT32_C(0x47636F97), UINT32_C(0x14547198), UINT32_C(0xEBCDCCFF), + UINT32_C(0x6FA67481), UINT32_C(0x395D3258), UINT32_C(0xC164872F), + UINT32_C(0xEE6ACDBC), UINT32_C(0xB8CECAFE), UINT32_C(0xA933F180), + UINT32_C(0x3FBFE5F3), UINT32_C(0x898C3B1E), UINT32_C(0xEC20CAC2) }, + { UINT32_C(0x87DA73F9), UINT32_C(0x6A031BEE), UINT32_C(0x5C5AF46E), + UINT32_C(0xD1E667D1), UINT32_C(0x1DC6EEF9), UINT32_C(0xCB3DC168), + UINT32_C(0x33D310C0), UINT32_C(0x2DD1BD94), UINT32_C(0x9207E438), + UINT32_C(0x0F78D493), UINT32_C(0xA99C0E75), UINT32_C(0xC233D544) } }, + { { UINT32_C(0x9E2A0113), UINT32_C(0x228F19F1), UINT32_C(0x0E1A5D37), + UINT32_C(0x58495BE5), UINT32_C(0x38D7F364), UINT32_C(0x97E08F69), + UINT32_C(0x510759B0), UINT32_C(0x1EC3BA3E), UINT32_C(0xE03CD40D), + UINT32_C(0x3682F19A), UINT32_C(0xF9E16D68), UINT32_C(0xC87745D8) }, + { UINT32_C(0x09A642EA), UINT32_C(0xFD527AB5), UINT32_C(0xF9C81F27), + UINT32_C(0x6308EEBD), UINT32_C(0x550C5D68), UINT32_C(0xFA9F666C), + UINT32_C(0x584AB153), UINT32_C(0xDEBA436F), UINT32_C(0x5B63E939), + UINT32_C(0x1D4861D3), UINT32_C(0xC9850221), UINT32_C(0x073BED9B) } }, + { { UINT32_C(0x8B171246), UINT32_C(0x802BCCF0), UINT32_C(0x733B072F), + UINT32_C(0xFFF7D15A), UINT32_C(0x4CBFA4EF), UINT32_C(0xEA386266), + UINT32_C(0xD635946B), UINT32_C(0x9E5B5073), UINT32_C(0xFA81BE95), + UINT32_C(0x16E9A979), UINT32_C(0xB14F701F), UINT32_C(0x41E8716E) }, + { UINT32_C(0x101A6719), UINT32_C(0x25782E0F), UINT32_C(0xC9D66959), + UINT32_C(0x442C4875), UINT32_C(0x2B85D153), UINT32_C(0x52D845D9), + UINT32_C(0x2E831117), UINT32_C(0xFF925138), UINT32_C(0x8E02434B), + UINT32_C(0x01B700CC), UINT32_C(0xEC0BAE3E), UINT32_C(0xD2DB7F8E) } }, + { { UINT32_C(0x966A4872), UINT32_C(0x1B225300), UINT32_C(0x566F537B), + UINT32_C(0x40C149BE), UINT32_C(0xCB680021), UINT32_C(0x3335F4D2), + UINT32_C(0x778E5F5F), UINT32_C(0x773D0263), UINT32_C(0x666FA9ED), + UINT32_C(0x1D9B7602), UINT32_C(0x2E6200CF), UINT32_C(0x52490A10) }, + { UINT32_C(0x961F290B), UINT32_C(0x8434C7DD), UINT32_C(0x64456446), + UINT32_C(0x773AC156), UINT32_C(0x47B712BB), UINT32_C(0x5E2BB789), + UINT32_C(0xBE0974AD), UINT32_C(0xFD3BCBFD), UINT32_C(0x791AD5D8), + UINT32_C(0x71AE9351), UINT32_C(0x6F4E1400), UINT32_C(0x1EE738BA) } }, + { { UINT32_C(0x0BE8E26E), UINT32_C(0x2FA428AB), UINT32_C(0xBB4CF9FC), + UINT32_C(0xFEFF0600), UINT32_C(0xB2EA5FB0), UINT32_C(0x76F25CA9), + UINT32_C(0x6835C5F4), UINT32_C(0xAB7FECF0), UINT32_C(0x19D5F328), + UINT32_C(0x649D0772), UINT32_C(0xACBCB12E), UINT32_C(0xABE7B895) }, + { UINT32_C(0xD69B1EA8), UINT32_C(0xF2D1031A), UINT32_C(0xC60B0BBB), + UINT32_C(0x46065D5D), UINT32_C(0x85D798FF), UINT32_C(0xB0908DC1), + UINT32_C(0xD2C9B18A), UINT32_C(0x4E2420F0), UINT32_C(0xD30432A2), + UINT32_C(0x6B3A9BDD), UINT32_C(0xC9B134AD), UINT32_C(0x501C3383) } }, + { { UINT32_C(0x98A21284), UINT32_C(0x608F0967), UINT32_C(0x059CCEDE), + UINT32_C(0x5361BE86), UINT32_C(0xAFD87EF7), UINT32_C(0x3A40655C), + UINT32_C(0x59083AA2), UINT32_C(0x03CF3117), UINT32_C(0xB6C366D9), + UINT32_C(0x57DB5F61), UINT32_C(0x6DD0D232), UINT32_C(0x29DC275B) }, + { UINT32_C(0x8FA67501), UINT32_C(0xBDAB24DD), UINT32_C(0x65D08C37), + UINT32_C(0x5928F775), UINT32_C(0x645D466A), UINT32_C(0x9448A856), + UINT32_C(0xC0E927A5), UINT32_C(0x6E6B5E2E), UINT32_C(0xE80C6871), + UINT32_C(0xE884D546), UINT32_C(0x53A9A851), UINT32_C(0x10C881C9) } }, + { { UINT32_C(0x9B627AA5), UINT32_C(0x35505374), UINT32_C(0x7976677B), + UINT32_C(0xE7CA1B57), UINT32_C(0x4976CE17), UINT32_C(0x81239712), + UINT32_C(0x96DA31B9), UINT32_C(0x96E9080B), UINT32_C(0xCC64AA1F), + UINT32_C(0x458254AB), UINT32_C(0x48E674C9), UINT32_C(0xFEFF6821) }, + { UINT32_C(0x021F1488), UINT32_C(0x8772F37A), UINT32_C(0xAB56345C), + UINT32_C(0x2E274E18), UINT32_C(0x29823B76), UINT32_C(0x7C7BE61C), + UINT32_C(0x9EEFB39E), UINT32_C(0x275DB7B2), UINT32_C(0xBF5CBCEF), + UINT32_C(0x83B10ED4), UINT32_C(0x518E5183), UINT32_C(0x40D7F5B4) } }, + { { UINT32_C(0xF960B41B), UINT32_C(0x315CCC01), UINT32_C(0x1D99E722), + UINT32_C(0x90B417C9), UINT32_C(0x013463E0), UINT32_C(0x84AFAA0D), + UINT32_C(0x13E6D9E1), UINT32_C(0xF133C5D8), UINT32_C(0x525B7430), + UINT32_C(0xD95C6ADC), UINT32_C(0x7A25106A), UINT32_C(0x082C61AD) }, + { UINT32_C(0xBA1CE179), UINT32_C(0xABC1966D), UINT32_C(0xA5DB529A), + UINT32_C(0xE0578B77), UINT32_C(0xEC84107D), UINT32_C(0x10988C05), + UINT32_C(0x1B207F83), UINT32_C(0xFCADE5D7), UINT32_C(0xC5BA83DB), + UINT32_C(0x0BEB6FDB), UINT32_C(0x57537E34), UINT32_C(0x1C39B86D) } }, + }, + { + { { UINT32_C(0x2A7AECED), UINT32_C(0x5B0B5D69), UINT32_C(0x01DC545F), + UINT32_C(0x4C03450C), UINT32_C(0x404A3458), UINT32_C(0x72AD0A4A), + UINT32_C(0x9F467B60), UINT32_C(0x1DE8E255), UINT32_C(0x90634809), + UINT32_C(0xA4B35705), UINT32_C(0x706F0178), UINT32_C(0x76F30205) }, + { UINT32_C(0x4454F0E5), UINT32_C(0x588D21AB), UINT32_C(0x64134928), + UINT32_C(0xD22DF549), UINT32_C(0x241BCD90), UINT32_C(0xF4E7E73D), + UINT32_C(0x2FACC7CC), UINT32_C(0xB8D8A1D2), UINT32_C(0x1D25D2A0), + UINT32_C(0x483C35A7), UINT32_C(0x1EF9F608), UINT32_C(0x7F8D2545) } }, + { { UINT32_C(0x54EBC926), UINT32_C(0xCB51F039), UINT32_C(0xB8D4A7BB), + UINT32_C(0xE235D356), UINT32_C(0xB41FE1A6), UINT32_C(0x93C8FAFA), + UINT32_C(0xA719F254), UINT32_C(0x6297701D), UINT32_C(0x644F5CDE), + UINT32_C(0x6E9165BC), UINT32_C(0x0C11C542), UINT32_C(0x6506329D) }, + { UINT32_C(0xA92B4250), UINT32_C(0xA2564809), UINT32_C(0x889C2E3E), + UINT32_C(0x0E9AC173), UINT32_C(0x22B1D1BE), UINT32_C(0x286A5926), + UINT32_C(0x6ECDD041), UINT32_C(0x86A3D752), UINT32_C(0x649F9524), + UINT32_C(0x4B867E0A), UINT32_C(0x0629CB0F), UINT32_C(0x1FE7D95A) } }, + { { UINT32_C(0xCA5BAF54), UINT32_C(0xF4F66843), UINT32_C(0xEFE7DB78), + UINT32_C(0x298DB357), UINT32_C(0x7365712F), UINT32_C(0xF607E86E), + UINT32_C(0x8A822BC0), UINT32_C(0xD5882298), UINT32_C(0xC61299B3), + UINT32_C(0x2CFBD63A), UINT32_C(0x67167B1A), UINT32_C(0x6F713D9B) }, + { UINT32_C(0xDE0B077A), UINT32_C(0x750F673F), UINT32_C(0xEE2178DA), + UINT32_C(0x07482708), UINT32_C(0x69123C75), UINT32_C(0x5E6D5BD1), + UINT32_C(0xEAB99B37), UINT32_C(0x6A93D1B6), UINT32_C(0x8CAEC6A3), + UINT32_C(0x6EF4F7E6), UINT32_C(0xCF3ED818), UINT32_C(0x7BE411D6) } }, + { { UINT32_C(0x63A0A7D2), UINT32_C(0xF92B3073), UINT32_C(0x881DC8CF), + UINT32_C(0x32DA431C), UINT32_C(0xC578E3A3), UINT32_C(0xE51BD5ED), + UINT32_C(0x9587FA22), UINT32_C(0xEFDA70D2), UINT32_C(0x9B2EBA85), + UINT32_C(0xCFEC1708), UINT32_C(0xAF7BA530), UINT32_C(0x6AB51A4B) }, + { UINT32_C(0x98174812), UINT32_C(0x5AC155AE), UINT32_C(0xCCB076E3), + UINT32_C(0xCAF07A71), UINT32_C(0xC38718A7), UINT32_C(0x280E86C2), + UINT32_C(0xD63745B7), UINT32_C(0x9D12DE73), UINT32_C(0xBF8A79AA), + UINT32_C(0x0E8EA855), UINT32_C(0xBD705BF7), UINT32_C(0x5EB2BED8) } }, + { { UINT32_C(0xAE16DE53), UINT32_C(0x33FE9578), UINT32_C(0x10BEC902), + UINT32_C(0x3AE85EB5), UINT32_C(0x44AF850E), UINT32_C(0xC4F49658), + UINT32_C(0x087DD658), UINT32_C(0x6EA222B3), UINT32_C(0xA51F1447), + UINT32_C(0xB255E6FD), UINT32_C(0x117E3F48), UINT32_C(0xB35E4997) }, + { UINT32_C(0x05616CA1), UINT32_C(0x562E813B), UINT32_C(0x8A61E156), + UINT32_C(0xDF5925D6), UINT32_C(0x571C728B), UINT32_C(0xB2FA8125), + UINT32_C(0xA2F2D1CF), UINT32_C(0x00864805), UINT32_C(0x1BCCB6FF), + UINT32_C(0x2DC26F41), UINT32_C(0x63AE37DD), UINT32_C(0xEBD5E093) } }, + { { UINT32_C(0x0A285611), UINT32_C(0xD2D68BB3), UINT32_C(0xDC8378F2), + UINT32_C(0x3EAE7596), UINT32_C(0x6CC688A3), UINT32_C(0x2DC6CCC6), + UINT32_C(0x011F5DFB), UINT32_C(0xC45E5713), UINT32_C(0x62D34487), + UINT32_C(0x6B9C4F6C), UINT32_C(0x1FC65551), UINT32_C(0xFAD6F077) }, + { UINT32_C(0x62B23B52), UINT32_C(0x5E3266E0), UINT32_C(0xE98F4715), + UINT32_C(0xF1DAF319), UINT32_C(0x3ED0AE83), UINT32_C(0x064D12EA), + UINT32_C(0x564125CB), UINT32_C(0x5CCF9326), UINT32_C(0xC63C1E9F), + UINT32_C(0x09057022), UINT32_C(0xDC9B5D2E), UINT32_C(0x7171972C) } }, + { { UINT32_C(0xEABD21B2), UINT32_C(0x2364FD9A), UINT32_C(0x9174AD6D), + UINT32_C(0x3CE5F4BB), UINT32_C(0xB38688C0), UINT32_C(0xA4D6D5D0), + UINT32_C(0x6D87FD7D), UINT32_C(0x2292A2D2), UINT32_C(0x4CA02E54), + UINT32_C(0x2A7D1B53), UINT32_C(0xB4185715), UINT32_C(0x7BEE6E7E) }, + { UINT32_C(0x8FC63ACD), UINT32_C(0x73E54609), UINT32_C(0x4064E09D), + UINT32_C(0xF4D93A12), UINT32_C(0x2B92DAA5), UINT32_C(0xD20E157A), + UINT32_C(0xC4B81A00), UINT32_C(0x90D125DB), UINT32_C(0x7682DE13), + UINT32_C(0xCB951C9E), UINT32_C(0x27987545), UINT32_C(0x1ABE58F4) } }, + { { UINT32_C(0x30C70C8D), UINT32_C(0x6D351640), UINT32_C(0xCE2361B8), + UINT32_C(0x8047D811), UINT32_C(0xDF8E2C81), UINT32_C(0x3F8B3D4F), + UINT32_C(0x33FA1F6C), UINT32_C(0x5D595477), UINT32_C(0xE29B8A91), + UINT32_C(0xF769FE5A), UINT32_C(0xD737B2A2), UINT32_C(0x26F0E606) }, + { UINT32_C(0xB8B31C6A), UINT32_C(0x70CBFA5D), UINT32_C(0x863D3AEA), + UINT32_C(0x0F883B4A), UINT32_C(0xE386AE2F), UINT32_C(0x156A4479), + UINT32_C(0xADE8A684), UINT32_C(0xA17A2FCD), UINT32_C(0xE2A7E335), + UINT32_C(0x78BDF958), UINT32_C(0x3B9E3041), UINT32_C(0xD1B4E673) } }, + { { UINT32_C(0x449A6D11), UINT32_C(0x1EAF48EC), UINT32_C(0x6D2FA7B9), + UINT32_C(0x6B94B8E4), UINT32_C(0x728E4C1B), UINT32_C(0x1D75D269), + UINT32_C(0xDD304E2C), UINT32_C(0x91123819), UINT32_C(0x88804F4B), + UINT32_C(0x0B34CAE3), UINT32_C(0xC5495E9A), UINT32_C(0x2BA192FB) }, + { UINT32_C(0xFF4D24BF), UINT32_C(0xC93FF6EF), UINT32_C(0x0342BA78), + UINT32_C(0xF8C2C0B0), UINT32_C(0x831EB94C), UINT32_C(0x8041F769), + UINT32_C(0x7782985E), UINT32_C(0x35310074), UINT32_C(0x3AF84E83), + UINT32_C(0xC755320B), UINT32_C(0x6F497E7F), UINT32_C(0x384B6D26) } }, + { { UINT32_C(0x17E6BD17), UINT32_C(0xEF92CD59), UINT32_C(0xA426965C), + UINT32_C(0xA087305B), UINT32_C(0xAC47F773), UINT32_C(0x13895CE7), + UINT32_C(0xE0BB2867), UINT32_C(0xB85F2A9F), UINT32_C(0x7CD7C58E), + UINT32_C(0x2926E6AA), UINT32_C(0x450459C5), UINT32_C(0xE544EDA6) }, + { UINT32_C(0xB90A9849), UINT32_C(0x73DBC351), UINT32_C(0x848EBE86), + UINT32_C(0x961183F6), UINT32_C(0x80534712), UINT32_C(0xC45BB210), + UINT32_C(0xA654D9A3), UINT32_C(0x379D08D7), UINT32_C(0xBD3FFA9C), + UINT32_C(0x5B97CEF2), UINT32_C(0xDDC2FCE5), UINT32_C(0x0F469F34) } }, + { { UINT32_C(0x0642F38D), UINT32_C(0x6D146108), UINT32_C(0xD21EB887), + UINT32_C(0x055171A0), UINT32_C(0xD0DCEB28), UINT32_C(0x28DFFAB4), + UINT32_C(0x98DE9CCD), UINT32_C(0x0D0E6312), UINT32_C(0x118C3C3F), + UINT32_C(0x750A9156), UINT32_C(0xB049D799), UINT32_C(0x8C1F1390) }, + { UINT32_C(0x439607C5), UINT32_C(0xE4823858), UINT32_C(0x5C111EAB), + UINT32_C(0x947E9BA0), UINT32_C(0xA355DF2E), UINT32_C(0x39C95616), + UINT32_C(0x10E54BDA), UINT32_C(0xF5F6B98E), UINT32_C(0x142B876A), + UINT32_C(0xB0E0B33D), UINT32_C(0xEA18C90C), UINT32_C(0x71197D73) } }, + { { UINT32_C(0xF52BE819), UINT32_C(0x36A5139D), UINT32_C(0x29A45D2B), + UINT32_C(0xF60DDF34), UINT32_C(0xE9220E34), UINT32_C(0x0727EFEC), + UINT32_C(0x4EF7F446), UINT32_C(0x431D3386), UINT32_C(0xFCC4962C), + UINT32_C(0xC3165A64), UINT32_C(0xD64362BB), UINT32_C(0xB7D926E1) }, + { UINT32_C(0xD45F9350), UINT32_C(0x216BC61F), UINT32_C(0xBBAED815), + UINT32_C(0xA974CB2F), UINT32_C(0x86FB2F76), UINT32_C(0x31DF342D), + UINT32_C(0x01D78314), UINT32_C(0x3AB67E05), UINT32_C(0xDEE33ED2), + UINT32_C(0x7AA951E0), UINT32_C(0xCEC78D94), UINT32_C(0x318FBBBD) } }, + { { UINT32_C(0xB8FE0204), UINT32_C(0xAD7EFB65), UINT32_C(0x230AB7F7), + UINT32_C(0x0432E1C5), UINT32_C(0x9C967400), UINT32_C(0x7563A62D), + UINT32_C(0x3524D4FF), UINT32_C(0xD88B9C74), UINT32_C(0xF1A823E3), + UINT32_C(0x16A1991C), UINT32_C(0xFA6F0FFB), UINT32_C(0xCF2F9BFE) }, + { UINT32_C(0xA50CA61F), UINT32_C(0x55AAA946), UINT32_C(0xFED4CAB3), + UINT32_C(0x8CBBD3C8), UINT32_C(0x7651365A), UINT32_C(0x03A0FAB8), + UINT32_C(0x62DC3913), UINT32_C(0x46B5234B), UINT32_C(0xB558CBBD), + UINT32_C(0xFD875B28), UINT32_C(0x11CEB361), UINT32_C(0xA48EC3AE) } }, + { { UINT32_C(0xB3ADBD8B), UINT32_C(0x5DD131A1), UINT32_C(0x29B45EF8), + UINT32_C(0xF9FBCA3A), UINT32_C(0x9341EE18), UINT32_C(0x02204866), + UINT32_C(0x83BF9618), UINT32_C(0x8D13B895), UINT32_C(0xE807459C), + UINT32_C(0x0E395BAE), UINT32_C(0xB190E7DB), UINT32_C(0xB9C110CC) }, + { UINT32_C(0x25D25063), UINT32_C(0xA0DC3452), UINT32_C(0x02371462), + UINT32_C(0x2FB78EC8), UINT32_C(0x8975C2D5), UINT32_C(0xC3A9E7BB), + UINT32_C(0x85A78264), UINT32_C(0x94666872), UINT32_C(0x8029AA92), + UINT32_C(0x480D2CC2), UINT32_C(0x5655726D), UINT32_C(0x237086C7) } }, + { { UINT32_C(0x65EB9EEE), UINT32_C(0x197F14BB), UINT32_C(0x9F12E5FD), + UINT32_C(0xFC93125C), UINT32_C(0x8BFBAE5E), UINT32_C(0x9C20BC53), + UINT32_C(0x4BC053BA), UINT32_C(0xB35E2154), UINT32_C(0x21C3898E), + UINT32_C(0xE5FA9CC7), UINT32_C(0xD42F950F), UINT32_C(0x502D72FF) }, + { UINT32_C(0xD1EB8C31), UINT32_C(0x6812D38A), UINT32_C(0x080D30BB), + UINT32_C(0x1F77F3F1), UINT32_C(0x5A8B1E98), UINT32_C(0x18D12833), + UINT32_C(0x299196CE), UINT32_C(0x7FD39FA9), UINT32_C(0xCF4ED6D6), + UINT32_C(0xFB8C9F11), UINT32_C(0xD6363194), UINT32_C(0x4C00F604) } }, + { { UINT32_C(0xFA2A21C2), UINT32_C(0x5C8AFCF9), UINT32_C(0x1928D133), + UINT32_C(0x71CBF282), UINT32_C(0x42B29506), UINT32_C(0x56BEF28E), + UINT32_C(0x70323DE2), UINT32_C(0xAFBA250C), UINT32_C(0x7DED2C30), + UINT32_C(0x3FE208D1), UINT32_C(0xCE9AA598), UINT32_C(0xBD2CD213) }, + { UINT32_C(0xCFEED070), UINT32_C(0x52C5EC52), UINT32_C(0xD3DA336B), + UINT32_C(0x0A7223E7), UINT32_C(0xCE156B46), UINT32_C(0x7156A4ED), + UINT32_C(0xED7E6159), UINT32_C(0x9AF6C499), UINT32_C(0x13C029AD), + UINT32_C(0x9D7A6797), UINT32_C(0x9018DC77), UINT32_C(0xE5B5C924) } }, + }, + { + { { UINT32_C(0xDE1E4E55), UINT32_C(0x3F2EFF53), UINT32_C(0xE4D3ECC4), + UINT32_C(0x6B749943), UINT32_C(0x0DDE190D), UINT32_C(0xAF10B18A), + UINT32_C(0xA26B0409), UINT32_C(0xF491B98D), UINT32_C(0xA2B1D944), + UINT32_C(0x66080782), UINT32_C(0x97E8C541), UINT32_C(0x59277DC6) }, + { UINT32_C(0x006F18AA), UINT32_C(0xFDBFC5F6), UINT32_C(0xFADD8BE1), + UINT32_C(0x435D165B), UINT32_C(0x57645EF4), UINT32_C(0x8E5D2638), + UINT32_C(0xA0258363), UINT32_C(0x31BCFDA6), UINT32_C(0xD35D2503), + UINT32_C(0xF5330AB8), UINT32_C(0xC7CAB285), UINT32_C(0xB71369F0) } }, + { { UINT32_C(0x40ACC5A8), UINT32_C(0xE6A19DCC), UINT32_C(0xDBC6DBF8), + UINT32_C(0x1C3A1FF1), UINT32_C(0xC6455613), UINT32_C(0xB4D89B9F), + UINT32_C(0xA7390D0E), UINT32_C(0x6CB0FE44), UINT32_C(0x59EA135A), + UINT32_C(0xADE197A4), UINT32_C(0x20680982), UINT32_C(0xDA6AA865) }, + { UINT32_C(0x5A442C1B), UINT32_C(0x03DB9BE9), UINT32_C(0x2BFB93F2), + UINT32_C(0x221A2D73), UINT32_C(0x753C196C), UINT32_C(0x44DEE8D4), + UINT32_C(0x0B7C6FF5), UINT32_C(0x59ADCC70), UINT32_C(0x4CA1B142), + UINT32_C(0xC6260EC2), UINT32_C(0x46CBD4F2), UINT32_C(0x4C3CB5C6) } }, + { { UINT32_C(0xA417111F), UINT32_C(0x8A15D6FE), UINT32_C(0x71D93FCC), + UINT32_C(0xFE4A16BD), UINT32_C(0x55BBE732), UINT32_C(0x7A7EE38C), + UINT32_C(0x1FF94A9D), UINT32_C(0xEFF146A5), UINT32_C(0xDD585AB5), + UINT32_C(0xE572D13E), UINT32_C(0x06491A5D), UINT32_C(0xD879790E) }, + { UINT32_C(0x2A58CB2E), UINT32_C(0x9C84E1C5), UINT32_C(0x6C938630), + UINT32_C(0xD79D1374), UINT32_C(0x385F06C7), UINT32_C(0xDB12CD9B), + UINT32_C(0x7A7759C3), UINT32_C(0x0C93EB97), UINT32_C(0x683BD706), + UINT32_C(0xF1F5B0FE), UINT32_C(0x85EC3D50), UINT32_C(0x541E4F72) } }, + { { UINT32_C(0x81833608), UINT32_C(0x9A0E1535), UINT32_C(0x6E2833AC), + UINT32_C(0x5CCE871E), UINT32_C(0xFB29777C), UINT32_C(0xC17059EA), + UINT32_C(0xE354CAFD), UINT32_C(0x7E40E5FA), UINT32_C(0x4D07C371), + UINT32_C(0x9CF59405), UINT32_C(0xA71C3945), UINT32_C(0x64CE36B2) }, + { UINT32_C(0x56CAF487), UINT32_C(0x69309E96), UINT32_C(0x1AE3454B), + UINT32_C(0x3D719E9F), UINT32_C(0xE25823B6), UINT32_C(0xF2164070), + UINT32_C(0x0BC27359), UINT32_C(0xEAD851BD), UINT32_C(0xB0925094), + UINT32_C(0x3D21BFE8), UINT32_C(0x34A97F4E), UINT32_C(0xA783B1E9) } }, + { { UINT32_C(0x9546491A), UINT32_C(0x406B0C26), UINT32_C(0xF293C4E5), + UINT32_C(0x9E5E15E2), UINT32_C(0x15B164DB), UINT32_C(0xC60D6413), + UINT32_C(0x0C75A78E), UINT32_C(0x0DA46F53), UINT32_C(0xEA0C656B), + UINT32_C(0x7C599BB7), UINT32_C(0x1B1A8122), UINT32_C(0x0F07A512) }, + { UINT32_C(0x15172686), UINT32_C(0x14C7204A), UINT32_C(0x5165625D), + UINT32_C(0x8FAEDFF8), UINT32_C(0x37AEDE40), UINT32_C(0x20F260CE), + UINT32_C(0x8F357FFE), UINT32_C(0xC81F771E), UINT32_C(0xB0912557), + UINT32_C(0x25499197), UINT32_C(0x4C739C74), UINT32_C(0x736197DC) } }, + { { UINT32_C(0x381B3462), UINT32_C(0x6151BAB1), UINT32_C(0x43DBD344), + UINT32_C(0x27E5A078), UINT32_C(0xA1C3E9FB), UINT32_C(0x2CB05BD6), + UINT32_C(0x27CF2A11), UINT32_C(0x2A759760), UINT32_C(0xFF43E702), + UINT32_C(0x0ADCF9DB), UINT32_C(0x1F484146), UINT32_C(0x4BBF03E2) }, + { UINT32_C(0x55B6521A), UINT32_C(0x0E74997F), UINT32_C(0xADE17086), + UINT32_C(0x15629231), UINT32_C(0x7493FC58), UINT32_C(0x7F143E86), + UINT32_C(0xAF8B9670), UINT32_C(0x60869095), UINT32_C(0x7E524869), + UINT32_C(0x482CFCD7), UINT32_C(0x1D454756), UINT32_C(0x9E8060C3) } }, + { { UINT32_C(0xC88B4D3B), UINT32_C(0xE495747A), UINT32_C(0xAE8A948F), + UINT32_C(0xB7559835), UINT32_C(0xDEB56853), UINT32_C(0x67EEF3A9), + UINT32_C(0x9DEE5ADF), UINT32_C(0x0E20E269), UINT32_C(0x61F0A1AA), + UINT32_C(0x9031AF67), UINT32_C(0x683402BC), UINT32_C(0x76669D32) }, + { UINT32_C(0x06718B16), UINT32_C(0x90BD2313), UINT32_C(0x864EFDAC), + UINT32_C(0xE1B22A21), UINT32_C(0x6620089F), UINT32_C(0xE4FFE909), + UINT32_C(0x3428E2D9), UINT32_C(0xB84C842E), UINT32_C(0xFE3871FC), + UINT32_C(0x0E28C880), UINT32_C(0x3F21C200), UINT32_C(0x8932F698) } }, + { { UINT32_C(0x6C90EA5D), UINT32_C(0x603F00CE), UINT32_C(0x40A2F693), + UINT32_C(0x64739307), UINT32_C(0x2174E517), UINT32_C(0xAF65148B), + UINT32_C(0xF784AE74), UINT32_C(0x162FC2CA), UINT32_C(0x4D5F6458), + UINT32_C(0x0D9A8825), UINT32_C(0x43AACE93), UINT32_C(0x0C2D5861) }, + { UINT32_C(0x9F73CBFC), UINT32_C(0xBF1EADDE), UINT32_C(0x9C68BBCA), + UINT32_C(0xDE9C34C0), UINT32_C(0x67EF8A1A), UINT32_C(0x6D95602D), + UINT32_C(0xA791B241), UINT32_C(0x0AF2581B), UINT32_C(0x12CAD604), + UINT32_C(0x14F77361), UINT32_C(0xE2ACD1AD), UINT32_C(0x19F2354D) } }, + { { UINT32_C(0x0D60F263), UINT32_C(0x272F78F6), UINT32_C(0x208FD785), + UINT32_C(0xE7A8F4AF), UINT32_C(0x36554F2C), UINT32_C(0x10E191C6), + UINT32_C(0xFD5CD0B3), UINT32_C(0x06D88551), UINT32_C(0x57069C27), + UINT32_C(0x29BF8568), UINT32_C(0x28AA6FAD), UINT32_C(0x3CE7ECD8) }, + { UINT32_C(0xE9F1A1D8), UINT32_C(0x7D8A92D0), UINT32_C(0xD30B5725), + UINT32_C(0xD40C7FF8), UINT32_C(0xF54CAEB8), UINT32_C(0x16BE6CB2), + UINT32_C(0x14CB0A91), UINT32_C(0x14CA471A), UINT32_C(0x02733CAE), + UINT32_C(0xD5FF15B8), UINT32_C(0xDAA76580), UINT32_C(0xCAF88D87) } }, + { { UINT32_C(0x2C046592), UINT32_C(0x39430E22), UINT32_C(0x1AD26706), + UINT32_C(0x6CDAE81F), UINT32_C(0xA25D9106), UINT32_C(0x8C102159), + UINT32_C(0x27CA9F30), UINT32_C(0x9A440572), UINT32_C(0x70287FBC), + UINT32_C(0x8D34C430), UINT32_C(0x29DB8AFA), UINT32_C(0x9003A455) }, + { UINT32_C(0x7FD971AD), UINT32_C(0x91364CC3), UINT32_C(0x9C60EDB7), + UINT32_C(0x7B3AA048), UINT32_C(0x526F4DD8), UINT32_C(0x58B0E008), + UINT32_C(0xD86D98AE), UINT32_C(0xB7674454), UINT32_C(0xB2B45747), + UINT32_C(0xC25F4051), UINT32_C(0xCC043E8F), UINT32_C(0x8243BF9C) } }, + { { UINT32_C(0x43A0C387), UINT32_C(0xA89641C6), UINT32_C(0x87B9AB17), + UINT32_C(0x6D92205C), UINT32_C(0xDAA0E102), UINT32_C(0x37D691F4), + UINT32_C(0xCDE5312E), UINT32_C(0xEB3E52D7), UINT32_C(0x16F518A2), + UINT32_C(0x60D3C099), UINT32_C(0x8A378EEB), UINT32_C(0x7854C051) }, + { UINT32_C(0x4BBCAAC5), UINT32_C(0x7359DB51), UINT32_C(0x1713F102), + UINT32_C(0xF5B1B68C), UINT32_C(0xE4398DE5), UINT32_C(0xDAEAE645), + UINT32_C(0xD1ABFB82), UINT32_C(0x8C8ACB6C), UINT32_C(0x136423E2), + UINT32_C(0x2E8B76C3), UINT32_C(0xA8BA015E), UINT32_C(0x509DCB2D) } }, + { { UINT32_C(0x9AD9C59C), UINT32_C(0x2FF36815), UINT32_C(0x658E65B9), + UINT32_C(0xB189A4E8), UINT32_C(0xEA786AD2), UINT32_C(0x7D33DDBB), + UINT32_C(0xC0D2DC05), UINT32_C(0x96D0D648), UINT32_C(0xBFA03BE9), + UINT32_C(0x05E49256), UINT32_C(0x8BAF5A1C), UINT32_C(0x0EA4E7A6) }, + { UINT32_C(0x9F9AD5A8), UINT32_C(0x3DDCE0B0), UINT32_C(0x9E49C2CB), + UINT32_C(0xF7809195), UINT32_C(0x21782C2F), UINT32_C(0xBFCEF29D), + UINT32_C(0xC41BFD97), UINT32_C(0xE57AD39F), UINT32_C(0x1355AD19), + UINT32_C(0xC04B93E8), UINT32_C(0x59440F9F), UINT32_C(0xAABC9E6E) } }, + { { UINT32_C(0x5B6459DA), UINT32_C(0x7AA48103), UINT32_C(0x0166E880), + UINT32_C(0x83EF7477), UINT32_C(0x511CCE80), UINT32_C(0x536182B1), + UINT32_C(0x73CA55AA), UINT32_C(0xAFDD2EEE), UINT32_C(0xA8716143), + UINT32_C(0xAB910D0D), UINT32_C(0x83707250), UINT32_C(0x8BEAA42B) }, + { UINT32_C(0x8DA2AB3D), UINT32_C(0x4BCCFD89), UINT32_C(0xEC6AA105), + UINT32_C(0x1DBF68A9), UINT32_C(0x68EB42DA), UINT32_C(0x32CE6108), + UINT32_C(0x8EA62E37), UINT32_C(0x5C2C2C85), UINT32_C(0xCD3088A7), + UINT32_C(0x1ED2791F), UINT32_C(0xFF05070C), UINT32_C(0x496B4FEB) } }, + { { UINT32_C(0x0AA629C5), UINT32_C(0x9FA9121A), UINT32_C(0x57558BEC), + UINT32_C(0xE286CFF1), UINT32_C(0x59813A4D), UINT32_C(0x4D9D657E), + UINT32_C(0x26103519), UINT32_C(0xC4676A16), UINT32_C(0x2BD4DF80), + UINT32_C(0x616160B3), UINT32_C(0x30FBAE87), UINT32_C(0x26FB78CC) }, + { UINT32_C(0x8F0F66BD), UINT32_C(0x09607013), UINT32_C(0x03D9B90D), + UINT32_C(0xDD4E2D0C), UINT32_C(0x600D1B12), UINT32_C(0x5D3A8912), + UINT32_C(0x4308E126), UINT32_C(0xF76DD52F), UINT32_C(0x9E4FCCA6), + UINT32_C(0x97CC0409), UINT32_C(0x04C4DF7B), UINT32_C(0x0CFBE311) } }, + { { UINT32_C(0x28437A23), UINT32_C(0x6CA62C12), UINT32_C(0x40E7A003), + UINT32_C(0x0DAF3353), UINT32_C(0xD20F8079), UINT32_C(0x1FD07DF0), + UINT32_C(0x3BBC9749), UINT32_C(0xEAE7969C), UINT32_C(0x9ECAD022), + UINT32_C(0x55861AFA), UINT32_C(0x1FBC3D4C), UINT32_C(0xEC41DAD9) }, + { UINT32_C(0xDA8B261B), UINT32_C(0x1FE4CB40), UINT32_C(0x427C5C9D), + UINT32_C(0xC2671AB6), UINT32_C(0x261D4939), UINT32_C(0xDFCDA7B8), + UINT32_C(0x2072C0B9), UINT32_C(0x9E7B802B), UINT32_C(0xC7828CC2), + UINT32_C(0x3AFEE900), UINT32_C(0xF6DE987F), UINT32_C(0x3488BF28) } }, + { { UINT32_C(0x7BE1F89E), UINT32_C(0x33B9F2DE), UINT32_C(0x299B15C9), + UINT32_C(0xD4E80821), UINT32_C(0x0E13F37F), UINT32_C(0x87A3067A), + UINT32_C(0x55FD239F), UINT32_C(0x6D4C09ED), UINT32_C(0x92EF014F), + UINT32_C(0x48B1042D), UINT32_C(0xB385A759), UINT32_C(0xA382B2E0) }, + { UINT32_C(0x7F6F84F8), UINT32_C(0xBF571BB0), UINT32_C(0x0CE87F50), + UINT32_C(0x25AFFA37), UINT32_C(0xFE54F1BC), UINT32_C(0x826906D3), + UINT32_C(0xC53AE76A), UINT32_C(0x6B0421F4), UINT32_C(0x4855EB3C), + UINT32_C(0x44F85A3A), UINT32_C(0x8D1F2B27), UINT32_C(0xF49E2151) } }, + }, + { + { { UINT32_C(0x5E3C647B), UINT32_C(0xC0426B77), UINT32_C(0x8CF05348), + UINT32_C(0xBFCBD939), UINT32_C(0x172C0D3D), UINT32_C(0x31D312E3), + UINT32_C(0xEE754737), UINT32_C(0x5F49FDE6), UINT32_C(0x6DA7EE61), + UINT32_C(0x895530F0), UINT32_C(0xE8B3A5FB), UINT32_C(0xCF281B0A) }, + { UINT32_C(0x41B8A543), UINT32_C(0xFD149735), UINT32_C(0x3080DD30), + UINT32_C(0x41A625A7), UINT32_C(0x653908CF), UINT32_C(0xE2BAAE07), + UINT32_C(0xBA02A278), UINT32_C(0xC3D01436), UINT32_C(0x7B21B8F8), + UINT32_C(0xA0D0222E), UINT32_C(0xD7EC1297), UINT32_C(0xFDC270E9) } }, + { { UINT32_C(0x9F101E64), UINT32_C(0x06A67BD2), UINT32_C(0xE1733A4A), + UINT32_C(0xCB6E0AC7), UINT32_C(0x97BC62D2), UINT32_C(0xEE0B5D51), + UINT32_C(0x24C51874), UINT32_C(0x52B17039), UINT32_C(0x82A1A0D5), + UINT32_C(0xFED1F423), UINT32_C(0xDB6270AC), UINT32_C(0x55D90569) }, + { UINT32_C(0x5D73D533), UINT32_C(0x36BE4A9C), UINT32_C(0x976ED4D5), + UINT32_C(0xBE9266D6), UINT32_C(0xB8F8074B), UINT32_C(0xC17436D3), + UINT32_C(0x718545C6), UINT32_C(0x3BB4D399), UINT32_C(0x5C757D21), + UINT32_C(0x8E1EA355), UINT32_C(0x8C474366), UINT32_C(0xF7EDBC97) } }, + { { UINT32_C(0x6EA83242), UINT32_C(0xEC72C650), UINT32_C(0x1B2D237F), + UINT32_C(0xF7DE7BE5), UINT32_C(0x1819EFB0), UINT32_C(0x3C5E2200), + UINT32_C(0x8CDDE870), UINT32_C(0xDF5AB6D6), UINT32_C(0x92A87AEE), + UINT32_C(0x75A44E9D), UINT32_C(0xBCF77F19), UINT32_C(0xBDDC46F4) }, + { UINT32_C(0x669B674D), UINT32_C(0x8191EFBD), UINT32_C(0xED71768F), + UINT32_C(0x52884DF9), UINT32_C(0x65CF242C), UINT32_C(0xE62BE582), + UINT32_C(0x80B1D17B), UINT32_C(0xAE99A3B1), UINT32_C(0x92DE59A9), + UINT32_C(0x48CBB446), UINT32_C(0x2DCB3CE2), UINT32_C(0xD3C226CF) } }, + { { UINT32_C(0x9FD94EC4), UINT32_C(0x9580CDFB), UINT32_C(0x28631AD9), + UINT32_C(0xED273A6C), UINT32_C(0xC327F3E7), UINT32_C(0x5D3D5F77), + UINT32_C(0x35353C5F), UINT32_C(0x05D5339C), UINT32_C(0x5C258EB1), + UINT32_C(0xC56FB5FE), UINT32_C(0xEDCE1F79), UINT32_C(0xEFF8425E) }, + { UINT32_C(0xCF83CF9C), UINT32_C(0xAB7AA141), UINT32_C(0x207D6D4F), + UINT32_C(0xBD2A690A), UINT32_C(0x458D9E52), UINT32_C(0xE1241491), + UINT32_C(0xAA7F0F31), UINT32_C(0xDD2448CC), UINT32_C(0xF0FDA7AB), + UINT32_C(0xEC58D3C7), UINT32_C(0xC91BBA4D), UINT32_C(0x7B6E122D) } }, + { { UINT32_C(0xB1B48156), UINT32_C(0x2A2DEDAF), UINT32_C(0xBB93DB87), + UINT32_C(0xA0A2C63A), UINT32_C(0x08ACD99E), UINT32_C(0xC6559078), + UINT32_C(0xFE4AC331), UINT32_C(0x03EA42AF), UINT32_C(0xEB180ED6), + UINT32_C(0x43D2C14A), UINT32_C(0xB1156A1A), UINT32_C(0xC2F293DD) }, + { UINT32_C(0xA9D81249), UINT32_C(0x1FAFABF5), UINT32_C(0x9A8EEE87), + UINT32_C(0x39ADDEAD), UINT32_C(0x119E2E92), UINT32_C(0x21E206F2), + UINT32_C(0xD74DCEB6), UINT32_C(0xBC5DCC2E), UINT32_C(0x0A73A358), + UINT32_C(0x86647FA3), UINT32_C(0x2F53F642), UINT32_C(0xEAD8BEA4) } }, + { { UINT32_C(0x91C09091), UINT32_C(0x636225F5), UINT32_C(0x71BDCFDF), + UINT32_C(0xCCF5070A), UINT32_C(0xB9668EE2), UINT32_C(0x0EF8D625), + UINT32_C(0xB5E04E4F), UINT32_C(0x57BDF6CD), UINT32_C(0x7C75EA43), + UINT32_C(0xFC6AB0A6), UINT32_C(0xF7FD6EF3), UINT32_C(0xEB6B8AFB) }, + { UINT32_C(0x2A3DF404), UINT32_C(0x5B2AEEF0), UINT32_C(0xB9823197), + UINT32_C(0x31FD3B48), UINT32_C(0x83A7EB23), UINT32_C(0x56226DB6), + UINT32_C(0x5BB1ED2F), UINT32_C(0x3772C21E), UINT32_C(0xCD1ABA6A), + UINT32_C(0x3E833624), UINT32_C(0xAC672DAD), UINT32_C(0xBAE58FFA) } }, + { { UINT32_C(0x31BA1705), UINT32_C(0xCE92224D), UINT32_C(0xF0197F63), + UINT32_C(0x022C6ED2), UINT32_C(0xA4DC1113), UINT32_C(0x21F18D99), + UINT32_C(0x03616BF1), UINT32_C(0x5CD04DE8), UINT32_C(0x9FF12E08), + UINT32_C(0x6F900679), UINT32_C(0x48E61DDF), UINT32_C(0xF59A3315) }, + { UINT32_C(0xB51BD024), UINT32_C(0x9474D42C), UINT32_C(0x9051E49D), + UINT32_C(0x11A0A413), UINT32_C(0xDCE70EDB), UINT32_C(0x79C92705), + UINT32_C(0x34198426), UINT32_C(0x113CE278), UINT32_C(0xEA8616D2), + UINT32_C(0x8978396F), UINT32_C(0xEA894C36), UINT32_C(0x9A2A14D0) } }, + { { UINT32_C(0x604F6E4A), UINT32_C(0x4F1E1254), UINT32_C(0x0187D585), + UINT32_C(0x4513B088), UINT32_C(0x19E0F482), UINT32_C(0x9022F257), + UINT32_C(0xE2239DBF), UINT32_C(0x51FB2A80), UINT32_C(0x998ED9D5), + UINT32_C(0x49940D9E), UINT32_C(0x6C932C5D), UINT32_C(0x0583D241) }, + { UINT32_C(0xF25B73F7), UINT32_C(0x1188CEC8), UINT32_C(0x3B3D06CD), + UINT32_C(0xA28788CB), UINT32_C(0xA083DB5A), UINT32_C(0xDEA194EC), + UINT32_C(0x22DF4272), UINT32_C(0xD93A4F7E), UINT32_C(0x6A009C49), + UINT32_C(0x8D84E4BF), UINT32_C(0x3E3E4A9E), UINT32_C(0x893D8DD9) } }, + { { UINT32_C(0x33D31160), UINT32_C(0x35E909EA), UINT32_C(0x57172F1E), + UINT32_C(0x50203168), UINT32_C(0x51F3D866), UINT32_C(0x2707FC44), + UINT32_C(0xD2442A5D), UINT32_C(0xEB9D2018), UINT32_C(0x5DBFE378), + UINT32_C(0x904D7209), UINT32_C(0x5F13CF77), UINT32_C(0x6DB132A3) }, + { UINT32_C(0x7A3AF54B), UINT32_C(0x9D842BA6), UINT32_C(0x5AA5B4F9), + UINT32_C(0x4E16EA19), UINT32_C(0xAF24228E), UINT32_C(0x2BBA457C), + UINT32_C(0x16F3C5FE), UINT32_C(0xCC04B3BB), UINT32_C(0x77E64944), + UINT32_C(0xBAFAC516), UINT32_C(0xF08BCEE0), UINT32_C(0x31580A34) } }, + { { UINT32_C(0x20C30ACA), UINT32_C(0xC6808DEE), UINT32_C(0xA3EA2056), + UINT32_C(0xDADD216F), UINT32_C(0x7A4A9F9D), UINT32_C(0xD331394E), + UINT32_C(0x424C4026), UINT32_C(0x9E0441AD), UINT32_C(0x0AEB5350), + UINT32_C(0xAEED102F), UINT32_C(0xD45B09DA), UINT32_C(0xC6697FBB) }, + { UINT32_C(0xDEAC1496), UINT32_C(0x52A2590E), UINT32_C(0x250B87AF), + UINT32_C(0x7142B831), UINT32_C(0x6D0784A8), UINT32_C(0xBEF2E68B), + UINT32_C(0xA5F71CEF), UINT32_C(0x5F62593A), UINT32_C(0xB5DA51A3), + UINT32_C(0x3B8F7616), UINT32_C(0xB680F5FE), UINT32_C(0xC7A6FA0D) } }, + { { UINT32_C(0x99C8227C), UINT32_C(0x36C21DE6), UINT32_C(0xC26813B1), + UINT32_C(0xBEE3E867), UINT32_C(0xBDD91549), UINT32_C(0x9B05F2E6), + UINT32_C(0xA7D1110F), UINT32_C(0x34FF2B1F), UINT32_C(0x37F67FD0), + UINT32_C(0x8E6953B9), UINT32_C(0xC3183E20), UINT32_C(0x56C7F18B) }, + { UINT32_C(0x9E2019ED), UINT32_C(0x48AF46DE), UINT32_C(0xF551BBBF), + UINT32_C(0xDEAF972E), UINT32_C(0xCC5E3EEF), UINT32_C(0x88EE38F8), + UINT32_C(0x392D6BAF), UINT32_C(0xFB8D7A44), UINT32_C(0x0127187D), + UINT32_C(0x32293BFC), UINT32_C(0xE58647CC), UINT32_C(0x7689E767) } }, + { { UINT32_C(0x52168013), UINT32_C(0x00CE901B), UINT32_C(0x837AAE71), + UINT32_C(0xC6BF8E38), UINT32_C(0x167677D8), UINT32_C(0xD6F11EFA), + UINT32_C(0x86C8E5CF), UINT32_C(0xE53BB485), UINT32_C(0xC48E74AB), + UINT32_C(0x671167CE), UINT32_C(0x8AD720A7), UINT32_C(0x8A40218C) }, + { UINT32_C(0xE7C1191A), UINT32_C(0x81E827A6), UINT32_C(0xADDB153D), + UINT32_C(0x54058F8D), UINT32_C(0x0D950FA2), UINT32_C(0x0BAF2925), + UINT32_C(0x576DDA13), UINT32_C(0xC244674D), UINT32_C(0x41BCD13B), + UINT32_C(0x8C4630AE), UINT32_C(0x5A077419), UINT32_C(0x6C2127BF) } }, + { { UINT32_C(0xA83C501F), UINT32_C(0xCF977FD5), UINT32_C(0xB6AB176F), + UINT32_C(0xD7C6DF36), UINT32_C(0x397BC6B5), UINT32_C(0x117F6331), + UINT32_C(0xF7A2D491), UINT32_C(0x72A6078B), UINT32_C(0x5242FE2E), + UINT32_C(0xE5A2AAED), UINT32_C(0xFEBDC212), UINT32_C(0x88ECFFDC) }, + { UINT32_C(0xCE33BA21), UINT32_C(0xF2DBBF50), UINT32_C(0xCEB19F07), + UINT32_C(0xE1343B76), UINT32_C(0xD2C28F71), UINT32_C(0x1F32D4C9), + UINT32_C(0x18587685), UINT32_C(0x93FC64B4), UINT32_C(0xBA1F8BD1), + UINT32_C(0x39CEEF9B), UINT32_C(0x8D6D6BB0), UINT32_C(0x99C36A78) } }, + { { UINT32_C(0x3E9561CF), UINT32_C(0x0D063817), UINT32_C(0x3D33704D), + UINT32_C(0x1D8646AA), UINT32_C(0x7A08BA33), UINT32_C(0x8C451384), + UINT32_C(0xE02D6624), UINT32_C(0x96446BD3), UINT32_C(0x2D6F4166), + UINT32_C(0x749849F0), UINT32_C(0x14268BF0), UINT32_C(0xE364DA01) }, + { UINT32_C(0x9AEBFCFD), UINT32_C(0x7CE4587E), UINT32_C(0x56234393), + UINT32_C(0xD4686064), UINT32_C(0x16DF73B2), UINT32_C(0x00231D51), + UINT32_C(0x7279C78C), UINT32_C(0xF6A969B7), UINT32_C(0x6CB4117C), + UINT32_C(0x1FF1F6B6), UINT32_C(0xD3EAB680), UINT32_C(0x30AEBC39) } }, + { { UINT32_C(0x93EF00B9), UINT32_C(0x5CC97E64), UINT32_C(0x972345AE), + UINT32_C(0xDAE13841), UINT32_C(0x4788F43C), UINT32_C(0x85839184), + UINT32_C(0xE2E6CF3E), UINT32_C(0xD0FF521E), UINT32_C(0x4B707C86), + UINT32_C(0xAED14A5B), UINT32_C(0xD2523CF7), UINT32_C(0x7EAAE4A6) }, + { UINT32_C(0x024C8AC6), UINT32_C(0x266472C5), UINT32_C(0xC0170051), + UINT32_C(0xE47E1522), UINT32_C(0x73826BAE), UINT32_C(0x7B83DA61), + UINT32_C(0xCF543F0D), UINT32_C(0xE97E19F5), UINT32_C(0x20BF38E2), + UINT32_C(0x5D5248FA), UINT32_C(0xDF56A037), UINT32_C(0x8A7C2F7D) } }, + { { UINT32_C(0x87B0526C), UINT32_C(0xB04659DD), UINT32_C(0x2307565E), + UINT32_C(0x593C604A), UINT32_C(0x7C630AB8), UINT32_C(0x49E52225), + UINT32_C(0xDCE9CD23), UINT32_C(0x24C1D0C6), UINT32_C(0x85177079), + UINT32_C(0x6FDB241C), UINT32_C(0xF250C351), UINT32_C(0x5F521D19) }, + { UINT32_C(0xA6FB61DF), UINT32_C(0xFB56134B), UINT32_C(0xD75C07ED), + UINT32_C(0xA4E70D69), UINT32_C(0x7D8825A8), UINT32_C(0xB7A82448), + UINT32_C(0xDD64BBCC), UINT32_C(0xA3AEA7D4), UINT32_C(0x8692F539), + UINT32_C(0xD53E6E6C), UINT32_C(0xF7AA4BC0), UINT32_C(0x8DDDA83B) } }, + }, + { + { { UINT32_C(0xDD93D50A), UINT32_C(0x140A0F9F), UINT32_C(0x83B7ABAC), + UINT32_C(0x4799FFDE), UINT32_C(0x04A1F742), UINT32_C(0x78FF7C23), + UINT32_C(0x195BA34E), UINT32_C(0xC0568F51), UINT32_C(0x3B7F78B4), + UINT32_C(0xE9718360), UINT32_C(0xF9EFAA53), UINT32_C(0x9CFD1FF1) }, + { UINT32_C(0xBB06022E), UINT32_C(0xE924D2C5), UINT32_C(0xFAA2AF6D), + UINT32_C(0x9987FA86), UINT32_C(0x6EE37E0F), UINT32_C(0x4B12E73F), + UINT32_C(0x5E5A1DDE), UINT32_C(0x1836FDFA), UINT32_C(0x9DCD6416), + UINT32_C(0x7F1B9225), UINT32_C(0x677544D8), UINT32_C(0xCB2C1B4D) } }, + { { UINT32_C(0x9C213D95), UINT32_C(0x0254486D), UINT32_C(0xCB2F6E94), + UINT32_C(0x68A9DB56), UINT32_C(0x000F5491), UINT32_C(0xFB5858BA), + UINT32_C(0x34009FB6), UINT32_C(0x1315BDD9), UINT32_C(0xC42BDE30), + UINT32_C(0xB18A8E0A), UINT32_C(0xF1070358), UINT32_C(0xFDCF93D1) }, + { UINT32_C(0x3022937E), UINT32_C(0xBEB1DB75), UINT32_C(0xCAC20DB4), + UINT32_C(0x9B9ECA7A), UINT32_C(0xE4122B20), UINT32_C(0x152214D4), + UINT32_C(0xAABCCC7B), UINT32_C(0xD3E673F2), UINT32_C(0xAED07571), + UINT32_C(0x94C50F64), UINT32_C(0xE66B4F17), UINT32_C(0xD767059A) } }, + { { UINT32_C(0xDCD6D14B), UINT32_C(0x40336B12), UINT32_C(0xE3B4919C), + UINT32_C(0xF6BCFF5D), UINT32_C(0x9C841F0C), UINT32_C(0xC337048D), + UINT32_C(0x1D617F50), UINT32_C(0x4CE6D025), UINT32_C(0x8117D379), + UINT32_C(0x00FEF219), UINT32_C(0xF95BE243), UINT32_C(0x18B7C4E9) }, + { UINT32_C(0x38DF08FF), UINT32_C(0x98DE119E), UINT32_C(0x8D772D20), + UINT32_C(0xDFD803BD), UINT32_C(0x0F9678BD), UINT32_C(0x94125B72), + UINT32_C(0x334ACE30), UINT32_C(0xFC5B57CD), UINT32_C(0xB7E86E04), + UINT32_C(0x09486527), UINT32_C(0x6E552039), UINT32_C(0xFE9F8BCC) } }, + { { UINT32_C(0xD6F5A10E), UINT32_C(0x3B75C45B), UINT32_C(0xC1C35F38), + UINT32_C(0xFD4680F4), UINT32_C(0xF8E0A113), UINT32_C(0x5450227D), + UINT32_C(0x73DDBA24), UINT32_C(0x5E69F1AE), UINT32_C(0x57F24645), + UINT32_C(0x2007B80E), UINT32_C(0x3D159741), UINT32_C(0xC63695DC) }, + { UINT32_C(0x4530F623), UINT32_C(0xCBE54D29), UINT32_C(0x2869586B), + UINT32_C(0x986AD573), UINT32_C(0x4CC39F73), UINT32_C(0xE19F7059), + UINT32_C(0x2B1B8DA9), UINT32_C(0x80F00AB3), UINT32_C(0x73F68D26), + UINT32_C(0xB765AAF9), UINT32_C(0xE993F829), UINT32_C(0xBC79A394) } }, + { { UINT32_C(0xF310D2A0), UINT32_C(0x9C441043), UINT32_C(0xDC5EB106), + UINT32_C(0x2865EE58), UINT32_C(0x9CB8065C), UINT32_C(0x71A95922), + UINT32_C(0xA052AF0F), UINT32_C(0x8EB3A733), UINT32_C(0xB09D716E), + UINT32_C(0x56009F42), UINT32_C(0xABCBE6AD), UINT32_C(0xA7F923C5) }, + { UINT32_C(0xFA375C01), UINT32_C(0x263B7669), UINT32_C(0x21EF27A2), + UINT32_C(0x641C47E5), UINT32_C(0xB08FFD25), UINT32_C(0xA89B474E), + UINT32_C(0xF0A239F3), UINT32_C(0x5BE8EC3F), UINT32_C(0x242A6C5A), + UINT32_C(0x0E79957A), UINT32_C(0x0C6C75F5), UINT32_C(0x1DFB26D0) } }, + { { UINT32_C(0x9DFBF22A), UINT32_C(0x2FD97B9B), UINT32_C(0x5643532D), + UINT32_C(0xDEC16CC8), UINT32_C(0x60FEE7C3), UINT32_C(0xDF0E6E39), + UINT32_C(0x545860C8), UINT32_C(0xD09AD7B6), UINT32_C(0x73FC3B7C), + UINT32_C(0xCC16E984), UINT32_C(0x0D4E1555), UINT32_C(0x6CE734C1) }, + { UINT32_C(0x4B5F6032), UINT32_C(0xC6EFE68B), UINT32_C(0x14F54073), + UINT32_C(0x3A64F34C), UINT32_C(0xAC44DC95), UINT32_C(0x25DA689C), + UINT32_C(0x5358AD8A), UINT32_C(0x990C477E), UINT32_C(0xF36DA7DE), + UINT32_C(0x00E958A5), UINT32_C(0xC9B6F161), UINT32_C(0x902B7360) } }, + { { UINT32_C(0x9347B90A), UINT32_C(0x454AB42C), UINT32_C(0xA698B02B), + UINT32_C(0xCAEBE64A), UINT32_C(0xFB86FA40), UINT32_C(0x119CDC69), + UINT32_C(0xC3109281), UINT32_C(0x2E5CB7AD), UINT32_C(0xCD0C3D00), + UINT32_C(0x67BB1EC5), UINT32_C(0x83F25BBF), UINT32_C(0x5D430BC7) }, + { UINT32_C(0x5CDE0ABB), UINT32_C(0x69FD84A8), UINT32_C(0x9816B688), + UINT32_C(0x69DA263E), UINT32_C(0x0E53CBB8), UINT32_C(0xE52D93DF), + UINT32_C(0xADD2D5A7), UINT32_C(0x42CF6F25), UINT32_C(0xC87CA88F), + UINT32_C(0x227BA59D), UINT32_C(0xDA738554), UINT32_C(0x7A1CA876) } }, + { { UINT32_C(0x1CAC82C4), UINT32_C(0x3FA5C105), UINT32_C(0x8A78C9BE), + UINT32_C(0x23C76087), UINT32_C(0x1C5CFA42), UINT32_C(0xE98CDAD6), + UINT32_C(0x0A6C0421), UINT32_C(0x09C30252), UINT32_C(0x42FC61B9), + UINT32_C(0x149BAC7C), UINT32_C(0x3004A3E2), UINT32_C(0x3A1C22AC) }, + { UINT32_C(0x202C7FED), UINT32_C(0xDE6B0D6E), UINT32_C(0xE7E63052), + UINT32_C(0xB2457377), UINT32_C(0x3706B3EF), UINT32_C(0x31725FD4), + UINT32_C(0x2B1AFDBF), UINT32_C(0xE16A347D), UINT32_C(0x8C29CF66), + UINT32_C(0xBE4850C4), UINT32_C(0x2939F23C), UINT32_C(0x8F51CC4D) } }, + { { UINT32_C(0x219AE6C1), UINT32_C(0x169E025B), UINT32_C(0x116E1CA1), + UINT32_C(0x55FF526F), UINT32_C(0xB191F55D), UINT32_C(0x01B810A3), + UINT32_C(0x29588A69), UINT32_C(0x2D981272), UINT32_C(0x48B92199), + UINT32_C(0x53C93770), UINT32_C(0x8A85236F), UINT32_C(0x8C7DD84E) }, + { UINT32_C(0xCAACF958), UINT32_C(0x293D48B6), UINT32_C(0x43572B30), + UINT32_C(0x1F084ACB), UINT32_C(0xFAD91F28), UINT32_C(0x628BFA2D), + UINT32_C(0x829386AF), UINT32_C(0x8D627B11), UINT32_C(0xD44A77BE), + UINT32_C(0x3EC1DD00), UINT32_C(0x649AC7F0), UINT32_C(0x8D3B0D08) } }, + { { UINT32_C(0x177513BF), UINT32_C(0x00A93DAA), UINT32_C(0x42AD79E1), + UINT32_C(0x2EF0B96F), UINT32_C(0xA07129D9), UINT32_C(0x81F5AAF1), + UINT32_C(0x923F2449), UINT32_C(0xFC04B7EF), UINT32_C(0x60CDB1B7), + UINT32_C(0x855DA795), UINT32_C(0xAD5D61D4), UINT32_C(0xB1EB5DAB) }, + { UINT32_C(0x353FD028), UINT32_C(0xD2CEF1AE), UINT32_C(0x9EE94847), + UINT32_C(0xC21D5439), UINT32_C(0x0380C1A8), UINT32_C(0x9ED552BB), + UINT32_C(0x2BAC328F), UINT32_C(0xB156FE7A), UINT32_C(0x7213C6A4), + UINT32_C(0xBB7E0196), UINT32_C(0x1701ED5B), UINT32_C(0x36002A33) } }, + { { UINT32_C(0xDDC9EF4D), UINT32_C(0x20B1632A), UINT32_C(0x272D082B), + UINT32_C(0x2A35FF4C), UINT32_C(0xF6CC9BD3), UINT32_C(0x30D39923), + UINT32_C(0xE65C9D08), UINT32_C(0x6D879BC2), UINT32_C(0x6FA9983C), + UINT32_C(0xCE8274E1), UINT32_C(0x0EB7424F), UINT32_C(0x652371E8) }, + { UINT32_C(0xC5C35282), UINT32_C(0x32B77503), UINT32_C(0xC885A931), + UINT32_C(0xD7306333), UINT32_C(0x72955AA8), UINT32_C(0x8A16D719), + UINT32_C(0x7D51F882), UINT32_C(0x5548F163), UINT32_C(0xBABA59EF), + UINT32_C(0xB311DC66), UINT32_C(0x0DB8F627), UINT32_C(0x773D5448) } }, + { { UINT32_C(0x7A62EB3B), UINT32_C(0x59B1B134), UINT32_C(0xCCEEFB34), + UINT32_C(0x0F8CE157), UINT32_C(0xA798CB2B), UINT32_C(0x3FE842A8), + UINT32_C(0x0BF4161D), UINT32_C(0xD01BC626), UINT32_C(0x4D016FDB), + UINT32_C(0x55EF6E55), UINT32_C(0xB242B201), UINT32_C(0xCB561503) }, + { UINT32_C(0xAF4199C1), UINT32_C(0x076EBC73), UINT32_C(0x697244F7), + UINT32_C(0x39DEDCBB), UINT32_C(0x040162BC), UINT32_C(0x9D184733), + UINT32_C(0x7F6B5FA6), UINT32_C(0x902992C1), UINT32_C(0xBB4952B5), + UINT32_C(0xAD1DE754), UINT32_C(0xA121F6C8), UINT32_C(0x7ACF1B93) } }, + { { UINT32_C(0x325C9B9A), UINT32_C(0x7A56867C), UINT32_C(0xF3DC3D6A), + UINT32_C(0x1A143999), UINT32_C(0x03F5BCB8), UINT32_C(0xCE109590), + UINT32_C(0xD6EEE5B7), UINT32_C(0x034E9035), UINT32_C(0x495DF1BC), + UINT32_C(0x2AFA81C8), UINT32_C(0x08924D02), UINT32_C(0x5EAB52DC) }, + { UINT32_C(0xAA181904), UINT32_C(0xEE6AA014), UINT32_C(0x310AD621), + UINT32_C(0xE62DEF09), UINT32_C(0xC7538A03), UINT32_C(0x6C9792FC), + UINT32_C(0x3E41D789), UINT32_C(0xA89D3E88), UINT32_C(0x9F94AE83), + UINT32_C(0xD60FA11C), UINT32_C(0xE0D6234A), UINT32_C(0x5E16A8C2) } }, + { { UINT32_C(0xA9242F3B), UINT32_C(0x87EC053D), UINT32_C(0xF0E03545), + UINT32_C(0x99544637), UINT32_C(0x6B7019E9), UINT32_C(0xEA0633FF), + UINT32_C(0x68DDDB5B), UINT32_C(0x8CB8AE07), UINT32_C(0x1A811AC7), + UINT32_C(0x892E7C84), UINT32_C(0x73664249), UINT32_C(0xC7EF19EB) }, + { UINT32_C(0xCD1489E3), UINT32_C(0xD1B5819A), UINT32_C(0xDE45D24A), + UINT32_C(0xF9C80FB0), UINT32_C(0x83BB7491), UINT32_C(0x045C21A6), + UINT32_C(0x73F7A47D), UINT32_C(0xA65325BE), UINT32_C(0x9C394F0C), + UINT32_C(0x08D09F0E), UINT32_C(0x268D4F08), UINT32_C(0xE7FB21C6) } }, + { { UINT32_C(0x6CA95C18), UINT32_C(0xC4CCAB95), UINT32_C(0xBC42E040), + UINT32_C(0x563FFD56), UINT32_C(0xE701C604), UINT32_C(0xFA3C64D8), + UINT32_C(0xB0ABAFEE), UINT32_C(0xC88D4426), UINT32_C(0x8542E4C3), + UINT32_C(0x1A353E5E), UINT32_C(0xED726186), UINT32_C(0x9A2D8B7C) }, + { UINT32_C(0x42D097FA), UINT32_C(0xD61CE190), UINT32_C(0x799A748B), + UINT32_C(0x6A63E280), UINT32_C(0x3225486B), UINT32_C(0x0F48D063), + UINT32_C(0x42A3C443), UINT32_C(0x848F8FE1), UINT32_C(0x8493CEF4), + UINT32_C(0x2CCDE250), UINT32_C(0x45E77E7C), UINT32_C(0x5450A508) } }, + { { UINT32_C(0x03112816), UINT32_C(0xD0F4E248), UINT32_C(0xCCBE9E16), + UINT32_C(0xFCAD9DDB), UINT32_C(0x5AE01EA0), UINT32_C(0x177999BF), + UINT32_C(0xCE832DCE), UINT32_C(0xD20C78B9), UINT32_C(0x50C8C646), + UINT32_C(0x3CC694FB), UINT32_C(0xC93D4887), UINT32_C(0x24D75968) }, + { UINT32_C(0x87BC08AF), UINT32_C(0x9F06366A), UINT32_C(0x7FD0DF2A), + UINT32_C(0x59FAB50E), UINT32_C(0x6C4CC234), UINT32_C(0x5FFCC7F7), + UINT32_C(0x65F52D86), UINT32_C(0x87198DD7), UINT32_C(0xA855DF04), + UINT32_C(0x5B9C94B0), UINT32_C(0x8A067AD7), UINT32_C(0xD8BA6C73) } }, + }, + { + { { UINT32_C(0x1C4C9D90), UINT32_C(0x9E9AF315), UINT32_C(0xD12E0A89), + UINT32_C(0x8665C5A9), UINT32_C(0x58286493), UINT32_C(0x204ABD92), + UINT32_C(0xB2E09205), UINT32_C(0x79959889), UINT32_C(0xFE56B101), + UINT32_C(0x0C727A3D), UINT32_C(0x8B657F26), UINT32_C(0xF366244C) }, + { UINT32_C(0xCCA65BE2), UINT32_C(0xDE35D954), UINT32_C(0xB0FD41CE), + UINT32_C(0x52EE1230), UINT32_C(0x36019FEE), UINT32_C(0xFA03261F), + UINT32_C(0x66511D8F), UINT32_C(0xAFDA42D9), UINT32_C(0x821148B9), + UINT32_C(0xF63211DD), UINT32_C(0x6F13A3E1), UINT32_C(0x7B56AF7E) } }, + { { UINT32_C(0x5913E184), UINT32_C(0x47FE4799), UINT32_C(0x82145900), + UINT32_C(0x5BBE584C), UINT32_C(0x9A867173), UINT32_C(0xB76CFA8B), + UINT32_C(0x514BF471), UINT32_C(0x9BC87BF0), UINT32_C(0x71DCF1FC), + UINT32_C(0x37392DCE), UINT32_C(0x3AD1EFA8), UINT32_C(0xEC3EFAE0) }, + { UINT32_C(0x14876451), UINT32_C(0xBBEA5A34), UINT32_C(0x6217090F), + UINT32_C(0x96E5F543), UINT32_C(0x9B1665A9), UINT32_C(0x5B3D4ECD), + UINT32_C(0xE329DF22), UINT32_C(0xE7B0DF26), UINT32_C(0x0BAA808D), + UINT32_C(0x18FB438E), UINT32_C(0xDD516FAF), UINT32_C(0x90757EBF) } }, + { { UINT32_C(0xD5A98D68), UINT32_C(0x1E6F9A95), UINT32_C(0x849DA828), + UINT32_C(0x759EA7DF), UINT32_C(0x6E8B4198), UINT32_C(0x365D5625), + UINT32_C(0x7A4A53F9), UINT32_C(0xE1B9C53B), UINT32_C(0xE32B9B16), + UINT32_C(0x55DC1D50), UINT32_C(0xBB6D5701), UINT32_C(0xA4657EBB) }, + { UINT32_C(0xEACC76E2), UINT32_C(0x4C270249), UINT32_C(0x162B1CC7), + UINT32_C(0xBE49EC75), UINT32_C(0x0689902B), UINT32_C(0x19A95B61), + UINT32_C(0xA4CFC5A8), UINT32_C(0xDD5706BF), UINT32_C(0x14E5B424), + UINT32_C(0xD33BDB73), UINT32_C(0xE69EBA87), UINT32_C(0x21311BD1) } }, + { { UINT32_C(0x72A21ACC), UINT32_C(0x75BA2F9B), UINT32_C(0xA28EDB4C), + UINT32_C(0x356688D4), UINT32_C(0x610D080F), UINT32_C(0x3C339E0B), + UINT32_C(0x33A99C2F), UINT32_C(0x614AC293), UINT32_C(0xAA580AFF), + UINT32_C(0xA5E23AF2), UINT32_C(0xE1FDBA3A), UINT32_C(0xA6BCB860) }, + { UINT32_C(0xB43F9425), UINT32_C(0xAA603365), UINT32_C(0xF7EE4635), + UINT32_C(0xAE8D7126), UINT32_C(0x56330A32), UINT32_C(0xA2B25244), + UINT32_C(0x9E025AA3), UINT32_C(0xC396B5BB), UINT32_C(0xF8A0D5CF), + UINT32_C(0xABBF77FA), UINT32_C(0xEA31C83B), UINT32_C(0xB322EE30) } }, + { { UINT32_C(0x7890E234), UINT32_C(0x04881384), UINT32_C(0x672E70C6), + UINT32_C(0x387F1159), UINT32_C(0x7B307F75), UINT32_C(0x1468A614), + UINT32_C(0xED85EC96), UINT32_C(0x56335B52), UINT32_C(0xD45BCAE9), + UINT32_C(0xDA1BB60F), UINT32_C(0xF9FAEADD), UINT32_C(0x4D94F3F0) }, + { UINT32_C(0xFC78D86B), UINT32_C(0x6C6A7183), UINT32_C(0x3018DEC6), + UINT32_C(0xA425B5C7), UINT32_C(0x2D877399), UINT32_C(0xB1549C33), + UINT32_C(0x92B2BC37), UINT32_C(0x6C41C50C), UINT32_C(0x83EE0DDB), + UINT32_C(0x3A9F380C), UINT32_C(0xC4599E73), UINT32_C(0xDED5FEB6) } }, + { { UINT32_C(0x0B7F8354), UINT32_C(0x14D34C21), UINT32_C(0x9177CE45), + UINT32_C(0x1475A1CD), UINT32_C(0x9B926E4B), UINT32_C(0x9F5F764A), + UINT32_C(0x05DD21FE), UINT32_C(0x77260D1E), UINT32_C(0xC4B937F7), + UINT32_C(0x3C882480), UINT32_C(0x722372F2), UINT32_C(0xC92DCD39) }, + { UINT32_C(0xEC6F657E), UINT32_C(0xF636A1BE), UINT32_C(0x1D30DD35), + UINT32_C(0xB0E6C312), UINT32_C(0xE4654EFE), UINT32_C(0xFE4B0528), + UINT32_C(0x21D230D2), UINT32_C(0x1C4A6820), UINT32_C(0x98FA45AB), + UINT32_C(0x615D2E48), UINT32_C(0x01FDBABF), UINT32_C(0x1F35D6D8) } }, + { { UINT32_C(0x3A7B10D1), UINT32_C(0xA636EEB8), UINT32_C(0xF4A29E73), + UINT32_C(0x4E1AE352), UINT32_C(0xE6BB1EC7), UINT32_C(0x01704F5F), + UINT32_C(0x0EF020AE), UINT32_C(0x75C04F72), UINT32_C(0x5A31E6A6), + UINT32_C(0x448D8CEE), UINT32_C(0x208F994B), UINT32_C(0xE40A9C29) }, + { UINT32_C(0xFD8F9D5D), UINT32_C(0x69E09A30), UINT32_C(0x449BAB7E), + UINT32_C(0xE6A5F7EB), UINT32_C(0x2AA1768B), UINT32_C(0xF25BC18A), + UINT32_C(0x3C841234), UINT32_C(0x9449E404), UINT32_C(0x016A7BEF), + UINT32_C(0x7A3BF43E), UINT32_C(0x2A150B60), UINT32_C(0xF25803E8) } }, + { { UINT32_C(0xB215F9E0), UINT32_C(0xE44A2A57), UINT32_C(0x19066F0A), + UINT32_C(0x38B34DCE), UINT32_C(0x40BB1BFB), UINT32_C(0x8BB91DAD), + UINT32_C(0xE67735FC), UINT32_C(0x64C9F775), UINT32_C(0x88D613CD), + UINT32_C(0xDE142417), UINT32_C(0x1901D88D), UINT32_C(0xC5014FF5) }, + { UINT32_C(0xF38116B0), UINT32_C(0xA250341D), UINT32_C(0x9D6CBCB2), + UINT32_C(0xF96B9DD4), UINT32_C(0x76B3FAC2), UINT32_C(0x15EC6C72), + UINT32_C(0x8124C1E9), UINT32_C(0x88F1952F), UINT32_C(0x975BE4F5), + UINT32_C(0x6B72F8EA), UINT32_C(0x061F7530), UINT32_C(0x23D288FF) } }, + { { UINT32_C(0xAFB96CE3), UINT32_C(0xEBFE3E5F), UINT32_C(0xB1979537), + UINT32_C(0x2275EDFB), UINT32_C(0xC97BA741), UINT32_C(0xC37AB9E8), + UINT32_C(0x63D7C626), UINT32_C(0x446E4B10), UINT32_C(0xD025EB02), + UINT32_C(0xB73E2DCE), UINT32_C(0x7669EEA7), UINT32_C(0x1F952B51) }, + { UINT32_C(0x6069A424), UINT32_C(0xABDD00F6), UINT32_C(0xDC298BFB), + UINT32_C(0x1C0F9D9B), UINT32_C(0xEB757B33), UINT32_C(0x831B1FD3), + UINT32_C(0x59D60B32), UINT32_C(0xD7DBE183), UINT32_C(0x9EF094B3), + UINT32_C(0x663D1F36), UINT32_C(0x67F7F11A), UINT32_C(0x1BD5732E) } }, + { { UINT32_C(0xC75D8892), UINT32_C(0x3C7FB3F5), UINT32_C(0xBA68DA69), + UINT32_C(0x2CFF9A0C), UINT32_C(0x60EC740B), UINT32_C(0x76455E8B), + UINT32_C(0x167B88F0), UINT32_C(0x4B8D67FF), UINT32_C(0x5A4186B1), + UINT32_C(0xEDEC0C02), UINT32_C(0xBEBF35AB), UINT32_C(0x127C462D) }, + { UINT32_C(0x049430FC), UINT32_C(0x9159C67E), UINT32_C(0xE7747320), + UINT32_C(0x86B21DD2), UINT32_C(0x0CF27B89), UINT32_C(0x0E0E0152), + UINT32_C(0xCD1316B6), UINT32_C(0x705F28F5), UINT32_C(0xBEAEA8A8), + UINT32_C(0x76751691), UINT32_C(0x360C5B69), UINT32_C(0x4C73E282) } }, + { { UINT32_C(0xFD7B3D74), UINT32_C(0x46BCC0D5), UINT32_C(0x0DC4F410), + UINT32_C(0x6F13C20E), UINT32_C(0x72F11CDF), UINT32_C(0x98A1AF7D), + UINT32_C(0x7928881C), UINT32_C(0x6099FD83), UINT32_C(0x371BB94B), + UINT32_C(0x66976356), UINT32_C(0x19B945AB), UINT32_C(0x673FBA72) }, + { UINT32_C(0xAED00700), UINT32_C(0xE4D8FA6E), UINT32_C(0x5C71A9F7), + UINT32_C(0xEA2313EC), UINT32_C(0xF99D4AEA), UINT32_C(0xF9ED8268), + UINT32_C(0x42AB59C7), UINT32_C(0xADD89164), UINT32_C(0x3F3A2D45), + UINT32_C(0xB37EB26F), UINT32_C(0xA924841E), UINT32_C(0x0B39BD7A) } }, + { { UINT32_C(0xE03CDBBB), UINT32_C(0xD811EB32), UINT32_C(0x7CC3610E), + UINT32_C(0x12055F1D), UINT32_C(0xA9046E3F), UINT32_C(0x6B23A1A0), + UINT32_C(0x9DD4A749), UINT32_C(0x4D712122), UINT32_C(0xB1BF0AC3), + UINT32_C(0xB0C2ACA1), UINT32_C(0xC1B0432F), UINT32_C(0x71EFF575) }, + { UINT32_C(0x2B44E285), UINT32_C(0x6CD81492), UINT32_C(0xD87E8D20), + UINT32_C(0x3088BD9C), UINT32_C(0xF567E8FA), UINT32_C(0xACE218E5), + UINT32_C(0xCF90CBBB), UINT32_C(0xB3FA0424), UINT32_C(0x770734D3), + UINT32_C(0xADBDA751), UINT32_C(0x5AD6569A), UINT32_C(0xBCD78BAD) } }, + { { UINT32_C(0x7F39641F), UINT32_C(0xCADB31FA), UINT32_C(0x825E5562), + UINT32_C(0x3EF3E295), UINT32_C(0xF4094C64), UINT32_C(0x4893C633), + UINT32_C(0x8ADDF432), UINT32_C(0x52F685F1), UINT32_C(0x7FDC9373), + UINT32_C(0x9FD887AB), UINT32_C(0xE8680E8B), UINT32_C(0x47A9ADA0) }, + { UINT32_C(0xF0CD44F6), UINT32_C(0x579313B7), UINT32_C(0xE188AE2E), + UINT32_C(0xAC4B8668), UINT32_C(0x8FB145BD), UINT32_C(0x648F4369), + UINT32_C(0x74629E31), UINT32_C(0xE0460AB3), UINT32_C(0x8FF2B05F), + UINT32_C(0xC25F2875), UINT32_C(0x2D31EAEA), UINT32_C(0x4720C2B6) } }, + { { UINT32_C(0x13D48F80), UINT32_C(0x4603CDF4), UINT32_C(0xA49725DA), + UINT32_C(0x9ADB50E2), UINT32_C(0x65DF63F0), UINT32_C(0x8CD33050), + UINT32_C(0xCD643003), UINT32_C(0x58D8B3BB), UINT32_C(0xB739826B), + UINT32_C(0x170A4F4A), UINT32_C(0x1EAD0E17), UINT32_C(0x857772B5) }, + { UINT32_C(0xE65320F1), UINT32_C(0x01B78152), UINT32_C(0xB7503FC0), + UINT32_C(0xA6B4D845), UINT32_C(0x3DD50798), UINT32_C(0x0F5089B9), + UINT32_C(0x5690B6BE), UINT32_C(0x488F200F), UINT32_C(0x9E096F36), + UINT32_C(0x220B4ADF), UINT32_C(0x8CE5BC7C), UINT32_C(0x474D7C9F) } }, + { { UINT32_C(0xC745F8C9), UINT32_C(0xFED8C058), UINT32_C(0x291262D1), + UINT32_C(0xB683179E), UINT32_C(0xD15EE88C), UINT32_C(0x26ABD367), + UINT32_C(0xF60A6249), UINT32_C(0x29E8EED3), UINT32_C(0x1E02D6E1), + UINT32_C(0xED6008BB), UINT32_C(0xA6B12B8D), UINT32_C(0xD82ECF4C) }, + { UINT32_C(0xAAE4FA22), UINT32_C(0x9929D021), UINT32_C(0x336A1AB3), + UINT32_C(0xBE4DEF14), UINT32_C(0x8C80A312), UINT32_C(0x529B7E09), + UINT32_C(0xEE0EB0CE), UINT32_C(0xB059188D), UINT32_C(0x16DEAB7F), + UINT32_C(0x1E42979A), UINT32_C(0x84EE9477), UINT32_C(0x24110349) } }, + { { UINT32_C(0x2BE579CC), UINT32_C(0xD6524685), UINT32_C(0xC456FDED), + UINT32_C(0x849316F1), UINT32_C(0x2D1B67DA), UINT32_C(0xC51B7DA4), + UINT32_C(0x41BC6D6A), UINT32_C(0xC25B539E), UINT32_C(0xA9BF8BED), + UINT32_C(0xE3B7CCA3), UINT32_C(0x045C15E4), UINT32_C(0x813EF18C) }, + { UINT32_C(0x697982C4), UINT32_C(0x5F3789A1), UINT32_C(0x8C435566), + UINT32_C(0x4C125369), UINT32_C(0xDC0A92C6), UINT32_C(0x00A7AE6E), + UINT32_C(0x2F64A053), UINT32_C(0x1ABC929B), UINT32_C(0x38666B44), + UINT32_C(0xF4925C4C), UINT32_C(0x0F3DE7F6), UINT32_C(0xA81044B0) } }, + }, + { + { { UINT32_C(0xC2EC3731), UINT32_C(0xBCC88422), UINT32_C(0x10DC4EC2), + UINT32_C(0x78A3E4D4), UINT32_C(0x2571D6B1), UINT32_C(0x745DA1EF), + UINT32_C(0x739A956E), UINT32_C(0xF01C2921), UINT32_C(0xE4BFFC16), + UINT32_C(0xEFFD8065), UINT32_C(0xF36FE72C), UINT32_C(0x6EFE62A1) }, + { UINT32_C(0x0F4629A4), UINT32_C(0xF49E90D2), UINT32_C(0x8CE646F4), + UINT32_C(0xADD1DCC7), UINT32_C(0xB7240D91), UINT32_C(0xCB78B583), + UINT32_C(0x03F8387F), UINT32_C(0x2E1A7C3C), UINT32_C(0x3200F2D9), + UINT32_C(0x16566C22), UINT32_C(0xAAF80A84), UINT32_C(0x2361B14B) } }, + { { UINT32_C(0xB5733309), UINT32_C(0xDB1CFFD2), UINT32_C(0x0F9DD939), + UINT32_C(0x24BC250B), UINT32_C(0xA3C1DB85), UINT32_C(0xA4181E5A), + UINT32_C(0xAC55D391), UINT32_C(0xE5183E51), UINT32_C(0xEFD270D0), + UINT32_C(0x2793D5EF), UINT32_C(0xC0631546), UINT32_C(0x7D56F63D) }, + { UINT32_C(0x0C1EE59D), UINT32_C(0xECB40A59), UINT32_C(0xBB5BFA2C), + UINT32_C(0xE613A9E4), UINT32_C(0x6C5830F9), UINT32_C(0xA89B14AB), + UINT32_C(0xA03F201E), UINT32_C(0x4DC477DC), UINT32_C(0xC88C54F6), + UINT32_C(0x5604F5DA), UINT32_C(0x2ACFC66E), UINT32_C(0xD49264DC) } }, + { { UINT32_C(0x1C4DFA95), UINT32_C(0x283DD7F0), UINT32_C(0x62C0B160), + UINT32_C(0xB898CC2C), UINT32_C(0x870282AA), UINT32_C(0xBA08C095), + UINT32_C(0xF4E36324), UINT32_C(0xB02B00D8), UINT32_C(0x604CECF2), + UINT32_C(0x53AADDC0), UINT32_C(0x84DDD24E), UINT32_C(0xF1F927D3) }, + { UINT32_C(0xE2ABC9E1), UINT32_C(0x34BC00A0), UINT32_C(0x60289F88), + UINT32_C(0x2DA1227D), UINT32_C(0xCEF68F74), UINT32_C(0x5228EAAA), + UINT32_C(0x3C029351), UINT32_C(0x40A790D2), UINT32_C(0x8442E3B7), + UINT32_C(0xE0E9AF5C), UINT32_C(0xA9F141E0), UINT32_C(0xA3214142) } }, + { { UINT32_C(0xF9A58E3D), UINT32_C(0x72F4949E), UINT32_C(0xA48660A6), + UINT32_C(0x738C700B), UINT32_C(0x092A5805), UINT32_C(0x71B04726), + UINT32_C(0x0F5CDB72), UINT32_C(0xAD5C3C11), UINT32_C(0x554BFC49), + UINT32_C(0xD4951F9E), UINT32_C(0x6131EBE7), UINT32_C(0xEE594EE5) }, + { UINT32_C(0x3C1AF0A9), UINT32_C(0x37DA59F3), UINT32_C(0xCB040A63), + UINT32_C(0xD7AFC73B), UINT32_C(0x4D89FA65), UINT32_C(0xD020962A), + UINT32_C(0x71D824F5), UINT32_C(0x2610C61E), UINT32_C(0x3C050E31), + UINT32_C(0x9C917DA7), UINT32_C(0xE6E7EBFB), UINT32_C(0x3840F92F) } }, + { { UINT32_C(0x8D8B8CED), UINT32_C(0x50FBD7FE), UINT32_C(0x47D240AE), + UINT32_C(0xC7282F75), UINT32_C(0x1930FF73), UINT32_C(0x79646A47), + UINT32_C(0x2F7F5A77), UINT32_C(0x2E0BAC4E), UINT32_C(0x26127E0B), + UINT32_C(0x0EE44FA5), UINT32_C(0x82BC2AA7), UINT32_C(0x678881B7) }, + { UINT32_C(0x67F5F497), UINT32_C(0xB9E5D384), UINT32_C(0xA9B7106B), + UINT32_C(0x8F94A7D4), UINT32_C(0x9D329F68), UINT32_C(0xBF7E0B07), + UINT32_C(0x45D192FB), UINT32_C(0x169B93EA), UINT32_C(0x20DBE8C0), + UINT32_C(0xCCAA9467), UINT32_C(0x938F9574), UINT32_C(0xD4513A50) } }, + { { UINT32_C(0x054CB874), UINT32_C(0x841C96B4), UINT32_C(0xA3C26834), + UINT32_C(0xD75B1AF1), UINT32_C(0xEE6575F0), UINT32_C(0x7237169D), + UINT32_C(0x0322AADC), UINT32_C(0xD71FC7E5), UINT32_C(0x949E3A8E), + UINT32_C(0xD7A23F1E), UINT32_C(0xDD31D8C7), UINT32_C(0x77E2D102) }, + { UINT32_C(0xD10F5A1F), UINT32_C(0x5AD69D09), UINT32_C(0xB99D9A0B), + UINT32_C(0x526C9CB4), UINT32_C(0x972B237D), UINT32_C(0x521BB10B), + UINT32_C(0xA326F342), UINT32_C(0x1E4CD42F), UINT32_C(0xF0F126CA), + UINT32_C(0x5BB6DB27), UINT32_C(0xA4A515AD), UINT32_C(0x587AF22C) } }, + { { UINT32_C(0xB12E542F), UINT32_C(0x1123A531), UINT32_C(0xB9EB2811), + UINT32_C(0x1D01A64D), UINT32_C(0xF2D70F87), UINT32_C(0xA4A3515B), + UINT32_C(0xB4BD0270), UINT32_C(0xFA205234), UINT32_C(0x5EDA26B9), + UINT32_C(0x74B81830), UINT32_C(0x56578E75), UINT32_C(0x9305D6E6) }, + { UINT32_C(0x9F11BE19), UINT32_C(0xF38E69DE), UINT32_C(0x44DBE89F), + UINT32_C(0x1E2A5C23), UINT32_C(0xFD286654), UINT32_C(0x1077E7BC), + UINT32_C(0x0FCA4741), UINT32_C(0xD3669894), UINT32_C(0x278F8497), + UINT32_C(0x893BF904), UINT32_C(0xEB3E14F4), UINT32_C(0xD6AC5F83) } }, + { { UINT32_C(0x488F5F74), UINT32_C(0x327B9DAB), UINT32_C(0xCAB7364F), + UINT32_C(0x2B44F4B8), UINT32_C(0x19B6C6BD), UINT32_C(0xB4A6D22D), + UINT32_C(0xFC77CD3E), UINT32_C(0xA087E613), UINT32_C(0xB0B49BC7), + UINT32_C(0x4558E327), UINT32_C(0xCD835D35), UINT32_C(0x188805BE) }, + { UINT32_C(0xC1DC1007), UINT32_C(0x592F293C), UINT32_C(0x6AF02B44), + UINT32_C(0xFAEE660F), UINT32_C(0x904035F2), UINT32_C(0x5BFBB3BF), + UINT32_C(0x79C07E70), UINT32_C(0xD7C9AE60), UINT32_C(0x234896C2), + UINT32_C(0xC5287DD4), UINT32_C(0xCB0E4121), UINT32_C(0xC4CE4523) } }, + { { UINT32_C(0x58344831), UINT32_C(0x3626B406), UINT32_C(0x8E55C984), + UINT32_C(0xABCCE356), UINT32_C(0x77241602), UINT32_C(0x495CC81C), + UINT32_C(0x6D70DF8F), UINT32_C(0x4FB79676), UINT32_C(0x5B071DCA), + UINT32_C(0x6354B37C), UINT32_C(0x8C0FC0AD), UINT32_C(0x2CAD80A4) }, + { UINT32_C(0xF68739B4), UINT32_C(0x18AADD51), UINT32_C(0x47F09C6C), + UINT32_C(0x1BFBB177), UINT32_C(0xA8FD51C4), UINT32_C(0x9355EA19), + UINT32_C(0xEE58DB7B), UINT32_C(0x3D512A84), UINT32_C(0xE9237640), + UINT32_C(0x70842AFD), UINT32_C(0xACAF858D), UINT32_C(0x36F515CA) } }, + { { UINT32_C(0x7E768B23), UINT32_C(0x3DDEC7C4), UINT32_C(0x036D43ED), + UINT32_C(0x97E13C53), UINT32_C(0x3A39AB5F), UINT32_C(0x871E5925), + UINT32_C(0x07E68E2B), UINT32_C(0x9AF292DE), UINT32_C(0x4A40112E), + UINT32_C(0x41158349), UINT32_C(0x3D4D97E6), UINT32_C(0xCDBB46AF) }, + { UINT32_C(0x3C0EBE40), UINT32_C(0x2F891293), UINT32_C(0x3EBAD1E5), + UINT32_C(0x696C7EEE), UINT32_C(0x33B50D99), UINT32_C(0x8A5F3B69), + UINT32_C(0x7ED47DDE), UINT32_C(0xB7BC4840), UINT32_C(0x1E6706D8), + UINT32_C(0x3A6F8E6C), UINT32_C(0x3D84BB8F), UINT32_C(0x6A147943) } }, + { { UINT32_C(0x603AE8D1), UINT32_C(0xEC3A9C78), UINT32_C(0x228C29E5), + UINT32_C(0xBFE07E37), UINT32_C(0x396DBC2B), UINT32_C(0xB0385C5B), + UINT32_C(0xDF85F41F), UINT32_C(0x7C14FE83), UINT32_C(0xADFD463E), + UINT32_C(0xE2E64676), UINT32_C(0x8BF9F23D), UINT32_C(0x5BEF10AA) }, + { UINT32_C(0xF6BAB6DA), UINT32_C(0xFA83EA0D), UINT32_C(0x966BF7E3), + UINT32_C(0xCD0C8BA5), UINT32_C(0x98501C2E), UINT32_C(0xD62216B4), + UINT32_C(0xC3E69F2D), UINT32_C(0xB7F298A4), UINT32_C(0x9C8740F4), + UINT32_C(0x42CEF13B), UINT32_C(0x0DD64307), UINT32_C(0xBB317E52) } }, + { { UINT32_C(0x3FFEE775), UINT32_C(0x22B6245C), UINT32_C(0xB37CE7AA), + UINT32_C(0x5C3F60BE), UINT32_C(0xE1FEC0DF), UINT32_C(0xDE195D40), + UINT32_C(0xA0A82074), UINT32_C(0x3BFAFBC5), UINT32_C(0xC72CA86A), + UINT32_C(0xC36EC86A), UINT32_C(0x13FD43EA), UINT32_C(0x56062851) }, + { UINT32_C(0x8E0B03A4), UINT32_C(0x8686BE80), UINT32_C(0xD540D440), + UINT32_C(0xC3BD1F93), UINT32_C(0xBF96CEC5), UINT32_C(0x13E4EBC0), + UINT32_C(0x9190C844), UINT32_C(0xE8E23984), UINT32_C(0x00844802), + UINT32_C(0x183593A6), UINT32_C(0x4D206878), UINT32_C(0x46716879) } }, + { { UINT32_C(0xB6F63D19), UINT32_C(0x358F394D), UINT32_C(0x6B052194), + UINT32_C(0xA75D4849), UINT32_C(0x5C8D7975), UINT32_C(0x58403590), + UINT32_C(0x6CBFBD77), UINT32_C(0x86DC9B6B), UINT32_C(0x647A51E5), + UINT32_C(0x2DB04D77), UINT32_C(0xF8950D88), UINT32_C(0x5E9A5B02) }, + { UINT32_C(0x017168B0), UINT32_C(0xCE69A7E5), UINT32_C(0xC4843AD3), + UINT32_C(0x94630FAC), UINT32_C(0x1EFC44FF), UINT32_C(0xB3B9D736), + UINT32_C(0xB14D7F93), UINT32_C(0xE729E9B6), UINT32_C(0xE0ED0ABC), + UINT32_C(0xA071FC60), UINT32_C(0x8C8D9B83), UINT32_C(0xFC1A9971) } }, + { { UINT32_C(0xD138E975), UINT32_C(0x49686031), UINT32_C(0x5A8EF0D1), + UINT32_C(0x64864038), UINT32_C(0xE7F7DE49), UINT32_C(0x32679713), + UINT32_C(0x29D1CD1D), UINT32_C(0x59132349), UINT32_C(0x20BE9ED2), + UINT32_C(0x849AA23A), UINT32_C(0x284B3F33), UINT32_C(0x15D303E1) }, + { UINT32_C(0xB63F9FE9), UINT32_C(0x37309475), UINT32_C(0x45B7256A), + UINT32_C(0x327BAC8B), UINT32_C(0xD17FC5D3), UINT32_C(0x291CD227), + UINT32_C(0xA973EDF1), UINT32_C(0x8291D8CD), UINT32_C(0x437ABA09), + UINT32_C(0xF3843562), UINT32_C(0x271D0785), UINT32_C(0x33FFB704) } }, + { { UINT32_C(0x47E11E5E), UINT32_C(0x5248D6E4), UINT32_C(0x269C7ED3), + UINT32_C(0x0F66FC3C), UINT32_C(0x903E346E), UINT32_C(0x18C0D2B9), + UINT32_C(0x4BEAE1B8), UINT32_C(0xD81D9D97), UINT32_C(0xFC30FDF3), + UINT32_C(0x610326B0), UINT32_C(0x19A7DFCD), UINT32_C(0x2B136870) }, + { UINT32_C(0xB9527676), UINT32_C(0xEC75F70A), UINT32_C(0x29A3D897), + UINT32_C(0x90829F51), UINT32_C(0x97980302), UINT32_C(0x92FE1809), + UINT32_C(0x68474991), UINT32_C(0xA3F2498E), UINT32_C(0x0F22BBAD), + UINT32_C(0x6A66307B), UINT32_C(0x20378557), UINT32_C(0x32014B91) } }, + { { UINT32_C(0x3CD98610), UINT32_C(0x72CD7D55), UINT32_C(0x74504ADF), + UINT32_C(0xC3D560B0), UINT32_C(0xCEBB5D5D), UINT32_C(0x23F0A982), + UINT32_C(0xB839DDB8), UINT32_C(0x1431C15B), UINT32_C(0xCEB72207), + UINT32_C(0x7E207CD8), UINT32_C(0xE7EFB28D), UINT32_C(0x28E0A848) }, + { UINT32_C(0x1BD96F6E), UINT32_C(0xD22561FE), UINT32_C(0x62A8236B), + UINT32_C(0x04812C18), UINT32_C(0x975491FA), UINT32_C(0xA0BF2334), + UINT32_C(0x435DF87F), UINT32_C(0x294F42A6), UINT32_C(0xA5D6F4F6), + UINT32_C(0x2772B783), UINT32_C(0x2724F853), UINT32_C(0x348F92ED) } }, + }, + { + { { UINT32_C(0x1A42E5E7), UINT32_C(0xC20FB911), UINT32_C(0x81D12863), + UINT32_C(0x075A678B), UINT32_C(0x5CC0AA89), UINT32_C(0x12BCBC6A), + UINT32_C(0x4FB9F01E), UINT32_C(0x5279C6AB), UINT32_C(0x11AE1B89), + UINT32_C(0xBC8E1789), UINT32_C(0xC290003C), UINT32_C(0xAE74A706) }, + { UINT32_C(0x79DF3F45), UINT32_C(0x9949D6EC), UINT32_C(0x96C8D37F), + UINT32_C(0xBA18E262), UINT32_C(0xDD2275BF), UINT32_C(0x68DE6EE2), + UINT32_C(0xC419F1D5), UINT32_C(0xA9E4FFF8), UINT32_C(0xA52B5A40), + UINT32_C(0xBC759CA4), UINT32_C(0x63B0996D), UINT32_C(0xFF18CBD8) } }, + { { UINT32_C(0xD7DD47E5), UINT32_C(0x73C57FDE), UINT32_C(0xD49A7F5D), + UINT32_C(0xB0FE5479), UINT32_C(0xCFB9821E), UINT32_C(0xD25C71F1), + UINT32_C(0xCF6A1D68), UINT32_C(0x9427E209), UINT32_C(0xACD24E64), + UINT32_C(0xBF3C3916), UINT32_C(0xBDA7B8B5), UINT32_C(0x7E9F5583) }, + { UINT32_C(0xCF971E11), UINT32_C(0xE7C5F7C8), UINT32_C(0x3C7F035E), + UINT32_C(0xEC16D5D7), UINT32_C(0xE66B277C), UINT32_C(0x818DC472), + UINT32_C(0xB2816F1E), UINT32_C(0x4413FD47), UINT32_C(0x48383C6D), + UINT32_C(0x40F262AF), UINT32_C(0x4F190537), UINT32_C(0xFB057584) } }, + { { UINT32_C(0x08962F6B), UINT32_C(0x487EDC07), UINT32_C(0x190A7E55), + UINT32_C(0x6002F1E7), UINT32_C(0x10FDBA0C), UINT32_C(0x7FC62BEA), + UINT32_C(0x2C3DBF33), UINT32_C(0xC836BBC5), UINT32_C(0x4F7D2A46), + UINT32_C(0x4FDFB5C3), UINT32_C(0xDCA0DF71), UINT32_C(0x824654DE) }, + { UINT32_C(0x0C23902B), UINT32_C(0x30A07676), UINT32_C(0x77FBBF37), + UINT32_C(0x7F1EBB93), UINT32_C(0xFACC13DB), UINT32_C(0xD307D49D), + UINT32_C(0xAE1A261A), UINT32_C(0x148D673A), UINT32_C(0x52D98650), + UINT32_C(0xE008F95B), UINT32_C(0x9F558FDE), UINT32_C(0xC7614440) } }, + { { UINT32_C(0x9CB16650), UINT32_C(0x17CD6AF6), UINT32_C(0x69F4EEBE), + UINT32_C(0x86CC27C1), UINT32_C(0x78822432), UINT32_C(0x7E495B1D), + UINT32_C(0x1B974525), UINT32_C(0xFED338E3), UINT32_C(0x86F3CE21), + UINT32_C(0x527743D3), UINT32_C(0xB515C896), UINT32_C(0x87948AD3) }, + { UINT32_C(0xB17F2FB8), UINT32_C(0x9FDE7039), UINT32_C(0xD9B89D96), + UINT32_C(0xA2FA9A5F), UINT32_C(0x36FF74DC), UINT32_C(0x5D46600B), + UINT32_C(0x8302C3C9), UINT32_C(0x8EA74B04), UINT32_C(0xF744B5EB), + UINT32_C(0xD560F570), UINT32_C(0xFE762402), UINT32_C(0xC921023B) } }, + { { UINT32_C(0xFFF4C8ED), UINT32_C(0xA35AB657), UINT32_C(0x8A5FABD7), + UINT32_C(0x017C6124), UINT32_C(0x09ACDA28), UINT32_C(0x56463025), + UINT32_C(0x14CF238A), UINT32_C(0x6038D361), UINT32_C(0xAF1B9F07), + UINT32_C(0x1428B1B6), UINT32_C(0x7482E95C), UINT32_C(0x5827FF44) }, + { UINT32_C(0x780FF362), UINT32_C(0xCB997E18), UINT32_C(0xE0BCAC1E), + UINT32_C(0x2B89D702), UINT32_C(0xA837DDC8), UINT32_C(0xC632A0B5), + UINT32_C(0x59762647), UINT32_C(0xF3EFCF1F), UINT32_C(0x38B0D60A), + UINT32_C(0xE9BA309A), UINT32_C(0x20B5FB37), UINT32_C(0x05DEABDD) } }, + { { UINT32_C(0xCB8AF047), UINT32_C(0xD44E5DBA), UINT32_C(0x943CFE82), + UINT32_C(0x15400CB4), UINT32_C(0x9DF88B67), UINT32_C(0xDBD69575), + UINT32_C(0xB2405A7D), UINT32_C(0x8299DB2B), UINT32_C(0x0B1D80CD), + UINT32_C(0x46E3BF77), UINT32_C(0xE82BA3D9), UINT32_C(0xC50CF66C) }, + { UINT32_C(0xF2F747A9), UINT32_C(0xB2910A07), UINT32_C(0x5ADC89C1), + UINT32_C(0xF6B669DB), UINT32_C(0x9052B081), UINT32_C(0x3B5EF1A0), + UINT32_C(0xB594ACE2), UINT32_C(0x0F5D5ED3), UINT32_C(0xD5F01320), + UINT32_C(0xDA30B8D5), UINT32_C(0xAAFCD58F), UINT32_C(0x0D688C5E) } }, + { { UINT32_C(0x2A161074), UINT32_C(0x5EEE3A31), UINT32_C(0xEFE2BE37), + UINT32_C(0x6BAAAE56), UINT32_C(0xE3D78698), UINT32_C(0xF9787F61), + UINT32_C(0x50630A30), UINT32_C(0xC6836B26), UINT32_C(0x1445DEF1), + UINT32_C(0x7445B85D), UINT32_C(0xD568A6A5), UINT32_C(0xD72016A2) }, + { UINT32_C(0xE355614F), UINT32_C(0x9DD6F533), UINT32_C(0x91E04588), + UINT32_C(0x637E7E5F), UINT32_C(0xB9FB1391), UINT32_C(0x42E142F3), + UINT32_C(0x41AFE5DA), UINT32_C(0x0D07C05C), UINT32_C(0x1394EDF1), + UINT32_C(0xD7CD25C8), UINT32_C(0xB99288EE), UINT32_C(0xEBE6A0FC) } }, + { { UINT32_C(0xBABBAD86), UINT32_C(0xB8E63B7B), UINT32_C(0x90D66766), + UINT32_C(0x63226A9F), UINT32_C(0x5CF26666), UINT32_C(0x26381836), + UINT32_C(0x4CADD0BF), UINT32_C(0xCCBD142D), UINT32_C(0x9AC29470), + UINT32_C(0xA070965E), UINT32_C(0x25FF23ED), UINT32_C(0x6BDCA260) }, + { UINT32_C(0x87DCA7B3), UINT32_C(0xD4E00FD4), UINT32_C(0x9E0E8734), + UINT32_C(0xA5097833), UINT32_C(0x048173A4), UINT32_C(0xF73F162E), + UINT32_C(0x9C3C2FA2), UINT32_C(0xD23F9196), UINT32_C(0xE4AC397A), + UINT32_C(0x9AB98B45), UINT32_C(0x543F2D4B), UINT32_C(0x2BAA0300) } }, + { { UINT32_C(0xC658C445), UINT32_C(0xBBBE15E7), UINT32_C(0xC28941D1), + UINT32_C(0xB8CBCB20), UINT32_C(0x027D6540), UINT32_C(0x65549BE2), + UINT32_C(0x1E8EF4F4), UINT32_C(0xEBBCA802), UINT32_C(0xD2ACA397), + UINT32_C(0x18214B4B), UINT32_C(0xE31784A3), UINT32_C(0xCBEC7DE2) }, + { UINT32_C(0x0116FDF3), UINT32_C(0x96F0533F), UINT32_C(0x5C8F5EE1), + UINT32_C(0x68911C90), UINT32_C(0xD568603A), UINT32_C(0x7DE9A3AE), + UINT32_C(0x6A3AD7B7), UINT32_C(0x3F56C52C), UINT32_C(0x670B4D0E), + UINT32_C(0x5BE9AFCA), UINT32_C(0x375DFE2F), UINT32_C(0x628BFEEE) } }, + { { UINT32_C(0xDD4ADDB3), UINT32_C(0x97DAE81B), UINT32_C(0x8704761B), + UINT32_C(0x12D2CF4E), UINT32_C(0x3247788D), UINT32_C(0x5E820B40), + UINT32_C(0x0051CA80), UINT32_C(0x82234B62), UINT32_C(0x6CB5EA74), + UINT32_C(0x0C62704D), UINT32_C(0x23941593), UINT32_C(0xDE560420) }, + { UINT32_C(0xF1B04145), UINT32_C(0xB3912A3C), UINT32_C(0xAF93688D), + UINT32_C(0xE3967CD7), UINT32_C(0x58DABB4B), UINT32_C(0x2E2DCD2F), + UINT32_C(0x0E303911), UINT32_C(0x6564836F), UINT32_C(0xECE07C5C), + UINT32_C(0x1F10F19B), UINT32_C(0xD8919126), UINT32_C(0xB47F07EE) } }, + { { UINT32_C(0xE9A2EEC9), UINT32_C(0xE3545085), UINT32_C(0x2C8E51FE), + UINT32_C(0x81866A97), UINT32_C(0x50027243), UINT32_C(0xD2BA7DB5), + UINT32_C(0x4AE87DE4), UINT32_C(0x29DAEAB5), UINT32_C(0x684F9497), + UINT32_C(0x5EF3D4B8), UINT32_C(0x9D5D6873), UINT32_C(0xE2DACE3B) }, + { UINT32_C(0xFFD29C9C), UINT32_C(0xF012C951), UINT32_C(0xADBADA14), + UINT32_C(0x48289445), UINT32_C(0x89558C49), UINT32_C(0x8751F50D), + UINT32_C(0x99E35BEE), UINT32_C(0x75511A4F), UINT32_C(0x7D59AA5F), + UINT32_C(0xEF802D6E), UINT32_C(0xA2A795E2), UINT32_C(0x14FCAD65) } }, + { { UINT32_C(0x08CB8F2C), UINT32_C(0xC8EB00E8), UINT32_C(0x2B45BD86), + UINT32_C(0x68607532), UINT32_C(0x59969713), UINT32_C(0x7A29B459), + UINT32_C(0xD684201B), UINT32_C(0x5FA15B9B), UINT32_C(0xB9E538EE), + UINT32_C(0x1A853190), UINT32_C(0xD573D043), UINT32_C(0x4150605C) }, + { UINT32_C(0xEB9FBB68), UINT32_C(0xEF011D3B), UINT32_C(0x66AE32B6), + UINT32_C(0x67279982), UINT32_C(0x445DE5EC), UINT32_C(0x861B86EA), + UINT32_C(0xA34A50E1), UINT32_C(0x62837D18), UINT32_C(0xBF5F0663), + UINT32_C(0x228C006A), UINT32_C(0x396DB36A), UINT32_C(0xE007FDE7) } }, + { { UINT32_C(0x5A916A55), UINT32_C(0xDEE4F881), UINT32_C(0xF39C82CB), + UINT32_C(0x20DC0370), UINT32_C(0x40F09821), UINT32_C(0xD9A71615), + UINT32_C(0xF7273492), UINT32_C(0xD50AD8BF), UINT32_C(0x32E7C4BF), + UINT32_C(0xA06F7D12), UINT32_C(0x4C5CEA36), UINT32_C(0xFA0F6154) }, + { UINT32_C(0x5FC49CFE), UINT32_C(0xF4FD9BED), UINT32_C(0xC9291678), + UINT32_C(0xD8CB45D1), UINT32_C(0x7B92C9F2), UINT32_C(0x94DB86CC), + UINT32_C(0x73C81169), UINT32_C(0x09CA5F38), UINT32_C(0xAEED06F0), + UINT32_C(0x109F40B0), UINT32_C(0x14DCAA0A), UINT32_C(0x9F0360B2) } }, + { { UINT32_C(0xE12AD3E7), UINT32_C(0x4189B70D), UINT32_C(0x10B06607), + UINT32_C(0x5208ADB2), UINT32_C(0xEE8497FA), UINT32_C(0xEBD8E2A2), + UINT32_C(0xE04F2ECB), UINT32_C(0x61B1BD67), UINT32_C(0x4F3F5F99), + UINT32_C(0x0E2DDA72), UINT32_C(0xF747B16D), UINT32_C(0xD5D96740) }, + { UINT32_C(0xA6BF397F), UINT32_C(0x308A48F6), UINT32_C(0x23A93595), + UINT32_C(0x7021C3E5), UINT32_C(0x36470AA0), UINT32_C(0xF10B0229), + UINT32_C(0x4E03295B), UINT32_C(0x7761E8EC), UINT32_C(0x07339770), + UINT32_C(0x16EFEF58), UINT32_C(0x5DA5DAA2), UINT32_C(0x0D55D2DD) } }, + { { UINT32_C(0x8A22F87A), UINT32_C(0x915EA6A3), UINT32_C(0x2E5A088E), + UINT32_C(0x191151C1), UINT32_C(0x7F1D5CBE), UINT32_C(0x190252F1), + UINT32_C(0x3B0EC99B), UINT32_C(0xE43F59C3), UINT32_C(0xFF2A6135), + UINT32_C(0xBE8588D4), UINT32_C(0x2ECB4B9F), UINT32_C(0x103877CC) }, + { UINT32_C(0x023CF92B), UINT32_C(0x8F4147E5), UINT32_C(0x0CC2085B), + UINT32_C(0xC24384CC), UINT32_C(0xD082D311), UINT32_C(0x6A2DB4A2), + UINT32_C(0xED7BA9AE), UINT32_C(0x06283811), UINT32_C(0x2A8E1592), + UINT32_C(0xE9A3F532), UINT32_C(0x5A59E894), UINT32_C(0xAC20F0F4) } }, + { { UINT32_C(0x74AAB4B1), UINT32_C(0x788CAA52), UINT32_C(0x2FEAFC7E), + UINT32_C(0xEB84ABA1), UINT32_C(0xAC04FF77), UINT32_C(0x31DA71DA), + UINT32_C(0x24E4D0BF), UINT32_C(0x39D12EB9), UINT32_C(0x87A34EF8), + UINT32_C(0x4F2F292F), UINT32_C(0xA237A8ED), UINT32_C(0x9B324372) }, + { UINT32_C(0x2EE3A82D), UINT32_C(0xBB2D04B1), UINT32_C(0xD18D36B2), + UINT32_C(0xED4FF367), UINT32_C(0xA6EA0138), UINT32_C(0x99D231EE), + UINT32_C(0x4F92E04A), UINT32_C(0x7C2D4F06), UINT32_C(0xCA272FD0), + UINT32_C(0x78A82AB2), UINT32_C(0xAB8CDC32), UINT32_C(0x7EC41340) } }, + }, + { + { { UINT32_C(0xD2E15A8C), UINT32_C(0xD23658C8), UINT32_C(0x16BA28CA), + UINT32_C(0x23F93DF7), UINT32_C(0x082210F1), UINT32_C(0x6DAB10EC), + UINT32_C(0xBFC36490), UINT32_C(0xFB1ADD91), UINT32_C(0x9A4F2D14), + UINT32_C(0xEDA8B02F), UINT32_C(0x56560443), UINT32_C(0x9060318C) }, + { UINT32_C(0x64711AB2), UINT32_C(0x6C01479E), UINT32_C(0xE337EB85), + UINT32_C(0x41446FC7), UINT32_C(0x71888397), UINT32_C(0x4DCF3C1D), + UINT32_C(0x13C34FD2), UINT32_C(0x87A9C04E), UINT32_C(0x510C15AC), + UINT32_C(0xFE0E08EC), UINT32_C(0xC0F495D2), UINT32_C(0xFC0D0413) } }, + { { UINT32_C(0x156636C2), UINT32_C(0xEB05C516), UINT32_C(0x090E93FC), + UINT32_C(0x2F613ABA), UINT32_C(0x489576F5), UINT32_C(0xCFD573CD), + UINT32_C(0x535A8D57), UINT32_C(0xE6535380), UINT32_C(0x671436C4), + UINT32_C(0x13947314), UINT32_C(0x5F0A122D), UINT32_C(0x1172FB0C) }, + { UINT32_C(0xC12F58F6), UINT32_C(0xAECC7EC1), UINT32_C(0x8E41AFD2), + UINT32_C(0xFE42F957), UINT32_C(0x3D4221AA), UINT32_C(0xDF96F652), + UINT32_C(0x2851996B), UINT32_C(0xFEF5649F), UINT32_C(0xD5CFB67E), + UINT32_C(0x46FB9F26), UINT32_C(0xEF5C4052), UINT32_C(0xB047BFC7) } }, + { { UINT32_C(0xF4484374), UINT32_C(0x5CBDC442), UINT32_C(0xF92452EF), + UINT32_C(0x6B156957), UINT32_C(0xC118D02A), UINT32_C(0x58A26886), + UINT32_C(0x75AAF276), UINT32_C(0x87FF74E6), UINT32_C(0xF65F6EC1), + UINT32_C(0xB133BE95), UINT32_C(0x4B1B8D32), UINT32_C(0xA89B6284) }, + { UINT32_C(0x09C81004), UINT32_C(0xDD8A8EF3), UINT32_C(0x0CF21991), + UINT32_C(0x7F8225DB), UINT32_C(0x26623FAF), UINT32_C(0xD525A6DB), + UINT32_C(0xBAE15453), UINT32_C(0xF2368D40), UINT32_C(0x84F89FC9), + UINT32_C(0x55D6A84D), UINT32_C(0x86021A3E), UINT32_C(0xAF38358A) } }, + { { UINT32_C(0xFF52E280), UINT32_C(0xBD048BDC), UINT32_C(0x526A1795), + UINT32_C(0x8A51D0B2), UINT32_C(0xA985AC0F), UINT32_C(0x40AAA758), + UINT32_C(0xF2C7ACE9), UINT32_C(0x6039BCDC), UINT32_C(0x6AEC347D), + UINT32_C(0x712092CC), UINT32_C(0x6B5ACAB7), UINT32_C(0x7976D090) }, + { UINT32_C(0x6EED9617), UINT32_C(0x1EBCF80D), UINT32_C(0xB0F404A4), + UINT32_C(0xB3A63149), UINT32_C(0xD0B610EF), UINT32_C(0x3FDD3D1A), + UINT32_C(0x98C28AC7), UINT32_C(0xDD3F6F94), UINT32_C(0x3A59750F), + UINT32_C(0x650B7794), UINT32_C(0x2D3991AC), UINT32_C(0xEC59BAB1) } }, + { { UINT32_C(0x2E552766), UINT32_C(0x01F40E88), UINT32_C(0x66F5354F), + UINT32_C(0x1FE3D509), UINT32_C(0xB3A8EA7F), UINT32_C(0x0E46D006), + UINT32_C(0xF831CD6A), UINT32_C(0xF75AB629), UINT32_C(0x91465119), + UINT32_C(0xDAD808D7), UINT32_C(0x17EF9B10), UINT32_C(0x442405AF) }, + { UINT32_C(0x672BDFCB), UINT32_C(0xD5FE0A96), UINT32_C(0x355DBDEC), + UINT32_C(0xA9DFA422), UINT32_C(0x79B25636), UINT32_C(0xFDB79AA1), + UINT32_C(0xEECE8AEC), UINT32_C(0xE7F26FFD), UINT32_C(0x7EDD5AA2), + UINT32_C(0xB5925550), UINT32_C(0x8EB3A6C2), UINT32_C(0x2C8F6FF0) } }, + { { UINT32_C(0x757D6136), UINT32_C(0x88887756), UINT32_C(0x88B92E72), + UINT32_C(0xAD9AC183), UINT32_C(0x8785D3EB), UINT32_C(0x92CB2FC4), + UINT32_C(0x9319764B), UINT32_C(0xD1A542FE), UINT32_C(0x626A62F8), + UINT32_C(0xAF4CC78F), UINT32_C(0x26BFFAAE), UINT32_C(0x7F3F5FC9) }, + { UINT32_C(0x40AE2231), UINT32_C(0x0A203D43), UINT32_C(0x387898E8), + UINT32_C(0xA8BFD9E0), UINT32_C(0x474B7DDD), UINT32_C(0x1A0C379C), + UINT32_C(0x34FD49EA), UINT32_C(0x03855E0A), UINT32_C(0xB3EF4AE1), + UINT32_C(0x02B26223), UINT32_C(0xE399E0A3), UINT32_C(0x804BD8CF) } }, + { { UINT32_C(0xDE865713), UINT32_C(0x11A9F3D0), UINT32_C(0xBDE98821), + UINT32_C(0x81E36B6B), UINT32_C(0x6AA891D0), UINT32_C(0x324996C8), + UINT32_C(0x395682B5), UINT32_C(0x7B95BDC1), UINT32_C(0xC1600563), + UINT32_C(0x47BF2219), UINT32_C(0x643E38B4), UINT32_C(0x7A473F50) }, + { UINT32_C(0xF5738288), UINT32_C(0x0911F50A), UINT32_C(0x6F9C415B), + UINT32_C(0xDF947A70), UINT32_C(0x67A067F6), UINT32_C(0xBDB994F2), + UINT32_C(0x88BE96CD), UINT32_C(0x3F4BEC1B), UINT32_C(0xE56DD6D9), + UINT32_C(0x9820E931), UINT32_C(0x0A80F419), UINT32_C(0xB138F14F) } }, + { { UINT32_C(0x0429077A), UINT32_C(0xA11A1A8F), UINT32_C(0x10351C68), + UINT32_C(0x2BB1E33D), UINT32_C(0x89459A27), UINT32_C(0x3C25ABFE), + UINT32_C(0x6B8AC774), UINT32_C(0x2D0091B8), UINT32_C(0x3B2415D9), + UINT32_C(0xDAFC7853), UINT32_C(0x9201680D), UINT32_C(0xDE713CF1) }, + { UINT32_C(0x68889D57), UINT32_C(0x8E5F445D), UINT32_C(0x60EABF5B), + UINT32_C(0x608B209C), UINT32_C(0xF9CFA408), UINT32_C(0x10EC0ACC), + UINT32_C(0x4D1EE754), UINT32_C(0xD5256B9D), UINT32_C(0x0AA6C18D), + UINT32_C(0xFF866BAB), UINT32_C(0xACB90A45), UINT32_C(0x9D196DB8) } }, + { { UINT32_C(0xB9B081B2), UINT32_C(0xA46D76A9), UINT32_C(0x62163C25), + UINT32_C(0xFC743A10), UINT32_C(0x7761C392), UINT32_C(0xCD2A5C8D), + UINT32_C(0xBE808583), UINT32_C(0x39BDDE0B), UINT32_C(0xB98E4DFE), + UINT32_C(0x7C416021), UINT32_C(0x65913A44), UINT32_C(0xF930E563) }, + { UINT32_C(0x7585CF3C), UINT32_C(0xC3555F7E), UINT32_C(0x3D6333D5), + UINT32_C(0xC737E383), UINT32_C(0xB430B03D), UINT32_C(0x5B60DBA4), + UINT32_C(0xE7555404), UINT32_C(0x42B715EB), UINT32_C(0x7C7796E3), + UINT32_C(0x571BDF5B), UINT32_C(0x6DB6331F), UINT32_C(0x33DC62C6) } }, + { { UINT32_C(0xE61DEE59), UINT32_C(0x3FB9CCB0), UINT32_C(0x18B14DB9), + UINT32_C(0xC5185F23), UINT32_C(0x845EF36C), UINT32_C(0x1B2ADC4F), + UINT32_C(0x5C1A33AB), UINT32_C(0x195D5B50), UINT32_C(0x421F59D2), + UINT32_C(0x8CEA528E), UINT32_C(0xD2931CEA), UINT32_C(0x7DFCCECF) }, + { UINT32_C(0x8CF7E3F7), UINT32_C(0x51FFA1D5), UINT32_C(0xBDC9FB43), + UINT32_C(0xF01B7886), UINT32_C(0x261A0D35), UINT32_C(0xD65AB610), + UINT32_C(0x7574A554), UINT32_C(0x84BCBAFD), UINT32_C(0xFAD70208), + UINT32_C(0x4B119956), UINT32_C(0x4FAB5243), UINT32_C(0xDDC329C2) } }, + { { UINT32_C(0x9CE92177), UINT32_C(0x1A08AA57), UINT32_C(0xDC2B5C36), + UINT32_C(0x3395E557), UINT32_C(0x394ED04E), UINT32_C(0xFDFE7041), + UINT32_C(0xC6DFCDDE), UINT32_C(0xB797EB24), UINT32_C(0xCB9DE5D6), + UINT32_C(0x284A6B2A), UINT32_C(0x07222765), UINT32_C(0xE0BD95C8) }, + { UINT32_C(0x9FE678A7), UINT32_C(0x114A951B), UINT32_C(0x9E4954EC), + UINT32_C(0xE7ECD0BD), UINT32_C(0x79F0B8A9), UINT32_C(0x7D4096FE), + UINT32_C(0x09724FE2), UINT32_C(0xBDB26E9A), UINT32_C(0xF787AF95), + UINT32_C(0x08741AD8), UINT32_C(0x24045AD8), UINT32_C(0x2BF97272) } }, + { { UINT32_C(0xA9451D57), UINT32_C(0xAB1FEDD9), UINT32_C(0x483E38C9), + UINT32_C(0xDF4D91DF), UINT32_C(0x24E9CF8E), UINT32_C(0x2D54D311), + UINT32_C(0x7A22EEB6), UINT32_C(0x9C2A5AF8), UINT32_C(0x0A43F123), + UINT32_C(0xBD9861EF), UINT32_C(0x38A18B7B), UINT32_C(0x581EA6A2) }, + { UINT32_C(0x296470A3), UINT32_C(0xAF339C85), UINT32_C(0xAFD8203E), + UINT32_C(0xF9603FCD), UINT32_C(0x96763C28), UINT32_C(0x95D05350), + UINT32_C(0x860EC831), UINT32_C(0x15445C16), UINT32_C(0x6867A323), + UINT32_C(0x2AFB8728), UINT32_C(0x0C4838BF), UINT32_C(0x4B152D6D) } }, + { { UINT32_C(0x837CACBA), UINT32_C(0x45BA0E4F), UINT32_C(0xC0725275), + UINT32_C(0x7ADB38AE), UINT32_C(0x942D3C28), UINT32_C(0x19C82831), + UINT32_C(0x6D0FE7DD), UINT32_C(0x94F4731D), UINT32_C(0x4898F1E6), + UINT32_C(0xC3C07E13), UINT32_C(0xED410B51), UINT32_C(0x76350EAC) }, + { UINT32_C(0xF99AACFC), UINT32_C(0x0FA8BECA), UINT32_C(0x65FAF9CF), + UINT32_C(0x2834D86F), UINT32_C(0x6F3866AF), UINT32_C(0x8E62846A), + UINT32_C(0x3DFD6A2B), UINT32_C(0xDAA9BD4F), UINT32_C(0xA6132655), + UINT32_C(0xC27115BB), UINT32_C(0xBD5A32C2), UINT32_C(0x83972DF7) } }, + { { UINT32_C(0xD513B825), UINT32_C(0xA330CB5B), UINT32_C(0xEE37BEC3), + UINT32_C(0xAE18B2D3), UINT32_C(0xF780A902), UINT32_C(0xFC3AB80A), + UINT32_C(0xD607DDF1), UINT32_C(0xD7835BE2), UINT32_C(0x5B6E4C2B), + UINT32_C(0x8120F767), UINT32_C(0x67E78CCB), UINT32_C(0xAA8C3859) }, + { UINT32_C(0xAA0ED321), UINT32_C(0xA8DA8CE2), UINT32_C(0xD766341A), + UINT32_C(0xCB8846FD), UINT32_C(0x33DC9D9A), UINT32_C(0xF2A342EE), + UINT32_C(0xD0A18A80), UINT32_C(0xA519E0BE), UINT32_C(0xAF48DF4C), + UINT32_C(0x9CDAA39C), UINT32_C(0x7E0C19EE), UINT32_C(0xA4B500CA) } }, + { { UINT32_C(0x8217001B), UINT32_C(0x83A7FD2F), UINT32_C(0x4296A8BA), + UINT32_C(0x4F6FCF06), UINT32_C(0x91619927), UINT32_C(0x7D748643), + UINT32_C(0x941E4D41), UINT32_C(0x174C1075), UINT32_C(0xA64F5A6C), + UINT32_C(0x037EDEBD), UINT32_C(0x6E29DC56), UINT32_C(0xCF64DB3A) }, + { UINT32_C(0x37C0B9F4), UINT32_C(0x150B3ACE), UINT32_C(0x7168178B), + UINT32_C(0x1323234A), UINT32_C(0xEF4D1879), UINT32_C(0x1CE47014), + UINT32_C(0x17FB4D5C), UINT32_C(0xA22E3742), UINT32_C(0xD985F794), + UINT32_C(0x69B81822), UINT32_C(0x081D7214), UINT32_C(0x199C21C4) } }, + { { UINT32_C(0x8F04B4D2), UINT32_C(0x160BC7A1), UINT32_C(0xB10DE174), + UINT32_C(0x79CA81DD), UINT32_C(0x2DA1E9C7), UINT32_C(0xE2A280B0), + UINT32_C(0x1D6A0A29), UINT32_C(0xB4F6BD99), UINT32_C(0x1C5B8F27), + UINT32_C(0x57CF3EDD), UINT32_C(0x158C2FD4), UINT32_C(0x7E34FC57) }, + { UINT32_C(0xCAC93459), UINT32_C(0x828CFD89), UINT32_C(0xB7AF499F), + UINT32_C(0x9E631B6F), UINT32_C(0xDA26C135), UINT32_C(0xF4DC8BC0), + UINT32_C(0x37186735), UINT32_C(0x6128ED39), UINT32_C(0x67BF0BA5), + UINT32_C(0xBB45538B), UINT32_C(0x0064A3AB), UINT32_C(0x1ADDD4C1) } }, + }, + { + { { UINT32_C(0xDD14D47E), UINT32_C(0xC32730E8), UINT32_C(0xC0F01E0F), + UINT32_C(0xCDC1FD42), UINT32_C(0x3F5CD846), UINT32_C(0x2BACFDBF), + UINT32_C(0x7272D4DD), UINT32_C(0x45F36416), UINT32_C(0x5EB75776), + UINT32_C(0xDD813A79), UINT32_C(0x50997BE2), UINT32_C(0xB57885E4) }, + { UINT32_C(0xDB8C9829), UINT32_C(0xDA054E2B), UINT32_C(0xAAB5A594), + UINT32_C(0x4161D820), UINT32_C(0x026116A3), UINT32_C(0x4C428F31), + UINT32_C(0xDCD85E91), UINT32_C(0x372AF9A0), UINT32_C(0x673ADC2D), + UINT32_C(0xFDA6E903), UINT32_C(0xA8DB59E6), UINT32_C(0x4526B8AC) } }, + { { UINT32_C(0xE23A8472), UINT32_C(0x68FE359D), UINT32_C(0x4CE3C101), + UINT32_C(0x43EB12BD), UINT32_C(0xFC704935), UINT32_C(0x0EC652C3), + UINT32_C(0x52E4E22D), UINT32_C(0x1EEFF1F9), UINT32_C(0x083E3ADA), + UINT32_C(0xBA6777CB), UINT32_C(0x8BEFC871), UINT32_C(0xAB52D7DC) }, + { UINT32_C(0x497CBD59), UINT32_C(0x4EDE689F), UINT32_C(0x27577DD9), + UINT32_C(0xC8AE42B9), UINT32_C(0x7AB83C27), UINT32_C(0xE0F08051), + UINT32_C(0x2C8C1F48), UINT32_C(0x1F3D5F25), UINT32_C(0xAF241AAC), + UINT32_C(0x57991607), UINT32_C(0xB8A337E0), UINT32_C(0xC4458B0A) } }, + { { UINT32_C(0x51DD1BA9), UINT32_C(0x3DBB3FA6), UINT32_C(0x545E960B), + UINT32_C(0xE53C1C4D), UINT32_C(0x793CE803), UINT32_C(0x35AC6574), + UINT32_C(0x83DBCE4F), UINT32_C(0xB2697DC7), UINT32_C(0xE13CF6B0), + UINT32_C(0xE35C5BF2), UINT32_C(0xB0C4A164), UINT32_C(0x35034280) }, + { UINT32_C(0xD9C0D3C1), UINT32_C(0xAA490908), UINT32_C(0xCB4D2E90), + UINT32_C(0x2CCE614D), UINT32_C(0x54D504E4), UINT32_C(0xF646E96C), + UINT32_C(0xB73310A3), UINT32_C(0xD74E7541), UINT32_C(0x18BDE5DA), + UINT32_C(0xEAD71596), UINT32_C(0xAA09AEF7), UINT32_C(0x96E7F4A8) } }, + { { UINT32_C(0x5D6E5F48), UINT32_C(0xA8393A24), UINT32_C(0xF9175CE8), + UINT32_C(0x2C8D7EA2), UINT32_C(0x55A20268), UINT32_C(0xD8824E02), + UINT32_C(0xA446BCC6), UINT32_C(0x9DD9A272), UINT32_C(0x5351499B), + UINT32_C(0xC929CDED), UINT32_C(0xCFE76535), UINT32_C(0xEA5AD9EC) }, + { UINT32_C(0xDC32D001), UINT32_C(0x26F3D7D9), UINT32_C(0x43EB9689), + UINT32_C(0x51C3BE83), UINT32_C(0x759E6DDB), UINT32_C(0x91FDCC06), + UINT32_C(0xE302B891), UINT32_C(0xAC2E1904), UINT32_C(0xC207E1F7), + UINT32_C(0xAD25C645), UINT32_C(0xAB3DEB4A), UINT32_C(0x28A70F0D) } }, + { { UINT32_C(0x03BEA8F1), UINT32_C(0x922D7F97), UINT32_C(0x584570BE), + UINT32_C(0x3AD820D4), UINT32_C(0x3CD46B43), UINT32_C(0x0CE0A850), + UINT32_C(0xAE66743D), UINT32_C(0x4C07911F), UINT32_C(0xFDA60023), + UINT32_C(0x66519EB9), UINT32_C(0xEC2ACD9C), UINT32_C(0x7F83004B) }, + { UINT32_C(0xC3117EAD), UINT32_C(0x001E0B80), UINT32_C(0x0722BA25), + UINT32_C(0xBB72D541), UINT32_C(0x6E9A5078), UINT32_C(0x3AF7DB96), + UINT32_C(0x701B6B4C), UINT32_C(0x86C5774E), UINT32_C(0x37824DB5), + UINT32_C(0xBD2C0E8E), UINT32_C(0xBFAC286D), UINT32_C(0x3AE3028C) } }, + { { UINT32_C(0xA33E071B), UINT32_C(0x83D4D4A8), UINT32_C(0x61444BB5), + UINT32_C(0x881C0A92), UINT32_C(0x520E3BC3), UINT32_C(0xEEA1E292), + UINT32_C(0x2AAAB729), UINT32_C(0x5A5F4C3C), UINT32_C(0xE63C7C94), + UINT32_C(0x0B766C5E), UINT32_C(0xBB2CC79C), UINT32_C(0x62BB8A9F) }, + { UINT32_C(0xAA5DC49D), UINT32_C(0x97ADC7D2), UINT32_C(0x31718681), + UINT32_C(0x30CC26B3), UINT32_C(0x56E86EDE), UINT32_C(0xAC86E6FF), + UINT32_C(0xCD52F7F2), UINT32_C(0x37BCA7A2), UINT32_C(0x9CE6D87F), + UINT32_C(0x734D2C94), UINT32_C(0xC2F7E0CA), UINT32_C(0x06A71D71) } }, + { { UINT32_C(0xC6357D33), UINT32_C(0x559DCF75), UINT32_C(0x652517DE), + UINT32_C(0x4616D940), UINT32_C(0x1CCF207B), UINT32_C(0x3D576B98), + UINT32_C(0x1979F631), UINT32_C(0x51E2D1EF), UINT32_C(0x06AE8296), + UINT32_C(0x57517DDD), UINT32_C(0xD6E7151F), UINT32_C(0x309A3D7F) }, + { UINT32_C(0x0E3A6FE5), UINT32_C(0xBA2A23E6), UINT32_C(0xD28B22C3), + UINT32_C(0x76CF674A), UINT32_C(0xF8B808C3), UINT32_C(0xD235AD07), + UINT32_C(0x6B71213A), UINT32_C(0x7BBF4C58), UINT32_C(0x93271EBB), + UINT32_C(0x0676792E), UINT32_C(0x05B1FC31), UINT32_C(0x2CFD2C76) } }, + { { UINT32_C(0x37A450F5), UINT32_C(0x4258E5C0), UINT32_C(0x52D2B118), + UINT32_C(0xC3245F1B), UINT32_C(0x82BC5963), UINT32_C(0x6DF7B484), + UINT32_C(0x9C273D1E), UINT32_C(0xE520DA4D), UINT32_C(0x2C3010E5), + UINT32_C(0xED78E012), UINT32_C(0x3C1D4C05), UINT32_C(0x11222948) }, + { UINT32_C(0xC692B490), UINT32_C(0xE3DAE5AF), UINT32_C(0xC197F793), + UINT32_C(0x3272BD10), UINT32_C(0xE709ACAA), UINT32_C(0xF7EAE411), + UINT32_C(0x778270A6), UINT32_C(0x00B0C95F), UINT32_C(0x220D4350), + UINT32_C(0x4DA76EE1), UINT32_C(0xAB71E308), UINT32_C(0x521E1461) } }, + { { UINT32_C(0x343196A3), UINT32_C(0x7B654323), UINT32_C(0xB0C95250), + UINT32_C(0x35D442AD), UINT32_C(0xE264FF17), UINT32_C(0x38AF50E6), + UINT32_C(0x2030D2EA), UINT32_C(0x28397A41), UINT32_C(0xF74EEDA1), + UINT32_C(0x8F1D84E9), UINT32_C(0xE6FB3C52), UINT32_C(0xD521F92D) }, + { UINT32_C(0x95733811), UINT32_C(0xAF358D77), UINT32_C(0x93ABFE94), + UINT32_C(0xEBFDDD01), UINT32_C(0xD18D99DE), UINT32_C(0x05D8A028), + UINT32_C(0xB5D5BDD9), UINT32_C(0x5A664019), UINT32_C(0x2AA12FE8), + UINT32_C(0x3DF17282), UINT32_C(0xB889A28E), UINT32_C(0xB42E006F) } }, + { { UINT32_C(0xBC35CB1A), UINT32_C(0xCF10E97D), UINT32_C(0x994DEDC5), + UINT32_C(0xC70A7BBD), UINT32_C(0x37D04FB9), UINT32_C(0x76A5327C), + UINT32_C(0xA76E0CDA), UINT32_C(0x87539F76), UINT32_C(0xCD60A6B1), + UINT32_C(0xE9FE493F), UINT32_C(0x132F01C0), UINT32_C(0xA4574796) }, + { UINT32_C(0xDB70B167), UINT32_C(0xC43B85EB), UINT32_C(0x98551DFA), + UINT32_C(0x81D5039A), UINT32_C(0x1D979FA4), UINT32_C(0x6B56FBE9), + UINT32_C(0x8615098F), UINT32_C(0x49714FD7), UINT32_C(0x94DECAB5), + UINT32_C(0xB10E1CEA), UINT32_C(0x480EF6E3), UINT32_C(0x8342EBA3) } }, + { { UINT32_C(0xB3677288), UINT32_C(0xE1E030B0), UINT32_C(0x8D5CE3AF), + UINT32_C(0x2978174C), UINT32_C(0xF7B2DE98), UINT32_C(0xAFC0271C), + UINT32_C(0xB99C20B5), UINT32_C(0x745BC6F3), UINT32_C(0x1E3BB4E5), + UINT32_C(0x9F6EDCED), UINT32_C(0x73C8C1FC), UINT32_C(0x58D3EE4E) }, + { UINT32_C(0x7FD30124), UINT32_C(0x1F3535F4), UINT32_C(0x5FA62502), + UINT32_C(0xF366AC70), UINT32_C(0x965363FE), UINT32_C(0x4C4C1FDD), + UINT32_C(0x1DE2CA2B), UINT32_C(0x8B2C7777), UINT32_C(0x882F1173), + UINT32_C(0x0CB54743), UINT32_C(0x71343331), UINT32_C(0x94B6B8C0) } }, + { { UINT32_C(0x65B8B35B), UINT32_C(0x75AF0141), UINT32_C(0x4670A1F5), + UINT32_C(0x6D7B8485), UINT32_C(0xA3B6D376), UINT32_C(0x6EAA3A47), + UINT32_C(0xCB3E5B66), UINT32_C(0xD7E673D2), UINT32_C(0x9589AB38), + UINT32_C(0xC0338E6C), UINT32_C(0x09440FAA), UINT32_C(0x4BE26CB3) }, + { UINT32_C(0x394F9AA3), UINT32_C(0x82CB05E7), UINT32_C(0x7F7792EA), + UINT32_C(0xC45C8A8A), UINT32_C(0xB687DC70), UINT32_C(0x37E5E33B), + UINT32_C(0xDFE48E49), UINT32_C(0x63853219), UINT32_C(0x6D0E5C8C), + UINT32_C(0x087951C1), UINT32_C(0x2BC27310), UINT32_C(0x7696A8C7) } }, + { { UINT32_C(0xB67E834A), UINT32_C(0xA05736D5), UINT32_C(0x9098D42A), + UINT32_C(0xDD2AA0F2), UINT32_C(0x49C69DDC), UINT32_C(0x09F0C1D8), + UINT32_C(0x8FF0F0F3), UINT32_C(0x81F8BC1C), UINT32_C(0x03037775), + UINT32_C(0x36FD3A4F), UINT32_C(0x4B06DF5C), UINT32_C(0x8286717D) }, + { UINT32_C(0xA9079EA2), UINT32_C(0xB878F496), UINT32_C(0xD7DC796D), + UINT32_C(0xA5642426), UINT32_C(0x67FDAC2B), UINT32_C(0x29B9351A), + UINT32_C(0x1D543CDE), UINT32_C(0x93774C0E), UINT32_C(0x1A8E31C4), + UINT32_C(0x4F8793BA), UINT32_C(0x6C94798A), UINT32_C(0x7C9F3F3A) } }, + { { UINT32_C(0xCB8ECDB8), UINT32_C(0x23C5AD11), UINT32_C(0x485A6A02), + UINT32_C(0x1E88D25E), UINT32_C(0xF1E268AE), UINT32_C(0xB27CBE84), + UINT32_C(0xF4CD0475), UINT32_C(0xDDA80238), UINT32_C(0x49F8EB1B), + UINT32_C(0x4F88857B), UINT32_C(0x52FB07F9), UINT32_C(0x91B1221F) }, + { UINT32_C(0x8637FA67), UINT32_C(0x7CE97460), UINT32_C(0x632198D8), + UINT32_C(0x528B3CF4), UINT32_C(0xF6623769), UINT32_C(0x33365AB3), + UINT32_C(0x3A83A30F), UINT32_C(0x6FEBCFFF), UINT32_C(0x9BD341EB), + UINT32_C(0x398F4C99), UINT32_C(0xB33A333C), UINT32_C(0x180712BB) } }, + { { UINT32_C(0xD93429E7), UINT32_C(0x2B8655A2), UINT32_C(0x75C8B9EE), + UINT32_C(0x99D600BB), UINT32_C(0x88FCA6CD), UINT32_C(0x9FC1AF8B), + UINT32_C(0x7C311F80), UINT32_C(0x2FB53386), UINT32_C(0xE8A71EEE), + UINT32_C(0x20743ECB), UINT32_C(0xE848B49E), UINT32_C(0xEC3713C4) }, + { UINT32_C(0xBB886817), UINT32_C(0x5B2037B5), UINT32_C(0x307DBAF4), + UINT32_C(0x40EF5AC2), UINT32_C(0x1B3F643D), UINT32_C(0xC2888AF2), + UINT32_C(0x9D5A4190), UINT32_C(0x0D8252E1), UINT32_C(0x2DB52A8A), + UINT32_C(0x06CC0BEC), UINT32_C(0xAB94E969), UINT32_C(0xB84B98EA) } }, + { { UINT32_C(0xA0321E0E), UINT32_C(0x2E7AC078), UINT32_C(0xEF3DAAB6), + UINT32_C(0x5C5A1168), UINT32_C(0xADDD454A), UINT32_C(0xD2D573CB), + UINT32_C(0x36259CC7), UINT32_C(0x27E149E2), UINT32_C(0xA63F47F1), + UINT32_C(0x1EDFD469), UINT32_C(0xF1BD2CFD), UINT32_C(0x039AD674) }, + { UINT32_C(0x3077D3CC), UINT32_C(0xBFA633FC), UINT32_C(0x2FD64E9F), + UINT32_C(0x14A7C82F), UINT32_C(0x9D824999), UINT32_C(0xAAA65014), + UINT32_C(0x21760F2E), UINT32_C(0x41AB113B), UINT32_C(0x1CAE260A), + UINT32_C(0x23E646C5), UINT32_C(0x68DC5159), UINT32_C(0x08062C8F) } }, + }, + { + { { UINT32_C(0x204BE028), UINT32_C(0x2E7D0A16), UINT32_C(0xD0E41851), + UINT32_C(0x4F1D082E), UINT32_C(0x3EB317F9), UINT32_C(0x15F1DDC6), + UINT32_C(0x5ADF71D7), UINT32_C(0xF0275071), UINT32_C(0xEE858BC3), + UINT32_C(0x2CE33C2E), UINT32_C(0xDA73B71A), UINT32_C(0xA24C76D1) }, + { UINT32_C(0x6C70C483), UINT32_C(0x9EF6A70A), UINT32_C(0x05CF9612), + UINT32_C(0xEFCF1705), UINT32_C(0x7502DE64), UINT32_C(0x9F5BF5A6), + UINT32_C(0xA4701973), UINT32_C(0xD11122A1), UINT32_C(0xA2EA7B24), + UINT32_C(0x82CFAAC2), UINT32_C(0x0A4582E1), UINT32_C(0x6CAD67CC) } }, + { { UINT32_C(0xB4DC8600), UINT32_C(0x597A26FF), UINT32_C(0xF9288555), + UINT32_C(0x264A09F3), UINT32_C(0x5C27F5F6), UINT32_C(0x0B06AFF6), + UINT32_C(0xD8D544E6), UINT32_C(0xCE5AB665), UINT32_C(0x99275C32), + UINT32_C(0x92F031BE), UINT32_C(0xF42E0E7C), UINT32_C(0xAF51C5BB) }, + { UINT32_C(0x1E37B36D), UINT32_C(0x5BB28B06), UINT32_C(0x8473543A), + UINT32_C(0x583FBA6A), UINT32_C(0xF93FB7DC), UINT32_C(0xE73FD299), + UINT32_C(0x6E2CCAD9), UINT32_C(0xFCD999A8), UINT32_C(0x334D4F57), + UINT32_C(0xB8C8A6DF), UINT32_C(0x9A2ACC9B), UINT32_C(0x5ADB28DD) } }, + { { UINT32_C(0x111792B9), UINT32_C(0x5ADF3D9A), UINT32_C(0x4F1E0D09), + UINT32_C(0x1C77A305), UINT32_C(0xA82D3736), UINT32_C(0xF9FBCE33), + UINT32_C(0x718C8AA3), UINT32_C(0xF307823E), UINT32_C(0x416CCF69), + UINT32_C(0x860578CF), UINT32_C(0x1EF8465B), UINT32_C(0xB942ADD8) }, + { UINT32_C(0xCD9472E1), UINT32_C(0x9EE0CF97), UINT32_C(0xB01528A8), + UINT32_C(0xE6792EEF), UINT32_C(0xC09DA90B), UINT32_C(0xF99B9A8D), + UINT32_C(0xCBF3CCB8), UINT32_C(0x1F521C2D), UINT32_C(0x91A62632), + UINT32_C(0x6BF66948), UINT32_C(0x854FE9DA), UINT32_C(0xCC7A9CEB) } }, + { { UINT32_C(0x491CCB92), UINT32_C(0x46303171), UINT32_C(0x2771235B), + UINT32_C(0xA80A8C0D), UINT32_C(0xF172C7CF), UINT32_C(0xD8E497FF), + UINT32_C(0x35B193CF), UINT32_C(0x7F7009D7), UINT32_C(0xF19DF4BC), + UINT32_C(0x6B9FD3F7), UINT32_C(0xB46F1E37), UINT32_C(0xADA548C3) }, + { UINT32_C(0xC7A20270), UINT32_C(0x87C6EAA9), UINT32_C(0xAE78EF99), + UINT32_C(0xEF2245D6), UINT32_C(0x539EAB95), UINT32_C(0x2A121042), + UINT32_C(0x79B8F5CC), UINT32_C(0x29A6D5D7), UINT32_C(0xB77840DC), + UINT32_C(0x33803A10), UINT32_C(0x11A6A30F), UINT32_C(0xFEDD3A70) } }, + { { UINT32_C(0x142403D1), UINT32_C(0xFA070E22), UINT32_C(0x15C6F7F5), + UINT32_C(0x68FF3160), UINT32_C(0x223A0CE8), UINT32_C(0xE09F04E6), + UINT32_C(0x53E14183), UINT32_C(0x22BBD018), UINT32_C(0xCF45B75B), + UINT32_C(0x35D9FAFC), UINT32_C(0x7ECEEC88), UINT32_C(0x3A34819D) }, + { UINT32_C(0xD33262D2), UINT32_C(0xD9CF7568), UINT32_C(0x841D1505), + UINT32_C(0x431036D5), UINT32_C(0x9EB2A79A), UINT32_C(0x0C800565), + UINT32_C(0x5F7EDC6A), UINT32_C(0x8E77D9F0), UINT32_C(0x65E800AA), + UINT32_C(0x19E12D05), UINT32_C(0xB7784E7C), UINT32_C(0x335C8D36) } }, + { { UINT32_C(0x6484FD40), UINT32_C(0x8B2FC4E9), UINT32_C(0xA35D24EA), + UINT32_C(0xEE702764), UINT32_C(0xB871C3F3), UINT32_C(0x15B28AC7), + UINT32_C(0xE097047F), UINT32_C(0x805B4048), UINT32_C(0x647CAD2F), + UINT32_C(0xD6F1B8DF), UINT32_C(0xDC7DD67F), UINT32_C(0xF1D5B458) }, + { UINT32_C(0x25148803), UINT32_C(0x324C529C), UINT32_C(0x21274FAF), + UINT32_C(0xF6185EBE), UINT32_C(0x95148B55), UINT32_C(0xAF14751E), + UINT32_C(0x28F284F4), UINT32_C(0x283ED89D), UINT32_C(0x4CBEBF1A), + UINT32_C(0x93AD20E7), UINT32_C(0x882935E1), UINT32_C(0x5F6EC65D) } }, + { { UINT32_C(0xA4DCEFE9), UINT32_C(0xE222EBA4), UINT32_C(0xEC1CEB74), + UINT32_C(0x63AD235F), UINT32_C(0xE05B18E7), UINT32_C(0x2E0BF749), + UINT32_C(0xB48BDD87), UINT32_C(0x547BD050), UINT32_C(0xF5AA2FC4), + UINT32_C(0x0490C970), UINT32_C(0x2B431390), UINT32_C(0xCED5E4CF) }, + { UINT32_C(0x51D2898E), UINT32_C(0x07D82704), UINT32_C(0x083B57D4), + UINT32_C(0x44B72442), UINT32_C(0x5037FCE8), UINT32_C(0xA4ADA230), + UINT32_C(0x50510DA6), UINT32_C(0x55F7905E), UINT32_C(0x8D890A98), + UINT32_C(0xD8EE724F), UINT32_C(0x11B85640), UINT32_C(0x925A8E7C) } }, + { { UINT32_C(0x1CA459ED), UINT32_C(0x5BFA10CD), UINT32_C(0x6DCF56BF), + UINT32_C(0x593F085A), UINT32_C(0xC0579C3E), UINT32_C(0xE6F0AD9B), + UINT32_C(0x2527C1AD), UINT32_C(0xC11C95A2), UINT32_C(0xCF1CB8B3), + UINT32_C(0x7CFA71E1), UINT32_C(0x1D6DC79D), UINT32_C(0xEDCFF833) }, + { UINT32_C(0x432521C9), UINT32_C(0x581C4BBE), UINT32_C(0x144E11A0), + UINT32_C(0xBF620096), UINT32_C(0xBE3A107B), UINT32_C(0x54C38B71), + UINT32_C(0xE2606EC0), UINT32_C(0xED555E37), UINT32_C(0xD721D034), + UINT32_C(0x3FB148B8), UINT32_C(0x0091BC90), UINT32_C(0x79D53DAD) } }, + { { UINT32_C(0xB7082C80), UINT32_C(0xE32068C5), UINT32_C(0x7A144E22), + UINT32_C(0x4140FFD2), UINT32_C(0x9EDD9E86), UINT32_C(0x5811D2F0), + UINT32_C(0xC572C465), UINT32_C(0xCDD79B5F), UINT32_C(0xC97BF450), + UINT32_C(0x3563FED1), UINT32_C(0xF2CE5C9C), UINT32_C(0x985C1444) }, + { UINT32_C(0x99950F1C), UINT32_C(0x260AE797), UINT32_C(0x765E9DED), + UINT32_C(0x659F4F40), UINT32_C(0x2E3BC286), UINT32_C(0x2A412D66), + UINT32_C(0xF87E0C82), UINT32_C(0xE865E62C), UINT32_C(0x6C05E7D7), + UINT32_C(0xD63D3A9A), UINT32_C(0x8686F89A), UINT32_C(0x96725D67) } }, + { { UINT32_C(0xAB7EA0F5), UINT32_C(0xC99A5E4C), UINT32_C(0xC5393FA9), + UINT32_C(0xC9860A1A), UINT32_C(0x8FDEEFC0), UINT32_C(0x9ED83CEE), + UINT32_C(0x5ED6869A), UINT32_C(0xE3EA8B4C), UINT32_C(0xD2EED3A9), + UINT32_C(0x89A85463), UINT32_C(0xE421A622), UINT32_C(0x2CD91B6D) }, + { UINT32_C(0x2C91C41D), UINT32_C(0x6FEC1EF3), UINT32_C(0x8171037D), + UINT32_C(0xB1540D1F), UINT32_C(0x1C010E5B), UINT32_C(0x4FE4991A), + UINT32_C(0xFC1C7368), UINT32_C(0x28A3469F), UINT32_C(0xAF118781), + UINT32_C(0xE1EEECD1), UINT32_C(0x99EF3531), UINT32_C(0x1BCCB977) } }, + { { UINT32_C(0xC4DAB7B8), UINT32_C(0x63D3B638), UINT32_C(0x3F7F5BAB), + UINT32_C(0xD92133B6), UINT32_C(0x09FB6069), UINT32_C(0x2573EE20), + UINT32_C(0x890A1686), UINT32_C(0x771FABDF), UINT32_C(0xA77AFFF5), + UINT32_C(0x1D0BA21F), UINT32_C(0xBA3DD2C0), UINT32_C(0x83145FCC) }, + { UINT32_C(0x2D115C20), UINT32_C(0xFA073A81), UINT32_C(0x19176F27), + UINT32_C(0x6AB7A9D3), UINT32_C(0x9AC639EE), UINT32_C(0xAF62CF93), + UINT32_C(0x2CCD1319), UINT32_C(0xF73848B9), UINT32_C(0x3C71659D), + UINT32_C(0x3B613234), UINT32_C(0x10AB3826), UINT32_C(0xF8E0011C) } }, + { { UINT32_C(0x0282FFA5), UINT32_C(0x0501F036), UINT32_C(0xD9E0F15A), + UINT32_C(0xC39A5CF4), UINT32_C(0x9A3D1F3C), UINT32_C(0x48D8C729), + UINT32_C(0x64E18EDA), UINT32_C(0xB5FC136B), UINT32_C(0x7E58FEF0), + UINT32_C(0xE81B53D9), UINT32_C(0xF7B0F28D), UINT32_C(0x0D534055) }, + { UINT32_C(0x7A80619B), UINT32_C(0x47B8DE12), UINT32_C(0x81F9E55D), + UINT32_C(0x60E2A2B3), UINT32_C(0xCF564CC5), UINT32_C(0x6E9624D7), + UINT32_C(0x6BDEDFFF), UINT32_C(0xFDF18A21), UINT32_C(0xC0D5FC82), + UINT32_C(0x3787DE38), UINT32_C(0x497A6B11), UINT32_C(0xCBCAA347) } }, + { { UINT32_C(0xB226465A), UINT32_C(0x6E7EF35E), UINT32_C(0x5F8A2BAF), + UINT32_C(0x4B469919), UINT32_C(0x1120D93F), UINT32_C(0x44B3A3CF), + UINT32_C(0x68F34AD1), UINT32_C(0xB052C8B6), UINT32_C(0xEF7632DD), + UINT32_C(0x27EC574B), UINT32_C(0x685DE26F), UINT32_C(0xAEBEA108) }, + { UINT32_C(0xE39424B6), UINT32_C(0xDA33236B), UINT32_C(0xEBCC22AD), + UINT32_C(0xB1BD94A9), UINT32_C(0x2CDFB5D5), UINT32_C(0x6DDEE6CC), + UINT32_C(0x6F14069A), UINT32_C(0xBDAED927), UINT32_C(0x2A247CB7), + UINT32_C(0x2ADE427C), UINT32_C(0xED156A40), UINT32_C(0xCE96B436) } }, + { { UINT32_C(0x81F3F819), UINT32_C(0xDDDCA360), UINT32_C(0xD419B96A), + UINT32_C(0x4AF4A49F), UINT32_C(0x7CB966B9), UINT32_C(0x746C6525), + UINT32_C(0x6F610023), UINT32_C(0x01E39088), UINT32_C(0x98DD33FC), + UINT32_C(0x05ECB38D), UINT32_C(0x8F84EDF4), UINT32_C(0x962B971B) }, + { UINT32_C(0x6A6F2602), UINT32_C(0xEB32C0A5), UINT32_C(0x562D60F2), + UINT32_C(0xF026AF71), UINT32_C(0x84615FAB), UINT32_C(0xA9E246BF), + UINT32_C(0x75DBAE01), UINT32_C(0xAD967092), UINT32_C(0x3ECE5D07), + UINT32_C(0xBF97C79B), UINT32_C(0x74EAA3D3), UINT32_C(0xE06266C7) } }, + { { UINT32_C(0x2E6DBB6E), UINT32_C(0x161A0157), UINT32_C(0x60FA8F47), + UINT32_C(0xB8AF4904), UINT32_C(0x00197F22), UINT32_C(0xE4336C44), + UINT32_C(0x9CEDCE0E), UINT32_C(0xF811AFFA), UINT32_C(0xF94C2EF1), + UINT32_C(0xB1DD7685), UINT32_C(0xCA957BB0), UINT32_C(0xEEDC0F4B) }, + { UINT32_C(0x4AA76BB1), UINT32_C(0xD319FD57), UINT32_C(0x16CD7CCB), + UINT32_C(0xB3525D7C), UINT32_C(0xA97DD072), UINT32_C(0x7B22DA9C), + UINT32_C(0x38A83E71), UINT32_C(0x99DB84BD), UINT32_C(0xC0EDD8BE), + UINT32_C(0x4939BC8D), UINT32_C(0x903A932C), UINT32_C(0x06D524EA) } }, + { { UINT32_C(0x0E31F639), UINT32_C(0x4BC950EC), UINT32_C(0x6016BE30), + UINT32_C(0xB7ABD3DC), UINT32_C(0x6703DAD0), UINT32_C(0x3B0F4473), + UINT32_C(0x0AC1C4EA), UINT32_C(0xCC405F8B), UINT32_C(0x176C3FEE), + UINT32_C(0x9BED5E57), UINT32_C(0x36AE36C2), UINT32_C(0xF4524810) }, + { UINT32_C(0x15D7B503), UINT32_C(0xC1EDBB83), UINT32_C(0xE30F3657), + UINT32_C(0x943B1156), UINT32_C(0x98377805), UINT32_C(0x984E9EEF), + UINT32_C(0x36CF1DEB), UINT32_C(0x291AE7AC), UINT32_C(0xA9F66DF3), + UINT32_C(0xFED8748C), UINT32_C(0xFEA8FA5D), UINT32_C(0xECA758BB) } }, + }, + { + { { UINT32_C(0x2DD1B249), UINT32_C(0xACC787EF), UINT32_C(0xD82976F1), + UINT32_C(0x736E1030), UINT32_C(0xA01B3649), UINT32_C(0x0A6940FA), + UINT32_C(0xC42341E7), UINT32_C(0xE00B926B), UINT32_C(0xDE8FFD6C), + UINT32_C(0x911508D0), UINT32_C(0x5276B0CB), UINT32_C(0x4DCF8D46) }, + { UINT32_C(0xCC3CAD8D), UINT32_C(0x23AD0A90), UINT32_C(0xADED962A), + UINT32_C(0x2A92E54C), UINT32_C(0xF231BFAF), UINT32_C(0x93FBEC4D), + UINT32_C(0x4798987A), UINT32_C(0x9544BC77), UINT32_C(0x08E29F60), + UINT32_C(0x48084E25), UINT32_C(0x32DE5869), UINT32_C(0x0C0D2F43) } }, + { { UINT32_C(0x3A9ABC13), UINT32_C(0x6778F970), UINT32_C(0x3D2B166B), + UINT32_C(0xFD014FAC), UINT32_C(0x3C6FED60), UINT32_C(0x1FE4FC78), + UINT32_C(0xAA7C69C5), UINT32_C(0x04295FA8), UINT32_C(0x7C123175), + UINT32_C(0xA01DE56D), UINT32_C(0x3D9A713A), UINT32_C(0x0FA0D3A8) }, + { UINT32_C(0xE3E08ADD), UINT32_C(0xA7A6E5E3), UINT32_C(0x1AC58F85), + UINT32_C(0xBD77E94B), UINT32_C(0xB7321A9C), UINT32_C(0x078F6FD2), + UINT32_C(0x911EF6D9), UINT32_C(0x9564601E), UINT32_C(0x415C6BEF), + UINT32_C(0x31C5C1B2), UINT32_C(0xD3212C62), UINT32_C(0xE6C0C91E) } }, + { { UINT32_C(0x0D16022F), UINT32_C(0xBA7BD23C), UINT32_C(0x198BE288), + UINT32_C(0xE9CF4750), UINT32_C(0x47DEEC65), UINT32_C(0x304E3169), + UINT32_C(0x96EEB288), UINT32_C(0xCF65B41F), UINT32_C(0x927E9E3B), + UINT32_C(0x17E99C17), UINT32_C(0xF6630A80), UINT32_C(0x82225546) }, + { UINT32_C(0xCA067BD9), UINT32_C(0x15122B8A), UINT32_C(0xB77B4E98), + UINT32_C(0xE2673205), UINT32_C(0x9407CA63), UINT32_C(0x13037565), + UINT32_C(0x8B621602), UINT32_C(0x53624F54), UINT32_C(0xEAE4BD06), + UINT32_C(0x96AF2CB1), UINT32_C(0x8FA20829), UINT32_C(0x576ECD1C) } }, + { { UINT32_C(0x7E02D2D0), UINT32_C(0xA551CE10), UINT32_C(0x9D13DBC7), + UINT32_C(0x1584ED24), UINT32_C(0x4DA7B6D8), UINT32_C(0x082017AD), + UINT32_C(0xE054BC48), UINT32_C(0x81918A8F), UINT32_C(0x572DC384), + UINT32_C(0x677DB48E), UINT32_C(0x6155484C), UINT32_C(0x2EF82296) }, + { UINT32_C(0x41B9C231), UINT32_C(0xC3DB14C6), UINT32_C(0x4A766192), + UINT32_C(0x910A87D1), UINT32_C(0x10AB8E0F), UINT32_C(0x93D5CC86), + UINT32_C(0xAE57CA1B), UINT32_C(0x4194D548), UINT32_C(0x267FC37A), + UINT32_C(0xFAF3A1D6), UINT32_C(0x13B87C97), UINT32_C(0x70EC2364) } }, + { { UINT32_C(0x5E12756A), UINT32_C(0x064B565B), UINT32_C(0xAE49C98E), + UINT32_C(0x953B7BD1), UINT32_C(0xF7001D91), UINT32_C(0xE0CE8284), + UINT32_C(0xF31108D0), UINT32_C(0x1546060B), UINT32_C(0x6779B6E2), + UINT32_C(0xDBC2C3F4), UINT32_C(0xE0DD07CF), UINT32_C(0x157AA47D) }, + { UINT32_C(0xF23B261E), UINT32_C(0xBF4A1C6F), UINT32_C(0x654F4BE5), + UINT32_C(0x5B8EED30), UINT32_C(0x6B20CCD8), UINT32_C(0xDF5896D3), + UINT32_C(0x559ED23D), UINT32_C(0x56920E2C), UINT32_C(0xFA6E3E27), + UINT32_C(0x901F342E), UINT32_C(0x896CA082), UINT32_C(0x745C747C) } }, + { { UINT32_C(0x2944EC84), UINT32_C(0xDBCCD575), UINT32_C(0xA5FF65FE), + UINT32_C(0x54A2A935), UINT32_C(0x1A1319B6), UINT32_C(0x88C92A5E), + UINT32_C(0x82DA96C1), UINT32_C(0x9537C28F), UINT32_C(0x35F93C46), + UINT32_C(0xB6836474), UINT32_C(0x65B0846C), UINT32_C(0xEC526A1D) }, + { UINT32_C(0xF382C412), UINT32_C(0x6F12AFBD), UINT32_C(0x9E99FA06), + UINT32_C(0x5EBC81D8), UINT32_C(0x869B93BD), UINT32_C(0x97B5D672), + UINT32_C(0x377E12AA), UINT32_C(0x2983C310), UINT32_C(0x24D681EA), + UINT32_C(0x48759681), UINT32_C(0x287FD767), UINT32_C(0x1E0BD106) } }, + { { UINT32_C(0x7231247F), UINT32_C(0x0AC75A3E), UINT32_C(0xEF27AD3A), + UINT32_C(0x65C20DE6), UINT32_C(0xBD02EEE5), UINT32_C(0x87EB6CF1), + UINT32_C(0x00147E03), UINT32_C(0x264ACA7A), UINT32_C(0xAE2A9437), + UINT32_C(0xEBC78581), UINT32_C(0x6316BFA5), UINT32_C(0x9929964E) }, + { UINT32_C(0x9AF207EF), UINT32_C(0xDC09E040), UINT32_C(0x0C9D8658), + UINT32_C(0x3ECFFE2D), UINT32_C(0xDFB43D38), UINT32_C(0x547EA735), + UINT32_C(0xD04B1B20), UINT32_C(0x5485247B), UINT32_C(0xBFD8B609), + UINT32_C(0xB18D3F02), UINT32_C(0xCCE73705), UINT32_C(0xEEB3E805) } }, + { { UINT32_C(0xDB93850F), UINT32_C(0xDAB1A525), UINT32_C(0x8365B7D5), + UINT32_C(0x18ADAA23), UINT32_C(0x113FC8C7), UINT32_C(0x58485C90), + UINT32_C(0x348AD323), UINT32_C(0x80C3DBB9), UINT32_C(0xE16ADCA1), + UINT32_C(0xAF892FB5), UINT32_C(0x979F005A), UINT32_C(0x2183C879) }, + { UINT32_C(0x0643A99E), UINT32_C(0x20FA1A94), UINT32_C(0x1A1609CB), + UINT32_C(0x2741221C), UINT32_C(0x3C2FBDDC), UINT32_C(0x1C1687E5), + UINT32_C(0xD420D6CF), UINT32_C(0xDCCF329E), UINT32_C(0x2B7197D1), + UINT32_C(0x75D5577D), UINT32_C(0xC8729D9C), UINT32_C(0x4C3C3875) } }, + { { UINT32_C(0xE5CBDCB9), UINT32_C(0x5E79F995), UINT32_C(0xA742FCC7), + UINT32_C(0x03139824), UINT32_C(0x239EF4A1), UINT32_C(0x6D0C214A), + UINT32_C(0x401A2944), UINT32_C(0x53A27952), UINT32_C(0xC10BCDF0), + UINT32_C(0xF42A1B34), UINT32_C(0x7CF38061), UINT32_C(0x426BAA43) }, + { UINT32_C(0xA96AD0C8), UINT32_C(0x16A53139), UINT32_C(0x6BAD5301), + UINT32_C(0x627F1D31), UINT32_C(0x4ACCD627), UINT32_C(0x5AF74877), + UINT32_C(0xB55B0FB8), UINT32_C(0x3C58A1C5), UINT32_C(0xF4399A6A), + UINT32_C(0xFAA57B91), UINT32_C(0xC28094B8), UINT32_C(0xBAD283FB) } }, + { { UINT32_C(0x83E10A93), UINT32_C(0xBA32AC61), UINT32_C(0xEC06BDB0), + UINT32_C(0x1C91F6B4), UINT32_C(0x65F60C93), UINT32_C(0x42E6CFBC), + UINT32_C(0x2C0CDCBE), UINT32_C(0xEFE33BC8), UINT32_C(0x4D6414F2), + UINT32_C(0xE0FE1D09), UINT32_C(0x76FA5C5B), UINT32_C(0x4C112316) }, + { UINT32_C(0x2E26200A), UINT32_C(0x812C1DC6), UINT32_C(0xEE879D25), + UINT32_C(0xD6C413C5), UINT32_C(0xBCA8BAFE), UINT32_C(0xBEADE255), + UINT32_C(0xCE2BA0E7), UINT32_C(0x0EAF4AE2), UINT32_C(0xC4F4408A), + UINT32_C(0x66E9FFB0), UINT32_C(0x9782C7AD), UINT32_C(0xB36A86D7) } }, + { { UINT32_C(0xBAD8D1C7), UINT32_C(0x10FCD1F4), UINT32_C(0x4502F645), + UINT32_C(0xC903816A), UINT32_C(0xA503B895), UINT32_C(0x7FAC1CC1), + UINT32_C(0x0778900C), UINT32_C(0x8BCD6041), UINT32_C(0x5BCF2784), + UINT32_C(0x5A5F2202), UINT32_C(0x10EDB896), UINT32_C(0x9B157E87) }, + { UINT32_C(0xF602A8B1), UINT32_C(0x4C58DA69), UINT32_C(0x59EC9D7E), + UINT32_C(0xD55132F8), UINT32_C(0xA26D4870), UINT32_C(0x155B719A), + UINT32_C(0x36441746), UINT32_C(0x25AAFCA3), UINT32_C(0xDD3B6B30), + UINT32_C(0x01F83338), UINT32_C(0x551917CC), UINT32_C(0xD52BB5C1) } }, + { { UINT32_C(0x6135066A), UINT32_C(0xA0B6207B), UINT32_C(0x2AEC8CBD), + UINT32_C(0xB3409F84), UINT32_C(0x19D87DF0), UINT32_C(0x5EBFD436), + UINT32_C(0xE8526DE2), UINT32_C(0xCB4C209B), UINT32_C(0x21E1A230), + UINT32_C(0xD764085B), UINT32_C(0x0899964A), UINT32_C(0x96F91554) }, + { UINT32_C(0xA57D122A), UINT32_C(0xB0BEC8EF), UINT32_C(0x5D9D0B33), + UINT32_C(0xC572EC56), UINT32_C(0xCFA7C72C), UINT32_C(0xEBE2A780), + UINT32_C(0x9EF3295C), UINT32_C(0x52D40CDB), UINT32_C(0x0DE74DFE), + UINT32_C(0x64004584), UINT32_C(0xC0809716), UINT32_C(0xA6846432) } }, + { { UINT32_C(0x02C979BC), UINT32_C(0x0D09E8CD), UINT32_C(0x409F4F2A), + UINT32_C(0xEC4B21F6), UINT32_C(0x13FB07CA), UINT32_C(0x68125C70), + UINT32_C(0x6FDFA72A), UINT32_C(0x1C4CFC17), UINT32_C(0x04539FCD), + UINT32_C(0xC9E71B9E), UINT32_C(0x8BA70797), UINT32_C(0x94B7103D) }, + { UINT32_C(0xB33FDE83), UINT32_C(0x6B81E82F), UINT32_C(0xEABAFD4B), + UINT32_C(0x7CA9A8CA), UINT32_C(0xEAB819CE), UINT32_C(0xADD85A67), + UINT32_C(0x98E99FFC), UINT32_C(0xAEC25483), UINT32_C(0x274A07B6), + UINT32_C(0x938D6440), UINT32_C(0x564A6AA0), UINT32_C(0x0A5C7097) } }, + { { UINT32_C(0x2F4FCEB6), UINT32_C(0x7284FF50), UINT32_C(0x78D0D5CB), + UINT32_C(0x0A28715A), UINT32_C(0xBFCE187C), UINT32_C(0xE70B7014), + UINT32_C(0x7A17148D), UINT32_C(0xA6B538F5), UINT32_C(0xDD427166), + UINT32_C(0x1DAB07C9), UINT32_C(0x149D23CA), UINT32_C(0x5C5578B0) }, + { UINT32_C(0x875B5EDE), UINT32_C(0x875E2056), UINT32_C(0x02C893B9), + UINT32_C(0xCBF44B6D), UINT32_C(0x5C2993FB), UINT32_C(0x5715A77E), + UINT32_C(0x3410597E), UINT32_C(0xAF328146), UINT32_C(0x42DC49DF), + UINT32_C(0x65DF418F), UINT32_C(0xA9EE52F6), UINT32_C(0x7AC9C720) } }, + { { UINT32_C(0x62955486), UINT32_C(0xB1C9AA07), UINT32_C(0x245061D7), + UINT32_C(0xCBF35BE3), UINT32_C(0x8CF4DDC0), UINT32_C(0x811E1BD3), + UINT32_C(0x948F7C84), UINT32_C(0xD9D4589C), UINT32_C(0xCB0F996D), + UINT32_C(0x30D09A0F), UINT32_C(0x590E7704), UINT32_C(0x1A1B3B7A) }, + { UINT32_C(0x2082768D), UINT32_C(0xA848E349), UINT32_C(0x9A249DF4), + UINT32_C(0x9FEBD492), UINT32_C(0x5F20439A), UINT32_C(0x503420AF), + UINT32_C(0x8E2BFCD4), UINT32_C(0x0CBE52B6), UINT32_C(0x118C91B2), + UINT32_C(0xB1D5E261), UINT32_C(0x71D8F2BC), UINT32_C(0x93CFF6DA) } }, + { { UINT32_C(0x8AB58944), UINT32_C(0x5F5BC06B), UINT32_C(0x4979882D), + UINT32_C(0xE4BED538), UINT32_C(0xD79B0EB1), UINT32_C(0x57C30362), + UINT32_C(0xEF7C56D8), UINT32_C(0x391AE2C1), UINT32_C(0xADD98625), + UINT32_C(0x28BC2E97), UINT32_C(0x1B257107), UINT32_C(0xFA8E86B8) }, + { UINT32_C(0x6118C715), UINT32_C(0x5E4859F8), UINT32_C(0x524C71DD), + UINT32_C(0x91C83324), UINT32_C(0x6D2F5E6D), UINT32_C(0xFB209243), + UINT32_C(0x2A900A43), UINT32_C(0x6B4FE21F), UINT32_C(0x32A73C1F), + UINT32_C(0x241F75D6), UINT32_C(0x5AE89613), UINT32_C(0xF5BC4629) } }, + } +}; + +/*- + * Q := 2P, both projective, Q and P same pointers OK + * Autogenerated: op3/dbl_proj.op3 + * https://eprint.iacr.org/2015/1060 Alg 6 + * ASSERT: a = -3 + */ +static void +point_double(pt_prj_t *Q, const pt_prj_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X = P->X; + const limb_t *Y = P->Y; + const limb_t *Z = P->Z; + limb_t *X3 = Q->X; + limb_t *Y3 = Q->Y; + limb_t *Z3 = Q->Z; + + /* the curve arith formula */ + fiat_secp384r1_square(t0, X); + fiat_secp384r1_square(t1, Y); + fiat_secp384r1_square(t2, Z); + fiat_secp384r1_mul(t3, X, Y); + fiat_secp384r1_add(t3, t3, t3); + fiat_secp384r1_mul(t4, Y, Z); + fiat_secp384r1_mul(Z3, X, Z); + fiat_secp384r1_add(Z3, Z3, Z3); + fiat_secp384r1_mul(Y3, b, t2); + fiat_secp384r1_sub(Y3, Y3, Z3); + fiat_secp384r1_add(X3, Y3, Y3); + fiat_secp384r1_add(Y3, X3, Y3); + fiat_secp384r1_sub(X3, t1, Y3); + fiat_secp384r1_add(Y3, t1, Y3); + fiat_secp384r1_mul(Y3, X3, Y3); + fiat_secp384r1_mul(X3, X3, t3); + fiat_secp384r1_add(t3, t2, t2); + fiat_secp384r1_add(t2, t2, t3); + fiat_secp384r1_mul(Z3, b, Z3); + fiat_secp384r1_sub(Z3, Z3, t2); + fiat_secp384r1_sub(Z3, Z3, t0); + fiat_secp384r1_add(t3, Z3, Z3); + fiat_secp384r1_add(Z3, Z3, t3); + fiat_secp384r1_add(t3, t0, t0); + fiat_secp384r1_add(t0, t3, t0); + fiat_secp384r1_sub(t0, t0, t2); + fiat_secp384r1_mul(t0, t0, Z3); + fiat_secp384r1_add(Y3, Y3, t0); + fiat_secp384r1_add(t0, t4, t4); + fiat_secp384r1_mul(Z3, t0, Z3); + fiat_secp384r1_sub(X3, X3, Z3); + fiat_secp384r1_mul(Z3, t0, t1); + fiat_secp384r1_add(Z3, Z3, Z3); + fiat_secp384r1_add(Z3, Z3, Z3); +} + +/*- + * R := Q + P where R and Q are projective, P affine. + * R and Q same pointers OK + * R and P same pointers not OK + * Autogenerated: op3/add_mixed.op3 + * https://eprint.iacr.org/2015/1060 Alg 5 + * ASSERT: a = -3 + */ +static void +point_add_mixed(pt_prj_t *R, const pt_prj_t *Q, const pt_aff_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X1 = Q->X; + const limb_t *Y1 = Q->Y; + const limb_t *Z1 = Q->Z; + const limb_t *X2 = P->X; + const limb_t *Y2 = P->Y; + fe_t X3; + fe_t Y3; + fe_t Z3; + limb_t nz; + + /* check P for affine inf */ + fiat_secp384r1_nonzero(&nz, P->Y); + + /* the curve arith formula */ + fiat_secp384r1_mul(t0, X1, X2); + fiat_secp384r1_mul(t1, Y1, Y2); + fiat_secp384r1_add(t3, X2, Y2); + fiat_secp384r1_add(t4, X1, Y1); + fiat_secp384r1_mul(t3, t3, t4); + fiat_secp384r1_add(t4, t0, t1); + fiat_secp384r1_sub(t3, t3, t4); + fiat_secp384r1_mul(t4, Y2, Z1); + fiat_secp384r1_add(t4, t4, Y1); + fiat_secp384r1_mul(Y3, X2, Z1); + fiat_secp384r1_add(Y3, Y3, X1); + fiat_secp384r1_mul(Z3, b, Z1); + fiat_secp384r1_sub(X3, Y3, Z3); + fiat_secp384r1_add(Z3, X3, X3); + fiat_secp384r1_add(X3, X3, Z3); + fiat_secp384r1_sub(Z3, t1, X3); + fiat_secp384r1_add(X3, t1, X3); + fiat_secp384r1_mul(Y3, b, Y3); + fiat_secp384r1_add(t1, Z1, Z1); + fiat_secp384r1_add(t2, t1, Z1); + fiat_secp384r1_sub(Y3, Y3, t2); + fiat_secp384r1_sub(Y3, Y3, t0); + fiat_secp384r1_add(t1, Y3, Y3); + fiat_secp384r1_add(Y3, t1, Y3); + fiat_secp384r1_add(t1, t0, t0); + fiat_secp384r1_add(t0, t1, t0); + fiat_secp384r1_sub(t0, t0, t2); + fiat_secp384r1_mul(t1, t4, Y3); + fiat_secp384r1_mul(t2, t0, Y3); + fiat_secp384r1_mul(Y3, X3, Z3); + fiat_secp384r1_add(Y3, Y3, t2); + fiat_secp384r1_mul(X3, t3, X3); + fiat_secp384r1_sub(X3, X3, t1); + fiat_secp384r1_mul(Z3, t4, Z3); + fiat_secp384r1_mul(t1, t3, t0); + fiat_secp384r1_add(Z3, Z3, t1); + + /* if P is inf, throw all that away and take Q */ + fiat_secp384r1_selectznz(R->X, nz, Q->X, X3); + fiat_secp384r1_selectznz(R->Y, nz, Q->Y, Y3); + fiat_secp384r1_selectznz(R->Z, nz, Q->Z, Z3); +} + +/*- + * R := Q + P all projective. + * R and Q same pointers OK + * R and P same pointers not OK + * Autogenerated: op3/add_proj.op3 + * https://eprint.iacr.org/2015/1060 Alg 4 + * ASSERT: a = -3 + */ +static void +point_add_proj(pt_prj_t *R, const pt_prj_t *Q, const pt_prj_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4, t5; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X1 = Q->X; + const limb_t *Y1 = Q->Y; + const limb_t *Z1 = Q->Z; + const limb_t *X2 = P->X; + const limb_t *Y2 = P->Y; + const limb_t *Z2 = P->Z; + limb_t *X3 = R->X; + limb_t *Y3 = R->Y; + limb_t *Z3 = R->Z; + + /* the curve arith formula */ + fiat_secp384r1_mul(t0, X1, X2); + fiat_secp384r1_mul(t1, Y1, Y2); + fiat_secp384r1_mul(t2, Z1, Z2); + fiat_secp384r1_add(t3, X1, Y1); + fiat_secp384r1_add(t4, X2, Y2); + fiat_secp384r1_mul(t3, t3, t4); + fiat_secp384r1_add(t4, t0, t1); + fiat_secp384r1_sub(t3, t3, t4); + fiat_secp384r1_add(t4, Y1, Z1); + fiat_secp384r1_add(t5, Y2, Z2); + fiat_secp384r1_mul(t4, t4, t5); + fiat_secp384r1_add(t5, t1, t2); + fiat_secp384r1_sub(t4, t4, t5); + fiat_secp384r1_add(X3, X1, Z1); + fiat_secp384r1_add(Y3, X2, Z2); + fiat_secp384r1_mul(X3, X3, Y3); + fiat_secp384r1_add(Y3, t0, t2); + fiat_secp384r1_sub(Y3, X3, Y3); + fiat_secp384r1_mul(Z3, b, t2); + fiat_secp384r1_sub(X3, Y3, Z3); + fiat_secp384r1_add(Z3, X3, X3); + fiat_secp384r1_add(X3, X3, Z3); + fiat_secp384r1_sub(Z3, t1, X3); + fiat_secp384r1_add(X3, t1, X3); + fiat_secp384r1_mul(Y3, b, Y3); + fiat_secp384r1_add(t1, t2, t2); + fiat_secp384r1_add(t2, t1, t2); + fiat_secp384r1_sub(Y3, Y3, t2); + fiat_secp384r1_sub(Y3, Y3, t0); + fiat_secp384r1_add(t1, Y3, Y3); + fiat_secp384r1_add(Y3, t1, Y3); + fiat_secp384r1_add(t1, t0, t0); + fiat_secp384r1_add(t0, t1, t0); + fiat_secp384r1_sub(t0, t0, t2); + fiat_secp384r1_mul(t1, t4, Y3); + fiat_secp384r1_mul(t2, t0, Y3); + fiat_secp384r1_mul(Y3, X3, Z3); + fiat_secp384r1_add(Y3, Y3, t2); + fiat_secp384r1_mul(X3, t3, X3); + fiat_secp384r1_sub(X3, X3, t1); + fiat_secp384r1_mul(Z3, t4, Z3); + fiat_secp384r1_mul(t1, t3, t0); + fiat_secp384r1_add(Z3, Z3, t1); +} + +/* constants */ +#define RADIX 5 +#define DRADIX (1 << RADIX) +#define DRADIX_WNAF ((DRADIX) << 1) + +/*- + * precomp for wnaf scalar multiplication: + * precomp[0] = 1P + * precomp[1] = 3P + * precomp[2] = 5P + * precomp[3] = 7P + * precomp[4] = 9P + * ... + */ +static void +precomp_wnaf(pt_prj_t precomp[DRADIX / 2], const pt_aff_t *P) +{ + int i; + + fe_copy(precomp[0].X, P->X); + fe_copy(precomp[0].Y, P->Y); + fe_copy(precomp[0].Z, const_one); + point_double(&precomp[DRADIX / 2 - 1], &precomp[0]); + + for (i = 1; i < DRADIX / 2; i++) + point_add_proj(&precomp[i], &precomp[DRADIX / 2 - 1], &precomp[i - 1]); +} + +/* fetch a scalar bit */ +static int +scalar_get_bit(const unsigned char in[48], int idx) +{ + int widx, rshift; + + widx = idx >> 3; + rshift = idx & 0x7; + + if (idx < 0 || widx >= 48) + return 0; + + return (in[widx] >> rshift) & 0x1; +} + +/*- + * Compute "regular" wnaf representation of a scalar. + * See "Exponent Recoding and Regular Exponentiation Algorithms", + * Tunstall et al., AfricaCrypt 2009, Alg 6. + * It forces an odd scalar and outputs digits in + * {\pm 1, \pm 3, \pm 5, \pm 7, \pm 9, ...} + * i.e. signed odd digits with _no zeroes_ -- that makes it "regular". + */ +static void +scalar_rwnaf(int8_t out[77], const unsigned char in[48]) +{ + int i; + int8_t window, d; + + window = (in[0] & (DRADIX_WNAF - 1)) | 1; + for (i = 0; i < 76; i++) { + d = (window & (DRADIX_WNAF - 1)) - DRADIX; + out[i] = d; + window = (window - d) >> RADIX; + window += scalar_get_bit(in, (i + 1) * RADIX + 1) << 1; + window += scalar_get_bit(in, (i + 1) * RADIX + 2) << 2; + window += scalar_get_bit(in, (i + 1) * RADIX + 3) << 3; + window += scalar_get_bit(in, (i + 1) * RADIX + 4) << 4; + window += scalar_get_bit(in, (i + 1) * RADIX + 5) << 5; + } + out[i] = window; +} + +/*- + * Compute "textbook" wnaf representation of a scalar. + * NB: not constant time + */ +static void +scalar_wnaf(int8_t out[385], const unsigned char in[48]) +{ + int i; + int8_t window, d; + + window = in[0] & (DRADIX_WNAF - 1); + for (i = 0; i < 385; i++) { + d = 0; + if ((window & 1) && ((d = window & (DRADIX_WNAF - 1)) & DRADIX)) + d -= DRADIX_WNAF; + out[i] = d; + window = (window - d) >> 1; + window += scalar_get_bit(in, i + 1 + RADIX) << RADIX; + } +} + +/*- + * Simulateous scalar multiplication: interleaved "textbook" wnaf. + * NB: not constant time + */ +static void +var_smul_wnaf_two(pt_aff_t *out, const unsigned char a[48], + const unsigned char b[48], const pt_aff_t *P) +{ + int i, d, is_neg, is_inf = 1, flipped = 0; + int8_t anaf[385] = { 0 }; + int8_t bnaf[385] = { 0 }; + pt_prj_t Q; + pt_prj_t precomp[DRADIX / 2]; + + precomp_wnaf(precomp, P); + scalar_wnaf(anaf, a); + scalar_wnaf(bnaf, b); + + for (i = 384; i >= 0; i--) { + if (!is_inf) + point_double(&Q, &Q); + if ((d = bnaf[i])) { + if ((is_neg = d < 0) != flipped) { + fiat_secp384r1_opp(Q.Y, Q.Y); + flipped ^= 1; + } + d = (is_neg) ? (-d - 1) >> 1 : (d - 1) >> 1; + if (is_inf) { + /* initialize accumulator */ + fe_copy(Q.X, &precomp[d].X); + fe_copy(Q.Y, &precomp[d].Y); + fe_copy(Q.Z, &precomp[d].Z); + is_inf = 0; + } else + point_add_proj(&Q, &Q, &precomp[d]); + } + if ((d = anaf[i])) { + if ((is_neg = d < 0) != flipped) { + fiat_secp384r1_opp(Q.Y, Q.Y); + flipped ^= 1; + } + d = (is_neg) ? (-d - 1) >> 1 : (d - 1) >> 1; + if (is_inf) { + /* initialize accumulator */ + fe_copy(Q.X, &lut_cmb[0][d].X); + fe_copy(Q.Y, &lut_cmb[0][d].Y); + fe_copy(Q.Z, const_one); + is_inf = 0; + } else + point_add_mixed(&Q, &Q, &lut_cmb[0][d]); + } + } + + if (is_inf) { + /* initialize accumulator to inf: all-zero scalars */ + fe_set_zero(Q.X); + fe_copy(Q.Y, const_one); + fe_set_zero(Q.Z); + } + + if (flipped) { + /* correct sign */ + fiat_secp384r1_opp(Q.Y, Q.Y); + } + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp384r1_inv(Q.Z, Q.Z); + fiat_secp384r1_mul(out->X, Q.X, Q.Z); + fiat_secp384r1_mul(out->Y, Q.Y, Q.Z); +} + +/*- + * Variable point scalar multiplication with "regular" wnaf. + */ +static void +var_smul_rwnaf(pt_aff_t *out, const unsigned char scalar[48], + const pt_aff_t *P) +{ + int i, j, d, diff, is_neg; + int8_t rnaf[77] = { 0 }; + pt_prj_t Q, lut; + pt_prj_t precomp[DRADIX / 2]; + + precomp_wnaf(precomp, P); + scalar_rwnaf(rnaf, scalar); + +#if defined(_MSC_VER) +/* result still unsigned: yes we know */ +#pragma warning(push) +#pragma warning(disable : 4146) +#endif + + /* initialize accumulator to high digit */ + d = (rnaf[76] - 1) >> 1; + for (j = 0; j < DRADIX / 2; j++) { + diff = (1 - (-(d ^ j) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp384r1_selectznz(Q.X, diff, Q.X, precomp[j].X); + fiat_secp384r1_selectznz(Q.Y, diff, Q.Y, precomp[j].Y); + fiat_secp384r1_selectznz(Q.Z, diff, Q.Z, precomp[j].Z); + } + + for (i = 75; i >= 0; i--) { + for (j = 0; j < RADIX; j++) + point_double(&Q, &Q); + d = rnaf[i]; + /* is_neg = (d < 0) ? 1 : 0 */ + is_neg = (d >> (8 * sizeof(int) - 1)) & 1; + /* d = abs(d) */ + d = (d ^ -is_neg) + is_neg; + d = (d - 1) >> 1; + for (j = 0; j < DRADIX / 2; j++) { + diff = (1 - (-(d ^ j) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp384r1_selectznz(lut.X, diff, lut.X, precomp[j].X); + fiat_secp384r1_selectznz(lut.Y, diff, lut.Y, precomp[j].Y); + fiat_secp384r1_selectznz(lut.Z, diff, lut.Z, precomp[j].Z); + } + /* negate lut point if digit is negative */ + fiat_secp384r1_opp(out->Y, lut.Y); + fiat_secp384r1_selectznz(lut.Y, is_neg, lut.Y, out->Y); + point_add_proj(&Q, &Q, &lut); + } + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + + /* conditionally subtract P if the scalar was even */ + fe_copy(lut.X, precomp[0].X); + fiat_secp384r1_opp(lut.Y, precomp[0].Y); + fe_copy(lut.Z, precomp[0].Z); + point_add_proj(&lut, &lut, &Q); + fiat_secp384r1_selectznz(Q.X, scalar[0] & 1, lut.X, Q.X); + fiat_secp384r1_selectznz(Q.Y, scalar[0] & 1, lut.Y, Q.Y); + fiat_secp384r1_selectznz(Q.Z, scalar[0] & 1, lut.Z, Q.Z); + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp384r1_inv(Q.Z, Q.Z); + fiat_secp384r1_mul(out->X, Q.X, Q.Z); + fiat_secp384r1_mul(out->Y, Q.Y, Q.Z); +} + +/*- + * Fixed scalar multiplication: comb with interleaving. + */ +static void +fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[48]) +{ + int i, j, k, d, diff, is_neg = 0; + int8_t rnaf[77] = { 0 }; + pt_prj_t Q, R; + pt_aff_t lut; + + scalar_rwnaf(rnaf, scalar); + + /* initalize accumulator to inf */ + fe_set_zero(Q.X); + fe_copy(Q.Y, const_one); + fe_set_zero(Q.Z); + +#if defined(_MSC_VER) +/* result still unsigned: yes we know */ +#pragma warning(push) +#pragma warning(disable : 4146) +#endif + + for (i = 3; i >= 0; i--) { + for (j = 0; i != 3 && j < RADIX; j++) + point_double(&Q, &Q); + for (j = 0; j < 21; j++) { + if (j * 4 + i > 76) + continue; + d = rnaf[j * 4 + i]; + /* is_neg = (d < 0) ? 1 : 0 */ + is_neg = (d >> (8 * sizeof(int) - 1)) & 1; + /* d = abs(d) */ + d = (d ^ -is_neg) + is_neg; + d = (d - 1) >> 1; + for (k = 0; k < DRADIX / 2; k++) { + diff = (1 - (-(d ^ k) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp384r1_selectznz(lut.X, diff, lut.X, lut_cmb[j][k].X); + fiat_secp384r1_selectznz(lut.Y, diff, lut.Y, lut_cmb[j][k].Y); + } + /* negate lut point if digit is negative */ + fiat_secp384r1_opp(out->Y, lut.Y); + fiat_secp384r1_selectznz(lut.Y, is_neg, lut.Y, out->Y); + point_add_mixed(&Q, &Q, &lut); + } + } + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + + /* conditionally subtract P if the scalar was even */ + fe_copy(lut.X, lut_cmb[0][0].X); + fiat_secp384r1_opp(lut.Y, lut_cmb[0][0].Y); + point_add_mixed(&R, &Q, &lut); + fiat_secp384r1_selectznz(Q.X, scalar[0] & 1, R.X, Q.X); + fiat_secp384r1_selectznz(Q.Y, scalar[0] & 1, R.Y, Q.Y); + fiat_secp384r1_selectznz(Q.Z, scalar[0] & 1, R.Z, Q.Z); + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp384r1_inv(Q.Z, Q.Z); + fiat_secp384r1_mul(out->X, Q.X, Q.Z); + fiat_secp384r1_mul(out->Y, Q.Y, Q.Z); +} + +static void +point_mul_two(unsigned char outx[48], unsigned char outy[48], + const unsigned char a[48], const unsigned char b[48], + const unsigned char inx[48], + const unsigned char iny[48]) +{ + pt_aff_t P; + + fiat_secp384r1_from_bytes(P.X, inx); + fiat_secp384r1_from_bytes(P.Y, iny); + fiat_secp384r1_to_montgomery(P.X, P.X); + fiat_secp384r1_to_montgomery(P.Y, P.Y); + /* simultaneous scalar multiplication */ + var_smul_wnaf_two(&P, a, b, &P); + + fiat_secp384r1_from_montgomery(P.X, P.X); + fiat_secp384r1_from_montgomery(P.Y, P.Y); + fiat_secp384r1_to_bytes(outx, P.X); + fiat_secp384r1_to_bytes(outy, P.Y); +} + +static void +point_mul_g(unsigned char outx[48], unsigned char outy[48], + const unsigned char scalar[48]) +{ + pt_aff_t P; + + /* fixed scmul function */ + fixed_smul_cmb(&P, scalar); + fiat_secp384r1_from_montgomery(P.X, P.X); + fiat_secp384r1_from_montgomery(P.Y, P.Y); + fiat_secp384r1_to_bytes(outx, P.X); + fiat_secp384r1_to_bytes(outy, P.Y); +} + +static void +point_mul(unsigned char outx[48], unsigned char outy[48], + const unsigned char scalar[48], + const unsigned char inx[48], + const unsigned char iny[48]) +{ + pt_aff_t P; + + fiat_secp384r1_from_bytes(P.X, inx); + fiat_secp384r1_from_bytes(P.Y, iny); + fiat_secp384r1_to_montgomery(P.X, P.X); + fiat_secp384r1_to_montgomery(P.Y, P.Y); + /* var scmul function */ + var_smul_rwnaf(&P, scalar, &P); + fiat_secp384r1_from_montgomery(P.X, P.X); + fiat_secp384r1_from_montgomery(P.Y, P.Y); + fiat_secp384r1_to_bytes(outx, P.X); + fiat_secp384r1_to_bytes(outy, P.Y); +} + +#undef RADIX +#include "ecp.h" +#include "mplogic.h" + +/*- + * reverse bytes -- total hack + */ +#define MP_BE2LE(a) \ + do { \ + unsigned char z_bswap; \ + z_bswap = a[0]; \ + a[0] = a[47]; \ + a[47] = z_bswap; \ + z_bswap = a[1]; \ + a[1] = a[46]; \ + a[46] = z_bswap; \ + z_bswap = a[2]; \ + a[2] = a[45]; \ + a[45] = z_bswap; \ + z_bswap = a[3]; \ + a[3] = a[44]; \ + a[44] = z_bswap; \ + z_bswap = a[4]; \ + a[4] = a[43]; \ + a[43] = z_bswap; \ + z_bswap = a[5]; \ + a[5] = a[42]; \ + a[42] = z_bswap; \ + z_bswap = a[6]; \ + a[6] = a[41]; \ + a[41] = z_bswap; \ + z_bswap = a[7]; \ + a[7] = a[40]; \ + a[40] = z_bswap; \ + z_bswap = a[8]; \ + a[8] = a[39]; \ + a[39] = z_bswap; \ + z_bswap = a[9]; \ + a[9] = a[38]; \ + a[38] = z_bswap; \ + z_bswap = a[10]; \ + a[10] = a[37]; \ + a[37] = z_bswap; \ + z_bswap = a[11]; \ + a[11] = a[36]; \ + a[36] = z_bswap; \ + z_bswap = a[12]; \ + a[12] = a[35]; \ + a[35] = z_bswap; \ + z_bswap = a[13]; \ + a[13] = a[34]; \ + a[34] = z_bswap; \ + z_bswap = a[14]; \ + a[14] = a[33]; \ + a[33] = z_bswap; \ + z_bswap = a[15]; \ + a[15] = a[32]; \ + a[32] = z_bswap; \ + z_bswap = a[16]; \ + a[16] = a[31]; \ + a[31] = z_bswap; \ + z_bswap = a[17]; \ + a[17] = a[30]; \ + a[30] = z_bswap; \ + z_bswap = a[18]; \ + a[18] = a[29]; \ + a[29] = z_bswap; \ + z_bswap = a[19]; \ + a[19] = a[28]; \ + a[28] = z_bswap; \ + z_bswap = a[20]; \ + a[20] = a[27]; \ + a[27] = z_bswap; \ + z_bswap = a[21]; \ + a[21] = a[26]; \ + a[26] = z_bswap; \ + z_bswap = a[22]; \ + a[22] = a[25]; \ + a[25] = z_bswap; \ + z_bswap = a[23]; \ + a[23] = a[24]; \ + a[24] = z_bswap; \ + } while (0) + +static mp_err +point_mul_g_secp384r1(const mp_int *n, mp_int *out_x, + mp_int *out_y, const ECGroup *group) +{ + unsigned char b_x[48]; + unsigned char b_y[48]; + unsigned char b_n[48]; + mp_err res; + + ARGCHK(n != NULL && out_x != NULL && out_y != NULL, MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n) > 384 || mp_cmp_z(n) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n, b_n, 48)); + MP_BE2LE(b_n); + point_mul_g(b_x, b_y, b_n); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 48)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 48)); + +CLEANUP: + return res; +} + +static mp_err +point_mul_secp384r1(const mp_int *n, const mp_int *in_x, + const mp_int *in_y, mp_int *out_x, + mp_int *out_y, const ECGroup *group) +{ + unsigned char b_x[48]; + unsigned char b_y[48]; + unsigned char b_n[48]; + mp_err res; + + ARGCHK(n != NULL && in_x != NULL && in_y != NULL && out_x != NULL && + out_y != NULL, + MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n) > 384 || mp_cmp_z(n) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n, b_n, 48)); + MP_CHECKOK(mp_to_fixlen_octets(in_x, b_x, 48)); + MP_CHECKOK(mp_to_fixlen_octets(in_y, b_y, 48)); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_BE2LE(b_n); + point_mul(b_x, b_y, b_n, b_x, b_y); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 48)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 48)); + +CLEANUP: + return res; +} + +static mp_err +point_mul_two_secp384r1(const mp_int *n1, const mp_int *n2, + const mp_int *in_x, const mp_int *in_y, + mp_int *out_x, mp_int *out_y, + const ECGroup *group) +{ + unsigned char b_x[48]; + unsigned char b_y[48]; + unsigned char b_n1[48]; + unsigned char b_n2[48]; + mp_err res; + + /* If n2 == NULL, this is just a base-point multiplication. */ + if (n2 == NULL) + return point_mul_g_secp384r1(n1, out_x, out_y, group); + + /* If n1 == NULL, this is just an arbitary-point multiplication. */ + if (n1 == NULL) + return point_mul_secp384r1(n2, in_x, in_y, out_x, out_y, group); + + ARGCHK(in_x != NULL && in_y != NULL && out_x != NULL && out_y != NULL, + MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n1) > 384 || mp_cmp_z(n1) != 1 || + mpl_significant_bits(n2) > 384 || mp_cmp_z(n2) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n1, b_n1, 48)); + MP_CHECKOK(mp_to_fixlen_octets(n2, b_n2, 48)); + MP_CHECKOK(mp_to_fixlen_octets(in_x, b_x, 48)); + MP_CHECKOK(mp_to_fixlen_octets(in_y, b_y, 48)); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_BE2LE(b_n1); + MP_BE2LE(b_n2); + point_mul_two(b_x, b_y, b_n1, b_n2, b_x, b_y); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 48)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 48)); + +CLEANUP: + return res; +} + +mp_err +ec_group_set_secp384r1(ECGroup *group, ECCurveName name) +{ + if (name == ECCurve_NIST_P384) { + group->base_point_mul = &point_mul_g_secp384r1; + group->point_mul = &point_mul_secp384r1; + group->points_mul = &point_mul_two_secp384r1; + } + return MP_OKAY; +} + +#endif /* __SIZEOF_INT128__ */ diff --git a/libs/nss/src/lib/freebl/ecl/ecp_secp521r1.c b/libs/nss/src/lib/freebl/ecl/ecp_secp521r1.c new file mode 100644 index 000000000..c2e474425 --- /dev/null +++ b/libs/nss/src/lib/freebl/ecl/ecp_secp521r1.c @@ -0,0 +1,11820 @@ +/* Autogenerated: ECCKiila https://gitlab.com/nisec/ecckiila */ +/*- + * MIT License + * + * Copyright (c) 2020 Luis Rivera-Zamarripa, Jesús-Javier Chi-Domínguez, Billy Bob Brumley + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +#if defined(__SIZEOF_INT128__) && !defined(PEDANTIC) + +#include <stdint.h> +#include <string.h> +#define LIMB_BITS 64 +#define LIMB_CNT 9 +/* Field elements */ +typedef uint64_t fe_t[LIMB_CNT]; +typedef uint64_t limb_t; + +#define fe_copy(d, s) memcpy(d, s, sizeof(fe_t)) +#define fe_set_zero(d) memset(d, 0, sizeof(fe_t)) + +#define fiat_secp521r1_carry_add(c, a, b) \ + fiat_secp521r1_add(c, a, b); \ + fiat_secp521r1_carry(c, c) +#define fiat_secp521r1_carry_sub(c, a, b) \ + fiat_secp521r1_sub(c, a, b); \ + fiat_secp521r1_carry(c, c) + +/* Projective points */ +typedef struct { + fe_t X; + fe_t Y; + fe_t Z; +} pt_prj_t; + +/* Affine points */ +typedef struct { + fe_t X; + fe_t Y; +} pt_aff_t; + +/* BEGIN verbatim fiat code https://github.com/mit-plv/fiat-crypto */ +/*- + * MIT License + * + * Copyright (c) 2020 the fiat-crypto authors (see the AUTHORS file) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* Autogenerated: unsaturated_solinas --static secp521r1 64 9 '2^521 - 1' */ +/* curve description: secp521r1 */ +/* machine_wordsize = 64 (from "64") */ +/* requested operations: (all) */ +/* n = 9 (from "9") */ +/* s-c = 2^521 - [(1, 1)] (from "2^521 - 1") */ +/* tight_bounds_multiplier = 1.1 (from "") */ +/* */ +/* Computed values: */ +/* carry_chain = [0, 1, 2, 3, 4, 5, 6, 7, 8, 0, 1] */ +/* eval z = z[0] + (z[1] << 58) + (z[2] << 116) + (z[3] << 174) + (z[4] << 232) + (z[5] << 0x122) + (z[6] << 0x15c) + (z[7] << 0x196) + (z[8] << 0x1d0) */ +/* bytes_eval z = z[0] + (z[1] << 8) + (z[2] << 16) + (z[3] << 24) + (z[4] << 32) + (z[5] << 40) + (z[6] << 48) + (z[7] << 56) + (z[8] << 64) + (z[9] << 72) + (z[10] << 80) + (z[11] << 88) + (z[12] << 96) + (z[13] << 104) + (z[14] << 112) + (z[15] << 120) + (z[16] << 128) + (z[17] << 136) + (z[18] << 144) + (z[19] << 152) + (z[20] << 160) + (z[21] << 168) + (z[22] << 176) + (z[23] << 184) + (z[24] << 192) + (z[25] << 200) + (z[26] << 208) + (z[27] << 216) + (z[28] << 224) + (z[29] << 232) + (z[30] << 240) + (z[31] << 248) + (z[32] << 256) + (z[33] << 0x108) + (z[34] << 0x110) + (z[35] << 0x118) + (z[36] << 0x120) + (z[37] << 0x128) + (z[38] << 0x130) + (z[39] << 0x138) + (z[40] << 0x140) + (z[41] << 0x148) + (z[42] << 0x150) + (z[43] << 0x158) + (z[44] << 0x160) + (z[45] << 0x168) + (z[46] << 0x170) + (z[47] << 0x178) + (z[48] << 0x180) + (z[49] << 0x188) + (z[50] << 0x190) + (z[51] << 0x198) + (z[52] << 0x1a0) + (z[53] << 0x1a8) + (z[54] << 0x1b0) + (z[55] << 0x1b8) + (z[56] << 0x1c0) + (z[57] << 0x1c8) + (z[58] << 0x1d0) + (z[59] << 0x1d8) + (z[60] << 0x1e0) + (z[61] << 0x1e8) + (z[62] << 0x1f0) + (z[63] << 0x1f8) + (z[64] << 2^9) + (z[65] << 0x208) */ + +#include <stdint.h> +typedef unsigned char fiat_secp521r1_uint1; +typedef signed char fiat_secp521r1_int1; +typedef signed __int128 fiat_secp521r1_int128; +typedef unsigned __int128 fiat_secp521r1_uint128; + +#if (-1 & 3) != 3 +#error "This code only works on a two's complement system" +#endif + +/* + * The function fiat_secp521r1_addcarryx_u58 is an addition with carry. + * Postconditions: + * out1 = (arg1 + arg2 + arg3) mod 2^58 + * out2 = ⌊(arg1 + arg2 + arg3) / 2^58⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0x3ffffffffffffff] + * arg3: [0x0 ~> 0x3ffffffffffffff] + * Output Bounds: + * out1: [0x0 ~> 0x3ffffffffffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp521r1_addcarryx_u58(uint64_t *out1, + fiat_secp521r1_uint1 *out2, + fiat_secp521r1_uint1 arg1, + uint64_t arg2, uint64_t arg3) +{ + uint64_t x1; + uint64_t x2; + fiat_secp521r1_uint1 x3; + x1 = ((arg1 + arg2) + arg3); + x2 = (x1 & UINT64_C(0x3ffffffffffffff)); + x3 = (fiat_secp521r1_uint1)(x1 >> 58); + *out1 = x2; + *out2 = x3; +} + +/* + * The function fiat_secp521r1_subborrowx_u58 is a subtraction with borrow. + * Postconditions: + * out1 = (-arg1 + arg2 + -arg3) mod 2^58 + * out2 = -⌊(-arg1 + arg2 + -arg3) / 2^58⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0x3ffffffffffffff] + * arg3: [0x0 ~> 0x3ffffffffffffff] + * Output Bounds: + * out1: [0x0 ~> 0x3ffffffffffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp521r1_subborrowx_u58(uint64_t *out1, + fiat_secp521r1_uint1 *out2, + fiat_secp521r1_uint1 arg1, + uint64_t arg2, uint64_t arg3) +{ + int64_t x1; + fiat_secp521r1_int1 x2; + uint64_t x3; + x1 = ((int64_t)(arg2 - (int64_t)arg1) - (int64_t)arg3); + x2 = (fiat_secp521r1_int1)(x1 >> 58); + x3 = (x1 & UINT64_C(0x3ffffffffffffff)); + *out1 = x3; + *out2 = (fiat_secp521r1_uint1)(0x0 - x2); +} + +/* + * The function fiat_secp521r1_addcarryx_u57 is an addition with carry. + * Postconditions: + * out1 = (arg1 + arg2 + arg3) mod 2^57 + * out2 = ⌊(arg1 + arg2 + arg3) / 2^57⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0x1ffffffffffffff] + * arg3: [0x0 ~> 0x1ffffffffffffff] + * Output Bounds: + * out1: [0x0 ~> 0x1ffffffffffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp521r1_addcarryx_u57(uint64_t *out1, + fiat_secp521r1_uint1 *out2, + fiat_secp521r1_uint1 arg1, + uint64_t arg2, uint64_t arg3) +{ + uint64_t x1; + uint64_t x2; + fiat_secp521r1_uint1 x3; + x1 = ((arg1 + arg2) + arg3); + x2 = (x1 & UINT64_C(0x1ffffffffffffff)); + x3 = (fiat_secp521r1_uint1)(x1 >> 57); + *out1 = x2; + *out2 = x3; +} + +/* + * The function fiat_secp521r1_subborrowx_u57 is a subtraction with borrow. + * Postconditions: + * out1 = (-arg1 + arg2 + -arg3) mod 2^57 + * out2 = -⌊(-arg1 + arg2 + -arg3) / 2^57⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0x1ffffffffffffff] + * arg3: [0x0 ~> 0x1ffffffffffffff] + * Output Bounds: + * out1: [0x0 ~> 0x1ffffffffffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp521r1_subborrowx_u57(uint64_t *out1, + fiat_secp521r1_uint1 *out2, + fiat_secp521r1_uint1 arg1, + uint64_t arg2, uint64_t arg3) +{ + int64_t x1; + fiat_secp521r1_int1 x2; + uint64_t x3; + x1 = ((int64_t)(arg2 - (int64_t)arg1) - (int64_t)arg3); + x2 = (fiat_secp521r1_int1)(x1 >> 57); + x3 = (x1 & UINT64_C(0x1ffffffffffffff)); + *out1 = x3; + *out2 = (fiat_secp521r1_uint1)(0x0 - x2); +} + +/* + * The function fiat_secp521r1_cmovznz_u64 is a single-word conditional move. + * Postconditions: + * out1 = (if arg1 = 0 then arg2 else arg3) + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0xffffffffffffffff] + * arg3: [0x0 ~> 0xffffffffffffffff] + * Output Bounds: + * out1: [0x0 ~> 0xffffffffffffffff] + */ +static void +fiat_secp521r1_cmovznz_u64(uint64_t *out1, + fiat_secp521r1_uint1 arg1, uint64_t arg2, + uint64_t arg3) +{ + fiat_secp521r1_uint1 x1; + uint64_t x2; + uint64_t x3; + x1 = (!(!arg1)); + x2 = ((fiat_secp521r1_int1)(0x0 - x1) & UINT64_C(0xffffffffffffffff)); + x3 = ((x2 & arg3) | ((~x2) & arg2)); + *out1 = x3; +} + +/* + * The function fiat_secp521r1_carry_mul multiplies two field elements and reduces the result. + * Postconditions: + * eval out1 mod m = (eval arg1 * eval arg2) mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0x699999999999999]] + * arg2: [[0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0x699999999999999]] + * Output Bounds: + * out1: [[0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x233333333333333]] + */ +static void +fiat_secp521r1_carry_mul(uint64_t out1[9], const uint64_t arg1[9], + const uint64_t arg2[9]) +{ + fiat_secp521r1_uint128 x1; + fiat_secp521r1_uint128 x2; + fiat_secp521r1_uint128 x3; + fiat_secp521r1_uint128 x4; + fiat_secp521r1_uint128 x5; + fiat_secp521r1_uint128 x6; + fiat_secp521r1_uint128 x7; + fiat_secp521r1_uint128 x8; + fiat_secp521r1_uint128 x9; + fiat_secp521r1_uint128 x10; + fiat_secp521r1_uint128 x11; + fiat_secp521r1_uint128 x12; + fiat_secp521r1_uint128 x13; + fiat_secp521r1_uint128 x14; + fiat_secp521r1_uint128 x15; + fiat_secp521r1_uint128 x16; + fiat_secp521r1_uint128 x17; + fiat_secp521r1_uint128 x18; + fiat_secp521r1_uint128 x19; + fiat_secp521r1_uint128 x20; + fiat_secp521r1_uint128 x21; + fiat_secp521r1_uint128 x22; + fiat_secp521r1_uint128 x23; + fiat_secp521r1_uint128 x24; + fiat_secp521r1_uint128 x25; + fiat_secp521r1_uint128 x26; + fiat_secp521r1_uint128 x27; + fiat_secp521r1_uint128 x28; + fiat_secp521r1_uint128 x29; + fiat_secp521r1_uint128 x30; + fiat_secp521r1_uint128 x31; + fiat_secp521r1_uint128 x32; + fiat_secp521r1_uint128 x33; + fiat_secp521r1_uint128 x34; + fiat_secp521r1_uint128 x35; + fiat_secp521r1_uint128 x36; + fiat_secp521r1_uint128 x37; + fiat_secp521r1_uint128 x38; + fiat_secp521r1_uint128 x39; + fiat_secp521r1_uint128 x40; + fiat_secp521r1_uint128 x41; + fiat_secp521r1_uint128 x42; + fiat_secp521r1_uint128 x43; + fiat_secp521r1_uint128 x44; + fiat_secp521r1_uint128 x45; + fiat_secp521r1_uint128 x46; + fiat_secp521r1_uint128 x47; + fiat_secp521r1_uint128 x48; + fiat_secp521r1_uint128 x49; + fiat_secp521r1_uint128 x50; + fiat_secp521r1_uint128 x51; + fiat_secp521r1_uint128 x52; + fiat_secp521r1_uint128 x53; + fiat_secp521r1_uint128 x54; + fiat_secp521r1_uint128 x55; + fiat_secp521r1_uint128 x56; + fiat_secp521r1_uint128 x57; + fiat_secp521r1_uint128 x58; + fiat_secp521r1_uint128 x59; + fiat_secp521r1_uint128 x60; + fiat_secp521r1_uint128 x61; + fiat_secp521r1_uint128 x62; + fiat_secp521r1_uint128 x63; + fiat_secp521r1_uint128 x64; + fiat_secp521r1_uint128 x65; + fiat_secp521r1_uint128 x66; + fiat_secp521r1_uint128 x67; + fiat_secp521r1_uint128 x68; + fiat_secp521r1_uint128 x69; + fiat_secp521r1_uint128 x70; + fiat_secp521r1_uint128 x71; + fiat_secp521r1_uint128 x72; + fiat_secp521r1_uint128 x73; + fiat_secp521r1_uint128 x74; + fiat_secp521r1_uint128 x75; + fiat_secp521r1_uint128 x76; + fiat_secp521r1_uint128 x77; + fiat_secp521r1_uint128 x78; + fiat_secp521r1_uint128 x79; + fiat_secp521r1_uint128 x80; + fiat_secp521r1_uint128 x81; + fiat_secp521r1_uint128 x82; + fiat_secp521r1_uint128 x83; + uint64_t x84; + fiat_secp521r1_uint128 x85; + fiat_secp521r1_uint128 x86; + fiat_secp521r1_uint128 x87; + fiat_secp521r1_uint128 x88; + fiat_secp521r1_uint128 x89; + fiat_secp521r1_uint128 x90; + fiat_secp521r1_uint128 x91; + fiat_secp521r1_uint128 x92; + fiat_secp521r1_uint128 x93; + fiat_secp521r1_uint128 x94; + uint64_t x95; + fiat_secp521r1_uint128 x96; + fiat_secp521r1_uint128 x97; + uint64_t x98; + fiat_secp521r1_uint128 x99; + fiat_secp521r1_uint128 x100; + uint64_t x101; + fiat_secp521r1_uint128 x102; + fiat_secp521r1_uint128 x103; + uint64_t x104; + fiat_secp521r1_uint128 x105; + fiat_secp521r1_uint128 x106; + uint64_t x107; + fiat_secp521r1_uint128 x108; + fiat_secp521r1_uint128 x109; + uint64_t x110; + fiat_secp521r1_uint128 x111; + fiat_secp521r1_uint128 x112; + uint64_t x113; + fiat_secp521r1_uint128 x114; + fiat_secp521r1_uint128 x115; + uint64_t x116; + fiat_secp521r1_uint128 x117; + uint64_t x118; + uint64_t x119; + uint64_t x120; + fiat_secp521r1_uint1 x121; + uint64_t x122; + uint64_t x123; + x1 = ((fiat_secp521r1_uint128)(arg1[8]) * ((arg2[8]) * 0x2)); + x2 = ((fiat_secp521r1_uint128)(arg1[8]) * ((arg2[7]) * 0x2)); + x3 = ((fiat_secp521r1_uint128)(arg1[8]) * ((arg2[6]) * 0x2)); + x4 = ((fiat_secp521r1_uint128)(arg1[8]) * ((arg2[5]) * 0x2)); + x5 = ((fiat_secp521r1_uint128)(arg1[8]) * ((arg2[4]) * 0x2)); + x6 = ((fiat_secp521r1_uint128)(arg1[8]) * ((arg2[3]) * 0x2)); + x7 = ((fiat_secp521r1_uint128)(arg1[8]) * ((arg2[2]) * 0x2)); + x8 = ((fiat_secp521r1_uint128)(arg1[8]) * ((arg2[1]) * 0x2)); + x9 = ((fiat_secp521r1_uint128)(arg1[7]) * ((arg2[8]) * 0x2)); + x10 = ((fiat_secp521r1_uint128)(arg1[7]) * ((arg2[7]) * 0x2)); + x11 = ((fiat_secp521r1_uint128)(arg1[7]) * ((arg2[6]) * 0x2)); + x12 = ((fiat_secp521r1_uint128)(arg1[7]) * ((arg2[5]) * 0x2)); + x13 = ((fiat_secp521r1_uint128)(arg1[7]) * ((arg2[4]) * 0x2)); + x14 = ((fiat_secp521r1_uint128)(arg1[7]) * ((arg2[3]) * 0x2)); + x15 = ((fiat_secp521r1_uint128)(arg1[7]) * ((arg2[2]) * 0x2)); + x16 = ((fiat_secp521r1_uint128)(arg1[6]) * ((arg2[8]) * 0x2)); + x17 = ((fiat_secp521r1_uint128)(arg1[6]) * ((arg2[7]) * 0x2)); + x18 = ((fiat_secp521r1_uint128)(arg1[6]) * ((arg2[6]) * 0x2)); + x19 = ((fiat_secp521r1_uint128)(arg1[6]) * ((arg2[5]) * 0x2)); + x20 = ((fiat_secp521r1_uint128)(arg1[6]) * ((arg2[4]) * 0x2)); + x21 = ((fiat_secp521r1_uint128)(arg1[6]) * ((arg2[3]) * 0x2)); + x22 = ((fiat_secp521r1_uint128)(arg1[5]) * ((arg2[8]) * 0x2)); + x23 = ((fiat_secp521r1_uint128)(arg1[5]) * ((arg2[7]) * 0x2)); + x24 = ((fiat_secp521r1_uint128)(arg1[5]) * ((arg2[6]) * 0x2)); + x25 = ((fiat_secp521r1_uint128)(arg1[5]) * ((arg2[5]) * 0x2)); + x26 = ((fiat_secp521r1_uint128)(arg1[5]) * ((arg2[4]) * 0x2)); + x27 = ((fiat_secp521r1_uint128)(arg1[4]) * ((arg2[8]) * 0x2)); + x28 = ((fiat_secp521r1_uint128)(arg1[4]) * ((arg2[7]) * 0x2)); + x29 = ((fiat_secp521r1_uint128)(arg1[4]) * ((arg2[6]) * 0x2)); + x30 = ((fiat_secp521r1_uint128)(arg1[4]) * ((arg2[5]) * 0x2)); + x31 = ((fiat_secp521r1_uint128)(arg1[3]) * ((arg2[8]) * 0x2)); + x32 = ((fiat_secp521r1_uint128)(arg1[3]) * ((arg2[7]) * 0x2)); + x33 = ((fiat_secp521r1_uint128)(arg1[3]) * ((arg2[6]) * 0x2)); + x34 = ((fiat_secp521r1_uint128)(arg1[2]) * ((arg2[8]) * 0x2)); + x35 = ((fiat_secp521r1_uint128)(arg1[2]) * ((arg2[7]) * 0x2)); + x36 = ((fiat_secp521r1_uint128)(arg1[1]) * ((arg2[8]) * 0x2)); + x37 = ((fiat_secp521r1_uint128)(arg1[8]) * (arg2[0])); + x38 = ((fiat_secp521r1_uint128)(arg1[7]) * (arg2[1])); + x39 = ((fiat_secp521r1_uint128)(arg1[7]) * (arg2[0])); + x40 = ((fiat_secp521r1_uint128)(arg1[6]) * (arg2[2])); + x41 = ((fiat_secp521r1_uint128)(arg1[6]) * (arg2[1])); + x42 = ((fiat_secp521r1_uint128)(arg1[6]) * (arg2[0])); + x43 = ((fiat_secp521r1_uint128)(arg1[5]) * (arg2[3])); + x44 = ((fiat_secp521r1_uint128)(arg1[5]) * (arg2[2])); + x45 = ((fiat_secp521r1_uint128)(arg1[5]) * (arg2[1])); + x46 = ((fiat_secp521r1_uint128)(arg1[5]) * (arg2[0])); + x47 = ((fiat_secp521r1_uint128)(arg1[4]) * (arg2[4])); + x48 = ((fiat_secp521r1_uint128)(arg1[4]) * (arg2[3])); + x49 = ((fiat_secp521r1_uint128)(arg1[4]) * (arg2[2])); + x50 = ((fiat_secp521r1_uint128)(arg1[4]) * (arg2[1])); + x51 = ((fiat_secp521r1_uint128)(arg1[4]) * (arg2[0])); + x52 = ((fiat_secp521r1_uint128)(arg1[3]) * (arg2[5])); + x53 = ((fiat_secp521r1_uint128)(arg1[3]) * (arg2[4])); + x54 = ((fiat_secp521r1_uint128)(arg1[3]) * (arg2[3])); + x55 = ((fiat_secp521r1_uint128)(arg1[3]) * (arg2[2])); + x56 = ((fiat_secp521r1_uint128)(arg1[3]) * (arg2[1])); + x57 = ((fiat_secp521r1_uint128)(arg1[3]) * (arg2[0])); + x58 = ((fiat_secp521r1_uint128)(arg1[2]) * (arg2[6])); + x59 = ((fiat_secp521r1_uint128)(arg1[2]) * (arg2[5])); + x60 = ((fiat_secp521r1_uint128)(arg1[2]) * (arg2[4])); + x61 = ((fiat_secp521r1_uint128)(arg1[2]) * (arg2[3])); + x62 = ((fiat_secp521r1_uint128)(arg1[2]) * (arg2[2])); + x63 = ((fiat_secp521r1_uint128)(arg1[2]) * (arg2[1])); + x64 = ((fiat_secp521r1_uint128)(arg1[2]) * (arg2[0])); + x65 = ((fiat_secp521r1_uint128)(arg1[1]) * (arg2[7])); + x66 = ((fiat_secp521r1_uint128)(arg1[1]) * (arg2[6])); + x67 = ((fiat_secp521r1_uint128)(arg1[1]) * (arg2[5])); + x68 = ((fiat_secp521r1_uint128)(arg1[1]) * (arg2[4])); + x69 = ((fiat_secp521r1_uint128)(arg1[1]) * (arg2[3])); + x70 = ((fiat_secp521r1_uint128)(arg1[1]) * (arg2[2])); + x71 = ((fiat_secp521r1_uint128)(arg1[1]) * (arg2[1])); + x72 = ((fiat_secp521r1_uint128)(arg1[1]) * (arg2[0])); + x73 = ((fiat_secp521r1_uint128)(arg1[0]) * (arg2[8])); + x74 = ((fiat_secp521r1_uint128)(arg1[0]) * (arg2[7])); + x75 = ((fiat_secp521r1_uint128)(arg1[0]) * (arg2[6])); + x76 = ((fiat_secp521r1_uint128)(arg1[0]) * (arg2[5])); + x77 = ((fiat_secp521r1_uint128)(arg1[0]) * (arg2[4])); + x78 = ((fiat_secp521r1_uint128)(arg1[0]) * (arg2[3])); + x79 = ((fiat_secp521r1_uint128)(arg1[0]) * (arg2[2])); + x80 = ((fiat_secp521r1_uint128)(arg1[0]) * (arg2[1])); + x81 = ((fiat_secp521r1_uint128)(arg1[0]) * (arg2[0])); + x82 = (x81 + (x36 + (x35 + (x33 + (x30 + (x26 + (x21 + (x15 + x8)))))))); + x83 = (x82 >> 58); + x84 = (uint64_t)(x82 & UINT64_C(0x3ffffffffffffff)); + x85 = (x73 + (x65 + (x58 + (x52 + (x47 + (x43 + (x40 + (x38 + x37)))))))); + x86 = (x74 + (x66 + (x59 + (x53 + (x48 + (x44 + (x41 + (x39 + x1)))))))); + x87 = (x75 + (x67 + (x60 + (x54 + (x49 + (x45 + (x42 + (x9 + x2)))))))); + x88 = (x76 + (x68 + (x61 + (x55 + (x50 + (x46 + (x16 + (x10 + x3)))))))); + x89 = (x77 + (x69 + (x62 + (x56 + (x51 + (x22 + (x17 + (x11 + x4)))))))); + x90 = (x78 + (x70 + (x63 + (x57 + (x27 + (x23 + (x18 + (x12 + x5)))))))); + x91 = (x79 + (x71 + (x64 + (x31 + (x28 + (x24 + (x19 + (x13 + x6)))))))); + x92 = (x80 + (x72 + (x34 + (x32 + (x29 + (x25 + (x20 + (x14 + x7)))))))); + x93 = (x83 + x92); + x94 = (x93 >> 58); + x95 = (uint64_t)(x93 & UINT64_C(0x3ffffffffffffff)); + x96 = (x94 + x91); + x97 = (x96 >> 58); + x98 = (uint64_t)(x96 & UINT64_C(0x3ffffffffffffff)); + x99 = (x97 + x90); + x100 = (x99 >> 58); + x101 = (uint64_t)(x99 & UINT64_C(0x3ffffffffffffff)); + x102 = (x100 + x89); + x103 = (x102 >> 58); + x104 = (uint64_t)(x102 & UINT64_C(0x3ffffffffffffff)); + x105 = (x103 + x88); + x106 = (x105 >> 58); + x107 = (uint64_t)(x105 & UINT64_C(0x3ffffffffffffff)); + x108 = (x106 + x87); + x109 = (x108 >> 58); + x110 = (uint64_t)(x108 & UINT64_C(0x3ffffffffffffff)); + x111 = (x109 + x86); + x112 = (x111 >> 58); + x113 = (uint64_t)(x111 & UINT64_C(0x3ffffffffffffff)); + x114 = (x112 + x85); + x115 = (x114 >> 57); + x116 = (uint64_t)(x114 & UINT64_C(0x1ffffffffffffff)); + x117 = (x84 + x115); + x118 = (uint64_t)(x117 >> 58); + x119 = (uint64_t)(x117 & UINT64_C(0x3ffffffffffffff)); + x120 = (x118 + x95); + x121 = (fiat_secp521r1_uint1)(x120 >> 58); + x122 = (x120 & UINT64_C(0x3ffffffffffffff)); + x123 = (x121 + x98); + out1[0] = x119; + out1[1] = x122; + out1[2] = x123; + out1[3] = x101; + out1[4] = x104; + out1[5] = x107; + out1[6] = x110; + out1[7] = x113; + out1[8] = x116; +} + +/* + * The function fiat_secp521r1_carry_square squares a field element and reduces the result. + * Postconditions: + * eval out1 mod m = (eval arg1 * eval arg1) mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0x699999999999999]] + * Output Bounds: + * out1: [[0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x233333333333333]] + */ +static void +fiat_secp521r1_carry_square(uint64_t out1[9], + const uint64_t arg1[9]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint64_t x8; + uint64_t x9; + uint64_t x10; + uint64_t x11; + uint64_t x12; + uint64_t x13; + uint64_t x14; + uint64_t x15; + uint64_t x16; + fiat_secp521r1_uint128 x17; + fiat_secp521r1_uint128 x18; + fiat_secp521r1_uint128 x19; + fiat_secp521r1_uint128 x20; + fiat_secp521r1_uint128 x21; + fiat_secp521r1_uint128 x22; + fiat_secp521r1_uint128 x23; + fiat_secp521r1_uint128 x24; + fiat_secp521r1_uint128 x25; + fiat_secp521r1_uint128 x26; + fiat_secp521r1_uint128 x27; + fiat_secp521r1_uint128 x28; + fiat_secp521r1_uint128 x29; + fiat_secp521r1_uint128 x30; + fiat_secp521r1_uint128 x31; + fiat_secp521r1_uint128 x32; + fiat_secp521r1_uint128 x33; + fiat_secp521r1_uint128 x34; + fiat_secp521r1_uint128 x35; + fiat_secp521r1_uint128 x36; + fiat_secp521r1_uint128 x37; + fiat_secp521r1_uint128 x38; + fiat_secp521r1_uint128 x39; + fiat_secp521r1_uint128 x40; + fiat_secp521r1_uint128 x41; + fiat_secp521r1_uint128 x42; + fiat_secp521r1_uint128 x43; + fiat_secp521r1_uint128 x44; + fiat_secp521r1_uint128 x45; + fiat_secp521r1_uint128 x46; + fiat_secp521r1_uint128 x47; + fiat_secp521r1_uint128 x48; + fiat_secp521r1_uint128 x49; + fiat_secp521r1_uint128 x50; + fiat_secp521r1_uint128 x51; + fiat_secp521r1_uint128 x52; + fiat_secp521r1_uint128 x53; + fiat_secp521r1_uint128 x54; + fiat_secp521r1_uint128 x55; + fiat_secp521r1_uint128 x56; + fiat_secp521r1_uint128 x57; + fiat_secp521r1_uint128 x58; + fiat_secp521r1_uint128 x59; + fiat_secp521r1_uint128 x60; + fiat_secp521r1_uint128 x61; + fiat_secp521r1_uint128 x62; + fiat_secp521r1_uint128 x63; + uint64_t x64; + fiat_secp521r1_uint128 x65; + fiat_secp521r1_uint128 x66; + fiat_secp521r1_uint128 x67; + fiat_secp521r1_uint128 x68; + fiat_secp521r1_uint128 x69; + fiat_secp521r1_uint128 x70; + fiat_secp521r1_uint128 x71; + fiat_secp521r1_uint128 x72; + fiat_secp521r1_uint128 x73; + fiat_secp521r1_uint128 x74; + uint64_t x75; + fiat_secp521r1_uint128 x76; + fiat_secp521r1_uint128 x77; + uint64_t x78; + fiat_secp521r1_uint128 x79; + fiat_secp521r1_uint128 x80; + uint64_t x81; + fiat_secp521r1_uint128 x82; + fiat_secp521r1_uint128 x83; + uint64_t x84; + fiat_secp521r1_uint128 x85; + fiat_secp521r1_uint128 x86; + uint64_t x87; + fiat_secp521r1_uint128 x88; + fiat_secp521r1_uint128 x89; + uint64_t x90; + fiat_secp521r1_uint128 x91; + fiat_secp521r1_uint128 x92; + uint64_t x93; + fiat_secp521r1_uint128 x94; + fiat_secp521r1_uint128 x95; + uint64_t x96; + fiat_secp521r1_uint128 x97; + uint64_t x98; + uint64_t x99; + uint64_t x100; + fiat_secp521r1_uint1 x101; + uint64_t x102; + uint64_t x103; + x1 = (arg1[8]); + x2 = (x1 * 0x2); + x3 = ((arg1[8]) * 0x2); + x4 = (arg1[7]); + x5 = (x4 * 0x2); + x6 = ((arg1[7]) * 0x2); + x7 = (arg1[6]); + x8 = (x7 * 0x2); + x9 = ((arg1[6]) * 0x2); + x10 = (arg1[5]); + x11 = (x10 * 0x2); + x12 = ((arg1[5]) * 0x2); + x13 = ((arg1[4]) * 0x2); + x14 = ((arg1[3]) * 0x2); + x15 = ((arg1[2]) * 0x2); + x16 = ((arg1[1]) * 0x2); + x17 = ((fiat_secp521r1_uint128)(arg1[8]) * (x1 * 0x2)); + x18 = ((fiat_secp521r1_uint128)(arg1[7]) * (x2 * 0x2)); + x19 = ((fiat_secp521r1_uint128)(arg1[7]) * (x4 * 0x2)); + x20 = ((fiat_secp521r1_uint128)(arg1[6]) * (x2 * 0x2)); + x21 = ((fiat_secp521r1_uint128)(arg1[6]) * (x5 * 0x2)); + x22 = ((fiat_secp521r1_uint128)(arg1[6]) * (x7 * 0x2)); + x23 = ((fiat_secp521r1_uint128)(arg1[5]) * (x2 * 0x2)); + x24 = ((fiat_secp521r1_uint128)(arg1[5]) * (x5 * 0x2)); + x25 = ((fiat_secp521r1_uint128)(arg1[5]) * (x8 * 0x2)); + x26 = ((fiat_secp521r1_uint128)(arg1[5]) * (x10 * 0x2)); + x27 = ((fiat_secp521r1_uint128)(arg1[4]) * (x2 * 0x2)); + x28 = ((fiat_secp521r1_uint128)(arg1[4]) * (x5 * 0x2)); + x29 = ((fiat_secp521r1_uint128)(arg1[4]) * (x8 * 0x2)); + x30 = ((fiat_secp521r1_uint128)(arg1[4]) * (x11 * 0x2)); + x31 = ((fiat_secp521r1_uint128)(arg1[4]) * (arg1[4])); + x32 = ((fiat_secp521r1_uint128)(arg1[3]) * (x2 * 0x2)); + x33 = ((fiat_secp521r1_uint128)(arg1[3]) * (x5 * 0x2)); + x34 = ((fiat_secp521r1_uint128)(arg1[3]) * (x8 * 0x2)); + x35 = ((fiat_secp521r1_uint128)(arg1[3]) * x12); + x36 = ((fiat_secp521r1_uint128)(arg1[3]) * x13); + x37 = ((fiat_secp521r1_uint128)(arg1[3]) * (arg1[3])); + x38 = ((fiat_secp521r1_uint128)(arg1[2]) * (x2 * 0x2)); + x39 = ((fiat_secp521r1_uint128)(arg1[2]) * (x5 * 0x2)); + x40 = ((fiat_secp521r1_uint128)(arg1[2]) * x9); + x41 = ((fiat_secp521r1_uint128)(arg1[2]) * x12); + x42 = ((fiat_secp521r1_uint128)(arg1[2]) * x13); + x43 = ((fiat_secp521r1_uint128)(arg1[2]) * x14); + x44 = ((fiat_secp521r1_uint128)(arg1[2]) * (arg1[2])); + x45 = ((fiat_secp521r1_uint128)(arg1[1]) * (x2 * 0x2)); + x46 = ((fiat_secp521r1_uint128)(arg1[1]) * x6); + x47 = ((fiat_secp521r1_uint128)(arg1[1]) * x9); + x48 = ((fiat_secp521r1_uint128)(arg1[1]) * x12); + x49 = ((fiat_secp521r1_uint128)(arg1[1]) * x13); + x50 = ((fiat_secp521r1_uint128)(arg1[1]) * x14); + x51 = ((fiat_secp521r1_uint128)(arg1[1]) * x15); + x52 = ((fiat_secp521r1_uint128)(arg1[1]) * (arg1[1])); + x53 = ((fiat_secp521r1_uint128)(arg1[0]) * x3); + x54 = ((fiat_secp521r1_uint128)(arg1[0]) * x6); + x55 = ((fiat_secp521r1_uint128)(arg1[0]) * x9); + x56 = ((fiat_secp521r1_uint128)(arg1[0]) * x12); + x57 = ((fiat_secp521r1_uint128)(arg1[0]) * x13); + x58 = ((fiat_secp521r1_uint128)(arg1[0]) * x14); + x59 = ((fiat_secp521r1_uint128)(arg1[0]) * x15); + x60 = ((fiat_secp521r1_uint128)(arg1[0]) * x16); + x61 = ((fiat_secp521r1_uint128)(arg1[0]) * (arg1[0])); + x62 = (x61 + (x45 + (x39 + (x34 + x30)))); + x63 = (x62 >> 58); + x64 = (uint64_t)(x62 & UINT64_C(0x3ffffffffffffff)); + x65 = (x53 + (x46 + (x40 + (x35 + x31)))); + x66 = (x54 + (x47 + (x41 + (x36 + x17)))); + x67 = (x55 + (x48 + (x42 + (x37 + x18)))); + x68 = (x56 + (x49 + (x43 + (x20 + x19)))); + x69 = (x57 + (x50 + (x44 + (x23 + x21)))); + x70 = (x58 + (x51 + (x27 + (x24 + x22)))); + x71 = (x59 + (x52 + (x32 + (x28 + x25)))); + x72 = (x60 + (x38 + (x33 + (x29 + x26)))); + x73 = (x63 + x72); + x74 = (x73 >> 58); + x75 = (uint64_t)(x73 & UINT64_C(0x3ffffffffffffff)); + x76 = (x74 + x71); + x77 = (x76 >> 58); + x78 = (uint64_t)(x76 & UINT64_C(0x3ffffffffffffff)); + x79 = (x77 + x70); + x80 = (x79 >> 58); + x81 = (uint64_t)(x79 & UINT64_C(0x3ffffffffffffff)); + x82 = (x80 + x69); + x83 = (x82 >> 58); + x84 = (uint64_t)(x82 & UINT64_C(0x3ffffffffffffff)); + x85 = (x83 + x68); + x86 = (x85 >> 58); + x87 = (uint64_t)(x85 & UINT64_C(0x3ffffffffffffff)); + x88 = (x86 + x67); + x89 = (x88 >> 58); + x90 = (uint64_t)(x88 & UINT64_C(0x3ffffffffffffff)); + x91 = (x89 + x66); + x92 = (x91 >> 58); + x93 = (uint64_t)(x91 & UINT64_C(0x3ffffffffffffff)); + x94 = (x92 + x65); + x95 = (x94 >> 57); + x96 = (uint64_t)(x94 & UINT64_C(0x1ffffffffffffff)); + x97 = (x64 + x95); + x98 = (uint64_t)(x97 >> 58); + x99 = (uint64_t)(x97 & UINT64_C(0x3ffffffffffffff)); + x100 = (x98 + x75); + x101 = (fiat_secp521r1_uint1)(x100 >> 58); + x102 = (x100 & UINT64_C(0x3ffffffffffffff)); + x103 = (x101 + x78); + out1[0] = x99; + out1[1] = x102; + out1[2] = x103; + out1[3] = x81; + out1[4] = x84; + out1[5] = x87; + out1[6] = x90; + out1[7] = x93; + out1[8] = x96; +} + +/* + * The function fiat_secp521r1_carry reduces a field element. + * Postconditions: + * eval out1 mod m = eval arg1 mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0x699999999999999]] + * Output Bounds: + * out1: [[0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x233333333333333]] + */ +static void +fiat_secp521r1_carry(uint64_t out1[9], const uint64_t arg1[9]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint64_t x8; + uint64_t x9; + uint64_t x10; + uint64_t x11; + uint64_t x12; + uint64_t x13; + uint64_t x14; + uint64_t x15; + uint64_t x16; + uint64_t x17; + uint64_t x18; + uint64_t x19; + uint64_t x20; + x1 = (arg1[0]); + x2 = ((x1 >> 58) + (arg1[1])); + x3 = ((x2 >> 58) + (arg1[2])); + x4 = ((x3 >> 58) + (arg1[3])); + x5 = ((x4 >> 58) + (arg1[4])); + x6 = ((x5 >> 58) + (arg1[5])); + x7 = ((x6 >> 58) + (arg1[6])); + x8 = ((x7 >> 58) + (arg1[7])); + x9 = ((x8 >> 58) + (arg1[8])); + x10 = ((x1 & UINT64_C(0x3ffffffffffffff)) + (x9 >> 57)); + x11 = ((fiat_secp521r1_uint1)(x10 >> 58) + + (x2 & UINT64_C(0x3ffffffffffffff))); + x12 = (x10 & UINT64_C(0x3ffffffffffffff)); + x13 = (x11 & UINT64_C(0x3ffffffffffffff)); + x14 = ((fiat_secp521r1_uint1)(x11 >> 58) + + (x3 & UINT64_C(0x3ffffffffffffff))); + x15 = (x4 & UINT64_C(0x3ffffffffffffff)); + x16 = (x5 & UINT64_C(0x3ffffffffffffff)); + x17 = (x6 & UINT64_C(0x3ffffffffffffff)); + x18 = (x7 & UINT64_C(0x3ffffffffffffff)); + x19 = (x8 & UINT64_C(0x3ffffffffffffff)); + x20 = (x9 & UINT64_C(0x1ffffffffffffff)); + out1[0] = x12; + out1[1] = x13; + out1[2] = x14; + out1[3] = x15; + out1[4] = x16; + out1[5] = x17; + out1[6] = x18; + out1[7] = x19; + out1[8] = x20; +} + +/* + * The function fiat_secp521r1_add adds two field elements. + * Postconditions: + * eval out1 mod m = (eval arg1 + eval arg2) mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x233333333333333]] + * arg2: [[0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x233333333333333]] + * Output Bounds: + * out1: [[0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0x699999999999999]] + */ +static void +fiat_secp521r1_add(uint64_t out1[9], const uint64_t arg1[9], + const uint64_t arg2[9]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint64_t x8; + uint64_t x9; + x1 = ((arg1[0]) + (arg2[0])); + x2 = ((arg1[1]) + (arg2[1])); + x3 = ((arg1[2]) + (arg2[2])); + x4 = ((arg1[3]) + (arg2[3])); + x5 = ((arg1[4]) + (arg2[4])); + x6 = ((arg1[5]) + (arg2[5])); + x7 = ((arg1[6]) + (arg2[6])); + x8 = ((arg1[7]) + (arg2[7])); + x9 = ((arg1[8]) + (arg2[8])); + out1[0] = x1; + out1[1] = x2; + out1[2] = x3; + out1[3] = x4; + out1[4] = x5; + out1[5] = x6; + out1[6] = x7; + out1[7] = x8; + out1[8] = x9; +} + +/* + * The function fiat_secp521r1_sub subtracts two field elements. + * Postconditions: + * eval out1 mod m = (eval arg1 - eval arg2) mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x233333333333333]] + * arg2: [[0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x233333333333333]] + * Output Bounds: + * out1: [[0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0x699999999999999]] + */ +static void +fiat_secp521r1_sub(uint64_t out1[9], const uint64_t arg1[9], + const uint64_t arg2[9]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint64_t x8; + uint64_t x9; + x1 = ((UINT64_C(0x7fffffffffffffe) + (arg1[0])) - (arg2[0])); + x2 = ((UINT64_C(0x7fffffffffffffe) + (arg1[1])) - (arg2[1])); + x3 = ((UINT64_C(0x7fffffffffffffe) + (arg1[2])) - (arg2[2])); + x4 = ((UINT64_C(0x7fffffffffffffe) + (arg1[3])) - (arg2[3])); + x5 = ((UINT64_C(0x7fffffffffffffe) + (arg1[4])) - (arg2[4])); + x6 = ((UINT64_C(0x7fffffffffffffe) + (arg1[5])) - (arg2[5])); + x7 = ((UINT64_C(0x7fffffffffffffe) + (arg1[6])) - (arg2[6])); + x8 = ((UINT64_C(0x7fffffffffffffe) + (arg1[7])) - (arg2[7])); + x9 = ((UINT64_C(0x3fffffffffffffe) + (arg1[8])) - (arg2[8])); + out1[0] = x1; + out1[1] = x2; + out1[2] = x3; + out1[3] = x4; + out1[4] = x5; + out1[5] = x6; + out1[6] = x7; + out1[7] = x8; + out1[8] = x9; +} + +/* + * The function fiat_secp521r1_opp negates a field element. + * Postconditions: + * eval out1 mod m = -eval arg1 mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x233333333333333]] + * Output Bounds: + * out1: [[0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0xd33333333333332], [0x0 ~> 0x699999999999999]] + */ +static void +fiat_secp521r1_opp(uint64_t out1[9], const uint64_t arg1[9]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint64_t x8; + uint64_t x9; + x1 = (UINT64_C(0x7fffffffffffffe) - (arg1[0])); + x2 = (UINT64_C(0x7fffffffffffffe) - (arg1[1])); + x3 = (UINT64_C(0x7fffffffffffffe) - (arg1[2])); + x4 = (UINT64_C(0x7fffffffffffffe) - (arg1[3])); + x5 = (UINT64_C(0x7fffffffffffffe) - (arg1[4])); + x6 = (UINT64_C(0x7fffffffffffffe) - (arg1[5])); + x7 = (UINT64_C(0x7fffffffffffffe) - (arg1[6])); + x8 = (UINT64_C(0x7fffffffffffffe) - (arg1[7])); + x9 = (UINT64_C(0x3fffffffffffffe) - (arg1[8])); + out1[0] = x1; + out1[1] = x2; + out1[2] = x3; + out1[3] = x4; + out1[4] = x5; + out1[5] = x6; + out1[6] = x7; + out1[7] = x8; + out1[8] = x9; +} + +/* + * The function fiat_secp521r1_selectznz is a multi-limb conditional select. + * Postconditions: + * eval out1 = (if arg1 = 0 then eval arg2 else eval arg3) + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * arg3: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] + */ +static void +fiat_secp521r1_selectznz(uint64_t out1[9], + fiat_secp521r1_uint1 arg1, + const uint64_t arg2[9], + const uint64_t arg3[9]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint64_t x8; + uint64_t x9; + fiat_secp521r1_cmovznz_u64(&x1, arg1, (arg2[0]), (arg3[0])); + fiat_secp521r1_cmovznz_u64(&x2, arg1, (arg2[1]), (arg3[1])); + fiat_secp521r1_cmovznz_u64(&x3, arg1, (arg2[2]), (arg3[2])); + fiat_secp521r1_cmovznz_u64(&x4, arg1, (arg2[3]), (arg3[3])); + fiat_secp521r1_cmovznz_u64(&x5, arg1, (arg2[4]), (arg3[4])); + fiat_secp521r1_cmovznz_u64(&x6, arg1, (arg2[5]), (arg3[5])); + fiat_secp521r1_cmovznz_u64(&x7, arg1, (arg2[6]), (arg3[6])); + fiat_secp521r1_cmovznz_u64(&x8, arg1, (arg2[7]), (arg3[7])); + fiat_secp521r1_cmovznz_u64(&x9, arg1, (arg2[8]), (arg3[8])); + out1[0] = x1; + out1[1] = x2; + out1[2] = x3; + out1[3] = x4; + out1[4] = x5; + out1[5] = x6; + out1[6] = x7; + out1[7] = x8; + out1[8] = x9; +} + +/* + * The function fiat_secp521r1_to_bytes serializes a field element to bytes in little-endian order. + * Postconditions: + * out1 = map (λ x, ⌊((eval arg1 mod m) mod 2^(8 * (x + 1))) / 2^(8 * x)⌋) [0..65] + * + * Input Bounds: + * arg1: [[0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x233333333333333]] + * Output Bounds: + * out1: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0x1]] + */ +static void +fiat_secp521r1_to_bytes(uint8_t out1[66], const uint64_t arg1[9]) +{ + uint64_t x1; + fiat_secp521r1_uint1 x2; + uint64_t x3; + fiat_secp521r1_uint1 x4; + uint64_t x5; + fiat_secp521r1_uint1 x6; + uint64_t x7; + fiat_secp521r1_uint1 x8; + uint64_t x9; + fiat_secp521r1_uint1 x10; + uint64_t x11; + fiat_secp521r1_uint1 x12; + uint64_t x13; + fiat_secp521r1_uint1 x14; + uint64_t x15; + fiat_secp521r1_uint1 x16; + uint64_t x17; + fiat_secp521r1_uint1 x18; + uint64_t x19; + uint64_t x20; + fiat_secp521r1_uint1 x21; + uint64_t x22; + fiat_secp521r1_uint1 x23; + uint64_t x24; + fiat_secp521r1_uint1 x25; + uint64_t x26; + fiat_secp521r1_uint1 x27; + uint64_t x28; + fiat_secp521r1_uint1 x29; + uint64_t x30; + fiat_secp521r1_uint1 x31; + uint64_t x32; + fiat_secp521r1_uint1 x33; + uint64_t x34; + fiat_secp521r1_uint1 x35; + uint64_t x36; + fiat_secp521r1_uint1 x37; + uint64_t x38; + uint64_t x39; + uint64_t x40; + uint64_t x41; + uint64_t x42; + uint64_t x43; + uint64_t x44; + uint8_t x45; + uint64_t x46; + uint8_t x47; + uint64_t x48; + uint8_t x49; + uint64_t x50; + uint8_t x51; + uint64_t x52; + uint8_t x53; + uint64_t x54; + uint8_t x55; + uint8_t x56; + uint8_t x57; + uint64_t x58; + uint64_t x59; + uint8_t x60; + uint64_t x61; + uint8_t x62; + uint64_t x63; + uint8_t x64; + uint64_t x65; + uint8_t x66; + uint64_t x67; + uint8_t x68; + uint64_t x69; + uint8_t x70; + uint8_t x71; + uint8_t x72; + uint64_t x73; + uint64_t x74; + uint8_t x75; + uint64_t x76; + uint8_t x77; + uint64_t x78; + uint8_t x79; + uint64_t x80; + uint8_t x81; + uint64_t x82; + uint8_t x83; + uint64_t x84; + uint8_t x85; + uint8_t x86; + uint8_t x87; + uint64_t x88; + uint64_t x89; + uint8_t x90; + uint64_t x91; + uint8_t x92; + uint64_t x93; + uint8_t x94; + uint64_t x95; + uint8_t x96; + uint64_t x97; + uint8_t x98; + uint64_t x99; + uint8_t x100; + uint8_t x101; + uint8_t x102; + uint8_t x103; + uint64_t x104; + uint8_t x105; + uint64_t x106; + uint8_t x107; + uint64_t x108; + uint8_t x109; + uint64_t x110; + uint8_t x111; + uint64_t x112; + uint8_t x113; + uint64_t x114; + uint8_t x115; + uint8_t x116; + uint8_t x117; + uint64_t x118; + uint64_t x119; + uint8_t x120; + uint64_t x121; + uint8_t x122; + uint64_t x123; + uint8_t x124; + uint64_t x125; + uint8_t x126; + uint64_t x127; + uint8_t x128; + uint64_t x129; + uint8_t x130; + uint8_t x131; + uint8_t x132; + uint64_t x133; + uint64_t x134; + uint8_t x135; + uint64_t x136; + uint8_t x137; + uint64_t x138; + uint8_t x139; + uint64_t x140; + uint8_t x141; + uint64_t x142; + uint8_t x143; + uint64_t x144; + uint8_t x145; + uint8_t x146; + uint8_t x147; + uint64_t x148; + uint64_t x149; + uint8_t x150; + uint64_t x151; + uint8_t x152; + uint64_t x153; + uint8_t x154; + uint64_t x155; + uint8_t x156; + uint64_t x157; + uint8_t x158; + uint64_t x159; + uint8_t x160; + uint8_t x161; + uint8_t x162; + uint8_t x163; + uint64_t x164; + uint8_t x165; + uint64_t x166; + uint8_t x167; + uint64_t x168; + uint8_t x169; + uint64_t x170; + uint8_t x171; + uint64_t x172; + uint8_t x173; + uint64_t x174; + uint8_t x175; + fiat_secp521r1_uint1 x176; + uint8_t x177; + fiat_secp521r1_subborrowx_u58(&x1, &x2, 0x0, (arg1[0]), + UINT64_C(0x3ffffffffffffff)); + fiat_secp521r1_subborrowx_u58(&x3, &x4, x2, (arg1[1]), + UINT64_C(0x3ffffffffffffff)); + fiat_secp521r1_subborrowx_u58(&x5, &x6, x4, (arg1[2]), + UINT64_C(0x3ffffffffffffff)); + fiat_secp521r1_subborrowx_u58(&x7, &x8, x6, (arg1[3]), + UINT64_C(0x3ffffffffffffff)); + fiat_secp521r1_subborrowx_u58(&x9, &x10, x8, (arg1[4]), + UINT64_C(0x3ffffffffffffff)); + fiat_secp521r1_subborrowx_u58(&x11, &x12, x10, (arg1[5]), + UINT64_C(0x3ffffffffffffff)); + fiat_secp521r1_subborrowx_u58(&x13, &x14, x12, (arg1[6]), + UINT64_C(0x3ffffffffffffff)); + fiat_secp521r1_subborrowx_u58(&x15, &x16, x14, (arg1[7]), + UINT64_C(0x3ffffffffffffff)); + fiat_secp521r1_subborrowx_u57(&x17, &x18, x16, (arg1[8]), + UINT64_C(0x1ffffffffffffff)); + fiat_secp521r1_cmovznz_u64(&x19, x18, 0x0, UINT64_C(0xffffffffffffffff)); + fiat_secp521r1_addcarryx_u58(&x20, &x21, 0x0, x1, + (x19 & UINT64_C(0x3ffffffffffffff))); + fiat_secp521r1_addcarryx_u58(&x22, &x23, x21, x3, + (x19 & UINT64_C(0x3ffffffffffffff))); + fiat_secp521r1_addcarryx_u58(&x24, &x25, x23, x5, + (x19 & UINT64_C(0x3ffffffffffffff))); + fiat_secp521r1_addcarryx_u58(&x26, &x27, x25, x7, + (x19 & UINT64_C(0x3ffffffffffffff))); + fiat_secp521r1_addcarryx_u58(&x28, &x29, x27, x9, + (x19 & UINT64_C(0x3ffffffffffffff))); + fiat_secp521r1_addcarryx_u58(&x30, &x31, x29, x11, + (x19 & UINT64_C(0x3ffffffffffffff))); + fiat_secp521r1_addcarryx_u58(&x32, &x33, x31, x13, + (x19 & UINT64_C(0x3ffffffffffffff))); + fiat_secp521r1_addcarryx_u58(&x34, &x35, x33, x15, + (x19 & UINT64_C(0x3ffffffffffffff))); + fiat_secp521r1_addcarryx_u57(&x36, &x37, x35, x17, + (x19 & UINT64_C(0x1ffffffffffffff))); + x38 = (x34 << 6); + x39 = (x32 << 4); + x40 = (x30 << 2); + x41 = (x26 << 6); + x42 = (x24 << 4); + x43 = (x22 << 2); + x44 = (x20 >> 8); + x45 = (uint8_t)(x20 & UINT8_C(0xff)); + x46 = (x44 >> 8); + x47 = (uint8_t)(x44 & UINT8_C(0xff)); + x48 = (x46 >> 8); + x49 = (uint8_t)(x46 & UINT8_C(0xff)); + x50 = (x48 >> 8); + x51 = (uint8_t)(x48 & UINT8_C(0xff)); + x52 = (x50 >> 8); + x53 = (uint8_t)(x50 & UINT8_C(0xff)); + x54 = (x52 >> 8); + x55 = (uint8_t)(x52 & UINT8_C(0xff)); + x56 = (uint8_t)(x54 >> 8); + x57 = (uint8_t)(x54 & UINT8_C(0xff)); + x58 = (x56 + x43); + x59 = (x58 >> 8); + x60 = (uint8_t)(x58 & UINT8_C(0xff)); + x61 = (x59 >> 8); + x62 = (uint8_t)(x59 & UINT8_C(0xff)); + x63 = (x61 >> 8); + x64 = (uint8_t)(x61 & UINT8_C(0xff)); + x65 = (x63 >> 8); + x66 = (uint8_t)(x63 & UINT8_C(0xff)); + x67 = (x65 >> 8); + x68 = (uint8_t)(x65 & UINT8_C(0xff)); + x69 = (x67 >> 8); + x70 = (uint8_t)(x67 & UINT8_C(0xff)); + x71 = (uint8_t)(x69 >> 8); + x72 = (uint8_t)(x69 & UINT8_C(0xff)); + x73 = (x71 + x42); + x74 = (x73 >> 8); + x75 = (uint8_t)(x73 & UINT8_C(0xff)); + x76 = (x74 >> 8); + x77 = (uint8_t)(x74 & UINT8_C(0xff)); + x78 = (x76 >> 8); + x79 = (uint8_t)(x76 & UINT8_C(0xff)); + x80 = (x78 >> 8); + x81 = (uint8_t)(x78 & UINT8_C(0xff)); + x82 = (x80 >> 8); + x83 = (uint8_t)(x80 & UINT8_C(0xff)); + x84 = (x82 >> 8); + x85 = (uint8_t)(x82 & UINT8_C(0xff)); + x86 = (uint8_t)(x84 >> 8); + x87 = (uint8_t)(x84 & UINT8_C(0xff)); + x88 = (x86 + x41); + x89 = (x88 >> 8); + x90 = (uint8_t)(x88 & UINT8_C(0xff)); + x91 = (x89 >> 8); + x92 = (uint8_t)(x89 & UINT8_C(0xff)); + x93 = (x91 >> 8); + x94 = (uint8_t)(x91 & UINT8_C(0xff)); + x95 = (x93 >> 8); + x96 = (uint8_t)(x93 & UINT8_C(0xff)); + x97 = (x95 >> 8); + x98 = (uint8_t)(x95 & UINT8_C(0xff)); + x99 = (x97 >> 8); + x100 = (uint8_t)(x97 & UINT8_C(0xff)); + x101 = (uint8_t)(x99 >> 8); + x102 = (uint8_t)(x99 & UINT8_C(0xff)); + x103 = (uint8_t)(x101 & UINT8_C(0xff)); + x104 = (x28 >> 8); + x105 = (uint8_t)(x28 & UINT8_C(0xff)); + x106 = (x104 >> 8); + x107 = (uint8_t)(x104 & UINT8_C(0xff)); + x108 = (x106 >> 8); + x109 = (uint8_t)(x106 & UINT8_C(0xff)); + x110 = (x108 >> 8); + x111 = (uint8_t)(x108 & UINT8_C(0xff)); + x112 = (x110 >> 8); + x113 = (uint8_t)(x110 & UINT8_C(0xff)); + x114 = (x112 >> 8); + x115 = (uint8_t)(x112 & UINT8_C(0xff)); + x116 = (uint8_t)(x114 >> 8); + x117 = (uint8_t)(x114 & UINT8_C(0xff)); + x118 = (x116 + x40); + x119 = (x118 >> 8); + x120 = (uint8_t)(x118 & UINT8_C(0xff)); + x121 = (x119 >> 8); + x122 = (uint8_t)(x119 & UINT8_C(0xff)); + x123 = (x121 >> 8); + x124 = (uint8_t)(x121 & UINT8_C(0xff)); + x125 = (x123 >> 8); + x126 = (uint8_t)(x123 & UINT8_C(0xff)); + x127 = (x125 >> 8); + x128 = (uint8_t)(x125 & UINT8_C(0xff)); + x129 = (x127 >> 8); + x130 = (uint8_t)(x127 & UINT8_C(0xff)); + x131 = (uint8_t)(x129 >> 8); + x132 = (uint8_t)(x129 & UINT8_C(0xff)); + x133 = (x131 + x39); + x134 = (x133 >> 8); + x135 = (uint8_t)(x133 & UINT8_C(0xff)); + x136 = (x134 >> 8); + x137 = (uint8_t)(x134 & UINT8_C(0xff)); + x138 = (x136 >> 8); + x139 = (uint8_t)(x136 & UINT8_C(0xff)); + x140 = (x138 >> 8); + x141 = (uint8_t)(x138 & UINT8_C(0xff)); + x142 = (x140 >> 8); + x143 = (uint8_t)(x140 & UINT8_C(0xff)); + x144 = (x142 >> 8); + x145 = (uint8_t)(x142 & UINT8_C(0xff)); + x146 = (uint8_t)(x144 >> 8); + x147 = (uint8_t)(x144 & UINT8_C(0xff)); + x148 = (x146 + x38); + x149 = (x148 >> 8); + x150 = (uint8_t)(x148 & UINT8_C(0xff)); + x151 = (x149 >> 8); + x152 = (uint8_t)(x149 & UINT8_C(0xff)); + x153 = (x151 >> 8); + x154 = (uint8_t)(x151 & UINT8_C(0xff)); + x155 = (x153 >> 8); + x156 = (uint8_t)(x153 & UINT8_C(0xff)); + x157 = (x155 >> 8); + x158 = (uint8_t)(x155 & UINT8_C(0xff)); + x159 = (x157 >> 8); + x160 = (uint8_t)(x157 & UINT8_C(0xff)); + x161 = (uint8_t)(x159 >> 8); + x162 = (uint8_t)(x159 & UINT8_C(0xff)); + x163 = (uint8_t)(x161 & UINT8_C(0xff)); + x164 = (x36 >> 8); + x165 = (uint8_t)(x36 & UINT8_C(0xff)); + x166 = (x164 >> 8); + x167 = (uint8_t)(x164 & UINT8_C(0xff)); + x168 = (x166 >> 8); + x169 = (uint8_t)(x166 & UINT8_C(0xff)); + x170 = (x168 >> 8); + x171 = (uint8_t)(x168 & UINT8_C(0xff)); + x172 = (x170 >> 8); + x173 = (uint8_t)(x170 & UINT8_C(0xff)); + x174 = (x172 >> 8); + x175 = (uint8_t)(x172 & UINT8_C(0xff)); + x176 = (fiat_secp521r1_uint1)(x174 >> 8); + x177 = (uint8_t)(x174 & UINT8_C(0xff)); + out1[0] = x45; + out1[1] = x47; + out1[2] = x49; + out1[3] = x51; + out1[4] = x53; + out1[5] = x55; + out1[6] = x57; + out1[7] = x60; + out1[8] = x62; + out1[9] = x64; + out1[10] = x66; + out1[11] = x68; + out1[12] = x70; + out1[13] = x72; + out1[14] = x75; + out1[15] = x77; + out1[16] = x79; + out1[17] = x81; + out1[18] = x83; + out1[19] = x85; + out1[20] = x87; + out1[21] = x90; + out1[22] = x92; + out1[23] = x94; + out1[24] = x96; + out1[25] = x98; + out1[26] = x100; + out1[27] = x102; + out1[28] = x103; + out1[29] = x105; + out1[30] = x107; + out1[31] = x109; + out1[32] = x111; + out1[33] = x113; + out1[34] = x115; + out1[35] = x117; + out1[36] = x120; + out1[37] = x122; + out1[38] = x124; + out1[39] = x126; + out1[40] = x128; + out1[41] = x130; + out1[42] = x132; + out1[43] = x135; + out1[44] = x137; + out1[45] = x139; + out1[46] = x141; + out1[47] = x143; + out1[48] = x145; + out1[49] = x147; + out1[50] = x150; + out1[51] = x152; + out1[52] = x154; + out1[53] = x156; + out1[54] = x158; + out1[55] = x160; + out1[56] = x162; + out1[57] = x163; + out1[58] = x165; + out1[59] = x167; + out1[60] = x169; + out1[61] = x171; + out1[62] = x173; + out1[63] = x175; + out1[64] = x177; + out1[65] = x176; +} + +/* + * The function fiat_secp521r1_from_bytes deserializes a field element from bytes in little-endian order. + * Postconditions: + * eval out1 mod m = bytes_eval arg1 mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0x1]] + * Output Bounds: + * out1: [[0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x466666666666666], [0x0 ~> 0x233333333333333]] + */ +static void +fiat_secp521r1_from_bytes(uint64_t out1[9], + const uint8_t arg1[66]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint8_t x8; + uint64_t x9; + uint64_t x10; + uint64_t x11; + uint64_t x12; + uint64_t x13; + uint64_t x14; + uint64_t x15; + uint64_t x16; + uint64_t x17; + uint64_t x18; + uint64_t x19; + uint64_t x20; + uint64_t x21; + uint64_t x22; + uint64_t x23; + uint64_t x24; + uint64_t x25; + uint64_t x26; + uint64_t x27; + uint64_t x28; + uint64_t x29; + uint64_t x30; + uint64_t x31; + uint64_t x32; + uint64_t x33; + uint64_t x34; + uint64_t x35; + uint64_t x36; + uint8_t x37; + uint64_t x38; + uint64_t x39; + uint64_t x40; + uint64_t x41; + uint64_t x42; + uint64_t x43; + uint64_t x44; + uint64_t x45; + uint64_t x46; + uint64_t x47; + uint64_t x48; + uint64_t x49; + uint64_t x50; + uint64_t x51; + uint64_t x52; + uint64_t x53; + uint64_t x54; + uint64_t x55; + uint64_t x56; + uint64_t x57; + uint64_t x58; + uint64_t x59; + uint64_t x60; + uint64_t x61; + uint64_t x62; + uint64_t x63; + uint64_t x64; + uint64_t x65; + uint8_t x66; + uint64_t x67; + uint8_t x68; + uint64_t x69; + uint64_t x70; + uint64_t x71; + uint64_t x72; + uint64_t x73; + uint64_t x74; + uint64_t x75; + uint64_t x76; + uint64_t x77; + uint64_t x78; + uint8_t x79; + uint64_t x80; + uint64_t x81; + uint8_t x82; + uint64_t x83; + uint64_t x84; + uint64_t x85; + uint8_t x86; + uint64_t x87; + uint64_t x88; + uint8_t x89; + uint64_t x90; + uint64_t x91; + uint8_t x92; + uint64_t x93; + uint64_t x94; + uint64_t x95; + x1 = ((uint64_t)(fiat_secp521r1_uint1)(arg1[65]) << 56); + x2 = ((uint64_t)(arg1[64]) << 48); + x3 = ((uint64_t)(arg1[63]) << 40); + x4 = ((uint64_t)(arg1[62]) << 32); + x5 = ((uint64_t)(arg1[61]) << 24); + x6 = ((uint64_t)(arg1[60]) << 16); + x7 = ((uint64_t)(arg1[59]) << 8); + x8 = (arg1[58]); + x9 = ((uint64_t)(arg1[57]) << 50); + x10 = ((uint64_t)(arg1[56]) << 42); + x11 = ((uint64_t)(arg1[55]) << 34); + x12 = ((uint64_t)(arg1[54]) << 26); + x13 = ((uint64_t)(arg1[53]) << 18); + x14 = ((uint64_t)(arg1[52]) << 10); + x15 = ((uint64_t)(arg1[51]) << 2); + x16 = ((uint64_t)(arg1[50]) << 52); + x17 = ((uint64_t)(arg1[49]) << 44); + x18 = ((uint64_t)(arg1[48]) << 36); + x19 = ((uint64_t)(arg1[47]) << 28); + x20 = ((uint64_t)(arg1[46]) << 20); + x21 = ((uint64_t)(arg1[45]) << 12); + x22 = ((uint64_t)(arg1[44]) << 4); + x23 = ((uint64_t)(arg1[43]) << 54); + x24 = ((uint64_t)(arg1[42]) << 46); + x25 = ((uint64_t)(arg1[41]) << 38); + x26 = ((uint64_t)(arg1[40]) << 30); + x27 = ((uint64_t)(arg1[39]) << 22); + x28 = ((uint64_t)(arg1[38]) << 14); + x29 = ((uint64_t)(arg1[37]) << 6); + x30 = ((uint64_t)(arg1[36]) << 56); + x31 = ((uint64_t)(arg1[35]) << 48); + x32 = ((uint64_t)(arg1[34]) << 40); + x33 = ((uint64_t)(arg1[33]) << 32); + x34 = ((uint64_t)(arg1[32]) << 24); + x35 = ((uint64_t)(arg1[31]) << 16); + x36 = ((uint64_t)(arg1[30]) << 8); + x37 = (arg1[29]); + x38 = ((uint64_t)(arg1[28]) << 50); + x39 = ((uint64_t)(arg1[27]) << 42); + x40 = ((uint64_t)(arg1[26]) << 34); + x41 = ((uint64_t)(arg1[25]) << 26); + x42 = ((uint64_t)(arg1[24]) << 18); + x43 = ((uint64_t)(arg1[23]) << 10); + x44 = ((uint64_t)(arg1[22]) << 2); + x45 = ((uint64_t)(arg1[21]) << 52); + x46 = ((uint64_t)(arg1[20]) << 44); + x47 = ((uint64_t)(arg1[19]) << 36); + x48 = ((uint64_t)(arg1[18]) << 28); + x49 = ((uint64_t)(arg1[17]) << 20); + x50 = ((uint64_t)(arg1[16]) << 12); + x51 = ((uint64_t)(arg1[15]) << 4); + x52 = ((uint64_t)(arg1[14]) << 54); + x53 = ((uint64_t)(arg1[13]) << 46); + x54 = ((uint64_t)(arg1[12]) << 38); + x55 = ((uint64_t)(arg1[11]) << 30); + x56 = ((uint64_t)(arg1[10]) << 22); + x57 = ((uint64_t)(arg1[9]) << 14); + x58 = ((uint64_t)(arg1[8]) << 6); + x59 = ((uint64_t)(arg1[7]) << 56); + x60 = ((uint64_t)(arg1[6]) << 48); + x61 = ((uint64_t)(arg1[5]) << 40); + x62 = ((uint64_t)(arg1[4]) << 32); + x63 = ((uint64_t)(arg1[3]) << 24); + x64 = ((uint64_t)(arg1[2]) << 16); + x65 = ((uint64_t)(arg1[1]) << 8); + x66 = (arg1[0]); + x67 = (x66 + (x65 + (x64 + (x63 + (x62 + (x61 + (x60 + x59))))))); + x68 = (uint8_t)(x67 >> 58); + x69 = (x67 & UINT64_C(0x3ffffffffffffff)); + x70 = (x8 + (x7 + (x6 + (x5 + (x4 + (x3 + (x2 + x1))))))); + x71 = (x15 + (x14 + (x13 + (x12 + (x11 + (x10 + x9)))))); + x72 = (x22 + (x21 + (x20 + (x19 + (x18 + (x17 + x16)))))); + x73 = (x29 + (x28 + (x27 + (x26 + (x25 + (x24 + x23)))))); + x74 = (x37 + (x36 + (x35 + (x34 + (x33 + (x32 + (x31 + x30))))))); + x75 = (x44 + (x43 + (x42 + (x41 + (x40 + (x39 + x38)))))); + x76 = (x51 + (x50 + (x49 + (x48 + (x47 + (x46 + x45)))))); + x77 = (x58 + (x57 + (x56 + (x55 + (x54 + (x53 + x52)))))); + x78 = (x68 + x77); + x79 = (uint8_t)(x78 >> 58); + x80 = (x78 & UINT64_C(0x3ffffffffffffff)); + x81 = (x79 + x76); + x82 = (uint8_t)(x81 >> 58); + x83 = (x81 & UINT64_C(0x3ffffffffffffff)); + x84 = (x82 + x75); + x85 = (x84 & UINT64_C(0x3ffffffffffffff)); + x86 = (uint8_t)(x74 >> 58); + x87 = (x74 & UINT64_C(0x3ffffffffffffff)); + x88 = (x86 + x73); + x89 = (uint8_t)(x88 >> 58); + x90 = (x88 & UINT64_C(0x3ffffffffffffff)); + x91 = (x89 + x72); + x92 = (uint8_t)(x91 >> 58); + x93 = (x91 & UINT64_C(0x3ffffffffffffff)); + x94 = (x92 + x71); + x95 = (x94 & UINT64_C(0x3ffffffffffffff)); + out1[0] = x69; + out1[1] = x80; + out1[2] = x83; + out1[3] = x85; + out1[4] = x87; + out1[5] = x90; + out1[6] = x93; + out1[7] = x95; + out1[8] = x70; +} + +/* END verbatim fiat code */ + +/*- + * Finite field inversion via FLT. + * NB: this is not a real Fiat function, just named that way for consistency. + * Autogenerated: ecp/secp521r1/fe_inv.op3 + * custom repunit addition chain + */ +static void +fiat_secp521r1_inv(fe_t output, const fe_t t1) +{ + int i; + /* temporary variables */ + fe_t acc, t128, t16, t2, t256, t32, t4, t512, t516, t518, t519, t64, t8; + + fiat_secp521r1_carry_square(acc, t1); + fiat_secp521r1_carry_mul(t2, acc, t1); + fiat_secp521r1_carry_square(acc, t2); + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t4, acc, t2); + fiat_secp521r1_carry_square(acc, t4); + for (i = 0; i < 3; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t8, acc, t4); + fiat_secp521r1_carry_square(acc, t8); + for (i = 0; i < 7; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t16, acc, t8); + fiat_secp521r1_carry_square(acc, t16); + for (i = 0; i < 15; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t32, acc, t16); + fiat_secp521r1_carry_square(acc, t32); + for (i = 0; i < 31; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t64, acc, t32); + fiat_secp521r1_carry_square(acc, t64); + for (i = 0; i < 63; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t128, acc, t64); + fiat_secp521r1_carry_square(acc, t128); + for (i = 0; i < 127; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t256, acc, t128); + fiat_secp521r1_carry_square(acc, t256); + for (i = 0; i < 255; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t512, acc, t256); + fiat_secp521r1_carry_square(acc, t512); + for (i = 0; i < 3; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t516, acc, t4); + fiat_secp521r1_carry_square(acc, t516); + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t518, acc, t2); + fiat_secp521r1_carry_square(acc, t518); + fiat_secp521r1_carry_mul(t519, acc, t1); + fiat_secp521r1_carry_square(acc, t519); + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(output, acc, t1); +} + +/* curve coefficient constants */ + +static const limb_t const_one[9] = { + UINT64_C(0x0000000000000001), UINT64_C(0x0000000000000000), + UINT64_C(0x0000000000000000), UINT64_C(0x0000000000000000), + UINT64_C(0x0000000000000000), UINT64_C(0x0000000000000000), + UINT64_C(0x0000000000000000), UINT64_C(0x0000000000000000), + UINT64_C(0x0000000000000000) +}; + +static const limb_t const_b[9] = { + UINT64_C(0x03451FD46B503F00), UINT64_C(0x00F7E20F4B0D3C7B), + UINT64_C(0x000BD3BB1BF07357), UINT64_C(0x0147B1FA4DEC594B), + UINT64_C(0x018EF109E1561939), UINT64_C(0x026CC57CEE2D2264), + UINT64_C(0x00540EEA2DA725B9), UINT64_C(0x02687E4A688682DA), + UINT64_C(0x0051953EB9618E1C) +}; + +/* LUT for scalar multiplication by comb interleaving */ +static const pt_aff_t lut_cmb[13][16] = { + { + { { UINT64_C(0x017E7E31C2E5BD66), UINT64_C(0x022CF0615A90A6FE), + UINT64_C(0x00127A2FFA8DE334), UINT64_C(0x01DFBF9D64A3F877), + UINT64_C(0x006B4D3DBAA14B5E), UINT64_C(0x014FED487E0A2BD8), + UINT64_C(0x015B4429C6481390), UINT64_C(0x03A73678FB2D988E), + UINT64_C(0x00C6858E06B70404) }, + { UINT64_C(0x00BE94769FD16650), UINT64_C(0x031C21A89CB09022), + UINT64_C(0x039013FAD0761353), UINT64_C(0x02657BD099031542), + UINT64_C(0x03273E662C97EE72), UINT64_C(0x01E6D11A05EBEF45), + UINT64_C(0x03D1BD998F544495), UINT64_C(0x03001172297ED0B1), + UINT64_C(0x011839296A789A3B) } }, + { { UINT64_C(0x01919D2EDE37AD7D), UINT64_C(0x0124218B0CBA8169), + UINT64_C(0x03D16B59FE21BAEB), UINT64_C(0x0128E920C814769A), + UINT64_C(0x012D7A8DD1AD3F16), UINT64_C(0x008F66AE796B5E84), + UINT64_C(0x0159479B52A6E5B1), UINT64_C(0x0065776475A992D6), + UINT64_C(0x01A73D352443DE29) }, + { UINT64_C(0x03588CA1EE86C0E5), UINT64_C(0x01726F24E9641097), + UINT64_C(0x00ED1DEC3C70CF10), UINT64_C(0x033E3715D6C0B56B), + UINT64_C(0x03A355CEEC2E2DD4), UINT64_C(0x02A740C5F4BE2AC7), + UINT64_C(0x03814F2F1557FA82), UINT64_C(0x0377665E7E1B1B2A), + UINT64_C(0x013E9B03B97DFA62) } }, + { { UINT64_C(0x01AB5096EC8F3078), UINT64_C(0x01F879B624C5CE35), + UINT64_C(0x03EAF137E79A329D), UINT64_C(0x01B578C0508DC44B), + UINT64_C(0x00F177ACE4383C0C), UINT64_C(0x014FC34933C0F6AE), + UINT64_C(0x00EB0BF7A596EFDB), UINT64_C(0x00CB1CF6F0CE4701), + UINT64_C(0x00652BF3C52927A4) }, + { UINT64_C(0x033CC3E8DEB090CB), UINT64_C(0x0001C95CD53DFE05), + UINT64_C(0x000211CF5FF79D1F), UINT64_C(0x03241CB3CDD0C455), + UINT64_C(0x01A0347087BB6897), UINT64_C(0x01CB80147B7605F2), + UINT64_C(0x00112911CD8FE8E8), UINT64_C(0x035BB228ADCC452A), + UINT64_C(0x015BE6EF1BDD6601) } }, + { { UINT64_C(0x01CEAD882816ECD4), UINT64_C(0x014FD43F70986680), + UINT64_C(0x01F30DCE3BBC46F9), UINT64_C(0x002AFF1A6363269B), + UINT64_C(0x02F7114C5D8C308D), UINT64_C(0x01520C8A3C0634B0), + UINT64_C(0x0073A0C5F22E0E8F), UINT64_C(0x018D1BBAD97F682C), + UINT64_C(0x0056D5D1D99D5B7F) }, + { UINT64_C(0x006B8BC90525251B), UINT64_C(0x019C4A9777BF1ED7), + UINT64_C(0x0234591CE1A5F9E7), UINT64_C(0x024F37B278AE548E), + UINT64_C(0x0226CBDE556BD0F2), UINT64_C(0x02093C375C76F662), + UINT64_C(0x0168478B5C582D02), UINT64_C(0x0284434760C5E8E7), + UINT64_C(0x003D2D1B7D9BAAA2) } }, + { { UINT64_C(0x0345627967CBE207), UINT64_C(0x002EAF61734A1987), + UINT64_C(0x016DF725A318F4F5), UINT64_C(0x00E584D368D7CF15), + UINT64_C(0x01B8C6B6657429E1), UINT64_C(0x0221D1A64B12AC51), + UINT64_C(0x016D488ED34541B9), UINT64_C(0x00609A8BD6FC55C5), + UINT64_C(0x01585389E359E1E2) }, + { UINT64_C(0x02A0EA86B9AD2A4E), UINT64_C(0x030ABA4A2203CD0E), + UINT64_C(0x02ECF4ABFD87D736), UINT64_C(0x01D5815EB2103FD5), + UINT64_C(0x023DDB446E0D69E5), UINT64_C(0x03873AEDB2096E89), + UINT64_C(0x02E938E3088A654E), UINT64_C(0x03CE7C2D5555E89E), + UINT64_C(0x002A2E618C9A8AED) } }, + { { UINT64_C(0x00C0E02DDA0CDB9A), UINT64_C(0x030093E9326A40BB), + UINT64_C(0x01AEBE3191085015), UINT64_C(0x00CC998F686F466C), + UINT64_C(0x00F2991652F3DBC5), UINT64_C(0x0305E12550FBCB15), + UINT64_C(0x00315CFED5DC7ED7), UINT64_C(0x03FD51BC68E55CED), + UINT64_C(0x008A75841259FDED) }, + { UINT64_C(0x00874F92CE48C808), UINT64_C(0x032038FD2066D756), + UINT64_C(0x0331914A95336DCA), UINT64_C(0x003A2D0A92ACE248), + UINT64_C(0x00E0B9B82B1BC8A9), UINT64_C(0x002F4124FB4BA575), + UINT64_C(0x00FB2293ADD56621), UINT64_C(0x00A6127432A1DC15), + UINT64_C(0x0096FB303FCBBA21) } }, + { { UINT64_C(0x0087848D32FBCDA7), UINT64_C(0x030EC02ACE3BFE06), + UINT64_C(0x025E79AB88EE94BE), UINT64_C(0x002380F265A8D542), + UINT64_C(0x02AF5B866132C459), UINT64_C(0x006D308E13BB74AF), + UINT64_C(0x024861A93F736CDE), UINT64_C(0x02B6735E1974AD24), + UINT64_C(0x007E3E98F984C396) }, + { UINT64_C(0x011A01FB022A71C9), UINT64_C(0x027AABE445FA7DCA), + UINT64_C(0x01D351CBFBBC3619), UINT64_C(0x0160E2F1D8FC9B7F), + UINT64_C(0x025C1E212AC1BD5D), UINT64_C(0x03550871A71E99EB), + UINT64_C(0x02D5A08CED50A386), UINT64_C(0x03B6A468649B6A8F), + UINT64_C(0x0108EE58EB6D781F) } }, + { { UINT64_C(0x01AFE337BCB8DB55), UINT64_C(0x0365A6078FE4AF7A), + UINT64_C(0x03D1C8FC0331D9B8), UINT64_C(0x009F6F403FF9E1D6), + UINT64_C(0x02DF128E11B91CCE), UINT64_C(0x01028214B5A5ED4C), + UINT64_C(0x014300FB8FBCC30B), UINT64_C(0x0197C105563F151B), + UINT64_C(0x006B6AD89ABCB924) }, + { UINT64_C(0x02343480A1475465), UINT64_C(0x036433111AAF7655), + UINT64_C(0x022232C96C99246F), UINT64_C(0x0322651C2A008523), + UINT64_C(0x0197485ED57E9062), UINT64_C(0x02B4832E92D8841A), + UINT64_C(0x02DBF63DF0496A9B), UINT64_C(0x0075A9F399348CCF), + UINT64_C(0x01B468DA27157139) } }, + { { UINT64_C(0x02F817A853110AE0), UINT64_C(0x00C10ABC3469041D), + UINT64_C(0x0399B5681380FF8C), UINT64_C(0x0399D3F80A1F7D39), + UINT64_C(0x0269250858760A69), UINT64_C(0x03E8ACED3599493C), + UINT64_C(0x023906A99EE9E269), UINT64_C(0x03684E82E1D19164), + UINT64_C(0x01B00DDB707F130E) }, + { UINT64_C(0x01B9CB7C70E64647), UINT64_C(0x00156530ADD57D4D), + UINT64_C(0x0357F16ADF420E69), UINT64_C(0x013BDB742FC34BD9), + UINT64_C(0x0322A1323DF9DA56), UINT64_C(0x01A6442A635A2B0A), + UINT64_C(0x01DD106B799534CF), UINT64_C(0x01DB6F04475392BB), + UINT64_C(0x0085683F1D7DB165) } }, + { { UINT64_C(0x00FF0B2418D6A19B), UINT64_C(0x03D0C79C96EF791E), + UINT64_C(0x0157D7A45970DFEC), UINT64_C(0x0258D899A59E48C9), + UINT64_C(0x033790E7F1FA3B30), UINT64_C(0x0177D51FBFFC2B36), + UINT64_C(0x021A07245B77E075), UINT64_C(0x00D21F03E5230B56), + UINT64_C(0x00998DCCE486419C) }, + { UINT64_C(0x01091A695BFD0575), UINT64_C(0x013627AA7EFF912A), + UINT64_C(0x039991631C377F5A), UINT64_C(0x00FFCBAE33E6C3B0), + UINT64_C(0x036545772773AD96), UINT64_C(0x02DEF3D2B3143BB8), + UINT64_C(0x01B245D67D28AEE2), UINT64_C(0x03B5730E50925D4D), + UINT64_C(0x0137D5DA0626A021) } }, + { { UINT64_C(0x02EF399693C8C9ED), UINT64_C(0x032480E4E91B4B50), + UINT64_C(0x03EAED827D75B37A), UINT64_C(0x02B9358A8C276525), + UINT64_C(0x019C467FA946257E), UINT64_C(0x03B457A606548F9D), + UINT64_C(0x02D3B10268BB98C2), UINT64_C(0x034BECF321542167), + UINT64_C(0x01A1CBB2C11A742B) }, + { UINT64_C(0x020BC43C9CBA4DF5), UINT64_C(0x02C3C5D92732D879), + UINT64_C(0x03A372C63EEC57C9), UINT64_C(0x014F6920CA56FAD0), + UINT64_C(0x036BAFA7F7DF741A), UINT64_C(0x01464F9B06028A5B), + UINT64_C(0x000CE62E83C0059C), UINT64_C(0x00F520B04B69F179), + UINT64_C(0x011A209D7D4F8EEB) } }, + { { UINT64_C(0x01C6A5ECE2AF535C), UINT64_C(0x007C6B09AB9601A8), + UINT64_C(0x038E9A5EC53E207E), UINT64_C(0x03F26BD6C2BFA78F), + UINT64_C(0x010CDD45101F6F83), UINT64_C(0x0217ECA0924348D3), + UINT64_C(0x0147B8EEE7A39BA7), UINT64_C(0x024DDB6C72B3B17D), + UINT64_C(0x01AE0B275D729015) }, + { UINT64_C(0x0015C3536FA0D000), UINT64_C(0x02D1142A348E15B6), + UINT64_C(0x0327BB07DD0C2213), UINT64_C(0x0187BA5FF3D0F09E), + UINT64_C(0x0044C2DC0E108433), UINT64_C(0x0034160CAD0C591E), + UINT64_C(0x028471C7D759FF89), UINT64_C(0x00E019A28A163F01), + UINT64_C(0x00F2C97A825E5385) } }, + { { UINT64_C(0x038C2460BF70ACE0), UINT64_C(0x0383AC70974FEC4F), + UINT64_C(0x03E2AA648FF27E41), UINT64_C(0x0245F0DBB9355BA1), + UINT64_C(0x005499994AA91856), UINT64_C(0x006C41EC471DCB23), + UINT64_C(0x01FF9D2007310265), UINT64_C(0x0060D28D61D29BD7), + UINT64_C(0x0154E84C6D5C5A9A) }, + { UINT64_C(0x0325BCE404C78230), UINT64_C(0x038A9519CB9ADB50), + UINT64_C(0x0370A6A5972F5EED), UINT64_C(0x00D5CBEF06834788), + UINT64_C(0x00151666A6DEE354), UINT64_C(0x0008A831FD9B0A22), + UINT64_C(0x0360D3F15A923EB0), UINT64_C(0x011CEB88A8A3E02E), + UINT64_C(0x00CD0FDCE9171910) } }, + { { UINT64_C(0x017643017002D68B), UINT64_C(0x01581124BB115A0D), + UINT64_C(0x03AEDA0D3163CB21), UINT64_C(0x00F69C67520D44D4), + UINT64_C(0x03E135854D80B212), UINT64_C(0x0393E18B0CFCD461), + UINT64_C(0x01E646F8739535D0), UINT64_C(0x02DA9D8A9353AE22), + UINT64_C(0x0160373EDF8218F9) }, + { UINT64_C(0x03E6AECA5D90B740), UINT64_C(0x03FF9C27516B2CFC), + UINT64_C(0x034F4A8BB572E463), UINT64_C(0x007B64BAF1504EE1), + UINT64_C(0x021A1B22011EFA49), UINT64_C(0x03D4B0EED295BDE3), + UINT64_C(0x006A3FA9FD193C5C), UINT64_C(0x038717960A1006B0), + UINT64_C(0x00F1597050014DCF) } }, + { { UINT64_C(0x003927618EDA25DC), UINT64_C(0x0361657547DB658B), + UINT64_C(0x02B8E847FFB9EF33), UINT64_C(0x001A1DB5CA45000E), + UINT64_C(0x037664A1305CA9BC), UINT64_C(0x0218997B0A2FBCE3), + UINT64_C(0x01A085FF9F45131E), UINT64_C(0x00A1F6CF07EFF2D9), + UINT64_C(0x0174C644D6C94B68) }, + { UINT64_C(0x007BBBC4821A0C30), UINT64_C(0x02649F09BAEFEF46), + UINT64_C(0x0332D706D303F067), UINT64_C(0x0254B383642D4309), + UINT64_C(0x0395AD34B7BE0E21), UINT64_C(0x02D9107F2D73D7AD), + UINT64_C(0x037B7820233EF8FC), UINT64_C(0x0279A016B3256D06), + UINT64_C(0x011AF3A7C2F87F41) } }, + { { UINT64_C(0x0257D0E0C16A8803), UINT64_C(0x03ED792238920488), + UINT64_C(0x001AC09CD6B220DC), UINT64_C(0x02A4132750A7F053), + UINT64_C(0x00A5E7726CD65543), UINT64_C(0x01F0A9985C982A0F), + UINT64_C(0x0307B7DB57458965), UINT64_C(0x01985401A96336DC), + UINT64_C(0x00D8E9920CF30F0C) }, + { UINT64_C(0x024677C739792D19), UINT64_C(0x02F65F1ED50C62B2), + UINT64_C(0x0068CAE4CC263AA1), UINT64_C(0x00C913451E404E6A), + UINT64_C(0x00BED1AA30F76B8C), UINT64_C(0x03C4320182BBEDCB), + UINT64_C(0x00A30EC8B5406328), UINT64_C(0x00E61F7C2704E885), + UINT64_C(0x0127B023B5454A66) } }, + }, + { + { { UINT64_C(0x00E9E114E43C6A8B), UINT64_C(0x027E2C20105A2E23), + UINT64_C(0x03D5B5FA745094EE), UINT64_C(0x01337080223BD7FF), + UINT64_C(0x00D8CCA5AD4589D8), UINT64_C(0x0132DCA140336E19), + UINT64_C(0x0302098FAB8EE167), UINT64_C(0x00625B5791BF1AAD), + UINT64_C(0x01ECCAEB2EF79CDB) }, + { UINT64_C(0x01886BBC26B04438), UINT64_C(0x004F43B6559C663D), + UINT64_C(0x035D8CA99B91E616), UINT64_C(0x01354ED06659D27A), + UINT64_C(0x0054DF4765586194), UINT64_C(0x021052BBF70881C7), + UINT64_C(0x031C5EA1F6288A8B), UINT64_C(0x018AC1ACD36CBDFF), + UINT64_C(0x002E5EDF2873FF52) } }, + { { UINT64_C(0x0192DA26804ED5E3), UINT64_C(0x019DEC17F31925DE), + UINT64_C(0x01585208EBD95AC4), UINT64_C(0x039C6674D066C682), + UINT64_C(0x000715A11D1C0CFA), UINT64_C(0x032AD56C1F218BD5), + UINT64_C(0x0310FABD23E934F9), UINT64_C(0x009AF7F574942B50), + UINT64_C(0x005E0976782CAEF4) }, + { UINT64_C(0x038B0A7A2A7D5B37), UINT64_C(0x0315653FB7DA77BD), + UINT64_C(0x023F157F76616F31), UINT64_C(0x03C8C103329ACAE7), + UINT64_C(0x005A72502EE9CFA2), UINT64_C(0x03204345A2A46FC3), + UINT64_C(0x03666DC71F8A5B63), UINT64_C(0x01671725C07390A9), + UINT64_C(0x01E82DA80D6C216A) } }, + { { UINT64_C(0x02F28395A29D2024), UINT64_C(0x031A09859C9B6A2D), + UINT64_C(0x0047073FD20F177A), UINT64_C(0x03D961594C7CA571), + UINT64_C(0x019555237A9B2EC3), UINT64_C(0x029EFFFB7289E9D9), + UINT64_C(0x008D541E497546F7), UINT64_C(0x0270E93D46DCEE94), + UINT64_C(0x00396B23A204BEFD) }, + { UINT64_C(0x024295052DDD93A9), UINT64_C(0x0081670F33C07709), + UINT64_C(0x00B1D851D4CDFDA9), UINT64_C(0x014DF8329142BB29), + UINT64_C(0x00CDDB9A15F7FCFB), UINT64_C(0x0225454F3A1F5B86), + UINT64_C(0x01A46C8B126C191D), UINT64_C(0x03D3D3229D104DF9), + UINT64_C(0x018B36AD8A91DE12) } }, + { { UINT64_C(0x008FA75A590E92D6), UINT64_C(0x02223AFBB681AD2D), + UINT64_C(0x000DD9E71FEC0AB1), UINT64_C(0x03B4A988F4ABFEC5), + UINT64_C(0x02BDD3FD9A8FB4C8), UINT64_C(0x037A5B9AD9171110), + UINT64_C(0x0225D2934ADB68F2), UINT64_C(0x008BA6F5E067B164), + UINT64_C(0x014EA0A8B0C5768B) }, + { UINT64_C(0x000AB8407662F537), UINT64_C(0x02F781E22DFF31BF), + UINT64_C(0x03E22656A1F21F75), UINT64_C(0x01054C62C579B73D), + UINT64_C(0x0177A8529E6C1116), UINT64_C(0x03211865DCC5D46F), + UINT64_C(0x012706123E7C2723), UINT64_C(0x0396C31AADED99AB), + UINT64_C(0x01637E315762AAD0) } }, + { { UINT64_C(0x03847D336B9839DA), UINT64_C(0x02200E98133D266E), + UINT64_C(0x0039A8261B62D7DC), UINT64_C(0x033295F072A9D5EA), + UINT64_C(0x000C3FE4DCCB2B2A), UINT64_C(0x03907B7861011A91), + UINT64_C(0x023BC0EFEDB5EE58), UINT64_C(0x0288D6CD63BC03CD), + UINT64_C(0x01280E54E8A553CA) }, + { UINT64_C(0x036493BB1C1962CE), UINT64_C(0x0361F9CAD30DAC24), + UINT64_C(0x023856E058F7248C), UINT64_C(0x01EBC4CE9BBA1951), + UINT64_C(0x00FE14205169D78D), UINT64_C(0x01237D85837C8C98), + UINT64_C(0x017C4E2A95E40B90), UINT64_C(0x004E446F2E2C7819), + UINT64_C(0x0007FA80EDA9F2C8) } }, + { { UINT64_C(0x009A65815D2BF9A7), UINT64_C(0x027CB047E8DF8668), + UINT64_C(0x0391C32A60456677), UINT64_C(0x01CBC26A69AB3F09), + UINT64_C(0x0334D4D8DE25229B), UINT64_C(0x0383C0FA69B0DD79), + UINT64_C(0x01D206CDCC54B9E2), UINT64_C(0x02E51DE738338588), + UINT64_C(0x006112D5229EA977) }, + { UINT64_C(0x03CE85BEE20C30CB), UINT64_C(0x02FEBC02D12BC9D5), + UINT64_C(0x02AEDC3A968E7052), UINT64_C(0x02090B846E5AD878), + UINT64_C(0x00E4B6AEE2DDC2E3), UINT64_C(0x00269BE91139208A), + UINT64_C(0x02FEA688006D25C9), UINT64_C(0x002F5EFACF2F785D), + UINT64_C(0x009FE82D05CAC96A) } }, + { { UINT64_C(0x02EE8F69AB2E6D92), UINT64_C(0x0213F64F73B9A354), + UINT64_C(0x000A9DDA2E925D3C), UINT64_C(0x0192E31297313B4F), + UINT64_C(0x02B3145C4DD947AF), UINT64_C(0x03401B39394615DA), + UINT64_C(0x01C98D9DFBE6AE7D), UINT64_C(0x02BB8069EC7A7746), + UINT64_C(0x00A8BDC9CF002A7B) }, + { UINT64_C(0x00A3BF702EB71C5F), UINT64_C(0x00A25EDAE6446CE2), + UINT64_C(0x00108D65D5F288B8), UINT64_C(0x02FF972C1494ABED), + UINT64_C(0x0398342A5B4A102C), UINT64_C(0x00CD83A6E3855FF3), + UINT64_C(0x02D6848441981C93), UINT64_C(0x0335A209E0E8D9AA), + UINT64_C(0x01ED6F04D42258A5) } }, + { { UINT64_C(0x01FC3B47C1490429), UINT64_C(0x01B9A21B27B6F4B1), + UINT64_C(0x0193FF421EE32901), UINT64_C(0x03CC9F551147E445), + UINT64_C(0x01773B6B14BB7010), UINT64_C(0x005040A2326FD6EA), + UINT64_C(0x01949206C0BB7211), UINT64_C(0x02643DEA7E3C37CC), + UINT64_C(0x01725F6694BF623F) }, + { UINT64_C(0x014D9BD8587CA374), UINT64_C(0x020B8D6C1F3C983C), + UINT64_C(0x0395B0E3A7CCCE2F), UINT64_C(0x0071FCA214298293), + UINT64_C(0x038CF96F2462B942), UINT64_C(0x00DD1C97E2E6BCA4), + UINT64_C(0x00DEC4ACF114C9D6), UINT64_C(0x005DCE68C5288587), + UINT64_C(0x017B1DC591DEA2A9) } }, + { { UINT64_C(0x01A03D95A3ACF0F9), UINT64_C(0x0123031B8850C86B), + UINT64_C(0x0269AB94408A086E), UINT64_C(0x0181DEF245438334), + UINT64_C(0x00AB4F62CC0E7BA5), UINT64_C(0x0294A03CC0C2A98D), + UINT64_C(0x02234FBFCCAA23F6), UINT64_C(0x0304B9AF501D1961), + UINT64_C(0x0037258E9F9B8667) }, + { UINT64_C(0x0344657939436D81), UINT64_C(0x010709812083B7CE), + UINT64_C(0x00DBCA5B5A81714D), UINT64_C(0x00396E25D33E3896), + UINT64_C(0x00C0A65FA9547A23), UINT64_C(0x03F6796EDC3F72D8), + UINT64_C(0x022AA55EA0053589), UINT64_C(0x031E838C917FDA1B), + UINT64_C(0x014AF707C515D93F) } }, + { { UINT64_C(0x00E48C0436C8D427), UINT64_C(0x02A85992128BD380), + UINT64_C(0x03861C4538E26A42), UINT64_C(0x027A6E7784D042DB), + UINT64_C(0x0129555575E66B0A), UINT64_C(0x017362D6E2713125), + UINT64_C(0x00A08F82306ED961), UINT64_C(0x007FCDDA0F78CBC0), + UINT64_C(0x010F4598B67DA097) }, + { UINT64_C(0x03448C05AD400463), UINT64_C(0x03CB26D3975CCFCD), + UINT64_C(0x0067B9FD99A88F1D), UINT64_C(0x001F257A56DADDC1), + UINT64_C(0x03AEAFB6384BA84C), UINT64_C(0x0010C9301FE7F887), + UINT64_C(0x03D65C213A46C68C), UINT64_C(0x029BB4A1F8A5E81E), + UINT64_C(0x00C1838AFD6E3F39) } }, + { { UINT64_C(0x03CE07505924C15F), UINT64_C(0x0043A08ED31A1B99), + UINT64_C(0x0339C4C25E8B8B88), UINT64_C(0x0380DFF73DEBF4DA), + UINT64_C(0x031FBA11E366BE60), UINT64_C(0x001D2B7C0FA8BD42), + UINT64_C(0x009DE3ACE8B8A24D), UINT64_C(0x02B5F07FB5B5BD4F), + UINT64_C(0x018247CA534C6F7F) }, + { UINT64_C(0x01E0A02B3DBEEE78), UINT64_C(0x001E200666AB15CD), + UINT64_C(0x0186BEA684E8C48E), UINT64_C(0x00F3F1894CDB68E0), + UINT64_C(0x032ECC59DF1BBB85), UINT64_C(0x02D06C53B9B53209), + UINT64_C(0x004A86739B90C8A8), UINT64_C(0x03AD8A97D98C89BC), + UINT64_C(0x00F01344204A1E2F) } }, + { { UINT64_C(0x03582A68690F8C80), UINT64_C(0x012E151E3D7485DA), + UINT64_C(0x02527AD70F6AC0B4), UINT64_C(0x018B935CB107A3CD), + UINT64_C(0x036AA37D7A7E3625), UINT64_C(0x034CFB229578C67F), + UINT64_C(0x00A3FBC7740B7E16), UINT64_C(0x03D0C73BF6F5756D), + UINT64_C(0x009FFA51FEAC33FA) }, + { UINT64_C(0x0208A8D791982847), UINT64_C(0x03EDDBD997642B6C), + UINT64_C(0x025D551977914C26), UINT64_C(0x02DD352759CA1376), + UINT64_C(0x00654090371E1000), UINT64_C(0x004AC720BEC03C34), + UINT64_C(0x03C06BE7F6C95884), UINT64_C(0x01FA475777DF0765), + UINT64_C(0x00A99275E15E46C7) } }, + { { UINT64_C(0x016A50E0A643409F), UINT64_C(0x0122617180184D38), + UINT64_C(0x0105E92945AC97AB), UINT64_C(0x01A1B865FE31BAD8), + UINT64_C(0x033E0DC143E2D46B), UINT64_C(0x03DD157DF58A1946), + UINT64_C(0x02DF8E8C2EC7FB6D), UINT64_C(0x00E031916AFF1478), + UINT64_C(0x017A7BE92C9A8A1C) }, + { UINT64_C(0x02063F9B1AF2F29D), UINT64_C(0x0275AF845DF62346), + UINT64_C(0x010016B05B22BD9F), UINT64_C(0x03772DD9DE8A3F70), + UINT64_C(0x011B489BE6C04500), UINT64_C(0x0122DEDE177B839E), + UINT64_C(0x008B9ED1DBF81860), UINT64_C(0x00CDA67D0D8CEDC1), + UINT64_C(0x01984030C18BF083) } }, + { { UINT64_C(0x02791762137B93A2), UINT64_C(0x01F9DE3C5491E823), + UINT64_C(0x01E50243877F23E4), UINT64_C(0x0144F0B0081F37BC), + UINT64_C(0x00D7A781DD6DE5E2), UINT64_C(0x036A5EFE959E26D1), + UINT64_C(0x03A51922038AEEA2), UINT64_C(0x0054D452C10BD4F0), + UINT64_C(0x01B8A51151884AEF) }, + { UINT64_C(0x0241D85F77A00331), UINT64_C(0x023528AF19A313C4), + UINT64_C(0x0176DFC98292A79E), UINT64_C(0x03AADEBB4F7B06B1), + UINT64_C(0x00DAB141E4CE727F), UINT64_C(0x0388E18953348B42), + UINT64_C(0x03FD5A751265E468), UINT64_C(0x024673750B3DB1AB), + UINT64_C(0x00E57DD5F1A23923) } }, + { { UINT64_C(0x019D69A891328CE4), UINT64_C(0x008F01053E7A765C), + UINT64_C(0x030B5EE16F612292), UINT64_C(0x020A99C1AB590289), + UINT64_C(0x01D62D438BE82D64), UINT64_C(0x037D8D3250B87A70), + UINT64_C(0x03ACF90A3316DB71), UINT64_C(0x011F2D638816284F), + UINT64_C(0x000D63B1CF94E578) }, + { UINT64_C(0x026288694B620A88), UINT64_C(0x01D7EC9688B643F5), + UINT64_C(0x0329AC344C36F494), UINT64_C(0x01F7C91E725E18A1), + UINT64_C(0x02FEB98C58EA0341), UINT64_C(0x00A508DDA6BF1EC5), + UINT64_C(0x00733B2463BD7A85), UINT64_C(0x0384EBC8AB299B36), + UINT64_C(0x00074909BD45312A) } }, + { { UINT64_C(0x03E08C2C5C95FF29), UINT64_C(0x00C670644C808211), + UINT64_C(0x012D8021671FE338), UINT64_C(0x039F033363AA44CD), + UINT64_C(0x0337E7DB83662796), UINT64_C(0x03DDF327E2706223), + UINT64_C(0x005FBC050700CAFA), UINT64_C(0x020FC3C9D5CBB556), + UINT64_C(0x0105E1BC0BF33DC4) }, + { UINT64_C(0x03F3D06894519732), UINT64_C(0x029248D001BE65FE), + UINT64_C(0x011EC77A8F1A11E3), UINT64_C(0x0365A31B2279F38F), + UINT64_C(0x014E2577747A12CD), UINT64_C(0x0160E01F73DAA243), + UINT64_C(0x01E3B9CC567EDCCC), UINT64_C(0x03E1B7F6A7B42960), + UINT64_C(0x01809B863B2F3F5A) } }, + }, + { + { { UINT64_C(0x0373B24CDED2EB86), UINT64_C(0x02402CCFAA26116F), + UINT64_C(0x005073857CDB6102), UINT64_C(0x01AE6F89575C7623), + UINT64_C(0x022FF653B3A939A7), UINT64_C(0x0190B7CB0A3545D4), + UINT64_C(0x02353B26D8170467), UINT64_C(0x003C64522D17855F), + UINT64_C(0x01E5D565F776B34F) }, + { UINT64_C(0x025185A2C4B5DE1E), UINT64_C(0x02B3AFFAB7E382B2), + UINT64_C(0x0194B86479736527), UINT64_C(0x026B4BE5E81594AE), + UINT64_C(0x01D6960578E25220), UINT64_C(0x00993E60F26C1FF2), + UINT64_C(0x019B938479BA949D), UINT64_C(0x01FCA32034CAD7A3), + UINT64_C(0x017759280D580A6A) } }, + { { UINT64_C(0x02346AE90C2CA70B), UINT64_C(0x013757CC55F070F5), + UINT64_C(0x017E107D86CA7681), UINT64_C(0x005AD490EBA565E0), + UINT64_C(0x02C9C614514CB60C), UINT64_C(0x03BEAF2AC475AF2B), + UINT64_C(0x008C591B4CE3CC44), UINT64_C(0x014A9DDFA491CE57), + UINT64_C(0x001268735793A719) }, + { UINT64_C(0x007F97B31426994D), UINT64_C(0x01A96DF191B418F1), + UINT64_C(0x027DF055755518F4), UINT64_C(0x025DAAC2254C5D3C), + UINT64_C(0x0262D34E340FC2C3), UINT64_C(0x01F14824C8F72557), + UINT64_C(0x02A4819301BACB9F), UINT64_C(0x0268E03E6BEAB510), + UINT64_C(0x00EA805018D6E199) } }, + { { UINT64_C(0x00FEA5E6ABEE1F7B), UINT64_C(0x00538DB9B2D8E2D4), + UINT64_C(0x0305BA64218318A0), UINT64_C(0x022BD39A67AA3F20), + UINT64_C(0x01157632723B17F9), UINT64_C(0x00C8DAAF646E78C9), + UINT64_C(0x0158EFBD367A27CD), UINT64_C(0x011375E95CB4F12F), + UINT64_C(0x005E40D5A4D44054) }, + { UINT64_C(0x0297475C1D71A4FA), UINT64_C(0x03C1DABD876A7908), + UINT64_C(0x0038CB20D99CAE76), UINT64_C(0x03D63A3A005959E9), + UINT64_C(0x02AF78B93B764B6F), UINT64_C(0x0109A0342CFC2D30), + UINT64_C(0x01C301BEC294E434), UINT64_C(0x01972384DAD5FD67), + UINT64_C(0x01C3F5C9DF46F8D3) } }, + { { UINT64_C(0x03C115A0432574BE), UINT64_C(0x01495DBDA1F302E5), + UINT64_C(0x010568069CC94673), UINT64_C(0x000A2EEAB0E37751), + UINT64_C(0x033EE9D566902CC4), UINT64_C(0x006B34AFED584340), + UINT64_C(0x02B50803E9B165A1), UINT64_C(0x03E38D1CBBEC3EC2), + UINT64_C(0x0023CF19CC14F82C) }, + { UINT64_C(0x01CCAAFE462EC0F0), UINT64_C(0x02E714845D028EE6), + UINT64_C(0x02DCB47FF5021595), UINT64_C(0x030908AA9B079880), + UINT64_C(0x00371B5A69854385), UINT64_C(0x0185FE540E9AE9FF), + UINT64_C(0x02EE86F4F1A83CE4), UINT64_C(0x03AB730574E67F57), + UINT64_C(0x01F85953DB252C4B) } }, + { { UINT64_C(0x02EC254BFD8CB3CC), UINT64_C(0x01DFEE8DE5F7858B), + UINT64_C(0x019C8AD2711F9096), UINT64_C(0x00B1E57CC4C26707), + UINT64_C(0x03511BB53983E402), UINT64_C(0x02A4019CDD626E9F), + UINT64_C(0x03BA2E0AC5C44D84), UINT64_C(0x00A965FE7663AD49), + UINT64_C(0x01739420DA2DD7E5) }, + { UINT64_C(0x001E59C7B82FB619), UINT64_C(0x007B29CCEEF8AD83), + UINT64_C(0x02907C71BFFAE931), UINT64_C(0x003F110EC15CB5CF), + UINT64_C(0x02A76ECA58531793), UINT64_C(0x02D8D0EB5EA2FA03), + UINT64_C(0x0302231943B524FC), UINT64_C(0x01EBC24F8F0A0C29), + UINT64_C(0x019802CBF5F3CE73) } }, + { { UINT64_C(0x01852168BF26ECDA), UINT64_C(0x03BA5FFA1597B73C), + UINT64_C(0x00E55E47A88BF735), UINT64_C(0x03EF5511C575EFAA), + UINT64_C(0x03BEAAED274CB2F4), UINT64_C(0x01A2B7AEE5E82012), + UINT64_C(0x00161524928CEDED), UINT64_C(0x0243FB8CEB1DB1ED), + UINT64_C(0x00A939AAE7662875) }, + { UINT64_C(0x035FC996431E0BB4), UINT64_C(0x03871F05A029588C), + UINT64_C(0x024685D44F302D5A), UINT64_C(0x03D65DBBB0A24C64), + UINT64_C(0x031CCDBD89C13824), UINT64_C(0x03EEC80794841ADF), + UINT64_C(0x02BDD19433E827DB), UINT64_C(0x025D0DEF338BCA12), + UINT64_C(0x019DD1E057A3957F) } }, + { { UINT64_C(0x028221686CEBC7BE), UINT64_C(0x00550CAC829C5C56), + UINT64_C(0x024473DA711003E5), UINT64_C(0x01D2D356A63016BD), + UINT64_C(0x016B5C937B93F5AA), UINT64_C(0x016BA509AE911631), + UINT64_C(0x03BB387F2983AA08), UINT64_C(0x0087050F624145D1), + UINT64_C(0x00430D39E6B578E6) }, + { UINT64_C(0x02E690EFE2E3859D), UINT64_C(0x021D189217E0C7B9), + UINT64_C(0x03BC89797B1B794C), UINT64_C(0x01D6B16B566AB9D7), + UINT64_C(0x02935CEB8993E4D1), UINT64_C(0x03C0BF4C7D6967AE), + UINT64_C(0x00EA7B0862929371), UINT64_C(0x014624F22194B5D9), + UINT64_C(0x00D68221B3478C47) } }, + { { UINT64_C(0x03BEC558C2EB8133), UINT64_C(0x031106A5F911659D), + UINT64_C(0x00D07C39AEFB3CBE), UINT64_C(0x02F06E730A651F25), + UINT64_C(0x0183C527F019A937), UINT64_C(0x0153E778C8608775), + UINT64_C(0x0214C61DB43A7203), UINT64_C(0x00CD284ED5892F97), + UINT64_C(0x0198EB083CFD5B2B) }, + { UINT64_C(0x0393B136D6835A15), UINT64_C(0x03ED1013491B6647), + UINT64_C(0x00702068040A8E55), UINT64_C(0x0136DD3C55BF5BE4), + UINT64_C(0x03D053D6F8B28F3A), UINT64_C(0x00FAF9585D310B40), + UINT64_C(0x002690874B88A2A9), UINT64_C(0x02651384F1D8C181), + UINT64_C(0x00E5D3BFA7EC53DE) } }, + { { UINT64_C(0x033F039A91D85118), UINT64_C(0x03A170E9A74E89EC), + UINT64_C(0x03EBE8F17E2B4C68), UINT64_C(0x032E08DD52962FFF), + UINT64_C(0x01F682C887362E38), UINT64_C(0x02848A835A72A2EE), + UINT64_C(0x00AFA36F7A88966F), UINT64_C(0x02D505E8ED473B2D), + UINT64_C(0x007B6EF0E4DAA123) }, + { UINT64_C(0x03F322E8CD472029), UINT64_C(0x009B31F349123C63), + UINT64_C(0x024396A463AE29B2), UINT64_C(0x035A559411C8D9B7), + UINT64_C(0x0302AAF84FEF53A7), UINT64_C(0x00322717487DC79C), + UINT64_C(0x02CA6AE27A92266C), UINT64_C(0x03E6B6580391B525), + UINT64_C(0x00647CC677EE4353) } }, + { { UINT64_C(0x0015F4FB3CE12393), UINT64_C(0x013D9CD65B87D1CA), + UINT64_C(0x03ED1458BDACF05A), UINT64_C(0x011BC2A44D7A03F7), + UINT64_C(0x00D1E2748EE247CF), UINT64_C(0x025C05134193D6D7), + UINT64_C(0x03D8D4701057B20F), UINT64_C(0x03CD86409D914C19), + UINT64_C(0x0123EE9725146150) }, + { UINT64_C(0x03B85772CCE5DBF5), UINT64_C(0x024E60E34E33C627), + UINT64_C(0x00CEB58FBCFD7F20), UINT64_C(0x0213A9AF85D15B81), + UINT64_C(0x00879FD075FE76EA), UINT64_C(0x01883D1962AC7DA6), + UINT64_C(0x0041CDD770D92E82), UINT64_C(0x024CF83E19940701), + UINT64_C(0x0001A7D69F562E49) } }, + { { UINT64_C(0x03F06D3661D1EEDB), UINT64_C(0x01062600B09B6B3E), + UINT64_C(0x01A0A640D07EFC7A), UINT64_C(0x0317F67E20F296A1), + UINT64_C(0x034843017C701C3C), UINT64_C(0x033891152A103E33), + UINT64_C(0x01C00AE12BC93968), UINT64_C(0x0280A3403412AA1F), + UINT64_C(0x0111DA6A8E2C4EE1) }, + { UINT64_C(0x0138BBADC5A4238D), UINT64_C(0x02BB1A5504498DAF), + UINT64_C(0x03D55FD7A02F99F7), UINT64_C(0x030B36D2716AAE98), + UINT64_C(0x00846799916170BE), UINT64_C(0x021843A1130EBD86), + UINT64_C(0x01602A0048ED7277), UINT64_C(0x010F628883F5C170), + UINT64_C(0x00A879F20138FE97) } }, + { { UINT64_C(0x010B697E6BB71E17), UINT64_C(0x00A5FF1EE44F8A1A), + UINT64_C(0x02F0A65F0594ADDF), UINT64_C(0x01B97DFF3B989E00), + UINT64_C(0x02EBB1D34E1BC0B6), UINT64_C(0x0318AB0F908D45CA), + UINT64_C(0x006D84E0ECA51F49), UINT64_C(0x022CBEFDFAF29F0C), + UINT64_C(0x019FF3250EDA2D48) }, + { UINT64_C(0x0247BD9A1791633D), UINT64_C(0x001017CA6D44DB39), + UINT64_C(0x001392DBCF3C08AE), UINT64_C(0x00BBFD8C9245DBED), + UINT64_C(0x03C6094D363A2A9B), UINT64_C(0x0026C46C1B980722), + UINT64_C(0x014C00915831C495), UINT64_C(0x03480A51EA642A61), + UINT64_C(0x018A2CD0EE26C545) } }, + { { UINT64_C(0x00179F4F97812A25), UINT64_C(0x02A5E9E3F33BC581), + UINT64_C(0x000BD5248493D239), UINT64_C(0x02B7DE8E94D0B6E5), + UINT64_C(0x01D8674B49C2359A), UINT64_C(0x020163E368BE3C3B), + UINT64_C(0x0332717F9505C7C1), UINT64_C(0x035A143000B7EC9C), + UINT64_C(0x00C999A3E0BCCAF1) }, + { UINT64_C(0x007B047729EF75E3), UINT64_C(0x02CC12EE110A5B9B), + UINT64_C(0x0330E2E6286E55F0), UINT64_C(0x00C6FC4CB1CD5C12), + UINT64_C(0x014B93EA65F0CCE4), UINT64_C(0x01E5A20D3788D937), + UINT64_C(0x039AB1AC6BF17BFB), UINT64_C(0x0397FE82B1886D3A), + UINT64_C(0x000C112A21CE8FCD) } }, + { { UINT64_C(0x02B7C1C48CF8D334), UINT64_C(0x0078EAF1E0B9AA5A), + UINT64_C(0x0397B9A209EF9EF0), UINT64_C(0x001CFFAFD847B222), + UINT64_C(0x0321A14F818F0142), UINT64_C(0x0214D3F98F9D0ED8), + UINT64_C(0x011305B71C04D0D3), UINT64_C(0x03DE98EACA808006), + UINT64_C(0x01360AA21413198A) }, + { UINT64_C(0x028D3F07FD51E170), UINT64_C(0x023F03474306CBA2), + UINT64_C(0x034205D496752F99), UINT64_C(0x02D4BC03F380060F), + UINT64_C(0x01E2CE3EBF008299), UINT64_C(0x03EE2B7C9CF44A54), + UINT64_C(0x022CB7C6BCE06379), UINT64_C(0x03934E9100F4AD3F), + UINT64_C(0x001B8D6D7EA30D7F) } }, + { { UINT64_C(0x0175E6F14594D02E), UINT64_C(0x0107CFBBB666C104), + UINT64_C(0x0043C920F3FC7184), UINT64_C(0x01D3F596321DF679), + UINT64_C(0x034FBFA8E62660AC), UINT64_C(0x02F07B7B2F64B7D6), + UINT64_C(0x020B7A4B1CB30890), UINT64_C(0x0027370AF3A01ACE), + UINT64_C(0x004C3DF94ED57F1B) }, + { UINT64_C(0x02F7E28D420891BB), UINT64_C(0x00A165AF3355D551), + UINT64_C(0x03E2077F4C7840E2), UINT64_C(0x010A42F1F956CFC2), + UINT64_C(0x01586FF6FC545309), UINT64_C(0x00E2A2E3F8A44D6A), + UINT64_C(0x01BCD7CFAB0CD9EA), UINT64_C(0x02CD7B5AA257EF8B), + UINT64_C(0x01E161EB6461E56F) } }, + { { UINT64_C(0x03AA1E440B1B7656), UINT64_C(0x02DB3F4D449DEBD4), + UINT64_C(0x025617A010F1A335), UINT64_C(0x010C03757E20D72C), + UINT64_C(0x01EA95F9EFACD59B), UINT64_C(0x0126D8DDDE17B239), + UINT64_C(0x02DBF2D291F6AEC7), UINT64_C(0x02F6100FC8834353), + UINT64_C(0x00C18C83BB58FB77) }, + { UINT64_C(0x03754C15A7EEE80E), UINT64_C(0x00247AB9412690FE), + UINT64_C(0x016E9C7BD742F5DF), UINT64_C(0x02361FAE95827D75), + UINT64_C(0x029E41CC30EA15A1), UINT64_C(0x005F53D5863CB83F), + UINT64_C(0x0025C9FC701A2B9B), UINT64_C(0x0389C7702E9DAFBA), + UINT64_C(0x00ED3C35310B5895) } }, + }, + { + { { UINT64_C(0x0373C85A8201C48B), UINT64_C(0x000BE293272BB8C3), + UINT64_C(0x0299641D84048EF5), UINT64_C(0x012EE83CEE0A37DD), + UINT64_C(0x00D6A81ED893F8A3), UINT64_C(0x01988A5103EE9A5B), + UINT64_C(0x01495F90BE6C8319), UINT64_C(0x00954437A6A3C821), + UINT64_C(0x010E12D843E6580B) }, + { UINT64_C(0x007820FBE51DE678), UINT64_C(0x013364C5E0C684D4), + UINT64_C(0x009D1721196C2E40), UINT64_C(0x01933769A5FD2063), + UINT64_C(0x00BAB8B58BEFA01A), UINT64_C(0x012866F6B7334CBC), + UINT64_C(0x025340A51AC6E1FB), UINT64_C(0x03B1135009A4FD38), + UINT64_C(0x018AD6567590AFBB) } }, + { { UINT64_C(0x03F7CC1DCD9C3B89), UINT64_C(0x03F2238DF027BB54), + UINT64_C(0x014C7FD4BA95DD01), UINT64_C(0x01DBD8CC489F6AB6), + UINT64_C(0x03A6066BFEA7BAB5), UINT64_C(0x0065E8AD52465D5E), + UINT64_C(0x03E8F9DA8D525106), UINT64_C(0x001A6869F0B37603), + UINT64_C(0x016D47A0587C292E) }, + { UINT64_C(0x0374FC0618A5170B), UINT64_C(0x0152FB1A3C0C1CC0), + UINT64_C(0x01710A373C6A380E), UINT64_C(0x00845789535E37A3), + UINT64_C(0x035D0DA356C25D05), UINT64_C(0x00C2670CA5FED688), + UINT64_C(0x010367DAE1D930AA), UINT64_C(0x0109B528D8B5E2DD), + UINT64_C(0x0160EAA2FD7C6C7E) } }, + { { UINT64_C(0x02EB058989126FAC), UINT64_C(0x03391866A50E5BF0), + UINT64_C(0x0249D99C7ECCC796), UINT64_C(0x031F124A928D03B2), + UINT64_C(0x0106FA952E20ED57), UINT64_C(0x001BC6E7D0224A59), + UINT64_C(0x00CE05E4690915C9), UINT64_C(0x020A90266CA1AD52), + UINT64_C(0x0094293617B76FE5) }, + { UINT64_C(0x034B04313831CD9D), UINT64_C(0x03B7732D91E90928), + UINT64_C(0x014A1E82A9C3D51E), UINT64_C(0x02AEC53126F32DDD), + UINT64_C(0x028AC8F7A359BD6C), UINT64_C(0x01B3A0EDE3DB4B4B), + UINT64_C(0x028EB875F2FBF434), UINT64_C(0x01AE764FB3A07035), + UINT64_C(0x006701271A1304D0) } }, + { { UINT64_C(0x0015B0C258BC45E5), UINT64_C(0x00500CF779654876), + UINT64_C(0x00D61185031EC91A), UINT64_C(0x0237D26B8AB4ABC0), + UINT64_C(0x0303DB5DD0B1113F), UINT64_C(0x02C21386988E1A69), + UINT64_C(0x002A78FA27F52A38), UINT64_C(0x02373FFEB8A111FB), + UINT64_C(0x01ED316A4A837D78) }, + { UINT64_C(0x02151FA30AE71753), UINT64_C(0x018559984522D236), + UINT64_C(0x02AA1CED8D6E9D2C), UINT64_C(0x0336B3277D457875), + UINT64_C(0x01FEB5FD684C784F), UINT64_C(0x0312F506AD5C57EB), + UINT64_C(0x026506BE8AA4F453), UINT64_C(0x0334630A573CB20E), + UINT64_C(0x00AA6EBCFBE68959) } }, + { { UINT64_C(0x0339D37CD0D9229F), UINT64_C(0x0170E57961291D98), + UINT64_C(0x029AE28566E91600), UINT64_C(0x02402C0C57E9B401), + UINT64_C(0x01EC520A49429756), UINT64_C(0x02A2CF079E7747FF), + UINT64_C(0x03751BAC838751C0), UINT64_C(0x021ED034A3B7C53C), + UINT64_C(0x0118500D09678BBC) }, + { UINT64_C(0x007E207E14E4C072), UINT64_C(0x039277F4D05B1F1F), + UINT64_C(0x02A052EAB5B31E63), UINT64_C(0x02B6A467E3451DEA), + UINT64_C(0x001613AC11B73C00), UINT64_C(0x00C5A6FA0FE24B0C), + UINT64_C(0x034F01404D69886A), UINT64_C(0x00324E28B3CA9FD4), + UINT64_C(0x005A3181E5A8A0B8) } }, + { { UINT64_C(0x02CE6BA9219403A6), UINT64_C(0x030DFB5CBE0CA405), + UINT64_C(0x039D700EFB6B4704), UINT64_C(0x0365CAD8F9D06BE7), + UINT64_C(0x00FE6873B0456CD8), UINT64_C(0x0090EC1026095A01), + UINT64_C(0x016F3A2CC5EC6B62), UINT64_C(0x001AD035AE2286FC), + UINT64_C(0x018819632B44D890) }, + { UINT64_C(0x039574FA6B48EFBA), UINT64_C(0x029D9BE545F8EFA2), + UINT64_C(0x00F42C7789B73AA2), UINT64_C(0x03CB90D731504D3E), + UINT64_C(0x0202ACD7E2DE6E8A), UINT64_C(0x02C8AD45BF6E2A24), + UINT64_C(0x0067A40E7FC99B4D), UINT64_C(0x03E0738CFADACE29), + UINT64_C(0x01177C98831102AA) } }, + { { UINT64_C(0x030A8610AC5E165D), UINT64_C(0x014AA32172C55EC2), + UINT64_C(0x027CE551CABE6211), UINT64_C(0x02477F69861DB6E6), + UINT64_C(0x01E8FF337E7E36EC), UINT64_C(0x0054ACDF3E1C9EF7), + UINT64_C(0x03DED626009E6F01), UINT64_C(0x02E49BFEF7555C32), + UINT64_C(0x002E4F1C3DB00152) }, + { UINT64_C(0x0332D8B606C8A9BC), UINT64_C(0x03AD929E6D810A1A), + UINT64_C(0x02C0030394592734), UINT64_C(0x02442FE9824BDA03), + UINT64_C(0x03CBAC9513FF99FB), UINT64_C(0x03B3D4E910EDA5AD), + UINT64_C(0x005A6F83029FFE7F), UINT64_C(0x02F6FF8D9E1F29A6), + UINT64_C(0x0188A1C08A99132D) } }, + { { UINT64_C(0x001F1A68F391B195), UINT64_C(0x00F016D21D573BA5), + UINT64_C(0x00EB4A4B11B13F56), UINT64_C(0x0390443801100BE8), + UINT64_C(0x00CDF1786689F09F), UINT64_C(0x008708E6F68D807B), + UINT64_C(0x00CFC70B63E2B318), UINT64_C(0x02DA65CABECA51A9), + UINT64_C(0x01BB4CC16417876B) }, + { UINT64_C(0x002270E155C4416F), UINT64_C(0x0275E82A3EE6287C), + UINT64_C(0x019550DEBAE641A6), UINT64_C(0x0189E9D792313D48), + UINT64_C(0x022E11801B0D93FC), UINT64_C(0x006308C9DD555E4E), + UINT64_C(0x02F9EBC6E275E976), UINT64_C(0x00011D5E55FC63C6), + UINT64_C(0x01D3E16AA048085F) } }, + { { UINT64_C(0x01C6845EE45C5FF5), UINT64_C(0x03B6D8ADC4E97112), + UINT64_C(0x0068C305E2731ED0), UINT64_C(0x037AFCABEDF2C8B5), + UINT64_C(0x016C0203DF9F154E), UINT64_C(0x03FF6DCCA97B1A6C), + UINT64_C(0x019D691BB5C8CD06), UINT64_C(0x022C5EA48F6FE25F), + UINT64_C(0x00553B7F4065FABA) }, + { UINT64_C(0x006009B918BF712A), UINT64_C(0x0087FAC6655FF7A7), + UINT64_C(0x039DB19E2FDB3477), UINT64_C(0x014389D0D15C2072), + UINT64_C(0x02B3AB48E4A3E0DF), UINT64_C(0x00D55CD68B325E8D), + UINT64_C(0x020332F2B62898A4), UINT64_C(0x019DB12158F6D4D6), + UINT64_C(0x010E1F4D65633E42) } }, + { { UINT64_C(0x035FDBF97A66FBB8), UINT64_C(0x0397FDA15F48E249), + UINT64_C(0x0314912B73A0AD12), UINT64_C(0x018B5A1F5856CC06), + UINT64_C(0x026DB1F90C057E46), UINT64_C(0x02BC203FE8141974), + UINT64_C(0x032698D0DBE8152C), UINT64_C(0x01BC802ED9745CEA), + UINT64_C(0x00B1E80CFCF35D14) }, + { UINT64_C(0x026A4890175570A1), UINT64_C(0x03DEFA508892558E), + UINT64_C(0x00D274862CB6E1EF), UINT64_C(0x02F12D3DF3D2916D), + UINT64_C(0x01D9AF2100AA8841), UINT64_C(0x024123BB5E94517B), + UINT64_C(0x00CEA1686B604BBF), UINT64_C(0x007E9A1A2F8E072B), + UINT64_C(0x012919949C3170DE) } }, + { { UINT64_C(0x028CFBD7509B3F23), UINT64_C(0x0341392CF0D37CE2), + UINT64_C(0x03BB3B849E04FCBA), UINT64_C(0x004BCCA7E7C71C3F), + UINT64_C(0x007EAF927839C8E2), UINT64_C(0x0061602F3DAFE11E), + UINT64_C(0x01D0F1831E9A3AE7), UINT64_C(0x032630A59BC245BA), + UINT64_C(0x00C9122EE0775F54) }, + { UINT64_C(0x027706840C226E2C), UINT64_C(0x021FC974C3A78386), + UINT64_C(0x0254E3803EE94792), UINT64_C(0x02763098FB07712F), + UINT64_C(0x03085BE39396F8D2), UINT64_C(0x039CDBB83C0DCAE5), + UINT64_C(0x0275170CD909C685), UINT64_C(0x02A48EFA2F7CBD9D), + UINT64_C(0x0151800A47F18A8F) } }, + { { UINT64_C(0x0266B421EDA35EBF), UINT64_C(0x016EE661AEE22D67), + UINT64_C(0x02189CC63A33934C), UINT64_C(0x02035BBEEF2E6505), + UINT64_C(0x03A21BDAB12827FF), UINT64_C(0x010837E5E86E37F7), + UINT64_C(0x000889F4FF18C641), UINT64_C(0x00B83D668CF5F701), + UINT64_C(0x00A90A0E4C84A45C) }, + { UINT64_C(0x014A9DB7546020F0), UINT64_C(0x026B8123F183E007), + UINT64_C(0x014172F8A29A74BC), UINT64_C(0x03ECB113DDF05CC6), + UINT64_C(0x0056019B554AE591), UINT64_C(0x01C3E5A8AC670B45), + UINT64_C(0x0328112932236FCD), UINT64_C(0x0147D09F4CAD8D13), + UINT64_C(0x007CA80EB751C2E8) } }, + { { UINT64_C(0x03260C3CA6A09384), UINT64_C(0x01A2DAEF9F24A534), + UINT64_C(0x01FA415780AE38B6), UINT64_C(0x02FE728B02BEADE2), + UINT64_C(0x031F71486AA63A4A), UINT64_C(0x021F907074346F6D), + UINT64_C(0x00225A4DA564511F), UINT64_C(0x02CC4C97BC497C99), + UINT64_C(0x01C2DD5CCD878296) }, + { UINT64_C(0x03CD4A619B2264B8), UINT64_C(0x03093FC7F1583EA2), + UINT64_C(0x02B47AD7D9A2FB6F), UINT64_C(0x00C0D0B440BCA2A9), + UINT64_C(0x00B22B3DB051C447), UINT64_C(0x01CEC4D502303875), + UINT64_C(0x0340F66A4D33C79A), UINT64_C(0x00C02F44477E4379), + UINT64_C(0x01A54038DE4CD448) } }, + { { UINT64_C(0x036F26FDD184B415), UINT64_C(0x0077144A843CA00F), + UINT64_C(0x012DE3D50936A2A0), UINT64_C(0x00F1A915BEF669FD), + UINT64_C(0x02A728B908D36285), UINT64_C(0x023009A8F3585930), + UINT64_C(0x01AFE37F5F6903E6), UINT64_C(0x015BE42AC69043A0), + UINT64_C(0x0029A3961324FE67) }, + { UINT64_C(0x03744629EA87B468), UINT64_C(0x01B1B421D820F115), + UINT64_C(0x009DEF11D39EF564), UINT64_C(0x002A1D3B4419573F), + UINT64_C(0x00558617DEFBD955), UINT64_C(0x03E4BE19D9F46F14), + UINT64_C(0x012A38F1BF3ED4C3), UINT64_C(0x00B5C5CD4AC51A53), + UINT64_C(0x00A0E10EBF360168) } }, + { { UINT64_C(0x011616DEF784F95B), UINT64_C(0x02677312C6AD8D2D), + UINT64_C(0x03F3EF6B22617C90), UINT64_C(0x029E26932332F57D), + UINT64_C(0x0285AE820DE6D58A), UINT64_C(0x014C9337216D597B), + UINT64_C(0x00A6F170854E55AF), UINT64_C(0x010EA56E5DFB91ED), + UINT64_C(0x012F8DBABA868C11) }, + { UINT64_C(0x015249FC91DCCF70), UINT64_C(0x0306C5CB46C7DD02), + UINT64_C(0x021954201045F6CB), UINT64_C(0x00E2B058688BC602), + UINT64_C(0x002D5DDCF79B78E3), UINT64_C(0x03AF429058EAD023), + UINT64_C(0x016A3FA5F7DB5234), UINT64_C(0x01EAFE34B82E4D26), + UINT64_C(0x0095115BD2F5AE74) } }, + { { UINT64_C(0x01C1741308F9B528), UINT64_C(0x011456D2FA27C256), + UINT64_C(0x029EE8BA38AC33BC), UINT64_C(0x0162AD2DF7E46CB7), + UINT64_C(0x01239C1DD2198564), UINT64_C(0x00D634D586B52D14), + UINT64_C(0x00362033A3D5AE2B), UINT64_C(0x00F403720300250C), + UINT64_C(0x0134664850978D32) }, + { UINT64_C(0x032ECC2C4837554E), UINT64_C(0x008F4BC077701F7F), + UINT64_C(0x002D0F7435107071), UINT64_C(0x015A21A6D90E61B2), + UINT64_C(0x03E1B78AD2E928DC), UINT64_C(0x02A2214D7306E1AF), + UINT64_C(0x01C4FCA92A1694C1), UINT64_C(0x00656FBD23561E1B), + UINT64_C(0x013FF3454072CB98) } }, + }, + { + { { UINT64_C(0x003C182D851368EE), UINT64_C(0x0128CF55F2467CB0), + UINT64_C(0x00767E333ACE3BB9), UINT64_C(0x011F65D379FE73C3), + UINT64_C(0x038B18FA5C037C7D), UINT64_C(0x01B3CD7DFA5B80B3), + UINT64_C(0x0086C596F1A3E912), UINT64_C(0x00A8AD1EBFF700CD), + UINT64_C(0x00E12C370BFEEC8C) }, + { UINT64_C(0x00E5DE2C18A3F84B), UINT64_C(0x02D9CB8AB50B28B7), + UINT64_C(0x01D7EDD0731B2C4B), UINT64_C(0x0328A026B1FAD960), + UINT64_C(0x02189B0FF8B6CA46), UINT64_C(0x03FD18C777A3B6E8), + UINT64_C(0x0004BCBA72EE3E81), UINT64_C(0x0214C7D12A3F1BC4), + UINT64_C(0x01CA103DD1B9C887) } }, + { { UINT64_C(0x00A781D5DE024391), UINT64_C(0x01D4AC6B9AA04C66), + UINT64_C(0x0298088919924A4E), UINT64_C(0x02295F237B9E2B5F), + UINT64_C(0x0228FA8EA8570017), UINT64_C(0x01AE7F1814C6B59C), + UINT64_C(0x008FF64625C08899), UINT64_C(0x002A626C4EECF6A1), + UINT64_C(0x0118A9AD8CEFC12E) }, + { UINT64_C(0x014B05DA9E9AB68C), UINT64_C(0x036EDCE530984903), + UINT64_C(0x03147DF5F527C318), UINT64_C(0x0196BC1DED347CDD), + UINT64_C(0x01BB4AC96E14A591), UINT64_C(0x03C4F3EDF23B9460), + UINT64_C(0x03547D14C90381B8), UINT64_C(0x03693FA10D27208C), + UINT64_C(0x003B75AA5EA458F7) } }, + { { UINT64_C(0x02779CC419496A3E), UINT64_C(0x01D3BB2E4FE62409), + UINT64_C(0x032F4C70FCAE21C4), UINT64_C(0x013310DA0ECE14A3), + UINT64_C(0x03F3B3593FC9DDBB), UINT64_C(0x0051822EF8CFB99D), + UINT64_C(0x012D89EA3AE1C997), UINT64_C(0x00D12E2856922EAE), + UINT64_C(0x00E81549D787C4C8) }, + { UINT64_C(0x02337896D4B88B67), UINT64_C(0x00A59FC2D1584FBE), + UINT64_C(0x02FAA1ED2840EB09), UINT64_C(0x02061203F2AA6499), + UINT64_C(0x03BF834C1997385E), UINT64_C(0x02274588F3F24162), + UINT64_C(0x001CC1FD4A622D5A), UINT64_C(0x0044FEAA4FA76E84), + UINT64_C(0x00B3619A1E813DA3) } }, + { { UINT64_C(0x0276BEE0D076683D), UINT64_C(0x030210C875AFAF69), + UINT64_C(0x0011EDC7657E64F0), UINT64_C(0x02488D3166D94F20), + UINT64_C(0x011EA313A85E0E01), UINT64_C(0x032E12BF7FFAF1B4), + UINT64_C(0x00327C5A8CCEF85B), UINT64_C(0x0252EF23E4C30C4E), + UINT64_C(0x01CC6A9EB749B839) }, + { UINT64_C(0x02B00795BB99594F), UINT64_C(0x01F383BC6F8BE7AA), + UINT64_C(0x00760524F18BF5F2), UINT64_C(0x013AA36073E7DDA9), + UINT64_C(0x025A0A5A67DE0097), UINT64_C(0x01A61B644AB9486A), + UINT64_C(0x0313B98AABF5EA94), UINT64_C(0x003BB89B65E51F0D), + UINT64_C(0x01776B040E0F32AB) } }, + { { UINT64_C(0x01721BA5B2662A6A), UINT64_C(0x0215447AF117F66C), + UINT64_C(0x03DB83ECC5D3D99A), UINT64_C(0x0215A6C6CE2794E3), + UINT64_C(0x010BE3489ECF31F8), UINT64_C(0x012B3FA3634CDEF2), + UINT64_C(0x017C1F03CDFBCD8A), UINT64_C(0x02EE6A91A626677E), + UINT64_C(0x003FF1568F6BE74E) }, + { UINT64_C(0x01995519CD76A58E), UINT64_C(0x02DC3A3040585EF5), + UINT64_C(0x0061DDCAE3A68494), UINT64_C(0x025E1A1EF3C2AAA5), + UINT64_C(0x00CA54B0D55B6CE8), UINT64_C(0x00543A97F9E4CC22), + UINT64_C(0x01F7F09EDEFF8BFA), UINT64_C(0x00168473D37DD44E), + UINT64_C(0x00FE410E086ACD40) } }, + { { UINT64_C(0x006AF7630DA09D54), UINT64_C(0x010ABA844C57F2B5), + UINT64_C(0x03C9AC1832567F47), UINT64_C(0x00B3CFD3C603E8BB), + UINT64_C(0x01A04969EEACA1C9), UINT64_C(0x02E57B7E17E4591D), + UINT64_C(0x03E68AB3619DA17B), UINT64_C(0x00ECCA930F030279), + UINT64_C(0x01B2C98B4036BF1D) }, + { UINT64_C(0x0077C78B045007F6), UINT64_C(0x03CCE2791A0C0815), + UINT64_C(0x01688DB89F24D07A), UINT64_C(0x0017DBDDD43EAD41), + UINT64_C(0x033A80BF740D6693), UINT64_C(0x02F768ED65974242), + UINT64_C(0x026B74A3E2B11EFF), UINT64_C(0x023E110BE2C45B38), + UINT64_C(0x00B98CD56F7AB2CD) } }, + { { UINT64_C(0x0383E5A50FB0D3ED), UINT64_C(0x034513587B8AB555), + UINT64_C(0x03B1C6783B97BD45), UINT64_C(0x0062B781B344D4E1), + UINT64_C(0x00FD5DFB5083FED9), UINT64_C(0x00CF4B880197BC29), + UINT64_C(0x02084C42BE014183), UINT64_C(0x01C81317B056C149), + UINT64_C(0x016318E131F69642) }, + { UINT64_C(0x019B4B41240FA002), UINT64_C(0x0312BAA4E914151E), + UINT64_C(0x0180907D9FACF5B0), UINT64_C(0x007774B33895C1D0), + UINT64_C(0x017E17EBCCA7FA72), UINT64_C(0x030812EEB0BC890A), + UINT64_C(0x02294B1CB2912B73), UINT64_C(0x03835B7F1FA5A17D), + UINT64_C(0x001712AC45AB3EC9) } }, + { { UINT64_C(0x006603D4F696BA83), UINT64_C(0x00D22CAFE710B52F), + UINT64_C(0x00A86019255DD155), UINT64_C(0x03D9E86EE758D999), + UINT64_C(0x024051D5CE463A6D), UINT64_C(0x02906D0203D86E6E), + UINT64_C(0x02B53E1EA3B77733), UINT64_C(0x01298EBA501720C6), + UINT64_C(0x00A49AB3D5669F64) }, + { UINT64_C(0x00C3477F5E8C01EF), UINT64_C(0x02CFF8B3EED1F46C), + UINT64_C(0x02588DBF2A1259EE), UINT64_C(0x01BC0AE8F9969F27), + UINT64_C(0x0284232123DA5F9F), UINT64_C(0x03E79C894325C436), + UINT64_C(0x00FE809311DA7F3B), UINT64_C(0x0102255D12EBA535), + UINT64_C(0x01F50E25AE34114E) } }, + { { UINT64_C(0x0277D803646C1FB6), UINT64_C(0x02488A5E5052BBB1), + UINT64_C(0x000391356EAC8F11), UINT64_C(0x01646437C00A834F), + UINT64_C(0x02EAB8F940B93B40), UINT64_C(0x024958DF1C74ED20), + UINT64_C(0x03F2F1AF37BD1D73), UINT64_C(0x011FE3F5381F17F4), + UINT64_C(0x00EF826DAE390184) }, + { UINT64_C(0x00D2D6B4BA78B572), UINT64_C(0x0073D6C96322203E), + UINT64_C(0x018C7B2E976AA1E5), UINT64_C(0x026E3F6920E5F016), + UINT64_C(0x01E846537687AFF5), UINT64_C(0x017563948203FD81), + UINT64_C(0x019F1D17DABC8810), UINT64_C(0x00F8ED530C4E3A67), + UINT64_C(0x0196F10721B62324) } }, + { { UINT64_C(0x032F87D12878503F), UINT64_C(0x03648B98DC48ECC8), + UINT64_C(0x0184FD4C8EF53242), UINT64_C(0x01333846A9EEDB04), + UINT64_C(0x02C1DF317872BBBF), UINT64_C(0x002D6E1FAF12E7FB), + UINT64_C(0x039480C808CCDA38), UINT64_C(0x02845D8F6413B928), + UINT64_C(0x01979462C493957E) }, + { UINT64_C(0x02E38CCA2947A480), UINT64_C(0x00298B225770DDF9), + UINT64_C(0x02859B366A105BC5), UINT64_C(0x00C80C32E8803179), + UINT64_C(0x01DEC1627A49675D), UINT64_C(0x018FD7B10ED2384C), + UINT64_C(0x00CE729C9A700811), UINT64_C(0x00B9251157C6408C), + UINT64_C(0x00D18FB5EDB29090) } }, + { { UINT64_C(0x0019C27F1002FA40), UINT64_C(0x0187B6686A1976EA), + UINT64_C(0x03089E6ABFDCA1BA), UINT64_C(0x01E3A9276DAB6A31), + UINT64_C(0x01010381B56E1374), UINT64_C(0x02059C3444CA22AD), + UINT64_C(0x0340D48C52418852), UINT64_C(0x001C397FEACAD014), + UINT64_C(0x00A9B91476DE1E3B) }, + { UINT64_C(0x01B18811D2203C97), UINT64_C(0x006802C3244A5143), + UINT64_C(0x034CC7484B00B0C2), UINT64_C(0x02D138E88D39FE0E), + UINT64_C(0x00035A355C8D48A2), UINT64_C(0x01257073943DE7F1), + UINT64_C(0x003B2AA49BD592AC), UINT64_C(0x03D7C1DBA4418663), + UINT64_C(0x01A24E3A67DAF410) } }, + { { UINT64_C(0x02B819FA06A8409F), UINT64_C(0x004A52ACCE9D798F), + UINT64_C(0x0342BCE5E942F51F), UINT64_C(0x01499CF92BE85899), + UINT64_C(0x03ACD69B9655760D), UINT64_C(0x020F4E9A7813F0D0), + UINT64_C(0x03880853D5E05E02), UINT64_C(0x02B0666045F612A7), + UINT64_C(0x00302D53FFFEEF1D) }, + { UINT64_C(0x025294489593BC03), UINT64_C(0x013D42D26192AAEB), + UINT64_C(0x010D09630D5F95E5), UINT64_C(0x02152684A6D53F7C), + UINT64_C(0x022DD5DAD7C7B4A8), UINT64_C(0x02966500C48498D3), + UINT64_C(0x03D763E4EB3C2E33), UINT64_C(0x027FAC6AFEDC5F61), + UINT64_C(0x0074EA2C83E52FE7) } }, + { { UINT64_C(0x01DB9F78868172DA), UINT64_C(0x0100A5C0A0C25D2E), + UINT64_C(0x023587D7C3E66CE7), UINT64_C(0x0234D19B042FCCD7), + UINT64_C(0x0059721B0F60680E), UINT64_C(0x03A0B2DF23AB3A42), + UINT64_C(0x0177AFB700329CAC), UINT64_C(0x03D5A5CFAF392AE7), + UINT64_C(0x00CF59BC96ECDBA2) }, + { UINT64_C(0x03CE38933BF1C993), UINT64_C(0x0388C35CC45F89F5), + UINT64_C(0x039286D1ED3DB46C), UINT64_C(0x0061947308D0F830), + UINT64_C(0x0307100E3F7C9C8E), UINT64_C(0x00967048E8CC7CC9), + UINT64_C(0x03CAD0590370F457), UINT64_C(0x0110D9420ECE3996), + UINT64_C(0x009955E94586B830) } }, + { { UINT64_C(0x03B6822745F0E5DA), UINT64_C(0x03120B5D07E9C6A5), + UINT64_C(0x01F88B173B2A0839), UINT64_C(0x0245CA639869EE96), + UINT64_C(0x0199F585B26F8120), UINT64_C(0x01D2153C5D41B782), + UINT64_C(0x009EAD730F2E3B2D), UINT64_C(0x007E27FEF3F3388E), + UINT64_C(0x01DD0BBF32960B2B) }, + { UINT64_C(0x0298F45E5931C0F0), UINT64_C(0x012A6F48D3898EAD), + UINT64_C(0x01EFD537B310CFED), UINT64_C(0x030390CD48666C4B), + UINT64_C(0x01DCF41DD16073BB), UINT64_C(0x035CF923EABD525A), + UINT64_C(0x00DDF48F41B47311), UINT64_C(0x0316E0000BFFF7E2), + UINT64_C(0x003C6A0632821286) } }, + { { UINT64_C(0x006FA434852228CC), UINT64_C(0x03EE279533E093C6), + UINT64_C(0x03C215EE36B974E7), UINT64_C(0x02FA330552481892), + UINT64_C(0x01ABFC67F3C2F700), UINT64_C(0x000945F47832719D), + UINT64_C(0x01BA378921E29D68), UINT64_C(0x0364936B83B66609), + UINT64_C(0x0137B7B2011DE260) }, + { UINT64_C(0x00A7EBAC8BA1E090), UINT64_C(0x0343E15BB9BADFCE), + UINT64_C(0x01C5AFA1059527D8), UINT64_C(0x039CE94C694D78AB), + UINT64_C(0x020EE7FF8C758AFB), UINT64_C(0x03859CF409F61041), + UINT64_C(0x033F2682BABD9F38), UINT64_C(0x0344ED7AA22D40CE), + UINT64_C(0x00C59BE4543774E1) } }, + { { UINT64_C(0x01B5777A8F1CAC2C), UINT64_C(0x001A1BB0AB5E6822), + UINT64_C(0x011BC043646DAF27), UINT64_C(0x03F711C68F6A2900), + UINT64_C(0x001C279115DF5830), UINT64_C(0x017D6649CFD4D909), + UINT64_C(0x02270B8E48C4FC60), UINT64_C(0x01D402B5FB5683E0), + UINT64_C(0x001F8DB87807BBF7) }, + { UINT64_C(0x00C9DAC0A9244F78), UINT64_C(0x02B03A3698AE7AB0), + UINT64_C(0x02CCF3FF50BC045B), UINT64_C(0x03BCD2148E821FFF), + UINT64_C(0x035E87616BD7E71C), UINT64_C(0x034B54F4034B6093), + UINT64_C(0x02C5BEA4BCD01770), UINT64_C(0x0219F4B5BD513DB4), + UINT64_C(0x01DF5AC58C13B575) } }, + }, + { + { { UINT64_C(0x019885D110E10587), UINT64_C(0x0225E6982614E90C), + UINT64_C(0x03FE389B08EF52DA), UINT64_C(0x02986A5F6773FA41), + UINT64_C(0x02D7E3FB92A3A338), UINT64_C(0x02804DB8E96B46A6), + UINT64_C(0x02ED29A77A3BFC07), UINT64_C(0x021EDA658D1622A9), + UINT64_C(0x00DC41F148BEEF47) }, + { UINT64_C(0x00671195EBF698BD), UINT64_C(0x02DA5978A5D3B8AE), + UINT64_C(0x0067084C20702323), UINT64_C(0x01BAE92F07B45047), + UINT64_C(0x01EECFF9A6840B39), UINT64_C(0x00B5A0A6F615E949), + UINT64_C(0x02CE02C0AFAD4F4D), UINT64_C(0x02CCCE13BD8C56FD), + UINT64_C(0x001BC38FE857CCC6) } }, + { { UINT64_C(0x00081356B6965640), UINT64_C(0x006CE26431E83C07), + UINT64_C(0x01BA4874007EE7A0), UINT64_C(0x02537377BE8BDCBF), + UINT64_C(0x0248DB2FA66BD85D), UINT64_C(0x028C676B603EF79F), + UINT64_C(0x011FB7160B2BE1C4), UINT64_C(0x02E60E65885FEFB9), + UINT64_C(0x012B85F1B13BE0ED) }, + { UINT64_C(0x0353AA14ECFB1D0D), UINT64_C(0x01FF0DDD82885F37), + UINT64_C(0x0331E99B56FBDDD7), UINT64_C(0x03AEB28F8419966F), + UINT64_C(0x021F907EA8D0F042), UINT64_C(0x013BD7D21430856E), + UINT64_C(0x0386870C6BB892CA), UINT64_C(0x03E04B0EFADCEFFA), + UINT64_C(0x007C04B740BD4123) } }, + { { UINT64_C(0x0003B2CD3E0BF039), UINT64_C(0x00C735DA6B8581E9), + UINT64_C(0x0012D9341E1131F3), UINT64_C(0x03D2B2BBE7116022), + UINT64_C(0x00A056CCF73BDC37), UINT64_C(0x027C9AA3BBBDE400), + UINT64_C(0x02165FF6E36E8907), UINT64_C(0x0139C88969C85A96), + UINT64_C(0x00C7B0F49EEA4A8D) }, + { UINT64_C(0x01F03CD678EAF6EB), UINT64_C(0x01BF3F1E8FBD78DF), + UINT64_C(0x00857FD3BFA434E9), UINT64_C(0x008641B0E586D15E), + UINT64_C(0x021227FC18AF0795), UINT64_C(0x022F892EEA381B7A), + UINT64_C(0x00B3FA1F0F06E680), UINT64_C(0x01EAB02BC55C4EE1), + UINT64_C(0x01116BB9BA45D30F) } }, + { { UINT64_C(0x03B557A9EDCBF5E2), UINT64_C(0x00B1DFD3ECC7A54C), + UINT64_C(0x02DCE258E5A7E8D4), UINT64_C(0x00CA7703C434FC01), + UINT64_C(0x038801282507AB56), UINT64_C(0x025FD9FA5A9E7C74), + UINT64_C(0x0084D0CBBC9F71D9), UINT64_C(0x00D621CCEBB93EC1), + UINT64_C(0x007E0D7D26AF06B2) }, + { UINT64_C(0x02584763447D2B4B), UINT64_C(0x00E02402AF814CEB), + UINT64_C(0x01A0946A66DEBE3C), UINT64_C(0x025BDCD462246772), + UINT64_C(0x032E9062B0C5E215), UINT64_C(0x037BCF49D9FBECDC), + UINT64_C(0x001F56138C539278), UINT64_C(0x000AEA3CABF951BB), + UINT64_C(0x007AA80F0C621590) } }, + { { UINT64_C(0x00B8EEBBBD959BD9), UINT64_C(0x001BE3997D083340), + UINT64_C(0x01B3F063154C5C54), UINT64_C(0x0258C476F7A9A983), + UINT64_C(0x0042A485E75D36E5), UINT64_C(0x034928BB28AF526A), + UINT64_C(0x01BA009661FE033D), UINT64_C(0x039E10035E2FEDA5), + UINT64_C(0x01AFFCC1198129AF) }, + { UINT64_C(0x030AD5348384E611), UINT64_C(0x01579499B7C9277C), + UINT64_C(0x01969EE33931346F), UINT64_C(0x025C5C1EBDB572DA), + UINT64_C(0x033A65D217266A39), UINT64_C(0x026F0D4AD6360EAB), + UINT64_C(0x037599346289BDA2), UINT64_C(0x0092404E9E02CE9C), + UINT64_C(0x01D0C694EC0434A7) } }, + { { UINT64_C(0x0099723AA10FBD04), UINT64_C(0x03F7E7474E4B9E21), + UINT64_C(0x03ECBDF12C367638), UINT64_C(0x009B6D83C1B5EFBE), + UINT64_C(0x03E6CE2FC3522A5D), UINT64_C(0x0083A6DEF388FDCF), + UINT64_C(0x0001D8542F4EA36B), UINT64_C(0x035D032BD68C8381), + UINT64_C(0x0131DF4BF7A79938) }, + { UINT64_C(0x008A14C7B9493BE8), UINT64_C(0x0273BD54452391FF), + UINT64_C(0x035758B804AAD2E8), UINT64_C(0x0218D8B66AABA8CD), + UINT64_C(0x0013BC5120CE58B7), UINT64_C(0x027C6BF5C3CF36BB), + UINT64_C(0x0325B4A1E773C0D4), UINT64_C(0x01C2F7A449EA2D3B), + UINT64_C(0x01C6E6D30CAF29F6) } }, + { { UINT64_C(0x0321B0EB2DAA2FB7), UINT64_C(0x001AF441996ABD26), + UINT64_C(0x0075B82E9704E625), UINT64_C(0x00FD42C4DDFBEF6D), + UINT64_C(0x0199707C61408809), UINT64_C(0x017F62CF54E5FBA8), + UINT64_C(0x03E8914D3356B6E7), UINT64_C(0x010B415870E01C17), + UINT64_C(0x01B8D0304825F773) }, + { UINT64_C(0x01AA92433FDAA949), UINT64_C(0x01186BD47A9D105F), + UINT64_C(0x03D995A63573F12F), UINT64_C(0x032129C097A55B0D), + UINT64_C(0x01817B31A05D6C77), UINT64_C(0x03D1CAF9B4BCAF81), + UINT64_C(0x01524CCC3B01B281), UINT64_C(0x0296DAA6FDAA7E18), + UINT64_C(0x002F1DC74BE29F0C) } }, + { { UINT64_C(0x02171F9BDC8D6167), UINT64_C(0x03D306F736B287BD), + UINT64_C(0x021943224F5B91BE), UINT64_C(0x02B6BA63BB681A7A), + UINT64_C(0x003527F99B16E603), UINT64_C(0x00CC933DC7095468), + UINT64_C(0x0265D81677BFCEEF), UINT64_C(0x028AA225CE78ABEA), + UINT64_C(0x00837C63F321EE01) }, + { UINT64_C(0x00A4B775684BF04E), UINT64_C(0x00AB33042AB3CA3F), + UINT64_C(0x019796F5B70DA12B), UINT64_C(0x00CD06B6726983AD), + UINT64_C(0x002698B98D097375), UINT64_C(0x03BB3A2632FF6007), + UINT64_C(0x00B02BB6915F2608), UINT64_C(0x0267E64CB1F79BA2), + UINT64_C(0x01DAB183858DB0F4) } }, + { { UINT64_C(0x01D545A21757C756), UINT64_C(0x001D934F1E31FF52), + UINT64_C(0x023B0285CE4B1861), UINT64_C(0x031354B83A06220D), + UINT64_C(0x017177FFE06AFE14), UINT64_C(0x019E6D07584A960E), + UINT64_C(0x0119B9405A4BEA49), UINT64_C(0x019D70486EC70531), + UINT64_C(0x00D7844A95DDF521) }, + { UINT64_C(0x02045C5C7288CF7B), UINT64_C(0x00677CB68405B1B1), + UINT64_C(0x01845055E3EA0793), UINT64_C(0x035EFB9C55059FBD), + UINT64_C(0x038843F3AF91E7EA), UINT64_C(0x00822747CA170235), + UINT64_C(0x037B132A90F3A94C), UINT64_C(0x00526CF439B472A8), + UINT64_C(0x00132F18D93B62FB) } }, + { { UINT64_C(0x01D84FC9D0CF69E7), UINT64_C(0x006503AA38D2A5EE), + UINT64_C(0x03A94DFC118DD98F), UINT64_C(0x03B7F19AE7F392FF), + UINT64_C(0x007287A7DC1849A3), UINT64_C(0x00067A7B188F6CE5), + UINT64_C(0x02A347BDE0D7D087), UINT64_C(0x0268E88CC6AAFE02), + UINT64_C(0x010F44A365B11B99) }, + { UINT64_C(0x018F73AC92AE7427), UINT64_C(0x0371CC00B812BB06), + UINT64_C(0x0093D3088101FF62), UINT64_C(0x00C8613B7544141B), + UINT64_C(0x01AF7C6201945AC7), UINT64_C(0x030C7CA555FE097F), + UINT64_C(0x025B2E6EDA00AB31), UINT64_C(0x0214A3B6A76443D0), + UINT64_C(0x0040A360259C7CDD) } }, + { { UINT64_C(0x006047E27F3DE4D2), UINT64_C(0x01FC4A47DA6A0A53), + UINT64_C(0x015A543BD0BC352A), UINT64_C(0x014AACDA98A2B65E), + UINT64_C(0x036FE6BD165C71A3), UINT64_C(0x02DF772BAC823A1F), + UINT64_C(0x00416598B2CD1443), UINT64_C(0x032CA3B1D0CAEDD0), + UINT64_C(0x0032FB284CCCEF17) }, + { UINT64_C(0x006DC83E96A2607F), UINT64_C(0x013B7280B80B6341), + UINT64_C(0x004551B88CA47813), UINT64_C(0x01849A56EE6AB37F), + UINT64_C(0x00C3074BC3D0074A), UINT64_C(0x0049915404661EF6), + UINT64_C(0x017F0B8543807006), UINT64_C(0x01235802E0AA61E9), + UINT64_C(0x016866C456C5454B) } }, + { { UINT64_C(0x0397A466381DC2A6), UINT64_C(0x00CD4D54FE413A43), + UINT64_C(0x0320035D8FD47311), UINT64_C(0x03FEF7B90109A77E), + UINT64_C(0x01FF2C161A6CFCBA), UINT64_C(0x014089BF152955D6), + UINT64_C(0x00595A7ADB79909F), UINT64_C(0x02E10BC4FB022F89), + UINT64_C(0x012739D14BF39AB2) }, + { UINT64_C(0x03045804E123BA29), UINT64_C(0x037196AFA31BDBE1), + UINT64_C(0x01A3BADADE7D8795), UINT64_C(0x005FE72D3736F1F7), + UINT64_C(0x00B261A79C9F5DAE), UINT64_C(0x00CC055F3C4A27EA), + UINT64_C(0x018DD7C9E5958FC2), UINT64_C(0x0096748344CCC75E), + UINT64_C(0x0065ADD88400A218) } }, + { { UINT64_C(0x033557744356B52C), UINT64_C(0x03DD368D0EA0209F), + UINT64_C(0x02EA630FD3CCDE4D), UINT64_C(0x037A07B902382B40), + UINT64_C(0x000B7AF2CF41C092), UINT64_C(0x0221D85556DCC533), + UINT64_C(0x03C92114F14EA6E1), UINT64_C(0x006813B827858B16), + UINT64_C(0x011933B0203B754D) }, + { UINT64_C(0x03A2396D5A659158), UINT64_C(0x0350A8E07708486E), + UINT64_C(0x0306EEBAE2B49C8B), UINT64_C(0x00EC9E65F76A5B29), + UINT64_C(0x03CECDD7F9A47F6A), UINT64_C(0x024DB8B97AA04533), + UINT64_C(0x028D089D2C8EBEAE), UINT64_C(0x01959F5D1CB2E7ED), + UINT64_C(0x0024A23BD4403D34) } }, + { { UINT64_C(0x038B31C4EED9CDF5), UINT64_C(0x0185AFF2C98A930A), + UINT64_C(0x0245E4B7D7DD3E7E), UINT64_C(0x00232AA32609076B), + UINT64_C(0x023F2A9E6F982A24), UINT64_C(0x03087A8E3FF2F39E), + UINT64_C(0x02F6CA050121ACCC), UINT64_C(0x03568930B3D90B8C), + UINT64_C(0x01C922F3A5335B36) }, + { UINT64_C(0x032AD6EEE92B1FE6), UINT64_C(0x02FC436D7BD6B2C7), + UINT64_C(0x023EDD35035286A3), UINT64_C(0x003D77B6144EB9BC), + UINT64_C(0x0304C9A105C2BAEE), UINT64_C(0x01ADB987C7CA786C), + UINT64_C(0x0132676ADD1D742E), UINT64_C(0x02A9E9CB749E88B9), + UINT64_C(0x00A99A53E3A5AC0A) } }, + { { UINT64_C(0x03639306E80DE633), UINT64_C(0x01AB767B97949EED), + UINT64_C(0x006F4BAA789B6820), UINT64_C(0x039D5F497550BD7A), + UINT64_C(0x00B4B2B380BC772D), UINT64_C(0x03022AD28F3A1DD0), + UINT64_C(0x0017950F61ACF7EB), UINT64_C(0x019CAC6E06DC1B93), + UINT64_C(0x008470E16670F97A) }, + { UINT64_C(0x03C11D39EE5D0D74), UINT64_C(0x01C090F08CC26FEC), + UINT64_C(0x0006AD970C46C574), UINT64_C(0x015907C555DF013E), + UINT64_C(0x0070AB35D20A91F0), UINT64_C(0x00C0481F822220A4), + UINT64_C(0x03A92E8B413E83FE), UINT64_C(0x00C3982C5F8D922E), + UINT64_C(0x017CB1B97D4ED7B4) } }, + { { UINT64_C(0x0057D40664DA7708), UINT64_C(0x00D1DC31FC3ED514), + UINT64_C(0x01C1C72DE7D6ECFF), UINT64_C(0x00DAEABFA1F9C5DE), + UINT64_C(0x0027EE8200E32455), UINT64_C(0x00F2A2064D51F4F3), + UINT64_C(0x0087C336FD335B37), UINT64_C(0x0350C7F9A0D4FC4D), + UINT64_C(0x01D53465439099CD) }, + { UINT64_C(0x01B27DD4E9031706), UINT64_C(0x0197F1275CBBB42C), + UINT64_C(0x015ABB1962BC7CE5), UINT64_C(0x015AEBA4FCC2D21C), + UINT64_C(0x01DB34AC91849D8B), UINT64_C(0x02168D50E8D52313), + UINT64_C(0x024C7BCFFA60FB49), UINT64_C(0x00653790EC4A5122), + UINT64_C(0x0021ECA115250E74) } }, + }, + { + { { UINT64_C(0x01017ED5F1C86157), UINT64_C(0x01C5FACEAAF3291A), + UINT64_C(0x01980E57AC2978AD), UINT64_C(0x012E4C78C1EF8537), + UINT64_C(0x019080B37DC2F0DA), UINT64_C(0x0104D379379FF55E), + UINT64_C(0x0019CF345BF6F641), UINT64_C(0x01CE7973781C9EB0), + UINT64_C(0x00E6B4E5C2E7863E) }, + { UINT64_C(0x014E085628E15F36), UINT64_C(0x03113ED189D82402), + UINT64_C(0x0198521CB21CCF92), UINT64_C(0x03CB794E55F64866), + UINT64_C(0x01B6C417EBCEDCD4), UINT64_C(0x001D79C7600B1BE5), + UINT64_C(0x02EC6810EA41A2B6), UINT64_C(0x0083606535BEC6E7), + UINT64_C(0x01CA8E7CD41F2E03) } }, + { { UINT64_C(0x01BA87BAF1C9C2EC), UINT64_C(0x00D55499AAADC0DE), + UINT64_C(0x019712C990B590E5), UINT64_C(0x00384B1ACA78C747), + UINT64_C(0x03563BCAB01E0B5D), UINT64_C(0x0190C274005354FF), + UINT64_C(0x00B9D6C425986F2F), UINT64_C(0x038E491D7F2754C6), + UINT64_C(0x01B202739C50FF59) }, + { UINT64_C(0x03F58DFC16F1CACC), UINT64_C(0x00EE939AC23381A2), + UINT64_C(0x020399FE184301C9), UINT64_C(0x0351F7998C95E6D7), + UINT64_C(0x03713D0FEFC9F67B), UINT64_C(0x02651504977BC9CC), + UINT64_C(0x039962831BD8B37B), UINT64_C(0x03398A2CADA7CFCE), + UINT64_C(0x00D4F08A7E5A3118) } }, + { { UINT64_C(0x03C9826425A2D6F0), UINT64_C(0x00ECC054CD119CA9), + UINT64_C(0x00C8AF9373A85F21), UINT64_C(0x03167F72CB478C61), + UINT64_C(0x01CE9F2616361F7A), UINT64_C(0x03FB08CCEB9E536B), + UINT64_C(0x0319FD98C00E9131), UINT64_C(0x0010725A47005067), + UINT64_C(0x01D7C9A8F84C990D) }, + { UINT64_C(0x029CA261BAF35FA1), UINT64_C(0x0220865C1BFEF071), + UINT64_C(0x0115DF412660A5A4), UINT64_C(0x02257646F5EF524C), + UINT64_C(0x019648D3BF5907D4), UINT64_C(0x03B8287D6BB4E923), + UINT64_C(0x00C1831BA518EF96), UINT64_C(0x01147F1EC444000D), + UINT64_C(0x001BEB2743E8CF72) } }, + { { UINT64_C(0x017385BC9719C87C), UINT64_C(0x038E9A8AC23E84A0), + UINT64_C(0x03B86FA4168B29E6), UINT64_C(0x0259140D286A2701), + UINT64_C(0x0248D5F9426712B4), UINT64_C(0x01E876B4EE205101), + UINT64_C(0x016F0D598FB30248), UINT64_C(0x020D4EEE450E3327), + UINT64_C(0x0075F0EB2FEC4E8C) }, + { UINT64_C(0x02999066B392D834), UINT64_C(0x03A4F34FCBCA75D9), + UINT64_C(0x029F3E28ABFA2CC4), UINT64_C(0x0207E1A7B58B1513), + UINT64_C(0x036C4EE93B0C1C40), UINT64_C(0x038D0C53869B6127), + UINT64_C(0x02203321AF3FCDF2), UINT64_C(0x0016E986CD98C912), + UINT64_C(0x019AB5DBF8618B76) } }, + { { UINT64_C(0x02775F5E811FA55B), UINT64_C(0x002FF97CDF8F7EDE), + UINT64_C(0x00AA05F646486F8F), UINT64_C(0x0357ABB8FF5CB222), + UINT64_C(0x0047A8176117A59D), UINT64_C(0x01ED8538F6CBC1A6), + UINT64_C(0x0209FE9034A7F53F), UINT64_C(0x0364120EC4B9D3CF), + UINT64_C(0x019B67A37C660EDC) }, + { UINT64_C(0x0038B0D828C7A5B7), UINT64_C(0x015D9C74EAC7C806), + UINT64_C(0x0118152AAA9222B5), UINT64_C(0x01B83339A6AA2783), + UINT64_C(0x01993B4601A314EF), UINT64_C(0x0325A7A416B3D288), + UINT64_C(0x019D7FD16DD01F3A), UINT64_C(0x021D190386BFFC60), + UINT64_C(0x011CF2C0B0E2A983) } }, + { { UINT64_C(0x00D7DE7D18D8BE36), UINT64_C(0x02F0734BAAC04BF5), + UINT64_C(0x0048BB9E44C3F40B), UINT64_C(0x035994B7094672F1), + UINT64_C(0x02BD0CFD78BD4138), UINT64_C(0x0015A28B8F06A61A), + UINT64_C(0x014D5DF2A7F95274), UINT64_C(0x028141F42EAB92B1), + UINT64_C(0x00B25EF25C149754) }, + { UINT64_C(0x0057378C324BFA00), UINT64_C(0x001F4C62175258AF), + UINT64_C(0x03153B4FD5FCA3E4), UINT64_C(0x000682DC5C05BE3E), + UINT64_C(0x0330954DA1D1973A), UINT64_C(0x01BC1D711118932D), + UINT64_C(0x0168D97A2A9692FD), UINT64_C(0x012BBEB288330777), + UINT64_C(0x00E133BE00A38BE4) } }, + { { UINT64_C(0x03F431A945F8022D), UINT64_C(0x01CDF8AABB4F5212), + UINT64_C(0x02CC1D637215E00A), UINT64_C(0x03D36BA40B447ED7), + UINT64_C(0x02513AB7E6956FDD), UINT64_C(0x008D5E83EDDB9727), + UINT64_C(0x01B75785B4FDC3C7), UINT64_C(0x01EAB35E8B3CAE24), + UINT64_C(0x01339E1C87AA8ECC) }, + { UINT64_C(0x02D325A33450FD39), UINT64_C(0x00322202FEDA09D5), + UINT64_C(0x024827340C12DF41), UINT64_C(0x01E66CCCF20D3B06), + UINT64_C(0x02001372B74C978F), UINT64_C(0x012C696C6F55CD58), + UINT64_C(0x02D10F2EED8A9308), UINT64_C(0x02688747F53110D6), + UINT64_C(0x0188C13D0F26D624) } }, + { { UINT64_C(0x0239E7FBF9FFF942), UINT64_C(0x024391DE07C9C0A8), + UINT64_C(0x03BB90544685654F), UINT64_C(0x010453EE881DA06B), + UINT64_C(0x02D2A672E21ACDCD), UINT64_C(0x0047CF596F209D90), + UINT64_C(0x0321D4C73047EE1B), UINT64_C(0x008011F4FFA1ADC5), + UINT64_C(0x0051B7DD6F083F62) }, + { UINT64_C(0x00B4E0D173BF30CF), UINT64_C(0x0142CF0DBD8DD71C), + UINT64_C(0x02FE7953062D3E36), UINT64_C(0x02A5AB5A7D6604A9), + UINT64_C(0x03CC08A13AACC423), UINT64_C(0x024662C655FF1A2F), + UINT64_C(0x0179D6E29B6B1FCA), UINT64_C(0x03C8D9EF4E5B76E6), + UINT64_C(0x00CD341C315CEB11) } }, + { { UINT64_C(0x00CC4030AC8B2AF6), UINT64_C(0x016D6A39FA7E9D4C), + UINT64_C(0x0392D441BAE14C3A), UINT64_C(0x038840FEA9B7D65B), + UINT64_C(0x02398CE4933605AF), UINT64_C(0x022CD8745AC294D0), + UINT64_C(0x00B8391D34172B85), UINT64_C(0x035C1A0D5C360EA4), + UINT64_C(0x00B2CE02EA54ADC4) }, + { UINT64_C(0x004B32E432779E4D), UINT64_C(0x0396A43E6B80B056), + UINT64_C(0x035AEFC64CE26A3C), UINT64_C(0x01E9181F393D3B2C), + UINT64_C(0x0224B7B616D6F2A9), UINT64_C(0x0127AF2D0AF23C91), + UINT64_C(0x000AD7965D20EADA), UINT64_C(0x0379FD4481124D87), + UINT64_C(0x01BB6F3DFED6FF8E) } }, + { { UINT64_C(0x001E54056209B80C), UINT64_C(0x01535B3A19C72F26), + UINT64_C(0x0160AA689BA423E2), UINT64_C(0x0188ECB5D9CC3A27), + UINT64_C(0x02349FCF75CC0736), UINT64_C(0x0298585615D70FD1), + UINT64_C(0x03A32918B91165DF), UINT64_C(0x022291948224D8DA), + UINT64_C(0x0099F8E69358E726) }, + { UINT64_C(0x01F00247AE9F76E1), UINT64_C(0x0128BAD6165EB802), + UINT64_C(0x01B045052E08E61D), UINT64_C(0x032D595886F8C4D8), + UINT64_C(0x00186E393A2F7214), UINT64_C(0x016991BB5064F4DD), + UINT64_C(0x02AD9C4CF5574CEF), UINT64_C(0x0255AD5071D22CCE), + UINT64_C(0x01456916FD8D5687) } }, + { { UINT64_C(0x0133F0C2BD45283F), UINT64_C(0x01B7E6242FDEFD97), + UINT64_C(0x035D6B97C76FCAF7), UINT64_C(0x01DEAC7652ACAD19), + UINT64_C(0x03C4E3BEA33C8BB3), UINT64_C(0x0217A37165F99AD5), + UINT64_C(0x0269B9B99EC2F11A), UINT64_C(0x028A7868FC6E7D80), + UINT64_C(0x01D15668B929808B) }, + { UINT64_C(0x028D12F5F8D82B0E), UINT64_C(0x03E7880D363FAA5E), + UINT64_C(0x00437A04942C06CB), UINT64_C(0x0049CD3A9C99AEE3), + UINT64_C(0x015E2D9B6B404613), UINT64_C(0x0162924B16171DEA), + UINT64_C(0x00D5B19300B07C85), UINT64_C(0x02FDE0650EE6F8B2), + UINT64_C(0x00BB3143583D139C) } }, + { { UINT64_C(0x009BBB9CD613AC50), UINT64_C(0x0128ACBF00659E30), + UINT64_C(0x003847B178A6C039), UINT64_C(0x03CE96D95CB2F3AB), + UINT64_C(0x0319F2188F1C72FB), UINT64_C(0x0082FCC27E7E96A0), + UINT64_C(0x00E32363BCE8DAB7), UINT64_C(0x0014FD07C4ADAC1E), + UINT64_C(0x0130440FC8AE58D8) }, + { UINT64_C(0x0065ADF64359ED2E), UINT64_C(0x037ED7D5FA4BC647), + UINT64_C(0x03FF76F3555C909F), UINT64_C(0x03512196FF57D59B), + UINT64_C(0x00299F8EAAC04382), UINT64_C(0x0329BF8D6A784DA0), + UINT64_C(0x0175E680B9D87F6E), UINT64_C(0x000779614D617559), + UINT64_C(0x0091C31FD7BBAA02) } }, + { { UINT64_C(0x007961B4B2C087ED), UINT64_C(0x019162C863ECAFF8), + UINT64_C(0x02BAA68FEDC62170), UINT64_C(0x00E14BEB5E7390A9), + UINT64_C(0x014BD12090B0D96E), UINT64_C(0x01E7BB1B54107513), + UINT64_C(0x023B8205C7A4AC9C), UINT64_C(0x0077AA83FD6A3B9F), + UINT64_C(0x00B556918DDE426E) }, + { UINT64_C(0x007982C0406E7D53), UINT64_C(0x00514C5527392914), + UINT64_C(0x030F83C68AD1F365), UINT64_C(0x01248844664ABB22), + UINT64_C(0x00E9372C39E53CD3), UINT64_C(0x019288EBDD26390E), + UINT64_C(0x0175B25020B2C5E2), UINT64_C(0x01BE6F3235A8D35E), + UINT64_C(0x01BF2B1514039839) } }, + { { UINT64_C(0x00ACAC37A302E505), UINT64_C(0x027765CE9E34F2E4), + UINT64_C(0x02EC67D63AAF96D8), UINT64_C(0x000F998F38DDD8C4), + UINT64_C(0x01F09C36E648CC10), UINT64_C(0x00F522A0C94D1ACD), + UINT64_C(0x01621C139782CB28), UINT64_C(0x002ADC14FDA30F4F), + UINT64_C(0x000AFE14E60E403A) }, + { UINT64_C(0x03F6E66F873938D8), UINT64_C(0x008370549C4A240B), + UINT64_C(0x019BCDB6FBB27AB2), UINT64_C(0x03968D48A1554399), + UINT64_C(0x02AE029F24D2343E), UINT64_C(0x008518D4096DF4BA), + UINT64_C(0x011410655CE49E44), UINT64_C(0x030585BCC07AC55D), + UINT64_C(0x00DBC52BEF1D2C2E) } }, + { { UINT64_C(0x031E0D6D77452267), UINT64_C(0x02FDA38F6A949512), + UINT64_C(0x01F65ED3128F260F), UINT64_C(0x0268DE30B333E479), + UINT64_C(0x03FD84E6AC2E676C), UINT64_C(0x0393B320720BDA53), + UINT64_C(0x009EDD5FCCBB47ED), UINT64_C(0x01B82B4900272372), + UINT64_C(0x01D21A307BE4561F) }, + { UINT64_C(0x01FB6C41FDBC2674), UINT64_C(0x02FC0F6001620C6D), + UINT64_C(0x009450A0F3C6CB0F), UINT64_C(0x015385B69A47DECA), + UINT64_C(0x026E2296F08B9474), UINT64_C(0x0194DEC7BE891DCB), + UINT64_C(0x008B5DA06C5F46EF), UINT64_C(0x019F5A58030A2A18), + UINT64_C(0x00207771A8172F5B) } }, + { { UINT64_C(0x02D0EED2AA2FCC67), UINT64_C(0x028799FC7DD58724), + UINT64_C(0x01664BF5933707D3), UINT64_C(0x039B5E487A0167D1), + UINT64_C(0x02767C865F544F76), UINT64_C(0x012879933B9C8060), + UINT64_C(0x03EBB40C5524547A), UINT64_C(0x0173A7851D6D690E), + UINT64_C(0x01CF4AB59422F25D) }, + { UINT64_C(0x02E0C44B926C197B), UINT64_C(0x021DCFA310FAD65B), + UINT64_C(0x03309DFCCBCED9CA), UINT64_C(0x02A11F05E3D88EA0), + UINT64_C(0x039FE02B0CE3AE95), UINT64_C(0x023B5E3CAC5E3536), + UINT64_C(0x02C9903F85BF51A2), UINT64_C(0x018141A1EBBB4D03), + UINT64_C(0x01B6F9AE1517FBCC) } }, + }, + { + { { UINT64_C(0x01CE126EEC3D1383), UINT64_C(0x03E60292016C63B4), + UINT64_C(0x01086FC1B1F4E0C7), UINT64_C(0x02B824B832819651), + UINT64_C(0x018B5EE5C0AC1703), UINT64_C(0x03467EED60D31DFE), + UINT64_C(0x0370BD13E722F576), UINT64_C(0x01C406BA2A512BD9), + UINT64_C(0x00D7E1D110502A7C) }, + { UINT64_C(0x02029FD2CA303000), UINT64_C(0x031CB26B2D4BB358), + UINT64_C(0x001AACC8DD8A2366), UINT64_C(0x02FD746E61373E27), + UINT64_C(0x01D1A80D5295C235), UINT64_C(0x01FA56B74D0D3443), + UINT64_C(0x0203660094D0A8F7), UINT64_C(0x006ACC0E24009F44), + UINT64_C(0x007532FAF2732979) } }, + { { UINT64_C(0x00CC8937C5CFE5E0), UINT64_C(0x036CA3F94D098379), + UINT64_C(0x0127E76C1F2F6B01), UINT64_C(0x03F376385910CC44), + UINT64_C(0x005AE2B93F0F4F7C), UINT64_C(0x001F51D975E23E7E), + UINT64_C(0x0159FF4F64431F80), UINT64_C(0x0215FECEB62BCA1C), + UINT64_C(0x00168401E32600A7) }, + { UINT64_C(0x01B5A301E78A8DB5), UINT64_C(0x00FF512D35D3F2D2), + UINT64_C(0x0354D19F77E5A97B), UINT64_C(0x0271EFC5E9AFD789), + UINT64_C(0x006980179F908FBC), UINT64_C(0x034A31A6FEF922C2), + UINT64_C(0x01832DCC33A8480C), UINT64_C(0x02589E9D28BAFB44), + UINT64_C(0x0115572B5F3957D4) } }, + { { UINT64_C(0x02B1A9337E8401D3), UINT64_C(0x0290DCDD374D1722), + UINT64_C(0x03B06DFC52EC6DB8), UINT64_C(0x0230EA32F50E3F05), + UINT64_C(0x00FF74654453A452), UINT64_C(0x01A248F21E47C014), + UINT64_C(0x01E2CED97C15ABF4), UINT64_C(0x0283D12E9548735C), + UINT64_C(0x011DE7FF5CC44367) }, + { UINT64_C(0x0397C8B2CA828FA8), UINT64_C(0x023C2C16EF221608), + UINT64_C(0x0079F7CCDCEE62D1), UINT64_C(0x02ABBC4A12FA2ABB), + UINT64_C(0x02D3E0D3AF058906), UINT64_C(0x016EE5FFCAFF1F4D), + UINT64_C(0x0383A01497A17543), UINT64_C(0x015456C9C2BA3AA0), + UINT64_C(0x00833A7F70B8DB1E) } }, + { { UINT64_C(0x02874A121147F509), UINT64_C(0x00814720ED638371), + UINT64_C(0x03306823E9395088), UINT64_C(0x02A5E552F8389554), + UINT64_C(0x00F06CF7F0BA5751), UINT64_C(0x030415DEE1815B81), + UINT64_C(0x00E24A9DB057CA02), UINT64_C(0x0130F23B0BDFF500), + UINT64_C(0x00CD32356D2FBCF3) }, + { UINT64_C(0x031835514BB690A0), UINT64_C(0x011475889E6369E4), + UINT64_C(0x02A366B8DA44B373), UINT64_C(0x01336BAE9A4C91D2), + UINT64_C(0x0321F6D6C8947D98), UINT64_C(0x0331E2910F0F8ECA), + UINT64_C(0x01F6B3937B0234FE), UINT64_C(0x016C792D27998656), + UINT64_C(0x009729CAFA8B37BB) } }, + { { UINT64_C(0x030BF08BF55F34E4), UINT64_C(0x01472A877A6E6046), + UINT64_C(0x03502971975705FE), UINT64_C(0x00F5A66B1DDF090E), + UINT64_C(0x01DD9C80102CADCC), UINT64_C(0x004EB57A202D88C1), + UINT64_C(0x0383DED93A003D31), UINT64_C(0x00DF42EE4835E279), + UINT64_C(0x010B2A2DF2E8CDFC) }, + { UINT64_C(0x00E3757112860379), UINT64_C(0x0049E41486F1D305), + UINT64_C(0x007F50407D2B699F), UINT64_C(0x0186CFF64543014A), + UINT64_C(0x015D637AD6EB6B8D), UINT64_C(0x03EDC1A07906ADD6), + UINT64_C(0x025B1CE8EFA6E451), UINT64_C(0x0281938DC6CCB3C0), + UINT64_C(0x01E95BF35241E85F) } }, + { { UINT64_C(0x01900B5C8B1B724E), UINT64_C(0x00091B0E23027016), + UINT64_C(0x033EA7B567F8D8DD), UINT64_C(0x0149CA26370EF3C0), + UINT64_C(0x0224F7CCEEAEB621), UINT64_C(0x01056822C07633BE), + UINT64_C(0x02682C8A34D4C312), UINT64_C(0x017F1D80C56ACAFB), + UINT64_C(0x000D28BD510F85EC) }, + { UINT64_C(0x0031C759D505A0E7), UINT64_C(0x00695B369E0D5C70), + UINT64_C(0x007414EC503E140D), UINT64_C(0x02998878F14B0559), + UINT64_C(0x03EB48B235BD02B9), UINT64_C(0x02030C241863472E), + UINT64_C(0x00302A0DF1BDB378), UINT64_C(0x02ADB25754F52D99), + UINT64_C(0x01EBEAF9E9BDE9AC) } }, + { { UINT64_C(0x0016D2E6C4CB8040), UINT64_C(0x0251BE4AB3BBC8D1), + UINT64_C(0x00979A86B1EA6004), UINT64_C(0x03197F4F1967EFAE), + UINT64_C(0x03A8E572D3878481), UINT64_C(0x0175BC0B4A3D453E), + UINT64_C(0x0067A078B9E4BDD5), UINT64_C(0x00C290F9DB5CD51A), + UINT64_C(0x00C8A1050BE75174) }, + { UINT64_C(0x0138FA01526AE111), UINT64_C(0x01E92EC50AC0E2D9), + UINT64_C(0x03430EFE4DD66F27), UINT64_C(0x027E3E362221AF89), + UINT64_C(0x0065DC30B6D8ED5E), UINT64_C(0x0194B4AA3299C658), + UINT64_C(0x03FCCBD1A1EE5AFC), UINT64_C(0x0011C786A00C112C), + UINT64_C(0x01770EC65BD04CBD) } }, + { { UINT64_C(0x0219978F485193F0), UINT64_C(0x0169EF77837E1846), + UINT64_C(0x039A4F73B9DC8ADB), UINT64_C(0x0060DDE7E026EABA), + UINT64_C(0x033EDEE638C66335), UINT64_C(0x0296BFF6A6D575A3), + UINT64_C(0x01B793FCB261CF96), UINT64_C(0x00066B2DAA6E8B8E), + UINT64_C(0x00FAA4EE0DF08936) }, + { UINT64_C(0x0082665D53161177), UINT64_C(0x00BF125BA82F6D39), + UINT64_C(0x022B5DABCDFDBE3B), UINT64_C(0x021CD6983941E0F2), + UINT64_C(0x010414D9EC902549), UINT64_C(0x03C8E709DAE4453B), + UINT64_C(0x03B39712A9467665), UINT64_C(0x01718D188F0108E5), + UINT64_C(0x0001E683E6E53299) } }, + { { UINT64_C(0x026BEC9ED63E2975), UINT64_C(0x02445B0FA3670F21), + UINT64_C(0x01B0436EA7FA88A2), UINT64_C(0x01B3E0317834AC34), + UINT64_C(0x0370A51D7EBF7519), UINT64_C(0x028FE5E7A5374634), + UINT64_C(0x004F9C7DD9D61B9E), UINT64_C(0x024629F3A018136E), + UINT64_C(0x01B14207DD17A593) }, + { UINT64_C(0x02B49CBF0B981980), UINT64_C(0x03D510AA4EE52E56), + UINT64_C(0x0223FC5E38C54336), UINT64_C(0x006CECAD3BD995A0), + UINT64_C(0x01C1E9CE9CFF80F2), UINT64_C(0x03F2A4F91A9DFFC4), + UINT64_C(0x023C10907D4D0C02), UINT64_C(0x0266DE5575DC75DB), + UINT64_C(0x00C42F22C54D0AE1) } }, + { { UINT64_C(0x02CA7240C82B5AA4), UINT64_C(0x009FC67BD6157E6E), + UINT64_C(0x0237AEA0E986F61E), UINT64_C(0x0295536DA6F6D324), + UINT64_C(0x03CCCEAED7D090D6), UINT64_C(0x02AEB5185AD3ED8F), + UINT64_C(0x01709E10CC89909F), UINT64_C(0x02104E7DD9DB3C2E), + UINT64_C(0x018FBE92AA69FDDA) }, + { UINT64_C(0x019CC5A0410AA767), UINT64_C(0x01BD2A1F9D7CB636), + UINT64_C(0x016925EEC5FA539B), UINT64_C(0x030EE211BCC86603), + UINT64_C(0x02286DD13B9B314D), UINT64_C(0x019EE14925C53864), + UINT64_C(0x03BA30594CCCD2C4), UINT64_C(0x03CF135ECF524017), + UINT64_C(0x009675B7F38F7A5F) } }, + { { UINT64_C(0x034097FDD5C529C4), UINT64_C(0x022BABC53852C90D), + UINT64_C(0x005FA5449B2CFEAE), UINT64_C(0x0213E3712D2D891B), + UINT64_C(0x01EC7B3EEE99C138), UINT64_C(0x027C357D0B9CBABB), + UINT64_C(0x025A19E877887A6F), UINT64_C(0x00D4CD3E5DC97F03), + UINT64_C(0x01A0BD7971FE9BC8) }, + { UINT64_C(0x01302079C035FA1B), UINT64_C(0x03A553C1D7472F9E), + UINT64_C(0x01A4254310460FA3), UINT64_C(0x00172E37209ED67F), + UINT64_C(0x01598766A435004B), UINT64_C(0x015F6DA2FE9089F7), + UINT64_C(0x03D7A8AD6610ED72), UINT64_C(0x00218A47CD395F7C), + UINT64_C(0x01CEBC586BD69C42) } }, + { { UINT64_C(0x005E156C633E8718), UINT64_C(0x036F6921E8311E5A), + UINT64_C(0x012516B3E4747664), UINT64_C(0x016B6481265AF56F), + UINT64_C(0x005B9CA959873FB0), UINT64_C(0x01215A2E38706CDD), + UINT64_C(0x00C64AAAEE1FE5AB), UINT64_C(0x009494AE29DD5833), + UINT64_C(0x001DE0FFFA144A84) }, + { UINT64_C(0x01AB0B04D7864A53), UINT64_C(0x03B6589B739D3720), + UINT64_C(0x0342AE6EE03B4D2D), UINT64_C(0x0366C4CD40B083D3), + UINT64_C(0x02E583D735216939), UINT64_C(0x028069A08705938A), + UINT64_C(0x03470E4558BB0247), UINT64_C(0x037269A3A352E23F), + UINT64_C(0x000A1B500F437A69) } }, + { { UINT64_C(0x017C93D92A097CC4), UINT64_C(0x001BA88CC46C7150), + UINT64_C(0x01AE786C3A4D3E20), UINT64_C(0x028BF5869DC58997), + UINT64_C(0x02E52726A122777F), UINT64_C(0x00972F198872159B), + UINT64_C(0x02552DD5544B0BA5), UINT64_C(0x009FAC089C64945A), + UINT64_C(0x00A926F159FE26EE) }, + { UINT64_C(0x003998CBAECC32F4), UINT64_C(0x01BD7CE18DCAAA28), + UINT64_C(0x00A1F5FB988BB383), UINT64_C(0x03AEB19DEFD835C2), + UINT64_C(0x00244E47BC8D865E), UINT64_C(0x0038157724E1BB10), + UINT64_C(0x007BD8BF38E25231), UINT64_C(0x00C5E24E2CD69DAB), + UINT64_C(0x01A779CC34494897) } }, + { { UINT64_C(0x004BD43B7D176E2E), UINT64_C(0x005E93AB83087469), + UINT64_C(0x03E80C170CBB6730), UINT64_C(0x02CA4F7C8BEDBE63), + UINT64_C(0x02A85DD542AB5799), UINT64_C(0x0066D2B71D97D372), + UINT64_C(0x03558E6854EDDBC6), UINT64_C(0x01014B87714911B3), + UINT64_C(0x0150C0A4F996E45F) }, + { UINT64_C(0x01E0E94EA8A05AA1), UINT64_C(0x02AFE47CFC92BB70), + UINT64_C(0x0203EC4D3CE6EAF1), UINT64_C(0x024771DB1D696301), + UINT64_C(0x0196D9AA529C496E), UINT64_C(0x03B56E31398127F0), + UINT64_C(0x0387E08D7862B4A2), UINT64_C(0x032941073AE64CE3), + UINT64_C(0x0000E769C78F3C16) } }, + { { UINT64_C(0x034AFDE7FF46E9D5), UINT64_C(0x01174874945BB22A), + UINT64_C(0x0315AE08354CD33E), UINT64_C(0x020944101FCD5584), + UINT64_C(0x02AD3EF0CDDE6E15), UINT64_C(0x030A2698AB480B82), + UINT64_C(0x03BF15403C92749F), UINT64_C(0x025EFF1408AEDEF4), + UINT64_C(0x00853B2112F03584) }, + { UINT64_C(0x017A76C60E367447), UINT64_C(0x031C3B84E9CFE4B6), + UINT64_C(0x0383807320E00DD1), UINT64_C(0x02152F5E5EE3BE00), + UINT64_C(0x035287A9CC92FA2D), UINT64_C(0x0007C4F52ABBB00A), + UINT64_C(0x006B2558DC7D9071), UINT64_C(0x0266DBFFAED357E3), + UINT64_C(0x007E76EA86C8A78C) } }, + { { UINT64_C(0x00DA97D33D831A04), UINT64_C(0x0273CA87AB20DA80), + UINT64_C(0x004C77C7C118ED92), UINT64_C(0x00F87131473BDF57), + UINT64_C(0x036EC3E2E0DE7125), UINT64_C(0x00C7E8EADB491D0D), + UINT64_C(0x0299CB19B912B7BF), UINT64_C(0x0399A443D4E010F6), + UINT64_C(0x0098FCF8A99C2A16) }, + { UINT64_C(0x030D9571D49B2FC3), UINT64_C(0x02127D20D334D6E9), + UINT64_C(0x00CF98756BB05081), UINT64_C(0x02A955A34EA7C78A), + UINT64_C(0x0099BBA4C82FA729), UINT64_C(0x03B80CA8EED74492), + UINT64_C(0x03A7668CD742B7C3), UINT64_C(0x039AA1A4CD0B2F61), + UINT64_C(0x01769BB74BE7BFCF) } }, + }, + { + { { UINT64_C(0x01AE6D7AF8ECE594), UINT64_C(0x004BD233382C1067), + UINT64_C(0x02FC7E73749707AD), UINT64_C(0x01A0C47D78BA765F), + UINT64_C(0x02BB7416407B8B16), UINT64_C(0x02F996A9035A29ED), + UINT64_C(0x01C78A5F9EA3DEA9), UINT64_C(0x03997AA8F9A04684), + UINT64_C(0x0062155AD4E50AC6) }, + { UINT64_C(0x0136D4FEFEBBFAD7), UINT64_C(0x03C498A8C3B5B196), + UINT64_C(0x03AF4B2081A7DC94), UINT64_C(0x02FE1693A20D804F), + UINT64_C(0x0019DBDAD1684FFD), UINT64_C(0x03E47903EABFC90E), + UINT64_C(0x00EA7078F3484441), UINT64_C(0x037A0851741BD87B), + UINT64_C(0x004DEB7A4980ECBA) } }, + { { UINT64_C(0x02A998A0008164D4), UINT64_C(0x014B73504FD3FC3A), + UINT64_C(0x00C19E4FF76A915D), UINT64_C(0x00D30C3B2FD0EC60), + UINT64_C(0x01518FD432879FDC), UINT64_C(0x018585905FB0DE73), + UINT64_C(0x002E0E88A51BB32E), UINT64_C(0x011E824BA1621756), + UINT64_C(0x008F5503550AE008) }, + { UINT64_C(0x01F4C5CC039B003C), UINT64_C(0x034FE4F1205365F7), + UINT64_C(0x029B502075F020C8), UINT64_C(0x02E622483E3884F2), + UINT64_C(0x0096DBF1B7347D87), UINT64_C(0x03E49F71A5BBC472), + UINT64_C(0x028F694B092BA1CC), UINT64_C(0x03911DA84B731F41), + UINT64_C(0x00AEE98DB68D16A6) } }, + { { UINT64_C(0x03335FA8EB78796F), UINT64_C(0x02878D6632487FA2), + UINT64_C(0x023DC13EBB873632), UINT64_C(0x0328E4AB268A2A07), + UINT64_C(0x017A111FE36EA0A1), UINT64_C(0x02DD260BC4AB23DF), + UINT64_C(0x02BD012E8019E481), UINT64_C(0x02DAEA5C2102ACDC), + UINT64_C(0x0191F08F46778030) }, + { UINT64_C(0x01DAFF85FF6CA70B), UINT64_C(0x00C20C713262D23C), + UINT64_C(0x0002F4B44F09083A), UINT64_C(0x014BFF17F10ECF45), + UINT64_C(0x025ADB2237EA42A8), UINT64_C(0x03E47544193ED683), + UINT64_C(0x016D405A3F97D5CE), UINT64_C(0x03412AAA28009BC3), + UINT64_C(0x0061A9DB41BEFEDC) } }, + { { UINT64_C(0x02DE586F26762E69), UINT64_C(0x016435D71514BA52), + UINT64_C(0x016D7A3D17B63A4D), UINT64_C(0x026D50DCE42619B6), + UINT64_C(0x0071889F59482029), UINT64_C(0x011CE57167125C3C), + UINT64_C(0x00A0EA2BE409EA4A), UINT64_C(0x009EDE87052C5E58), + UINT64_C(0x01024A33C8A03073) }, + { UINT64_C(0x0190FE7C2B54A6C6), UINT64_C(0x006AD6F23DFB4339), + UINT64_C(0x01A290051C927B4A), UINT64_C(0x001E3AB0900247C6), + UINT64_C(0x02F0CF556BD9F5D6), UINT64_C(0x0044A9D7E6F09A3D), + UINT64_C(0x03647C4823C77404), UINT64_C(0x0174246A05A125F4), + UINT64_C(0x005046F70E49B3B4) } }, + { { UINT64_C(0x0168F14947F5FEA0), UINT64_C(0x00769E99AB9E6CB3), + UINT64_C(0x0132518C89E21038), UINT64_C(0x01B680C1A8696720), + UINT64_C(0x002ED6053CD44327), UINT64_C(0x01D30DD43B7E58A9), + UINT64_C(0x00944E2E081D9491), UINT64_C(0x006831ACBEAD123C), + UINT64_C(0x0152C11DC5777195) }, + { UINT64_C(0x00241773802E1A49), UINT64_C(0x01BAF7037807F846), + UINT64_C(0x03D3C7A48FA494BE), UINT64_C(0x011E5017010FAAB7), + UINT64_C(0x02754857375E5F4A), UINT64_C(0x03779B43EFE7F8E1), + UINT64_C(0x0012FF3BABC982CB), UINT64_C(0x00FFF200A782A57D), + UINT64_C(0x01525BFCB1CE27F1) } }, + { { UINT64_C(0x03E552EA093A81E5), UINT64_C(0x0289B3D7E8ED9281), + UINT64_C(0x0342009AC81D0D79), UINT64_C(0x03AD34454A991783), + UINT64_C(0x01E2910F69599605), UINT64_C(0x03D879F03BB2582D), + UINT64_C(0x027BC06449C49ACB), UINT64_C(0x008DC219F862EDC8), + UINT64_C(0x01C5BFA6129C1E94) }, + { UINT64_C(0x026A51D1748353E7), UINT64_C(0x0181475224C056F6), + UINT64_C(0x00C626EAA883505E), UINT64_C(0x0279EE327830A7B4), + UINT64_C(0x0320D8F515A684E8), UINT64_C(0x00C3F8E23CD44D3F), + UINT64_C(0x02C122EE12C67CA1), UINT64_C(0x00E99C91530D5183), + UINT64_C(0x0021144C6B142C61) } }, + { { UINT64_C(0x011D351AD93C77DA), UINT64_C(0x03AA1509EA474780), + UINT64_C(0x018659BD1EF489E2), UINT64_C(0x003305C7CD548712), + UINT64_C(0x0274078260A570D7), UINT64_C(0x0053143C92277CEB), + UINT64_C(0x002C9848EA865C9F), UINT64_C(0x02CCE08E86A1AEA9), + UINT64_C(0x017387D78B16B104) }, + { UINT64_C(0x004AA27AD541016D), UINT64_C(0x018249526E484E54), + UINT64_C(0x02AB312423D0089E), UINT64_C(0x0219D7F11A43C693), + UINT64_C(0x02063682A176BD49), UINT64_C(0x03B53A444F4AA295), + UINT64_C(0x00795B99C8C7C949), UINT64_C(0x03E13055864354E1), + UINT64_C(0x00AD0290F60CD7D0) } }, + { { UINT64_C(0x012D2A436D526DD9), UINT64_C(0x01CD402DD6D978C6), + UINT64_C(0x00A58E861B88A485), UINT64_C(0x02D5660B63C2B513), + UINT64_C(0x00AC661A50344950), UINT64_C(0x005912EC7C3046DF), + UINT64_C(0x00386C50A42C0A1A), UINT64_C(0x03AB81C1B172201D), + UINT64_C(0x00C7E276190DAFE0) }, + { UINT64_C(0x02C2EF02CE4F4EFB), UINT64_C(0x036C62A28EE8E529), + UINT64_C(0x007713DEA66609AC), UINT64_C(0x0335AC64B1B06D35), + UINT64_C(0x030C33E87E4697D9), UINT64_C(0x02A8B6DA5FD2C060), + UINT64_C(0x00A7681837DA7123), UINT64_C(0x034383051138278A), + UINT64_C(0x0100BA5CB675B5C3) } }, + { { UINT64_C(0x007A90498A37CD61), UINT64_C(0x00C21A3950646D6E), + UINT64_C(0x00E24CC900B23BA5), UINT64_C(0x00177482F428680B), + UINT64_C(0x008C265BAA81CF89), UINT64_C(0x035D3B4D224FFF8E), + UINT64_C(0x036D6B85A5B0977B), UINT64_C(0x00D1075A6C1311DD), + UINT64_C(0x01CE20C3E0DE4C26) }, + { UINT64_C(0x03983305308A7408), UINT64_C(0x034CC1C79BB9BDAE), + UINT64_C(0x02079940C900D507), UINT64_C(0x011184B7705AB688), + UINT64_C(0x00BE018DECC7C858), UINT64_C(0x00059833EA10EFD5), + UINT64_C(0x03D3C58726A0CFF9), UINT64_C(0x03FAC56BC268E09A), + UINT64_C(0x00AF6C171D653277) } }, + { { UINT64_C(0x01151276D19DDB66), UINT64_C(0x00BE849EE9A2D3A8), + UINT64_C(0x02C6A7580CC1CD5D), UINT64_C(0x03AE7FCF32E2402D), + UINT64_C(0x0077F3388646E57B), UINT64_C(0x0321275FFC38AED4), + UINT64_C(0x035220194FAC16E6), UINT64_C(0x00AC60DD1664CBF4), + UINT64_C(0x005C9F4FAEB1E475) }, + { UINT64_C(0x03454E2FDA228C02), UINT64_C(0x03CE54CE918B9E80), + UINT64_C(0x01E6700CB1251E2C), UINT64_C(0x004D9EF2E269258E), + UINT64_C(0x0271A9DFD10397F8), UINT64_C(0x01D68E1301C08065), + UINT64_C(0x0255D3F4888FC07C), UINT64_C(0x01EA14C32D6DB6C1), + UINT64_C(0x00641A5E7FF0CED4) } }, + { { UINT64_C(0x03D2DB7494E80EB1), UINT64_C(0x03429AAC7DF50EDF), + UINT64_C(0x0193B4233D776372), UINT64_C(0x00FA6676BCB0445B), + UINT64_C(0x00962AF93FA06ADE), UINT64_C(0x00ED262149C44EC5), + UINT64_C(0x00DD0F0802C2CD3B), UINT64_C(0x0349A7F09C0CD9BA), + UINT64_C(0x019BCEE240624924) }, + { UINT64_C(0x0301B8CB30F92986), UINT64_C(0x02FBD5618F84FCAA), + UINT64_C(0x020844CC6DEA56EF), UINT64_C(0x0399AC423AE9922A), + UINT64_C(0x0304B577679CF04F), UINT64_C(0x033A00D5B3E1E90B), + UINT64_C(0x02E0EA5DF7501CB6), UINT64_C(0x01AEEBA7909CF3AB), + UINT64_C(0x00D1F739C1192316) } }, + { { UINT64_C(0x03FBED19829AE558), UINT64_C(0x018A508538E70057), + UINT64_C(0x00CB16FE844A9E7C), UINT64_C(0x02A5D97534D7DBBC), + UINT64_C(0x005769E43FDAB701), UINT64_C(0x02371B260F0C6E67), + UINT64_C(0x0088CED91D562ACB), UINT64_C(0x03FF0E5F0D26F719), + UINT64_C(0x009911094F5E4AA4) }, + { UINT64_C(0x014DA634DAAD22D1), UINT64_C(0x0126CD74DB263614), + UINT64_C(0x00B20F1368A80FE1), UINT64_C(0x01C40150F01BDEEF), + UINT64_C(0x036B7B115D665EA4), UINT64_C(0x00E64D810EAB1790), + UINT64_C(0x037432C58B6DDE4A), UINT64_C(0x02689716E469337C), + UINT64_C(0x009023B703EED1A4) } }, + { { UINT64_C(0x0168DF986EB8B398), UINT64_C(0x0373053537795BF1), + UINT64_C(0x018911988685F26D), UINT64_C(0x0387383FA6C93770), + UINT64_C(0x019704736EAD528F), UINT64_C(0x0271A2FD2A7AB31F), + UINT64_C(0x016F759D385DF60B), UINT64_C(0x00588A673CE9E385), + UINT64_C(0x00F00D2C74D140B1) }, + { UINT64_C(0x037761186D05FF6A), UINT64_C(0x021D5810D7AE7578), + UINT64_C(0x032F7D951B6FE596), UINT64_C(0x00F101711823BB39), + UINT64_C(0x028DE92770998580), UINT64_C(0x037C0C99F0D97BF8), + UINT64_C(0x030EB60AA7504E10), UINT64_C(0x038624C9A9EBB17E), + UINT64_C(0x0117D8E0506A5993) } }, + { { UINT64_C(0x02D315A154D9F1F8), UINT64_C(0x00A34DBD30332164), + UINT64_C(0x0306F497C34DB615), UINT64_C(0x03599315A4DB339F), + UINT64_C(0x007E9E0F8E2399AC), UINT64_C(0x003A93148F4FA95A), + UINT64_C(0x011F62B5F0DC45EF), UINT64_C(0x02C2CA027E1C8CCA), + UINT64_C(0x017EDB2AB60DCF2F) }, + { UINT64_C(0x03D0BE47BDAF0C41), UINT64_C(0x0261770EA9BAF337), + UINT64_C(0x00123C9A8D5C885C), UINT64_C(0x02304942CA223A54), + UINT64_C(0x027514FEE2CC680A), UINT64_C(0x02845D9CADE7E084), + UINT64_C(0x037BF3E603649E24), UINT64_C(0x00221D7FD1EC9BB3), + UINT64_C(0x019ABE2E017E3282) } }, + { { UINT64_C(0x022C310986DBC74A), UINT64_C(0x016910C9D8D292FA), + UINT64_C(0x0168FBA7C0C784B2), UINT64_C(0x02F0C2E785D2A006), + UINT64_C(0x01AE45ADAA754923), UINT64_C(0x0340D3039A77094C), + UINT64_C(0x028C800560A74DE4), UINT64_C(0x0209DAB7CF99A92A), + UINT64_C(0x01A7AE95C3D65A81) }, + { UINT64_C(0x03D0EF28C4FA3D53), UINT64_C(0x01C7BD38B1347859), + UINT64_C(0x0005A7461F21783E), UINT64_C(0x01367207E2FE3122), + UINT64_C(0x033746BBB79E2E44), UINT64_C(0x0279FE17A5803572), + UINT64_C(0x03015592FFEC7617), UINT64_C(0x02742174C25F4D16), + UINT64_C(0x00E410A0B89682D7) } }, + { { UINT64_C(0x02B22FBEE727DDB2), UINT64_C(0x024FD40DFE0DC5F9), + UINT64_C(0x015C3DCCFE2E8278), UINT64_C(0x029992449755EB6E), + UINT64_C(0x03FD36B4574277E1), UINT64_C(0x02D49C964F2299EE), + UINT64_C(0x021CD67B9805D246), UINT64_C(0x0157D17DBA6DBB8F), + UINT64_C(0x014315532B63B009) }, + { UINT64_C(0x0192F41C11B068CF), UINT64_C(0x013ADE386B9A6252), + UINT64_C(0x0023510A4F9C5B28), UINT64_C(0x027BD3DC9B9B0039), + UINT64_C(0x02377F19B4B907D4), UINT64_C(0x0292B925A6106638), + UINT64_C(0x01058CF22E01616A), UINT64_C(0x017799C00E576B04), + UINT64_C(0x00A289A954F56291) } }, + }, + { + { { UINT64_C(0x00C4AC143FFE4858), UINT64_C(0x0306D22EAAC4A5AD), + UINT64_C(0x01F0A5791E3783D9), UINT64_C(0x03A0A974CB2ACA2D), + UINT64_C(0x02E76FB3F03AA34D), UINT64_C(0x0217400AE3A40C22), + UINT64_C(0x0040CD3B74A7ED3C), UINT64_C(0x00FCB122891AAD96), + UINT64_C(0x01B8C8494718771D) }, + { UINT64_C(0x03F57D14A28DA023), UINT64_C(0x022E364741E3E46C), + UINT64_C(0x01A7ABA67F27FDBC), UINT64_C(0x030FF1837DC3E97D), + UINT64_C(0x00618486CF4908AD), UINT64_C(0x02CF161553F374F8), + UINT64_C(0x019DD012E725571E), UINT64_C(0x033EDF6BF47BD717), + UINT64_C(0x0125806554EE19B9) } }, + { { UINT64_C(0x018E9A7BA994A7B1), UINT64_C(0x02AC0D7BEC6A8983), + UINT64_C(0x03D38D705E07CD01), UINT64_C(0x005566DD3C426505), + UINT64_C(0x0067EB2AB8C5C6E4), UINT64_C(0x02833D0E2656CD6B), + UINT64_C(0x01DDCA9C78AA1909), UINT64_C(0x00EDF1FB3DAA7F12), + UINT64_C(0x0166F72F3DE51C63) }, + { UINT64_C(0x02B78FAEB96F6D73), UINT64_C(0x02052F35A5545293), + UINT64_C(0x005CD62AD9BF553E), UINT64_C(0x00B728FA50CC968E), + UINT64_C(0x019295FA16301250), UINT64_C(0x0287D8B59A13D480), + UINT64_C(0x0316813DDF4A21F3), UINT64_C(0x01769E5723184C7C), + UINT64_C(0x0066E0E7009AE7B5) } }, + { { UINT64_C(0x021F2EE46CDE12CD), UINT64_C(0x003D0000412CCD1F), + UINT64_C(0x02C67E761CB63537), UINT64_C(0x02C1A38D4F403A59), + UINT64_C(0x03B812F8D1F26B87), UINT64_C(0x029994AD5ACE97AC), + UINT64_C(0x026C55C785488093), UINT64_C(0x01869CEF172A91D6), + UINT64_C(0x01661593B4702F1D) }, + { UINT64_C(0x0197935A2366B021), UINT64_C(0x01C8C53ECC9EEE7B), + UINT64_C(0x02C636CFB825AB8B), UINT64_C(0x02EEC0E46E96B427), + UINT64_C(0x00525F145382F270), UINT64_C(0x0133F597DCA61576), + UINT64_C(0x0237ACF913367D38), UINT64_C(0x02C6B96EB5398F41), + UINT64_C(0x0088A6A556F6EF14) } }, + { { UINT64_C(0x03AE1C8DCCD34315), UINT64_C(0x0157B6DF5CCF4DF6), + UINT64_C(0x02191AB191DCA071), UINT64_C(0x01897CF46F10173C), + UINT64_C(0x02767320BD61533A), UINT64_C(0x01A9DAB7019D6315), + UINT64_C(0x01911BB32715F1BB), UINT64_C(0x001C7F74F8A656CA), + UINT64_C(0x0009C70F08ACB68E) }, + { UINT64_C(0x0072A1ED9356A25A), UINT64_C(0x01556970A7D5EEF6), + UINT64_C(0x0350BEDB0F71D649), UINT64_C(0x03EA3565DDFF826F), + UINT64_C(0x013B29E08B1AF8F4), UINT64_C(0x0331B92ACB74C5CA), + UINT64_C(0x03A4E6E26F5AAC1D), UINT64_C(0x036F06A79D110118), + UINT64_C(0x00631FDFA318D2BC) } }, + { { UINT64_C(0x035871450EAD4FF9), UINT64_C(0x0045783A9CFF37E4), + UINT64_C(0x03713AE92AC33512), UINT64_C(0x009A3896CE34EF6D), + UINT64_C(0x03A8EE82555DC9D1), UINT64_C(0x002C620829E4335D), + UINT64_C(0x0375E016D1AE1B50), UINT64_C(0x016D891B140E00CD), + UINT64_C(0x00097FE78FE880E9) }, + { UINT64_C(0x01A323FFCB8B195A), UINT64_C(0x014E7DA6CA0AAFF4), + UINT64_C(0x00C88E8E6528DDB5), UINT64_C(0x01A720372EE878E6), + UINT64_C(0x015A2426F3EF9BB8), UINT64_C(0x01604A559CF4A620), + UINT64_C(0x02C8F10B967488E1), UINT64_C(0x028191262B209448), + UINT64_C(0x019E5661C083C48E) } }, + { { UINT64_C(0x01D1ED07D6920A2A), UINT64_C(0x03909AA105A814DB), + UINT64_C(0x029B1BBB7F2ECAC2), UINT64_C(0x03BB4096CC1FBE27), + UINT64_C(0x0382CAD68C150CCC), UINT64_C(0x00F1CBB480EE5E69), + UINT64_C(0x03933B382F4CE45C), UINT64_C(0x0283D1969E6EC1D6), + UINT64_C(0x008C6BE4F8FBF5F9) }, + { UINT64_C(0x00C2A30AF1CA3CCC), UINT64_C(0x02FF4D4359C3CABE), + UINT64_C(0x020AA78B337657B0), UINT64_C(0x01C5C613D10C423A), + UINT64_C(0x003249BB2418CB6D), UINT64_C(0x00CAB4378A53687C), + UINT64_C(0x0147E31B6118850C), UINT64_C(0x02D08DC29C2D596C), + UINT64_C(0x00409A1F9C9C0372) } }, + { { UINT64_C(0x03985FC5DEB5DCD3), UINT64_C(0x02328F30C46302C2), + UINT64_C(0x00260388D4747802), UINT64_C(0x03BFBB0240E60F52), + UINT64_C(0x03B209042D288213), UINT64_C(0x00F7BBEE239C04F6), + UINT64_C(0x039A7EE4CF9007B4), UINT64_C(0x01BFEC97A07FF7ED), + UINT64_C(0x00F46BA7F4461BE4) }, + { UINT64_C(0x02FF04BE53B68E6C), UINT64_C(0x01CA69133AC1C9A1), + UINT64_C(0x001C0711D4BE94AE), UINT64_C(0x02E7507B45945E53), + UINT64_C(0x011B7A5F7EC81DBE), UINT64_C(0x0329BFC6DA7CDB63), + UINT64_C(0x01FCD3B287A0A497), UINT64_C(0x01F250F924D3B826), + UINT64_C(0x0174EABAF5F90BA0) } }, + { { UINT64_C(0x0288B8614B07B1BF), UINT64_C(0x00AE0C951E1C4290), + UINT64_C(0x01FC49AB7CD0CA2F), UINT64_C(0x0139ED7FA367ECE7), + UINT64_C(0x007ACFF8F0933B14), UINT64_C(0x01BE527A6CE02D5F), + UINT64_C(0x03F3D3A06B11DFFE), UINT64_C(0x021959D14B1DF4BB), + UINT64_C(0x01BC6741AD8DA8F8) }, + { UINT64_C(0x034CD028C42166D8), UINT64_C(0x0185807E32738495), + UINT64_C(0x005883F1CCD9FD2E), UINT64_C(0x03CA0BFCEE08ED5A), + UINT64_C(0x03EAF8CDFF12C8BC), UINT64_C(0x039F9E6871AF8AEE), + UINT64_C(0x0109893E423B3304), UINT64_C(0x0120DC6E783F51AB), + UINT64_C(0x011A855D5413AED9) } }, + { { UINT64_C(0x03EC078648AA3834), UINT64_C(0x022666BDFBC08928), + UINT64_C(0x020CD318C559ED79), UINT64_C(0x031A1F3F1113AB91), + UINT64_C(0x0225DA57498B9B85), UINT64_C(0x00501D2B9387A084), + UINT64_C(0x01462ED6150B49FB), UINT64_C(0x0270A359C4EB430D), + UINT64_C(0x01AD03ACD7F1F2DA) }, + { UINT64_C(0x00577220553E08C6), UINT64_C(0x02711DCC2A6176C2), + UINT64_C(0x00D41E0F942DF9B3), UINT64_C(0x032019849BF44B40), + UINT64_C(0x006F6F65E6AF51C1), UINT64_C(0x02192F8FD6395745), + UINT64_C(0x0369C64E6D49408A), UINT64_C(0x01C1CA82AADBB384), + UINT64_C(0x00252180D9240A33) } }, + { { UINT64_C(0x03B36603F69B34EA), UINT64_C(0x023601EA98DB7FF6), + UINT64_C(0x0119384D5B4D0084), UINT64_C(0x009CB1557E1A2117), + UINT64_C(0x0120F29FC187E5AB), UINT64_C(0x020795FEFEF91AF3), + UINT64_C(0x01654BD2C20FF213), UINT64_C(0x0193B09B2AFFB3A3), + UINT64_C(0x01F2DBD41C09A92B) }, + { UINT64_C(0x0190B8EB79047156), UINT64_C(0x002863629F98DF90), + UINT64_C(0x0131D825BFCD5C94), UINT64_C(0x012459BCEEE81461), + UINT64_C(0x012AEB328B250B06), UINT64_C(0x031E1C2DAC09694B), + UINT64_C(0x000530A4AD5276F9), UINT64_C(0x02B3D1F18BB7C853), + UINT64_C(0x01E8BD2FCCA04F6F) } }, + { { UINT64_C(0x02834F110665B1CF), UINT64_C(0x017AA90109CDC18A), + UINT64_C(0x009242A3E1F2E720), UINT64_C(0x02D5A60BD5F8954E), + UINT64_C(0x03508324EB838D5B), UINT64_C(0x02EDD0C3ED33B190), + UINT64_C(0x00AAD5DC3A119996), UINT64_C(0x01CD04A457847144), + UINT64_C(0x008F9F585EE51416) }, + { UINT64_C(0x0353544CA94CC511), UINT64_C(0x03C458B74ECFBB85), + UINT64_C(0x00DFB34B9CF940F6), UINT64_C(0x025DDCAA8FA2C670), + UINT64_C(0x005DE224A75FEDB1), UINT64_C(0x0133692E8F60712D), + UINT64_C(0x0273753106CAA7BE), UINT64_C(0x01408D58EA2D6196), + UINT64_C(0x00E26553508F8448) } }, + { { UINT64_C(0x01A3A4F60BB13D25), UINT64_C(0x0023ED9ED8B71298), + UINT64_C(0x03FFC9A520FCC5AA), UINT64_C(0x0045A041830B9268), + UINT64_C(0x00CC9DB2983FF213), UINT64_C(0x0121E74580D3BD97), + UINT64_C(0x03180DFFF5302191), UINT64_C(0x017F708B61C069C2), + UINT64_C(0x00AFC5190BADFB44) }, + { UINT64_C(0x0059EAFDA4B66F01), UINT64_C(0x007705DA965D6F67), + UINT64_C(0x020B87871134FA29), UINT64_C(0x01AD088735B31B4F), + UINT64_C(0x018012C061713383), UINT64_C(0x0284C3C51E97DE38), + UINT64_C(0x011439AE9AC5E3B5), UINT64_C(0x0201A73CE2ADC421), + UINT64_C(0x013663825C862321) } }, + { { UINT64_C(0x018D68C0B140A004), UINT64_C(0x01BFAA6599011216), + UINT64_C(0x01E7950576D7B0B1), UINT64_C(0x0078B24B131D0E5F), + UINT64_C(0x02AD5C3FFEDF02C1), UINT64_C(0x0322CFD3147C6177), + UINT64_C(0x038BD27915C61C9C), UINT64_C(0x02F37687B9498DE9), + UINT64_C(0x00EBB6AC6E166ECF) }, + { UINT64_C(0x01DE078E81F8F797), UINT64_C(0x036F3FD0C148612A), + UINT64_C(0x00D42800CEE62CC8), UINT64_C(0x02EF08C94C9988E1), + UINT64_C(0x02A200E24C7221CE), UINT64_C(0x0087BB91FBA9446C), + UINT64_C(0x01AEF9F64351AA5D), UINT64_C(0x0379F61D1F515F5C), + UINT64_C(0x01D6BBEA838FBDE0) } }, + { { UINT64_C(0x029C5257AC98DFAE), UINT64_C(0x033122DA34CA0C86), + UINT64_C(0x02E5AEB04EB596D8), UINT64_C(0x01866E31FF449E97), + UINT64_C(0x01EFC618512D868E), UINT64_C(0x02AB8DD8A2E422DD), + UINT64_C(0x0315FBBF0AB5F678), UINT64_C(0x029B64EE769245C7), + UINT64_C(0x006C6C12185D61E3) }, + { UINT64_C(0x008781A5F0C92FB5), UINT64_C(0x02186CDBC76A7DC2), + UINT64_C(0x02BF30F2AE35EBF2), UINT64_C(0x02A9033768598F59), + UINT64_C(0x026D8F763CE2DDB2), UINT64_C(0x000096A41DC06247), + UINT64_C(0x0378DBDD308791A2), UINT64_C(0x0303B0E7D471E5F3), + UINT64_C(0x0047B4CFEAEEA101) } }, + { { UINT64_C(0x03329136A629DD22), UINT64_C(0x00E5BE3AD1E98750), + UINT64_C(0x00E718574118A518), UINT64_C(0x0001BFD334A31B85), + UINT64_C(0x010ACC7BD56131AD), UINT64_C(0x01BAE8680FF31AF2), + UINT64_C(0x033BF365D3656538), UINT64_C(0x01275681F6A3E780), + UINT64_C(0x01D9134C0EBA1F9E) }, + { UINT64_C(0x03FC0784F75200EB), UINT64_C(0x02505880E37CB45D), + UINT64_C(0x02D012B6F4AEDF75), UINT64_C(0x0239FE68EEDA06B2), + UINT64_C(0x0214FD97D35A83E1), UINT64_C(0x0161FD60913389DA), + UINT64_C(0x02E06AA08A955A74), UINT64_C(0x00A478BB3A540872), + UINT64_C(0x0194213360ACA782) } }, + { { UINT64_C(0x01C7D837402145D7), UINT64_C(0x029A3987EA8CF574), + UINT64_C(0x017B7322E3920EED), UINT64_C(0x01DA90CCE8A07229), + UINT64_C(0x019966632762CF1A), UINT64_C(0x02EA82E975BFDBB2), + UINT64_C(0x00D089776CD7C2DA), UINT64_C(0x01094FFA3D38BAB2), + UINT64_C(0x00ED9425E7C61A8F) }, + { UINT64_C(0x030890ADFDDB406F), UINT64_C(0x02F38194427778C1), + UINT64_C(0x02645A577E29DB0B), UINT64_C(0x02B73BB5A04F839F), + UINT64_C(0x02CBE569872B94D6), UINT64_C(0x034D3051E8314100), + UINT64_C(0x0228FAA39358328C), UINT64_C(0x00F6B458D19C41F5), + UINT64_C(0x01B60D6BFFF120A1) } }, + }, + { + { { UINT64_C(0x03B0D91DCEF34144), UINT64_C(0x0240FE90ACAA2EEA), + UINT64_C(0x02F5638E4C5FABC5), UINT64_C(0x0279B56C13AF89E7), + UINT64_C(0x007BB923CEB3416E), UINT64_C(0x024528E9111E0646), + UINT64_C(0x0019F3658FEFA212), UINT64_C(0x007942C115ACBB8B), + UINT64_C(0x00B3176361BBE92C) }, + { UINT64_C(0x0056A1AF824FDE34), UINT64_C(0x03EFECC262943F2F), + UINT64_C(0x00F55AB9CFA7333B), UINT64_C(0x02E423937E89B9C8), + UINT64_C(0x0177865B2FF1E104), UINT64_C(0x00D9D0346E5AE2AF), + UINT64_C(0x0250F4369EB257AA), UINT64_C(0x02479F5CEE51B49A), + UINT64_C(0x007A588E4A1470CD) } }, + { { UINT64_C(0x006FD0B27FF5FDD9), UINT64_C(0x0315207EADCA6EB7), + UINT64_C(0x038531FDE9E82663), UINT64_C(0x03E9C7DA1307DC24), + UINT64_C(0x007FCF66FC293D27), UINT64_C(0x0073411170172CF4), + UINT64_C(0x03FA0B1709D86BA1), UINT64_C(0x0023FC735B565525), + UINT64_C(0x00C65EABD8A0D474) }, + { UINT64_C(0x001EA477B6B64713), UINT64_C(0x03CAD4127E803700), + UINT64_C(0x02F97EFCE2EC6148), UINT64_C(0x021B881732700041), + UINT64_C(0x01A6D874ACACA115), UINT64_C(0x00A7CA705835C220), + UINT64_C(0x01191B137DD5C14D), UINT64_C(0x02CB4161AB1B2384), + UINT64_C(0x01EA96470F229677) } }, + { { UINT64_C(0x016F41AA44BE78BD), UINT64_C(0x00DBC87805312BB8), + UINT64_C(0x0318156EA17D7B54), UINT64_C(0x026CDF0148DE5C45), + UINT64_C(0x03F974EA0D77EB08), UINT64_C(0x02136BB03794FF4E), + UINT64_C(0x01B53A227C4C2E9C), UINT64_C(0x02B0229F1C11498E), + UINT64_C(0x01CDAB34CEF9122C) }, + { UINT64_C(0x01942B2B520FED74), UINT64_C(0x0278BB0606178C91), + UINT64_C(0x03C70799A5848E33), UINT64_C(0x01024AF0188FBCA7), + UINT64_C(0x017502FD5E81CD21), UINT64_C(0x0341AC8FD5BE6E9F), + UINT64_C(0x03807308C0C55507), UINT64_C(0x02DA9120D7D39BD9), + UINT64_C(0x0078E0C0ADC9F3B8) } }, + { { UINT64_C(0x0249E4056736B7A8), UINT64_C(0x000AD5FD0E326A32), + UINT64_C(0x00F1D8DD5BD49BAE), UINT64_C(0x03C65D240FD61C7B), + UINT64_C(0x0348AA1A2246B05E), UINT64_C(0x03D6D10E55244A30), + UINT64_C(0x02E9906E8F8D085E), UINT64_C(0x0187FD8BEFA8BFBF), + UINT64_C(0x00F8ECD06F55C492) }, + { UINT64_C(0x003A56FE1DEF19D6), UINT64_C(0x0197C74F933E6798), + UINT64_C(0x005694559A51C48D), UINT64_C(0x028423114901AE4B), + UINT64_C(0x006C134B2FD133CC), UINT64_C(0x01F5B1FDE595A9F1), + UINT64_C(0x037CDF87E407C290), UINT64_C(0x01C9430D19026B6E), + UINT64_C(0x00AE4EBC0B91EEC4) } }, + { { UINT64_C(0x0027F5A2CFACC519), UINT64_C(0x0007D8CA3F95188A), + UINT64_C(0x02386E76D1ED1FA2), UINT64_C(0x012CFC615ECB44AE), + UINT64_C(0x02BAC8E16C4EECC0), UINT64_C(0x030FC8B6EACB48A4), + UINT64_C(0x0356F1C94FF8F3DD), UINT64_C(0x00E7898C9228D80E), + UINT64_C(0x0100391DE5D28C45) }, + { UINT64_C(0x00DDA167BAEA3E6E), UINT64_C(0x024E9B6238591A96), + UINT64_C(0x000B124B20D76C9C), UINT64_C(0x00844E80DAD85B15), + UINT64_C(0x006322B9CC9CFBC9), UINT64_C(0x03C3F3E68B0EC1FB), + UINT64_C(0x0198C8988C8CDF43), UINT64_C(0x012F63F58B2E6769), + UINT64_C(0x0146D6A4BBF8FA16) } }, + { { UINT64_C(0x025929A379C36058), UINT64_C(0x03AA8D69D0F228FC), + UINT64_C(0x03137C58503106D0), UINT64_C(0x031D3407BEC09250), + UINT64_C(0x012A5E9F3CB78FCD), UINT64_C(0x03C89A97F7DE8B2F), + UINT64_C(0x03FFA336D8C2CB9D), UINT64_C(0x03CDFCCBE0B2ABB7), + UINT64_C(0x018DB520A44381C3) }, + { UINT64_C(0x037F91B7E71EFA02), UINT64_C(0x02CD2A4F8F2A0051), + UINT64_C(0x03247FBAA82739BD), UINT64_C(0x004F7652DC5CA6F6), + UINT64_C(0x0247D54BFA1094B5), UINT64_C(0x01201F41A5F24EA8), + UINT64_C(0x036AE048899075C8), UINT64_C(0x008DE5B2C2092D5F), + UINT64_C(0x01A05D1DEF90E6C9) } }, + { { UINT64_C(0x009C63F00DDEF055), UINT64_C(0x029E867514AE17BD), + UINT64_C(0x0071477B7FA6548A), UINT64_C(0x01DCF23B30CCB894), + UINT64_C(0x039F3EAF10214846), UINT64_C(0x0131314742EE42E6), + UINT64_C(0x025A42537B162041), UINT64_C(0x0344D321CAEDE286), + UINT64_C(0x00C49346566A2F80) }, + { UINT64_C(0x00AC1057A1A2F1BD), UINT64_C(0x01B16F3F4CF6D85A), + UINT64_C(0x00470A35FA26D12C), UINT64_C(0x02FDF7EC571664A6), + UINT64_C(0x00357DE22954AF5D), UINT64_C(0x01CB9B6C3295D89E), + UINT64_C(0x02A6D5E003D32198), UINT64_C(0x02BCFEFCD08395C8), + UINT64_C(0x0024E3256C9EC29E) } }, + { { UINT64_C(0x02E3E3726899A80A), UINT64_C(0x0026F9277D12E5D8), + UINT64_C(0x03A9F147B7CC784D), UINT64_C(0x02D1E1BE2785B816), + UINT64_C(0x035FD35148DBC7EB), UINT64_C(0x008735EF566F4D0B), + UINT64_C(0x023A56774FF10ABF), UINT64_C(0x02650BA6B7B26925), + UINT64_C(0x016ADF49024BBCF1) }, + { UINT64_C(0x003AD342E4E67976), UINT64_C(0x03C92192D00DAB16), + UINT64_C(0x020460FDED50A384), UINT64_C(0x034C8C7A7CCCB477), + UINT64_C(0x026F1F63625979C2), UINT64_C(0x01C81B4E10D5FC66), + UINT64_C(0x036A3D003DC0490C), UINT64_C(0x012B902A026C1347), + UINT64_C(0x01F7B86A36390DAD) } }, + { { UINT64_C(0x000691E2EC112CB8), UINT64_C(0x024EF99D143B7D60), + UINT64_C(0x0115A42EEFCFA47F), UINT64_C(0x01E802D725D2BBE5), + UINT64_C(0x0121B37EFA442937), UINT64_C(0x0017BB506D32E10E), + UINT64_C(0x026AAA87600CCD57), UINT64_C(0x016CF4C8E0A70FF4), + UINT64_C(0x009FFBF163AE94B4) }, + { UINT64_C(0x0295886926814D18), UINT64_C(0x03A0FBF4C1A9E1DB), + UINT64_C(0x03C42214E510B980), UINT64_C(0x01795048E2D2FBCB), + UINT64_C(0x007E6ECA8AF45230), UINT64_C(0x03B7348F6C6F8B62), + UINT64_C(0x0082EEE297D2810F), UINT64_C(0x001262A01DEC143A), + UINT64_C(0x01B9903A2D05B891) } }, + { { UINT64_C(0x023634A86BE77EA4), UINT64_C(0x00A0B41ED63F1BFE), + UINT64_C(0x0275C4824374C264), UINT64_C(0x02608A7A328E460A), + UINT64_C(0x00FED89AAE8DD2B7), UINT64_C(0x02109029EF3CE021), + UINT64_C(0x011969F67E04BEBE), UINT64_C(0x01A57DE74BB6D7CF), + UINT64_C(0x0032260FF5FAEF2A) }, + { UINT64_C(0x02058C1764B8EB93), UINT64_C(0x034A7BEAEE142796), + UINT64_C(0x01C4178E14455ABA), UINT64_C(0x0089C0C3FD3F4E75), + UINT64_C(0x006C6AD7C0E981DA), UINT64_C(0x0228FCA3E86007B0), + UINT64_C(0x025CE2ECCA48B8F4), UINT64_C(0x01E5A636E10EA6E7), + UINT64_C(0x00B998D460C196E1) } }, + { { UINT64_C(0x0160926185730C8D), UINT64_C(0x032DE7C19EF3EB5F), + UINT64_C(0x01B89DB78DA4AF19), UINT64_C(0x03E8BF1A8A7D683F), + UINT64_C(0x00C74484F132486E), UINT64_C(0x0020C78A33777ADF), + UINT64_C(0x028B418FCCA39E1E), UINT64_C(0x03C6B30F7BDFA864), + UINT64_C(0x012E1D3651FF3815) }, + { UINT64_C(0x023FC40DA01A8D36), UINT64_C(0x0396DC8A8E0AC356), + UINT64_C(0x0257ECBA277518BE), UINT64_C(0x015E0BE8CDCF0B5F), + UINT64_C(0x017CA95C0BC967EE), UINT64_C(0x0305AA19591EC746), + UINT64_C(0x00ECEE9B1C5E531F), UINT64_C(0x017F62DDF7CD8C93), + UINT64_C(0x01843F3A5D58D681) } }, + { { UINT64_C(0x008235BF1CE87EAC), UINT64_C(0x0337B13BA7D5C15E), + UINT64_C(0x03846B02056DE241), UINT64_C(0x033C6CAEB5DEAB90), + UINT64_C(0x030248638020D787), UINT64_C(0x0224F8D01B9221DD), + UINT64_C(0x01F402C62FF58E8A), UINT64_C(0x03AAD9850E5506F5), + UINT64_C(0x003902A9875C05FB) }, + { UINT64_C(0x0020DA18AA01F6F0), UINT64_C(0x030A6715F4E78D18), + UINT64_C(0x037807033B777232), UINT64_C(0x01B7606FD787D415), + UINT64_C(0x008A9CC327698B87), UINT64_C(0x0061BCA066C82FF1), + UINT64_C(0x01BFA28EB25A2709), UINT64_C(0x024D6272DC7593CB), + UINT64_C(0x00EC0BB76A281871) } }, + { { UINT64_C(0x032999435C8AA41D), UINT64_C(0x01A489157A228E17), + UINT64_C(0x0156F793B6B0E956), UINT64_C(0x028D96D92EBD33D6), + UINT64_C(0x0359740492EFE167), UINT64_C(0x015A71262E572E91), + UINT64_C(0x01FA4485B8FC6399), UINT64_C(0x0347A0956647A542), + UINT64_C(0x010E38E5A425F12F) }, + { UINT64_C(0x00AEFDFC244C41BB), UINT64_C(0x003952945BE8B3B5), + UINT64_C(0x0319FE9C6BCFD1F0), UINT64_C(0x03F504A658EDEE0B), + UINT64_C(0x02ED873A43F5A1E1), UINT64_C(0x02712F6EE0434187), + UINT64_C(0x03F8F26F084CADB4), UINT64_C(0x0037A2587E5D9BC4), + UINT64_C(0x007E3E8815CB75BB) } }, + { { UINT64_C(0x00D0B08F2FB80E07), UINT64_C(0x001F1C3F02C8AA99), + UINT64_C(0x02C965AB70A7B621), UINT64_C(0x02934839B849A6F8), + UINT64_C(0x003F88BA718D98ED), UINT64_C(0x02899A10EC155762), + UINT64_C(0x0019825E2EA0BBFE), UINT64_C(0x031BADAF50BB1556), + UINT64_C(0x00C2052564BF2D01) }, + { UINT64_C(0x02BBD600B64986F4), UINT64_C(0x0001308CBE96F1C1), + UINT64_C(0x00C849F303B9F9E3), UINT64_C(0x02D14076FC63D1DE), + UINT64_C(0x0236169D2D35EA78), UINT64_C(0x0264B3B8EE95BD05), + UINT64_C(0x002F66E82F19619B), UINT64_C(0x0095E5BD3AAECF3F), + UINT64_C(0x004DAC1BA614BE0C) } }, + { { UINT64_C(0x031F00ED67DF6D6E), UINT64_C(0x03D70047AC4E0BA7), + UINT64_C(0x02D8711992AA1754), UINT64_C(0x036ECAEB89D30859), + UINT64_C(0x0036A42A32CE3566), UINT64_C(0x01D98A9D0A6301E2), + UINT64_C(0x0254343364F9506D), UINT64_C(0x00BA44E9D5246E7C), + UINT64_C(0x01A19768E78BDB19) }, + { UINT64_C(0x01612B559D4C1CFE), UINT64_C(0x00FD06AC0FA53998), + UINT64_C(0x01000FCBA8F910A9), UINT64_C(0x02941E6AFC5E6D3F), + UINT64_C(0x00CAEFF18F01E2A7), UINT64_C(0x00C3611A9DC5189A), + UINT64_C(0x004BD42C721A7B6E), UINT64_C(0x02CFCE0AB6DE8255), + UINT64_C(0x0157E0604D9A6299) } }, + { { UINT64_C(0x004C36A17F3F00C1), UINT64_C(0x03AAE85897960B4C), + UINT64_C(0x00162519D94A771E), UINT64_C(0x00EFA894195CFB14), + UINT64_C(0x0377393E0BEA5785), UINT64_C(0x01275D68934C0C3C), + UINT64_C(0x020E33D09CE0D489), UINT64_C(0x00636664BBECE0A2), + UINT64_C(0x01D94E3BA2F10531) }, + { UINT64_C(0x00F1D932B72461C9), UINT64_C(0x030803CCCD33A980), + UINT64_C(0x03D527D0F91F6DBE), UINT64_C(0x032A75271076B0B3), + UINT64_C(0x00618C0762DDDF10), UINT64_C(0x0023381E1F452B93), + UINT64_C(0x02E55888093553F9), UINT64_C(0x0179B91A78A3270C), + UINT64_C(0x008109452184E2A2) } }, + }, + { + { { UINT64_C(0x039BF352B2648196), UINT64_C(0x0255A7410BF9D82B), + UINT64_C(0x00E69B9D9444400A), UINT64_C(0x0115B8CE4ADD0E15), + UINT64_C(0x0286C0702CA01A26), UINT64_C(0x0343E585D0F62B8D), + UINT64_C(0x0270AB3B658EDEED), UINT64_C(0x00BDF019DAC3BE2C), + UINT64_C(0x01DA71CEBA8F0207) }, + { UINT64_C(0x031B398D4D9BC7BB), UINT64_C(0x000CF24C3929C7AB), + UINT64_C(0x01B421C8D3FD5E6F), UINT64_C(0x007CC4196EE4E246), + UINT64_C(0x020BD4BEA34DCA8A), UINT64_C(0x0290B50CAE9698DF), + UINT64_C(0x00FCD1330F886EB9), UINT64_C(0x01E1AC79F03E8C00), + UINT64_C(0x00DA9DFFAC1D7299) } }, + { { UINT64_C(0x023B6F4171DE62A2), UINT64_C(0x02483565211B08E1), + UINT64_C(0x03590C48E9F4C557), UINT64_C(0x0300655D7CA7761E), + UINT64_C(0x000FC94679705CC8), UINT64_C(0x03F1F51E4C554176), + UINT64_C(0x02F4AA91C9B85DEC), UINT64_C(0x01830B06FDF1C0BD), + UINT64_C(0x01705BC114A4818F) }, + { UINT64_C(0x026AF34683BFC242), UINT64_C(0x02704B0386A138E6), + UINT64_C(0x0201A2D902335BC5), UINT64_C(0x00F97548337FE82F), + UINT64_C(0x0068481E95BAAC46), UINT64_C(0x02198BC38D3244C8), + UINT64_C(0x02FB3AE37E76F25B), UINT64_C(0x0051FD7A6C46B763), + UINT64_C(0x00BB4F63544525E2) } }, + { { UINT64_C(0x0184463DCFE3927A), UINT64_C(0x038592C4A5446C69), + UINT64_C(0x00820DA1FCA22B30), UINT64_C(0x01BE68F5BD638385), + UINT64_C(0x01820BD08BDBAACC), UINT64_C(0x02A44306C3D5797E), + UINT64_C(0x0038CCA1AA697778), UINT64_C(0x00C7C5B9FA5A6346), + UINT64_C(0x00AF09862D4121FA) }, + { UINT64_C(0x01CB3F3FBEBC6638), UINT64_C(0x037E0A83514FED33), + UINT64_C(0x03EACD5523409D6F), UINT64_C(0x020D6BA55D786340), + UINT64_C(0x01CCC13F9ADFA032), UINT64_C(0x0019CA4869978150), + UINT64_C(0x039E387EBA3B5F3E), UINT64_C(0x02E531E4CE95EAED), + UINT64_C(0x019F9D4B6C1E271A) } }, + { { UINT64_C(0x03D9C637E6B4D0F2), UINT64_C(0x02F39727B4A2B4A9), + UINT64_C(0x03B1C91C466BE1FF), UINT64_C(0x0002CA1D422DB470), + UINT64_C(0x035959F6F8064E3B), UINT64_C(0x01A06409B64B70C1), + UINT64_C(0x0138166589198416), UINT64_C(0x01E4D2E6E69DFBF6), + UINT64_C(0x01235B6CCAD8ED3A) }, + { UINT64_C(0x036BC004511EBBDB), UINT64_C(0x03C77128404EB6AD), + UINT64_C(0x02C7DBC63944D083), UINT64_C(0x00A0B83D92DC53A7), + UINT64_C(0x0236B4A39AE88503), UINT64_C(0x03A8D6E5C0E1C279), + UINT64_C(0x029FE38FA8BE1456), UINT64_C(0x03585B0A0A7CC668), + UINT64_C(0x00A7641453F65799) } }, + { { UINT64_C(0x00158306BEA400A9), UINT64_C(0x007F40534A2A445F), + UINT64_C(0x01C35C303D86F4A4), UINT64_C(0x00EDDE592FDFA8FD), + UINT64_C(0x0103A9EFC14289AA), UINT64_C(0x03407BDDBE6E50BA), + UINT64_C(0x009401AB57CFB13E), UINT64_C(0x0399C8A12EA5A5B1), + UINT64_C(0x00FC6AFA631B2401) }, + { UINT64_C(0x03676F7FA3EA1F68), UINT64_C(0x0292D21900F132BA), + UINT64_C(0x023C1FDE32777454), UINT64_C(0x016AD44E9E4A043B), + UINT64_C(0x034CE0B6BF5A83B8), UINT64_C(0x007C5DBECEE12BCA), + UINT64_C(0x034C6521C9D71204), UINT64_C(0x0295DA0F38E7DE8B), + UINT64_C(0x0062381F9092A871) } }, + { { UINT64_C(0x021E20A63FBBA24C), UINT64_C(0x036388882DF52B55), + UINT64_C(0x00530F2F7C7C2371), UINT64_C(0x03643DB108CC955E), + UINT64_C(0x024B18165F1B6107), UINT64_C(0x02769559E8B8FA46), + UINT64_C(0x00ABDA3964357585), UINT64_C(0x006A3DE26D6BDE65), + UINT64_C(0x00FA0EF45FF0F7F0) }, + { UINT64_C(0x0328AF72F4ADEFE3), UINT64_C(0x00F209DB1F3C181A), + UINT64_C(0x01A0AC16B36B8052), UINT64_C(0x03FE68F1AFEB358F), + UINT64_C(0x011BB7B356C432BB), UINT64_C(0x03D087AF0D447953), + UINT64_C(0x00088B00BECEF91E), UINT64_C(0x0330A2DA3B763B85), + UINT64_C(0x01CC26379FF0902A) } }, + { { UINT64_C(0x02451A0F72841A85), UINT64_C(0x0354FC0056ED797F), + UINT64_C(0x03F4EAB6EB12B346), UINT64_C(0x0032B842273C8FB8), + UINT64_C(0x024B836D935DD874), UINT64_C(0x0090627CCD9E0492), + UINT64_C(0x0244927C3C49DF5D), UINT64_C(0x0042534A4E5AA66E), + UINT64_C(0x00B4C23CB62729C6) }, + { UINT64_C(0x00295DE15E7B0D82), UINT64_C(0x003481AED4B38216), + UINT64_C(0x020CB574DA2A8CEB), UINT64_C(0x03DB292DC006EFC3), + UINT64_C(0x03153DE3966C31DB), UINT64_C(0x0398C0D13BB538D2), + UINT64_C(0x00D2735B5509DAE6), UINT64_C(0x00BBE1C7422AD656), + UINT64_C(0x006495E2F55306CC) } }, + { { UINT64_C(0x00FC0E58752517BF), UINT64_C(0x0287DC3FE2714AA6), + UINT64_C(0x024BBBD332D8AADB), UINT64_C(0x000BF6FA0D08504F), + UINT64_C(0x02E724A624D71D7E), UINT64_C(0x01F16EF435B7F288), + UINT64_C(0x024E6F71370923F3), UINT64_C(0x00C2B9525922566C), + UINT64_C(0x005733338A43CFE0) }, + { UINT64_C(0x0372270A8BB6E5C0), UINT64_C(0x0023295E1C578E27), + UINT64_C(0x01EA019B1BDD171A), UINT64_C(0x0243564F2EC5E9B6), + UINT64_C(0x01283B58FFA9DAE7), UINT64_C(0x00215CCB462BFC41), + UINT64_C(0x03E3900D562119A3), UINT64_C(0x0273C10EF622442D), + UINT64_C(0x00D7B5F5A5718A0A) } }, + { { UINT64_C(0x03E792204254F3D7), UINT64_C(0x0197A7FB52460AD3), + UINT64_C(0x0387DC97132E1376), UINT64_C(0x00D82DE34F7F5873), + UINT64_C(0x03B853655C8CF8AC), UINT64_C(0x0173E013A8BD55E9), + UINT64_C(0x008A7D4896369A87), UINT64_C(0x024DBCC16EA9BB3A), + UINT64_C(0x010910C0CEC40352) }, + { UINT64_C(0x03B95A34F108C612), UINT64_C(0x0333E2F3D8672331), + UINT64_C(0x028C77D48D5C235B), UINT64_C(0x0233CC3106C11962), + UINT64_C(0x03EBBF90DDDA15FE), UINT64_C(0x0369066DD81ED647), + UINT64_C(0x03BD05AA96CD4304), UINT64_C(0x039E3FFACDB3BA32), + UINT64_C(0x01EAC4B260DDEC7F) } }, + { { UINT64_C(0x035858F23BBE227D), UINT64_C(0x00EAE5030697E923), + UINT64_C(0x02368A87F3DE71C5), UINT64_C(0x0168E7B6DEE0F7C3), + UINT64_C(0x00527543ED139D52), UINT64_C(0x0127219B1CDD187E), + UINT64_C(0x023DB1516D99AC2E), UINT64_C(0x008101C88F395DB5), + UINT64_C(0x00C6A87659F9030E) }, + { UINT64_C(0x039C69A3A7EC3A20), UINT64_C(0x02842173900384B8), + UINT64_C(0x0136BA0852E2F7FE), UINT64_C(0x034921364764BE1F), + UINT64_C(0x02C74764840F38B3), UINT64_C(0x02F37D32908AE4DC), + UINT64_C(0x0138C24B162396AC), UINT64_C(0x02A70AD1A514245D), + UINT64_C(0x00C442ABF244BFAF) } }, + { { UINT64_C(0x02A6B09F093E7BB1), UINT64_C(0x027395A268EC7AC7), + UINT64_C(0x028CC643D554CA43), UINT64_C(0x0035243849E2C949), + UINT64_C(0x03CF25745B571D36), UINT64_C(0x00F8968B891A06D4), + UINT64_C(0x03F9158462DF4912), UINT64_C(0x0277B23F176B632C), + UINT64_C(0x0100FDC9203FE38B) }, + { UINT64_C(0x024667E35C0213B3), UINT64_C(0x001C9D8E55C59D73), + UINT64_C(0x03C67911C028CE7C), UINT64_C(0x01D6BE78640D4CA8), + UINT64_C(0x024E359FD8B3F600), UINT64_C(0x03240449153262A6), + UINT64_C(0x03B253E7A16A83A5), UINT64_C(0x02FDB9879C3019FF), + UINT64_C(0x01D5771531A45180) } }, + { { UINT64_C(0x02FFF1EEAD72BA02), UINT64_C(0x01773B2AD40CD7B5), + UINT64_C(0x00B549067C93A24B), UINT64_C(0x0040E568D769A5B9), + UINT64_C(0x01CBA8C547CFD559), UINT64_C(0x01B900D1740D29F8), + UINT64_C(0x0153A5FEC2807EDD), UINT64_C(0x003616B13CBFDC6E), + UINT64_C(0x014FA30FBEC2B9FF) }, + { UINT64_C(0x03CEBD84555A3B73), UINT64_C(0x011642C087A74BA4), + UINT64_C(0x03FAF4C90C28B568), UINT64_C(0x00D2B6FE13831FC3), + UINT64_C(0x02F1845F4A404C99), UINT64_C(0x03031352DB2945ED), + UINT64_C(0x0192B108B24A2CC8), UINT64_C(0x008B79F2C497B8AE), + UINT64_C(0x016844B1F9A48A1A) } }, + { { UINT64_C(0x033F1B159EA0B318), UINT64_C(0x015BA4F73890FCA5), + UINT64_C(0x03AB1671767AEB58), UINT64_C(0x0190DE3F4B53983C), + UINT64_C(0x01C67D39EE1606B7), UINT64_C(0x02092898897E0832), + UINT64_C(0x016BC61B17E221D9), UINT64_C(0x0302B2A3F7863F1A), + UINT64_C(0x0153FC11A3315E45) }, + { UINT64_C(0x02AC9E25352466CC), UINT64_C(0x03A49408E6FA3892), + UINT64_C(0x03B3B7FC83F96BAA), UINT64_C(0x02447E01B52DE677), + UINT64_C(0x01EB6353F032192D), UINT64_C(0x00910C3CF3E5926D), + UINT64_C(0x02261F650A5EA2DB), UINT64_C(0x03AA8819EC45E274), + UINT64_C(0x01F274F4B47595FA) } }, + { { UINT64_C(0x0026282EB3F78C83), UINT64_C(0x00C28C0709CFCB19), + UINT64_C(0x01821376CE1FE0A2), UINT64_C(0x01FDCED392DF4511), + UINT64_C(0x007CEFA4CDFC46EC), UINT64_C(0x01C18D201835A1D3), + UINT64_C(0x021190BA9D0FC1B3), UINT64_C(0x01CF1181F215C327), + UINT64_C(0x0144F63DC1DC2337) }, + { UINT64_C(0x02467154F82AE76F), UINT64_C(0x00A8E4BC6B21A6C1), + UINT64_C(0x003C5960D11DFC29), UINT64_C(0x02CCE05B7F97DFEA), + UINT64_C(0x0155EBEF61A21A64), UINT64_C(0x02E5A1DD22DB3809), + UINT64_C(0x008CACD3BAEA4ADC), UINT64_C(0x01AF102BA92E48C7), + UINT64_C(0x0060B7381DB1721E) } }, + { { UINT64_C(0x03861A0264B1FB35), UINT64_C(0x02F8C8B3CD33A6FA), + UINT64_C(0x030806F41BBA295F), UINT64_C(0x0164D82631325495), + UINT64_C(0x00CE9EA6FF0E358B), UINT64_C(0x0079012DD18DCC6B), + UINT64_C(0x000CC353D3BB1AC0), UINT64_C(0x03AB6D47DE397D50), + UINT64_C(0x00AD096897EA08E2) }, + { UINT64_C(0x023B78EFC3812C10), UINT64_C(0x0089EFA9532A659C), + UINT64_C(0x0281A0EB9A3DF013), UINT64_C(0x03AE4559CDF48DB0), + UINT64_C(0x00CF5D05BA21B5A4), UINT64_C(0x000FB2B315217C86), + UINT64_C(0x018D07209C8D7927), UINT64_C(0x0142BF514B4FAA4C), + UINT64_C(0x002374D59706AD5B) } }, + { { UINT64_C(0x00C15F67DD00894F), UINT64_C(0x0365718AE78487A2), + UINT64_C(0x01F5CF8A8DD7221A), UINT64_C(0x00B966824944DA72), + UINT64_C(0x039495E53E96A028), UINT64_C(0x017A489926C99CDF), + UINT64_C(0x03E7DBA2A6042AD8), UINT64_C(0x0070896FE2C77ED8), + UINT64_C(0x01DE2D3E99009396) }, + { UINT64_C(0x02CDACE519305F18), UINT64_C(0x0199321FCFA0FFC9), + UINT64_C(0x01FDEB80C6DC481C), UINT64_C(0x02944307EF501A18), + UINT64_C(0x0007F535095DB6A0), UINT64_C(0x01898CF112F16E56), + UINT64_C(0x00CB5741AFE7E00B), UINT64_C(0x01926B1FD8D17FCB), + UINT64_C(0x015E5CD28BDE5A59) } }, + }, + { + { { UINT64_C(0x0287283D0F0DB502), UINT64_C(0x01F7D518BD1DEC47), + UINT64_C(0x0110E901D0288278), UINT64_C(0x000A9C8AA5A57C0C), + UINT64_C(0x03B765C5FA16BDCF), UINT64_C(0x03E5DF4E7DE798D7), + UINT64_C(0x00F43CD382F586CB), UINT64_C(0x016DF729B4C5BFE2), + UINT64_C(0x00F84CAB1D3D3490) }, + { UINT64_C(0x03C62F43F45CE248), UINT64_C(0x01779CCA073E2076), + UINT64_C(0x003E7EB22E4B1573), UINT64_C(0x0192926CE48BFBEA), + UINT64_C(0x00AEAE190B45D381), UINT64_C(0x02BD36FBE7AB443A), + UINT64_C(0x00906E0CD124F126), UINT64_C(0x025881B2A14C49E4), + UINT64_C(0x016E768F54273911) } }, + { { UINT64_C(0x0339D7B298B06389), UINT64_C(0x00171C63E44DC1B1), + UINT64_C(0x00C31B1589FD2080), UINT64_C(0x00B27F131898A9FA), + UINT64_C(0x0342FE5ADE76B5A2), UINT64_C(0x01090D97105A2655), + UINT64_C(0x0388BB1432187198), UINT64_C(0x02D27D0C82BF52D7), + UINT64_C(0x00807B9F1B11A583) }, + { UINT64_C(0x01F3344975177EBC), UINT64_C(0x00D1C4854243F6DB), + UINT64_C(0x00CF85E1839AB312), UINT64_C(0x00D9C19A12D20012), + UINT64_C(0x01709110819085E7), UINT64_C(0x011FEDA170483D5C), + UINT64_C(0x01B28F055EEB31A0), UINT64_C(0x02289D0F2CBAB0E6), + UINT64_C(0x000867BA2963A0E1) } }, + { { UINT64_C(0x03F6911B90581DC0), UINT64_C(0x01F1FB19987F20FB), + UINT64_C(0x0134E22EFA2F437F), UINT64_C(0x00398E1EB156A4E0), + UINT64_C(0x0325F4C0DBD2FAF4), UINT64_C(0x0204D252D5C55B5B), + UINT64_C(0x00E279F64EA373DA), UINT64_C(0x01DB9B5CD34A8E6F), + UINT64_C(0x00D14F2FC1B2EE3D) }, + { UINT64_C(0x0391CF084FAB453E), UINT64_C(0x016D9E632F3C4388), + UINT64_C(0x01D15FD339420C4A), UINT64_C(0x026356CC61C907C7), + UINT64_C(0x026E23E3D6197795), UINT64_C(0x0142F5E058DB2B6C), + UINT64_C(0x020EFE8EAFF59180), UINT64_C(0x00A481A4F4563A8C), + UINT64_C(0x012FEE21C8B4C4E9) } }, + { { UINT64_C(0x02056DCD3DB8A57B), UINT64_C(0x0317AAE4B46AB720), + UINT64_C(0x031833D064C1F1CD), UINT64_C(0x03A3CC17BEBD056B), + UINT64_C(0x03F05A7034003715), UINT64_C(0x009FAC41671C58C9), + UINT64_C(0x01BEE4D8BD8671CA), UINT64_C(0x0004BC6DBD8A8392), + UINT64_C(0x01F15A2D6E92E74A) }, + { UINT64_C(0x010933993D4BD6B6), UINT64_C(0x028502613D6FDD77), + UINT64_C(0x0134D55E73D97A09), UINT64_C(0x001DB5E602D2AA86), + UINT64_C(0x00FE1E6979BF531F), UINT64_C(0x02AC99028117960B), + UINT64_C(0x03849A42EAAB4E66), UINT64_C(0x0190FBBD3B94D87F), + UINT64_C(0x011CAB9AC249065C) } }, + { { UINT64_C(0x03000D01D5AD0B4E), UINT64_C(0x01E094F415439045), + UINT64_C(0x0071645EF32A823C), UINT64_C(0x013C18E27FCF9EA5), + UINT64_C(0x00B2733886CDC7A9), UINT64_C(0x02902330EF732EA5), + UINT64_C(0x003C25CEA5C5686B), UINT64_C(0x029DF5773028F0CD), + UINT64_C(0x016FB941FCD6583D) }, + { UINT64_C(0x01DEA99AF3494AD9), UINT64_C(0x03BA2C1B9C712901), + UINT64_C(0x02E32E4B0A8430F2), UINT64_C(0x00CB695E8BF6F96B), + UINT64_C(0x0161F767B32907C2), UINT64_C(0x002FC8531B5E7CEC), + UINT64_C(0x00298C1304153AFA), UINT64_C(0x0189BCBF02EE4544), + UINT64_C(0x0035592EC7CAC39B) } }, + { { UINT64_C(0x0359513866647B76), UINT64_C(0x00DB6945523879DD), + UINT64_C(0x0349C662AF030344), UINT64_C(0x03638440AAB5A275), + UINT64_C(0x02A0720FE9DC8A6B), UINT64_C(0x011CEE4DF271AE5F), + UINT64_C(0x00BC676869500BE5), UINT64_C(0x02F5135FF9B7674F), + UINT64_C(0x00142511483B55E9) }, + { UINT64_C(0x02DE083E6D8A2C33), UINT64_C(0x014C0545D4B8062F), + UINT64_C(0x01AD94143AC28589), UINT64_C(0x01AEBAA37C00A634), + UINT64_C(0x0078E06973DA0209), UINT64_C(0x03F56A237FA0E6B0), + UINT64_C(0x02879F4A94D49E71), UINT64_C(0x01BE6BF822D1FD4F), + UINT64_C(0x00F9E2018F9FBF87) } }, + { { UINT64_C(0x025B8DCB938F6A40), UINT64_C(0x0026725B42FA4F9B), + UINT64_C(0x039198D12A999847), UINT64_C(0x010A9C957A1EFA18), + UINT64_C(0x012FAA8E7E5D1356), UINT64_C(0x0205AB8BB7E3A8BA), + UINT64_C(0x015652F190E95489), UINT64_C(0x0231452E385A88C6), + UINT64_C(0x0096A500D25B0C46) }, + { UINT64_C(0x01B6696514F1EAD3), UINT64_C(0x026BE39E6BD0E127), + UINT64_C(0x01725DEFE2C66DD3), UINT64_C(0x01FEAE05ECA5B5BB), + UINT64_C(0x015AA101430609C7), UINT64_C(0x0274AAB1807123A3), + UINT64_C(0x02A446B243B7DBAC), UINT64_C(0x007DC3A911987A6B), + UINT64_C(0x005309D7E2813F76) } }, + { { UINT64_C(0x01966924104023FD), UINT64_C(0x0020B1F67AD27833), + UINT64_C(0x03DFD742FB1D5AC6), UINT64_C(0x017F6DD6D843D1C9), + UINT64_C(0x01DEAB06F70CFD0B), UINT64_C(0x00F3AAA1D84BA46E), + UINT64_C(0x01535D03B00F23FA), UINT64_C(0x02F223786ADE70A7), + UINT64_C(0x00DC3F149A4B2AAE) }, + { UINT64_C(0x0318A8079CA626DD), UINT64_C(0x00A1DE38CE5C6BE6), + UINT64_C(0x032F55E2E4E50992), UINT64_C(0x0192257A6FB7EED9), + UINT64_C(0x020B9106C175FDEB), UINT64_C(0x001ACA988C739470), + UINT64_C(0x02A12D0A78C3DAD7), UINT64_C(0x02A0BFDBC1802E4D), + UINT64_C(0x0138CB75E6BBB8BA) } }, + { { UINT64_C(0x00B271637F32AB3F), UINT64_C(0x02196867BE3CDC78), + UINT64_C(0x00647C1710CC4F5D), UINT64_C(0x00A0EDE0B8D8DB71), + UINT64_C(0x0092AB51B9BB942A), UINT64_C(0x030CEE5FF47C8C77), + UINT64_C(0x0172B6296758CE89), UINT64_C(0x03FBF70A184CFE5F), + UINT64_C(0x0101B88E67F1E05D) }, + { UINT64_C(0x02FFBCD12737D38E), UINT64_C(0x02754305441EA3F7), + UINT64_C(0x0174766ADA98B6A0), UINT64_C(0x00EEEAD822C29CD7), + UINT64_C(0x02D88F6B991FA26B), UINT64_C(0x02CB655B1E5DF95B), + UINT64_C(0x03DD0BD505307E4F), UINT64_C(0x010182FDFC359D4A), + UINT64_C(0x00755C3675A01A9E) } }, + { { UINT64_C(0x00371ACBFD4D4113), UINT64_C(0x01CD0CEE90EDA0C0), + UINT64_C(0x023F0667BA099F71), UINT64_C(0x0122476EC028AFF8), + UINT64_C(0x0057490C1B9D3C8E), UINT64_C(0x0037D1A2CAFBC030), + UINT64_C(0x0357613B144BA059), UINT64_C(0x030B5ED5F7E2DFAA), + UINT64_C(0x00C03407E66571BC) }, + { UINT64_C(0x015B2051592A3113), UINT64_C(0x033C0B977FE1CA61), + UINT64_C(0x0114564ECE17F466), UINT64_C(0x02770F5D995C1ECC), + UINT64_C(0x01D8797648C617E7), UINT64_C(0x00B30F6FB78CAD34), + UINT64_C(0x036CD504495109EC), UINT64_C(0x02EA78A9F6758E7F), + UINT64_C(0x007A71C9E769E9C6) } }, + { { UINT64_C(0x011D5BE35201CD59), UINT64_C(0x0209D1C58765C0EE), + UINT64_C(0x01D25192839B1DB8), UINT64_C(0x03EAD38ED4A2B60E), + UINT64_C(0x0057B36709A7B7AA), UINT64_C(0x0085B62AF338BC2B), + UINT64_C(0x030F3BEF5577F894), UINT64_C(0x0390BAA242140FD9), + UINT64_C(0x011B9BF27FA21CD6) }, + { UINT64_C(0x031FF60458FFB263), UINT64_C(0x00D71C9EC589C2CE), + UINT64_C(0x006C50B6449B7493), UINT64_C(0x034EF7D63824AD56), + UINT64_C(0x038578A6820938F3), UINT64_C(0x00843B021ED27247), + UINT64_C(0x02672B0B7E864C01), UINT64_C(0x00FE28A0AD914F56), + UINT64_C(0x01870F7E6544AD26) } }, + { { UINT64_C(0x03FABFF21E593E49), UINT64_C(0x01EB902CACEDCD38), + UINT64_C(0x010907F07EA1634E), UINT64_C(0x013A3B3D20F1ACCD), + UINT64_C(0x035F3C751269190C), UINT64_C(0x02F6BAE3746C46A6), + UINT64_C(0x00097CBB9F7B998C), UINT64_C(0x016B88BF2C151BD8), + UINT64_C(0x01317587E7C4BAF5) }, + { UINT64_C(0x027516E2062B46F6), UINT64_C(0x01703ECD4583F2AB), + UINT64_C(0x007D01ABE67B4364), UINT64_C(0x00F1753628034E7C), + UINT64_C(0x0108FF0FECD3BD76), UINT64_C(0x033B697531A2F0AC), + UINT64_C(0x010AC9943B9A6425), UINT64_C(0x020BC633526FFAA7), + UINT64_C(0x0006E03EC9A132B1) } }, + { { UINT64_C(0x016BC247531FFCBB), UINT64_C(0x02EE2DDBF721D516), + UINT64_C(0x0052E0725E10638A), UINT64_C(0x013566F49B1AAC88), + UINT64_C(0x007343ED5106C60D), UINT64_C(0x02985C4AAAB232AC), + UINT64_C(0x0113830C6312DE7A), UINT64_C(0x0136F1CF05895FFF), + UINT64_C(0x01ED7817C0B0027B) }, + { UINT64_C(0x02716A42F749B010), UINT64_C(0x039DC807B7BDBC44), + UINT64_C(0x035DFD64A2C7F19C), UINT64_C(0x00AFE5B488D67F84), + UINT64_C(0x03831B1AD5D8B241), UINT64_C(0x00FEF3BA557CC901), + UINT64_C(0x0082C2A38F96B970), UINT64_C(0x027380F80F3D96E5), + UINT64_C(0x014FDF6544812C07) } }, + { { UINT64_C(0x03600187B0C6A752), UINT64_C(0x019E405A0263FA53), + UINT64_C(0x000E0EA369E1C1BF), UINT64_C(0x0130C422E3895E24), + UINT64_C(0x035F4072E884BDCB), UINT64_C(0x0284B4DBC9FDB267), + UINT64_C(0x0159D4401B2054DE), UINT64_C(0x03649FACE16E526C), + UINT64_C(0x0100AC3AAFFE225D) }, + { UINT64_C(0x03BA224ACAFA8C2B), UINT64_C(0x031E5C26E31FAF8C), + UINT64_C(0x00B183566D47E97E), UINT64_C(0x0020C64F9C9C2688), + UINT64_C(0x02F6655D04CC893B), UINT64_C(0x03908BE8D4648FE4), + UINT64_C(0x02F14F85922DC116), UINT64_C(0x031D345610C10114), + UINT64_C(0x00FC287447A5FA2D) } }, + { { UINT64_C(0x020880798CEE5802), UINT64_C(0x03BE370A4C38C7FF), + UINT64_C(0x00934BE76CF041A3), UINT64_C(0x011B7A12BC50EEE4), + UINT64_C(0x0301BD4FC9636CD4), UINT64_C(0x03C53C2A0264C2CE), + UINT64_C(0x0347FF0A389DC319), UINT64_C(0x03A848048891AD07), + UINT64_C(0x0110D35394388CFB) }, + { UINT64_C(0x0042E86EE18DA0C0), UINT64_C(0x0359DB5D730A12EE), + UINT64_C(0x03D8CD72D5690026), UINT64_C(0x01FD191FD18F2690), + UINT64_C(0x00B8691FD8727A16), UINT64_C(0x0135130205267C55), + UINT64_C(0x011FDBAF57A304DB), UINT64_C(0x012D7FC9DED7342D), + UINT64_C(0x01BFE56058019C74) } }, + { { UINT64_C(0x00ADCF21754184BF), UINT64_C(0x02532EC18F101A1B), + UINT64_C(0x02E7AA58B7598AF4), UINT64_C(0x0297C67528666348), + UINT64_C(0x022BAF11DF85DAD5), UINT64_C(0x0097F7BCDA9CFFA7), + UINT64_C(0x03F0C563228A2E65), UINT64_C(0x0316126723B57D49), + UINT64_C(0x019B45ECCD3F5983) }, + { UINT64_C(0x02B86D25E0A95EDC), UINT64_C(0x027ED42D9C73BD22), + UINT64_C(0x0385F10181D77392), UINT64_C(0x02C8AA05E16378DB), + UINT64_C(0x02962E884B04947C), UINT64_C(0x00A054D788CF48A9), + UINT64_C(0x006616654F6E2CF7), UINT64_C(0x021848D66B0ACC97), + UINT64_C(0x00E73704171C5696) } }, + } +}; + +/*- + * Q := 2P, both projective, Q and P same pointers OK + * Autogenerated: op3/dbl_proj.op3 + * https://eprint.iacr.org/2015/1060 Alg 6 + * ASSERT: a = -3 + */ +static void +point_double(pt_prj_t *Q, const pt_prj_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X = P->X; + const limb_t *Y = P->Y; + const limb_t *Z = P->Z; + limb_t *X3 = Q->X; + limb_t *Y3 = Q->Y; + limb_t *Z3 = Q->Z; + + /* the curve arith formula */ + fiat_secp521r1_carry_square(t0, X); + fiat_secp521r1_carry_square(t1, Y); + fiat_secp521r1_carry_square(t2, Z); + fiat_secp521r1_carry_mul(t3, X, Y); + fiat_secp521r1_carry_add(t3, t3, t3); + fiat_secp521r1_carry_mul(t4, Y, Z); + fiat_secp521r1_carry_mul(Z3, X, Z); + fiat_secp521r1_carry_add(Z3, Z3, Z3); + fiat_secp521r1_carry_mul(Y3, b, t2); + fiat_secp521r1_carry_sub(Y3, Y3, Z3); + fiat_secp521r1_carry_add(X3, Y3, Y3); + fiat_secp521r1_carry_add(Y3, X3, Y3); + fiat_secp521r1_carry_sub(X3, t1, Y3); + fiat_secp521r1_carry_add(Y3, t1, Y3); + fiat_secp521r1_carry_mul(Y3, X3, Y3); + fiat_secp521r1_carry_mul(X3, X3, t3); + fiat_secp521r1_carry_add(t3, t2, t2); + fiat_secp521r1_carry_add(t2, t2, t3); + fiat_secp521r1_carry_mul(Z3, b, Z3); + fiat_secp521r1_carry_sub(Z3, Z3, t2); + fiat_secp521r1_carry_sub(Z3, Z3, t0); + fiat_secp521r1_carry_add(t3, Z3, Z3); + fiat_secp521r1_carry_add(Z3, Z3, t3); + fiat_secp521r1_carry_add(t3, t0, t0); + fiat_secp521r1_carry_add(t0, t3, t0); + fiat_secp521r1_carry_sub(t0, t0, t2); + fiat_secp521r1_carry_mul(t0, t0, Z3); + fiat_secp521r1_carry_add(Y3, Y3, t0); + fiat_secp521r1_carry_add(t0, t4, t4); + fiat_secp521r1_carry_mul(Z3, t0, Z3); + fiat_secp521r1_carry_sub(X3, X3, Z3); + fiat_secp521r1_carry_mul(Z3, t0, t1); + fiat_secp521r1_carry_add(Z3, Z3, Z3); + fiat_secp521r1_carry_add(Z3, Z3, Z3); +} + +/*- + * out1 = (arg1 == 0) ? 0 : nz + * NB: this is not a "mod p equiv" 0, but literal 0 + * NB: this is not a real Fiat function, just named that way for consistency. + */ +static void +fiat_secp521r1_nonzero(limb_t *out1, const fe_t arg1) +{ + limb_t x1 = 0; + int i; + + for (i = 0; i < LIMB_CNT; i++) + x1 |= arg1[i]; + *out1 = x1; +} + +/*- + * R := Q + P where R and Q are projective, P affine. + * R and Q same pointers OK + * R and P same pointers not OK + * Autogenerated: op3/add_mixed.op3 + * https://eprint.iacr.org/2015/1060 Alg 5 + * ASSERT: a = -3 + */ +static void +point_add_mixed(pt_prj_t *R, const pt_prj_t *Q, const pt_aff_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X1 = Q->X; + const limb_t *Y1 = Q->Y; + const limb_t *Z1 = Q->Z; + const limb_t *X2 = P->X; + const limb_t *Y2 = P->Y; + fe_t X3; + fe_t Y3; + fe_t Z3; + limb_t nz; + + /* check P for affine inf */ + fiat_secp521r1_nonzero(&nz, P->Y); + + /* the curve arith formula */ + fiat_secp521r1_carry_mul(t0, X1, X2); + fiat_secp521r1_carry_mul(t1, Y1, Y2); + fiat_secp521r1_carry_add(t3, X2, Y2); + fiat_secp521r1_carry_add(t4, X1, Y1); + fiat_secp521r1_carry_mul(t3, t3, t4); + fiat_secp521r1_carry_add(t4, t0, t1); + fiat_secp521r1_carry_sub(t3, t3, t4); + fiat_secp521r1_carry_mul(t4, Y2, Z1); + fiat_secp521r1_carry_add(t4, t4, Y1); + fiat_secp521r1_carry_mul(Y3, X2, Z1); + fiat_secp521r1_carry_add(Y3, Y3, X1); + fiat_secp521r1_carry_mul(Z3, b, Z1); + fiat_secp521r1_carry_sub(X3, Y3, Z3); + fiat_secp521r1_carry_add(Z3, X3, X3); + fiat_secp521r1_carry_add(X3, X3, Z3); + fiat_secp521r1_carry_sub(Z3, t1, X3); + fiat_secp521r1_carry_add(X3, t1, X3); + fiat_secp521r1_carry_mul(Y3, b, Y3); + fiat_secp521r1_carry_add(t1, Z1, Z1); + fiat_secp521r1_carry_add(t2, t1, Z1); + fiat_secp521r1_carry_sub(Y3, Y3, t2); + fiat_secp521r1_carry_sub(Y3, Y3, t0); + fiat_secp521r1_carry_add(t1, Y3, Y3); + fiat_secp521r1_carry_add(Y3, t1, Y3); + fiat_secp521r1_carry_add(t1, t0, t0); + fiat_secp521r1_carry_add(t0, t1, t0); + fiat_secp521r1_carry_sub(t0, t0, t2); + fiat_secp521r1_carry_mul(t1, t4, Y3); + fiat_secp521r1_carry_mul(t2, t0, Y3); + fiat_secp521r1_carry_mul(Y3, X3, Z3); + fiat_secp521r1_carry_add(Y3, Y3, t2); + fiat_secp521r1_carry_mul(X3, t3, X3); + fiat_secp521r1_carry_sub(X3, X3, t1); + fiat_secp521r1_carry_mul(Z3, t4, Z3); + fiat_secp521r1_carry_mul(t1, t3, t0); + fiat_secp521r1_carry_add(Z3, Z3, t1); + + /* if P is inf, throw all that away and take Q */ + fiat_secp521r1_selectznz(R->X, nz, Q->X, X3); + fiat_secp521r1_selectznz(R->Y, nz, Q->Y, Y3); + fiat_secp521r1_selectznz(R->Z, nz, Q->Z, Z3); +} + +/*- + * R := Q + P all projective. + * R and Q same pointers OK + * R and P same pointers not OK + * Autogenerated: op3/add_proj.op3 + * https://eprint.iacr.org/2015/1060 Alg 4 + * ASSERT: a = -3 + */ +static void +point_add_proj(pt_prj_t *R, const pt_prj_t *Q, const pt_prj_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4, t5; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X1 = Q->X; + const limb_t *Y1 = Q->Y; + const limb_t *Z1 = Q->Z; + const limb_t *X2 = P->X; + const limb_t *Y2 = P->Y; + const limb_t *Z2 = P->Z; + limb_t *X3 = R->X; + limb_t *Y3 = R->Y; + limb_t *Z3 = R->Z; + + /* the curve arith formula */ + fiat_secp521r1_carry_mul(t0, X1, X2); + fiat_secp521r1_carry_mul(t1, Y1, Y2); + fiat_secp521r1_carry_mul(t2, Z1, Z2); + fiat_secp521r1_carry_add(t3, X1, Y1); + fiat_secp521r1_carry_add(t4, X2, Y2); + fiat_secp521r1_carry_mul(t3, t3, t4); + fiat_secp521r1_carry_add(t4, t0, t1); + fiat_secp521r1_carry_sub(t3, t3, t4); + fiat_secp521r1_carry_add(t4, Y1, Z1); + fiat_secp521r1_carry_add(t5, Y2, Z2); + fiat_secp521r1_carry_mul(t4, t4, t5); + fiat_secp521r1_carry_add(t5, t1, t2); + fiat_secp521r1_carry_sub(t4, t4, t5); + fiat_secp521r1_carry_add(X3, X1, Z1); + fiat_secp521r1_carry_add(Y3, X2, Z2); + fiat_secp521r1_carry_mul(X3, X3, Y3); + fiat_secp521r1_carry_add(Y3, t0, t2); + fiat_secp521r1_carry_sub(Y3, X3, Y3); + fiat_secp521r1_carry_mul(Z3, b, t2); + fiat_secp521r1_carry_sub(X3, Y3, Z3); + fiat_secp521r1_carry_add(Z3, X3, X3); + fiat_secp521r1_carry_add(X3, X3, Z3); + fiat_secp521r1_carry_sub(Z3, t1, X3); + fiat_secp521r1_carry_add(X3, t1, X3); + fiat_secp521r1_carry_mul(Y3, b, Y3); + fiat_secp521r1_carry_add(t1, t2, t2); + fiat_secp521r1_carry_add(t2, t1, t2); + fiat_secp521r1_carry_sub(Y3, Y3, t2); + fiat_secp521r1_carry_sub(Y3, Y3, t0); + fiat_secp521r1_carry_add(t1, Y3, Y3); + fiat_secp521r1_carry_add(Y3, t1, Y3); + fiat_secp521r1_carry_add(t1, t0, t0); + fiat_secp521r1_carry_add(t0, t1, t0); + fiat_secp521r1_carry_sub(t0, t0, t2); + fiat_secp521r1_carry_mul(t1, t4, Y3); + fiat_secp521r1_carry_mul(t2, t0, Y3); + fiat_secp521r1_carry_mul(Y3, X3, Z3); + fiat_secp521r1_carry_add(Y3, Y3, t2); + fiat_secp521r1_carry_mul(X3, t3, X3); + fiat_secp521r1_carry_sub(X3, X3, t1); + fiat_secp521r1_carry_mul(Z3, t4, Z3); + fiat_secp521r1_carry_mul(t1, t3, t0); + fiat_secp521r1_carry_add(Z3, Z3, t1); +} + +/* constants */ +#define RADIX 5 +#define DRADIX (1 << RADIX) +#define DRADIX_WNAF ((DRADIX) << 1) + +/*- + * precomp for wnaf scalar multiplication: + * precomp[0] = 1P + * precomp[1] = 3P + * precomp[2] = 5P + * precomp[3] = 7P + * precomp[4] = 9P + * ... + */ +static void +precomp_wnaf(pt_prj_t precomp[DRADIX / 2], const pt_aff_t *P) +{ + int i; + + fe_copy(precomp[0].X, P->X); + fe_copy(precomp[0].Y, P->Y); + fe_copy(precomp[0].Z, const_one); + point_double(&precomp[DRADIX / 2 - 1], &precomp[0]); + + for (i = 1; i < DRADIX / 2; i++) + point_add_proj(&precomp[i], &precomp[DRADIX / 2 - 1], &precomp[i - 1]); +} + +/* fetch a scalar bit */ +static int +scalar_get_bit(const unsigned char in[66], int idx) +{ + int widx, rshift; + + widx = idx >> 3; + rshift = idx & 0x7; + + if (idx < 0 || widx >= 66) + return 0; + + return (in[widx] >> rshift) & 0x1; +} + +/*- + * Compute "regular" wnaf representation of a scalar. + * See "Exponent Recoding and Regular Exponentiation Algorithms", + * Tunstall et al., AfricaCrypt 2009, Alg 6. + * It forces an odd scalar and outputs digits in + * {\pm 1, \pm 3, \pm 5, \pm 7, \pm 9, ...} + * i.e. signed odd digits with _no zeroes_ -- that makes it "regular". + */ +static void +scalar_rwnaf(int8_t out[106], const unsigned char in[66]) +{ + int i; + int8_t window, d; + + window = (in[0] & (DRADIX_WNAF - 1)) | 1; + for (i = 0; i < 105; i++) { + d = (window & (DRADIX_WNAF - 1)) - DRADIX; + out[i] = d; + window = (window - d) >> RADIX; + window += scalar_get_bit(in, (i + 1) * RADIX + 1) << 1; + window += scalar_get_bit(in, (i + 1) * RADIX + 2) << 2; + window += scalar_get_bit(in, (i + 1) * RADIX + 3) << 3; + window += scalar_get_bit(in, (i + 1) * RADIX + 4) << 4; + window += scalar_get_bit(in, (i + 1) * RADIX + 5) << 5; + } + out[i] = window; +} + +/*- + * Compute "textbook" wnaf representation of a scalar. + * NB: not constant time + */ +static void +scalar_wnaf(int8_t out[529], const unsigned char in[66]) +{ + int i; + int8_t window, d; + + window = in[0] & (DRADIX_WNAF - 1); + for (i = 0; i < 529; i++) { + d = 0; + if ((window & 1) && ((d = window & (DRADIX_WNAF - 1)) & DRADIX)) + d -= DRADIX_WNAF; + out[i] = d; + window = (window - d) >> 1; + window += scalar_get_bit(in, i + 1 + RADIX) << RADIX; + } +} + +/*- + * Simulateous scalar multiplication: interleaved "textbook" wnaf. + * NB: not constant time + */ +static void +var_smul_wnaf_two(pt_aff_t *out, const unsigned char a[66], + const unsigned char b[66], const pt_aff_t *P) +{ + int i, d, is_neg, is_inf = 1, flipped = 0; + int8_t anaf[529] = { 0 }; + int8_t bnaf[529] = { 0 }; + pt_prj_t Q; + pt_prj_t precomp[DRADIX / 2]; + + precomp_wnaf(precomp, P); + scalar_wnaf(anaf, a); + scalar_wnaf(bnaf, b); + + for (i = 528; i >= 0; i--) { + if (!is_inf) + point_double(&Q, &Q); + if ((d = bnaf[i])) { + if ((is_neg = d < 0) != flipped) { + fiat_secp521r1_opp(Q.Y, Q.Y); + flipped ^= 1; + } + d = (is_neg) ? (-d - 1) >> 1 : (d - 1) >> 1; + if (is_inf) { + /* initialize accumulator */ + fe_copy(Q.X, &precomp[d].X); + fe_copy(Q.Y, &precomp[d].Y); + fe_copy(Q.Z, &precomp[d].Z); + is_inf = 0; + } else + point_add_proj(&Q, &Q, &precomp[d]); + } + if ((d = anaf[i])) { + if ((is_neg = d < 0) != flipped) { + fiat_secp521r1_opp(Q.Y, Q.Y); + flipped ^= 1; + } + d = (is_neg) ? (-d - 1) >> 1 : (d - 1) >> 1; + if (is_inf) { + /* initialize accumulator */ + fe_copy(Q.X, &lut_cmb[0][d].X); + fe_copy(Q.Y, &lut_cmb[0][d].Y); + fe_copy(Q.Z, const_one); + is_inf = 0; + } else + point_add_mixed(&Q, &Q, &lut_cmb[0][d]); + } + } + + if (is_inf) { + /* initialize accumulator to inf: all-zero scalars */ + fe_set_zero(Q.X); + fe_copy(Q.Y, const_one); + fe_set_zero(Q.Z); + } + + if (flipped) { + /* correct sign */ + fiat_secp521r1_opp(Q.Y, Q.Y); + } + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp521r1_inv(Q.Z, Q.Z); + fiat_secp521r1_carry_mul(out->X, Q.X, Q.Z); + fiat_secp521r1_carry_mul(out->Y, Q.Y, Q.Z); +} + +/*- + * Variable point scalar multiplication with "regular" wnaf. + */ +static void +var_smul_rwnaf(pt_aff_t *out, const unsigned char scalar[66], + const pt_aff_t *P) +{ + int i, j, d, diff, is_neg; + int8_t rnaf[106] = { 0 }; + pt_prj_t Q, lut; + pt_prj_t precomp[DRADIX / 2]; + + precomp_wnaf(precomp, P); + scalar_rwnaf(rnaf, scalar); + +#if defined(_MSC_VER) +/* result still unsigned: yes we know */ +#pragma warning(push) +#pragma warning(disable : 4146) +#endif + + /* initialize accumulator to high digit */ + d = (rnaf[105] - 1) >> 1; + for (j = 0; j < DRADIX / 2; j++) { + diff = (1 - (-(d ^ j) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp521r1_selectznz(Q.X, diff, Q.X, precomp[j].X); + fiat_secp521r1_selectznz(Q.Y, diff, Q.Y, precomp[j].Y); + fiat_secp521r1_selectznz(Q.Z, diff, Q.Z, precomp[j].Z); + } + + for (i = 104; i >= 0; i--) { + for (j = 0; j < RADIX; j++) + point_double(&Q, &Q); + d = rnaf[i]; + /* is_neg = (d < 0) ? 1 : 0 */ + is_neg = (d >> (8 * sizeof(int) - 1)) & 1; + /* d = abs(d) */ + d = (d ^ -is_neg) + is_neg; + d = (d - 1) >> 1; + for (j = 0; j < DRADIX / 2; j++) { + diff = (1 - (-(d ^ j) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp521r1_selectznz(lut.X, diff, lut.X, precomp[j].X); + fiat_secp521r1_selectznz(lut.Y, diff, lut.Y, precomp[j].Y); + fiat_secp521r1_selectznz(lut.Z, diff, lut.Z, precomp[j].Z); + } + /* negate lut point if digit is negative */ + fiat_secp521r1_opp(out->Y, lut.Y); + fiat_secp521r1_selectznz(lut.Y, is_neg, lut.Y, out->Y); + point_add_proj(&Q, &Q, &lut); + } + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + + /* conditionally subtract P if the scalar was even */ + fe_copy(lut.X, precomp[0].X); + fiat_secp521r1_opp(lut.Y, precomp[0].Y); + fe_copy(lut.Z, precomp[0].Z); + point_add_proj(&lut, &lut, &Q); + fiat_secp521r1_selectznz(Q.X, scalar[0] & 1, lut.X, Q.X); + fiat_secp521r1_selectznz(Q.Y, scalar[0] & 1, lut.Y, Q.Y); + fiat_secp521r1_selectznz(Q.Z, scalar[0] & 1, lut.Z, Q.Z); + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp521r1_inv(Q.Z, Q.Z); + fiat_secp521r1_carry_mul(out->X, Q.X, Q.Z); + fiat_secp521r1_carry_mul(out->Y, Q.Y, Q.Z); +} + +/*- + * Fixed scalar multiplication: comb with interleaving. + */ +static void +fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[66]) +{ + int i, j, k, d, diff, is_neg = 0; + int8_t rnaf[106] = { 0 }; + pt_prj_t Q, R; + pt_aff_t lut; + + scalar_rwnaf(rnaf, scalar); + + /* initalize accumulator to inf */ + fe_set_zero(Q.X); + fe_copy(Q.Y, const_one); + fe_set_zero(Q.Z); + +#if defined(_MSC_VER) +/* result still unsigned: yes we know */ +#pragma warning(push) +#pragma warning(disable : 4146) +#endif + + for (i = 8; i >= 0; i--) { + for (j = 0; i != 8 && j < RADIX; j++) + point_double(&Q, &Q); + for (j = 0; j < 13; j++) { + if (j * 9 + i > 105) + continue; + d = rnaf[j * 9 + i]; + /* is_neg = (d < 0) ? 1 : 0 */ + is_neg = (d >> (8 * sizeof(int) - 1)) & 1; + /* d = abs(d) */ + d = (d ^ -is_neg) + is_neg; + d = (d - 1) >> 1; + for (k = 0; k < DRADIX / 2; k++) { + diff = (1 - (-(d ^ k) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp521r1_selectznz(lut.X, diff, lut.X, lut_cmb[j][k].X); + fiat_secp521r1_selectznz(lut.Y, diff, lut.Y, lut_cmb[j][k].Y); + } + /* negate lut point if digit is negative */ + fiat_secp521r1_opp(out->Y, lut.Y); + fiat_secp521r1_selectznz(lut.Y, is_neg, lut.Y, out->Y); + point_add_mixed(&Q, &Q, &lut); + } + } + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + + /* conditionally subtract P if the scalar was even */ + fe_copy(lut.X, lut_cmb[0][0].X); + fiat_secp521r1_opp(lut.Y, lut_cmb[0][0].Y); + point_add_mixed(&R, &Q, &lut); + fiat_secp521r1_selectznz(Q.X, scalar[0] & 1, R.X, Q.X); + fiat_secp521r1_selectznz(Q.Y, scalar[0] & 1, R.Y, Q.Y); + fiat_secp521r1_selectznz(Q.Z, scalar[0] & 1, R.Z, Q.Z); + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp521r1_inv(Q.Z, Q.Z); + fiat_secp521r1_carry_mul(out->X, Q.X, Q.Z); + fiat_secp521r1_carry_mul(out->Y, Q.Y, Q.Z); +} + +static void +point_mul_two(unsigned char outx[66], unsigned char outy[66], + const unsigned char a[66], const unsigned char b[66], + const unsigned char inx[66], + const unsigned char iny[66]) +{ + pt_aff_t P; + + fiat_secp521r1_from_bytes(P.X, inx); + fiat_secp521r1_from_bytes(P.Y, iny); + /* simultaneous scalar multiplication */ + var_smul_wnaf_two(&P, a, b, &P); + + fiat_secp521r1_to_bytes(outx, P.X); + fiat_secp521r1_to_bytes(outy, P.Y); +} + +static void +point_mul_g(unsigned char outx[66], unsigned char outy[66], + const unsigned char scalar[66]) +{ + pt_aff_t P; + + /* fixed scmul function */ + fixed_smul_cmb(&P, scalar); + fiat_secp521r1_to_bytes(outx, P.X); + fiat_secp521r1_to_bytes(outy, P.Y); +} + +static void +point_mul(unsigned char outx[66], unsigned char outy[66], + const unsigned char scalar[66], + const unsigned char inx[66], + const unsigned char iny[66]) +{ + pt_aff_t P; + + fiat_secp521r1_from_bytes(P.X, inx); + fiat_secp521r1_from_bytes(P.Y, iny); + /* var scmul function */ + var_smul_rwnaf(&P, scalar, &P); + fiat_secp521r1_to_bytes(outx, P.X); + fiat_secp521r1_to_bytes(outy, P.Y); +} + +#undef RADIX +#include "ecp.h" +#include "mplogic.h" + +/*- + * reverse bytes -- total hack + */ +#define MP_BE2LE(a) \ + do { \ + unsigned char z_bswap; \ + z_bswap = a[0]; \ + a[0] = a[65]; \ + a[65] = z_bswap; \ + z_bswap = a[1]; \ + a[1] = a[64]; \ + a[64] = z_bswap; \ + z_bswap = a[2]; \ + a[2] = a[63]; \ + a[63] = z_bswap; \ + z_bswap = a[3]; \ + a[3] = a[62]; \ + a[62] = z_bswap; \ + z_bswap = a[4]; \ + a[4] = a[61]; \ + a[61] = z_bswap; \ + z_bswap = a[5]; \ + a[5] = a[60]; \ + a[60] = z_bswap; \ + z_bswap = a[6]; \ + a[6] = a[59]; \ + a[59] = z_bswap; \ + z_bswap = a[7]; \ + a[7] = a[58]; \ + a[58] = z_bswap; \ + z_bswap = a[8]; \ + a[8] = a[57]; \ + a[57] = z_bswap; \ + z_bswap = a[9]; \ + a[9] = a[56]; \ + a[56] = z_bswap; \ + z_bswap = a[10]; \ + a[10] = a[55]; \ + a[55] = z_bswap; \ + z_bswap = a[11]; \ + a[11] = a[54]; \ + a[54] = z_bswap; \ + z_bswap = a[12]; \ + a[12] = a[53]; \ + a[53] = z_bswap; \ + z_bswap = a[13]; \ + a[13] = a[52]; \ + a[52] = z_bswap; \ + z_bswap = a[14]; \ + a[14] = a[51]; \ + a[51] = z_bswap; \ + z_bswap = a[15]; \ + a[15] = a[50]; \ + a[50] = z_bswap; \ + z_bswap = a[16]; \ + a[16] = a[49]; \ + a[49] = z_bswap; \ + z_bswap = a[17]; \ + a[17] = a[48]; \ + a[48] = z_bswap; \ + z_bswap = a[18]; \ + a[18] = a[47]; \ + a[47] = z_bswap; \ + z_bswap = a[19]; \ + a[19] = a[46]; \ + a[46] = z_bswap; \ + z_bswap = a[20]; \ + a[20] = a[45]; \ + a[45] = z_bswap; \ + z_bswap = a[21]; \ + a[21] = a[44]; \ + a[44] = z_bswap; \ + z_bswap = a[22]; \ + a[22] = a[43]; \ + a[43] = z_bswap; \ + z_bswap = a[23]; \ + a[23] = a[42]; \ + a[42] = z_bswap; \ + z_bswap = a[24]; \ + a[24] = a[41]; \ + a[41] = z_bswap; \ + z_bswap = a[25]; \ + a[25] = a[40]; \ + a[40] = z_bswap; \ + z_bswap = a[26]; \ + a[26] = a[39]; \ + a[39] = z_bswap; \ + z_bswap = a[27]; \ + a[27] = a[38]; \ + a[38] = z_bswap; \ + z_bswap = a[28]; \ + a[28] = a[37]; \ + a[37] = z_bswap; \ + z_bswap = a[29]; \ + a[29] = a[36]; \ + a[36] = z_bswap; \ + z_bswap = a[30]; \ + a[30] = a[35]; \ + a[35] = z_bswap; \ + z_bswap = a[31]; \ + a[31] = a[34]; \ + a[34] = z_bswap; \ + z_bswap = a[32]; \ + a[32] = a[33]; \ + a[33] = z_bswap; \ + } while (0) + +static mp_err +point_mul_g_secp521r1(const mp_int *n, mp_int *out_x, + mp_int *out_y, const ECGroup *group) +{ + unsigned char b_x[66]; + unsigned char b_y[66]; + unsigned char b_n[66]; + mp_err res; + + ARGCHK(n != NULL && out_x != NULL && out_y != NULL, MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n) > 521 || mp_cmp_z(n) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n, b_n, 66)); + MP_BE2LE(b_n); + point_mul_g(b_x, b_y, b_n); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 66)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 66)); + +CLEANUP: + return res; +} + +static mp_err +point_mul_secp521r1(const mp_int *n, const mp_int *in_x, + const mp_int *in_y, mp_int *out_x, + mp_int *out_y, const ECGroup *group) +{ + unsigned char b_x[66]; + unsigned char b_y[66]; + unsigned char b_n[66]; + mp_err res; + + ARGCHK(n != NULL && in_x != NULL && in_y != NULL && out_x != NULL && + out_y != NULL, + MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n) > 521 || mp_cmp_z(n) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n, b_n, 66)); + MP_CHECKOK(mp_to_fixlen_octets(in_x, b_x, 66)); + MP_CHECKOK(mp_to_fixlen_octets(in_y, b_y, 66)); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_BE2LE(b_n); + point_mul(b_x, b_y, b_n, b_x, b_y); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 66)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 66)); + +CLEANUP: + return res; +} + +static mp_err +point_mul_two_secp521r1(const mp_int *n1, const mp_int *n2, + const mp_int *in_x, const mp_int *in_y, + mp_int *out_x, mp_int *out_y, + const ECGroup *group) +{ + unsigned char b_x[66]; + unsigned char b_y[66]; + unsigned char b_n1[66]; + unsigned char b_n2[66]; + mp_err res; + + /* If n2 == NULL, this is just a base-point multiplication. */ + if (n2 == NULL) + return point_mul_g_secp521r1(n1, out_x, out_y, group); + + /* If n1 == NULL, this is just an arbitary-point multiplication. */ + if (n1 == NULL) + return point_mul_secp521r1(n2, in_x, in_y, out_x, out_y, group); + + ARGCHK(in_x != NULL && in_y != NULL && out_x != NULL && out_y != NULL, + MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n1) > 521 || mp_cmp_z(n1) != 1 || + mpl_significant_bits(n2) > 521 || mp_cmp_z(n2) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n1, b_n1, 66)); + MP_CHECKOK(mp_to_fixlen_octets(n2, b_n2, 66)); + MP_CHECKOK(mp_to_fixlen_octets(in_x, b_x, 66)); + MP_CHECKOK(mp_to_fixlen_octets(in_y, b_y, 66)); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_BE2LE(b_n1); + MP_BE2LE(b_n2); + point_mul_two(b_x, b_y, b_n1, b_n2, b_x, b_y); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 66)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 66)); + +CLEANUP: + return res; +} + +mp_err +ec_group_set_secp521r1(ECGroup *group, ECCurveName name) +{ + if (name == ECCurve_NIST_P521) { + group->base_point_mul = &point_mul_g_secp521r1; + group->point_mul = &point_mul_secp521r1; + group->points_mul = &point_mul_two_secp521r1; + } + return MP_OKAY; +} + +#else /* __SIZEOF_INT128__ */ + +#include <stdint.h> +#include <string.h> +#define LIMB_BITS 32 +#define LIMB_CNT 19 +/* Field elements */ +typedef uint32_t fe_t[LIMB_CNT]; +typedef uint32_t limb_t; + +#define fe_copy(d, s) memcpy(d, s, sizeof(fe_t)) +#define fe_set_zero(d) memset(d, 0, sizeof(fe_t)) + +#define fiat_secp521r1_carry_add(c, a, b) \ + fiat_secp521r1_add(c, a, b); \ + fiat_secp521r1_carry(c, c) +#define fiat_secp521r1_carry_sub(c, a, b) \ + fiat_secp521r1_sub(c, a, b); \ + fiat_secp521r1_carry(c, c) + +/* Projective points */ +typedef struct { + fe_t X; + fe_t Y; + fe_t Z; +} pt_prj_t; + +/* Affine points */ +typedef struct { + fe_t X; + fe_t Y; +} pt_aff_t; + +/* BEGIN verbatim fiat code https://github.com/mit-plv/fiat-crypto */ +/*- + * MIT License + * + * Copyright (c) 2020 the fiat-crypto authors (see the AUTHORS file) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* Autogenerated: unsaturated_solinas --static secp521r1 32 '(auto)' '2^521 - 1' */ +/* curve description: secp521r1 */ +/* machine_wordsize = 32 (from "32") */ +/* requested operations: (all) */ +/* n = 19 (from "(auto)") */ +/* s-c = 2^521 - [(1, 1)] (from "2^521 - 1") */ +/* tight_bounds_multiplier = 1.1 (from "") */ +/* */ +/* Computed values: */ +/* carry_chain = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 0, 1] */ +/* eval z = z[0] + (z[1] << 28) + (z[2] << 55) + (z[3] << 83) + (z[4] << 110) + (z[5] << 138) + (z[6] << 165) + (z[7] << 192) + (z[8] << 220) + (z[9] << 247) + (z[10] << 0x113) + (z[11] << 0x12e) + (z[12] << 0x14a) + (z[13] << 0x165) + (z[14] << 0x180) + (z[15] << 0x19c) + (z[16] << 0x1b7) + (z[17] << 0x1d3) + (z[18] << 0x1ee) */ +/* bytes_eval z = z[0] + (z[1] << 8) + (z[2] << 16) + (z[3] << 24) + (z[4] << 32) + (z[5] << 40) + (z[6] << 48) + (z[7] << 56) + (z[8] << 64) + (z[9] << 72) + (z[10] << 80) + (z[11] << 88) + (z[12] << 96) + (z[13] << 104) + (z[14] << 112) + (z[15] << 120) + (z[16] << 128) + (z[17] << 136) + (z[18] << 144) + (z[19] << 152) + (z[20] << 160) + (z[21] << 168) + (z[22] << 176) + (z[23] << 184) + (z[24] << 192) + (z[25] << 200) + (z[26] << 208) + (z[27] << 216) + (z[28] << 224) + (z[29] << 232) + (z[30] << 240) + (z[31] << 248) + (z[32] << 256) + (z[33] << 0x108) + (z[34] << 0x110) + (z[35] << 0x118) + (z[36] << 0x120) + (z[37] << 0x128) + (z[38] << 0x130) + (z[39] << 0x138) + (z[40] << 0x140) + (z[41] << 0x148) + (z[42] << 0x150) + (z[43] << 0x158) + (z[44] << 0x160) + (z[45] << 0x168) + (z[46] << 0x170) + (z[47] << 0x178) + (z[48] << 0x180) + (z[49] << 0x188) + (z[50] << 0x190) + (z[51] << 0x198) + (z[52] << 0x1a0) + (z[53] << 0x1a8) + (z[54] << 0x1b0) + (z[55] << 0x1b8) + (z[56] << 0x1c0) + (z[57] << 0x1c8) + (z[58] << 0x1d0) + (z[59] << 0x1d8) + (z[60] << 0x1e0) + (z[61] << 0x1e8) + (z[62] << 0x1f0) + (z[63] << 0x1f8) + (z[64] << 2^9) + (z[65] << 0x208) */ + +#include <stdint.h> +typedef unsigned char fiat_secp521r1_uint1; +typedef signed char fiat_secp521r1_int1; + +#if (-1 & 3) != 3 +#error "This code only works on a two's complement system" +#endif + +/* + * The function fiat_secp521r1_addcarryx_u28 is an addition with carry. + * Postconditions: + * out1 = (arg1 + arg2 + arg3) mod 2^28 + * out2 = ⌊(arg1 + arg2 + arg3) / 2^28⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0xfffffff] + * arg3: [0x0 ~> 0xfffffff] + * Output Bounds: + * out1: [0x0 ~> 0xfffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp521r1_addcarryx_u28(uint32_t *out1, + fiat_secp521r1_uint1 *out2, + fiat_secp521r1_uint1 arg1, + uint32_t arg2, uint32_t arg3) +{ + uint32_t x1; + uint32_t x2; + fiat_secp521r1_uint1 x3; + x1 = ((arg1 + arg2) + arg3); + x2 = (x1 & UINT32_C(0xfffffff)); + x3 = (fiat_secp521r1_uint1)(x1 >> 28); + *out1 = x2; + *out2 = x3; +} + +/* + * The function fiat_secp521r1_subborrowx_u28 is a subtraction with borrow. + * Postconditions: + * out1 = (-arg1 + arg2 + -arg3) mod 2^28 + * out2 = -⌊(-arg1 + arg2 + -arg3) / 2^28⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0xfffffff] + * arg3: [0x0 ~> 0xfffffff] + * Output Bounds: + * out1: [0x0 ~> 0xfffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp521r1_subborrowx_u28(uint32_t *out1, + fiat_secp521r1_uint1 *out2, + fiat_secp521r1_uint1 arg1, + uint32_t arg2, uint32_t arg3) +{ + int32_t x1; + fiat_secp521r1_int1 x2; + uint32_t x3; + x1 = ((int32_t)(arg2 - arg1) - (int32_t)arg3); + x2 = (fiat_secp521r1_int1)(x1 >> 28); + x3 = (x1 & UINT32_C(0xfffffff)); + *out1 = x3; + *out2 = (fiat_secp521r1_uint1)(0x0 - x2); +} + +/* + * The function fiat_secp521r1_addcarryx_u27 is an addition with carry. + * Postconditions: + * out1 = (arg1 + arg2 + arg3) mod 2^27 + * out2 = ⌊(arg1 + arg2 + arg3) / 2^27⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0x7ffffff] + * arg3: [0x0 ~> 0x7ffffff] + * Output Bounds: + * out1: [0x0 ~> 0x7ffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp521r1_addcarryx_u27(uint32_t *out1, + fiat_secp521r1_uint1 *out2, + fiat_secp521r1_uint1 arg1, + uint32_t arg2, uint32_t arg3) +{ + uint32_t x1; + uint32_t x2; + fiat_secp521r1_uint1 x3; + x1 = ((arg1 + arg2) + arg3); + x2 = (x1 & UINT32_C(0x7ffffff)); + x3 = (fiat_secp521r1_uint1)(x1 >> 27); + *out1 = x2; + *out2 = x3; +} + +/* + * The function fiat_secp521r1_subborrowx_u27 is a subtraction with borrow. + * Postconditions: + * out1 = (-arg1 + arg2 + -arg3) mod 2^27 + * out2 = -⌊(-arg1 + arg2 + -arg3) / 2^27⌋ + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0x7ffffff] + * arg3: [0x0 ~> 0x7ffffff] + * Output Bounds: + * out1: [0x0 ~> 0x7ffffff] + * out2: [0x0 ~> 0x1] + */ +static void +fiat_secp521r1_subborrowx_u27(uint32_t *out1, + fiat_secp521r1_uint1 *out2, + fiat_secp521r1_uint1 arg1, + uint32_t arg2, uint32_t arg3) +{ + int32_t x1; + fiat_secp521r1_int1 x2; + uint32_t x3; + x1 = ((int32_t)(arg2 - arg1) - (int32_t)arg3); + x2 = (fiat_secp521r1_int1)(x1 >> 27); + x3 = (x1 & UINT32_C(0x7ffffff)); + *out1 = x3; + *out2 = (fiat_secp521r1_uint1)(0x0 - x2); +} + +/* + * The function fiat_secp521r1_cmovznz_u32 is a single-word conditional move. + * Postconditions: + * out1 = (if arg1 = 0 then arg2 else arg3) + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [0x0 ~> 0xffffffff] + * arg3: [0x0 ~> 0xffffffff] + * Output Bounds: + * out1: [0x0 ~> 0xffffffff] + */ +static void +fiat_secp521r1_cmovznz_u32(uint32_t *out1, + fiat_secp521r1_uint1 arg1, uint32_t arg2, + uint32_t arg3) +{ + fiat_secp521r1_uint1 x1; + uint32_t x2; + uint32_t x3; + x1 = (!(!arg1)); + x2 = ((fiat_secp521r1_int1)(0x0 - x1) & UINT32_C(0xffffffff)); + x3 = ((x2 & arg3) | ((~x2) & arg2)); + *out1 = x3; +} + +/* + * The function fiat_secp521r1_carry_mul multiplies two field elements and reduces the result. + * Postconditions: + * eval out1 mod m = (eval arg1 * eval arg2) mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664]] + * arg2: [[0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664]] + * Output Bounds: + * out1: [[0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc]] + */ +static void +fiat_secp521r1_carry_mul(uint32_t out1[19], const uint32_t arg1[19], + const uint32_t arg2[19]) +{ + uint64_t x1; + uint64_t x2; + uint64_t x3; + uint64_t x4; + uint64_t x5; + uint64_t x6; + uint64_t x7; + uint64_t x8; + uint64_t x9; + uint64_t x10; + uint64_t x11; + uint64_t x12; + uint64_t x13; + uint64_t x14; + uint64_t x15; + uint64_t x16; + uint64_t x17; + uint64_t x18; + uint64_t x19; + uint64_t x20; + uint64_t x21; + uint64_t x22; + uint64_t x23; + uint64_t x24; + uint64_t x25; + uint64_t x26; + uint64_t x27; + uint64_t x28; + uint64_t x29; + uint64_t x30; + uint64_t x31; + uint64_t x32; + uint64_t x33; + uint64_t x34; + uint64_t x35; + uint64_t x36; + uint64_t x37; + uint64_t x38; + uint64_t x39; + uint64_t x40; + uint64_t x41; + uint64_t x42; + uint64_t x43; + uint64_t x44; + uint64_t x45; + uint64_t x46; + uint64_t x47; + uint64_t x48; + uint64_t x49; + uint64_t x50; + uint64_t x51; + uint64_t x52; + uint64_t x53; + uint64_t x54; + uint64_t x55; + uint64_t x56; + uint64_t x57; + uint64_t x58; + uint64_t x59; + uint64_t x60; + uint64_t x61; + uint64_t x62; + uint64_t x63; + uint64_t x64; + uint64_t x65; + uint64_t x66; + uint64_t x67; + uint64_t x68; + uint64_t x69; + uint64_t x70; + uint64_t x71; + uint64_t x72; + uint64_t x73; + uint64_t x74; + uint64_t x75; + uint64_t x76; + uint64_t x77; + uint64_t x78; + uint64_t x79; + uint64_t x80; + uint64_t x81; + uint64_t x82; + uint64_t x83; + uint64_t x84; + uint64_t x85; + uint64_t x86; + uint64_t x87; + uint64_t x88; + uint64_t x89; + uint64_t x90; + uint64_t x91; + uint64_t x92; + uint64_t x93; + uint64_t x94; + uint64_t x95; + uint64_t x96; + uint64_t x97; + uint64_t x98; + uint64_t x99; + uint64_t x100; + uint64_t x101; + uint64_t x102; + uint64_t x103; + uint64_t x104; + uint64_t x105; + uint64_t x106; + uint64_t x107; + uint64_t x108; + uint64_t x109; + uint64_t x110; + uint64_t x111; + uint64_t x112; + uint64_t x113; + uint64_t x114; + uint64_t x115; + uint64_t x116; + uint64_t x117; + uint64_t x118; + uint64_t x119; + uint64_t x120; + uint64_t x121; + uint64_t x122; + uint64_t x123; + uint64_t x124; + uint64_t x125; + uint64_t x126; + uint64_t x127; + uint64_t x128; + uint64_t x129; + uint64_t x130; + uint64_t x131; + uint64_t x132; + uint64_t x133; + uint64_t x134; + uint64_t x135; + uint64_t x136; + uint64_t x137; + uint64_t x138; + uint64_t x139; + uint64_t x140; + uint64_t x141; + uint64_t x142; + uint64_t x143; + uint64_t x144; + uint64_t x145; + uint64_t x146; + uint64_t x147; + uint64_t x148; + uint64_t x149; + uint64_t x150; + uint64_t x151; + uint64_t x152; + uint64_t x153; + uint64_t x154; + uint64_t x155; + uint64_t x156; + uint64_t x157; + uint64_t x158; + uint64_t x159; + uint64_t x160; + uint64_t x161; + uint64_t x162; + uint64_t x163; + uint64_t x164; + uint64_t x165; + uint64_t x166; + uint64_t x167; + uint64_t x168; + uint64_t x169; + uint64_t x170; + uint64_t x171; + uint64_t x172; + uint64_t x173; + uint64_t x174; + uint64_t x175; + uint64_t x176; + uint64_t x177; + uint64_t x178; + uint64_t x179; + uint64_t x180; + uint64_t x181; + uint64_t x182; + uint64_t x183; + uint64_t x184; + uint64_t x185; + uint64_t x186; + uint64_t x187; + uint64_t x188; + uint64_t x189; + uint64_t x190; + uint64_t x191; + uint64_t x192; + uint64_t x193; + uint64_t x194; + uint64_t x195; + uint64_t x196; + uint64_t x197; + uint64_t x198; + uint64_t x199; + uint64_t x200; + uint64_t x201; + uint64_t x202; + uint64_t x203; + uint64_t x204; + uint64_t x205; + uint64_t x206; + uint64_t x207; + uint64_t x208; + uint64_t x209; + uint64_t x210; + uint64_t x211; + uint64_t x212; + uint64_t x213; + uint64_t x214; + uint64_t x215; + uint64_t x216; + uint64_t x217; + uint64_t x218; + uint64_t x219; + uint64_t x220; + uint64_t x221; + uint64_t x222; + uint64_t x223; + uint64_t x224; + uint64_t x225; + uint64_t x226; + uint64_t x227; + uint64_t x228; + uint64_t x229; + uint64_t x230; + uint64_t x231; + uint64_t x232; + uint64_t x233; + uint64_t x234; + uint64_t x235; + uint64_t x236; + uint64_t x237; + uint64_t x238; + uint64_t x239; + uint64_t x240; + uint64_t x241; + uint64_t x242; + uint64_t x243; + uint64_t x244; + uint64_t x245; + uint64_t x246; + uint64_t x247; + uint64_t x248; + uint64_t x249; + uint64_t x250; + uint64_t x251; + uint64_t x252; + uint64_t x253; + uint64_t x254; + uint64_t x255; + uint64_t x256; + uint64_t x257; + uint64_t x258; + uint64_t x259; + uint64_t x260; + uint64_t x261; + uint64_t x262; + uint64_t x263; + uint64_t x264; + uint64_t x265; + uint64_t x266; + uint64_t x267; + uint64_t x268; + uint64_t x269; + uint64_t x270; + uint64_t x271; + uint64_t x272; + uint64_t x273; + uint64_t x274; + uint64_t x275; + uint64_t x276; + uint64_t x277; + uint64_t x278; + uint64_t x279; + uint64_t x280; + uint64_t x281; + uint64_t x282; + uint64_t x283; + uint64_t x284; + uint64_t x285; + uint64_t x286; + uint64_t x287; + uint64_t x288; + uint64_t x289; + uint64_t x290; + uint64_t x291; + uint64_t x292; + uint64_t x293; + uint64_t x294; + uint64_t x295; + uint64_t x296; + uint64_t x297; + uint64_t x298; + uint64_t x299; + uint64_t x300; + uint64_t x301; + uint64_t x302; + uint64_t x303; + uint64_t x304; + uint64_t x305; + uint64_t x306; + uint64_t x307; + uint64_t x308; + uint64_t x309; + uint64_t x310; + uint64_t x311; + uint64_t x312; + uint64_t x313; + uint64_t x314; + uint64_t x315; + uint64_t x316; + uint64_t x317; + uint64_t x318; + uint64_t x319; + uint64_t x320; + uint64_t x321; + uint64_t x322; + uint64_t x323; + uint64_t x324; + uint64_t x325; + uint64_t x326; + uint64_t x327; + uint64_t x328; + uint64_t x329; + uint64_t x330; + uint64_t x331; + uint64_t x332; + uint64_t x333; + uint64_t x334; + uint64_t x335; + uint64_t x336; + uint64_t x337; + uint64_t x338; + uint64_t x339; + uint64_t x340; + uint64_t x341; + uint64_t x342; + uint64_t x343; + uint64_t x344; + uint64_t x345; + uint64_t x346; + uint64_t x347; + uint64_t x348; + uint64_t x349; + uint64_t x350; + uint64_t x351; + uint64_t x352; + uint64_t x353; + uint64_t x354; + uint64_t x355; + uint64_t x356; + uint64_t x357; + uint64_t x358; + uint64_t x359; + uint64_t x360; + uint64_t x361; + uint64_t x362; + uint64_t x363; + uint32_t x364; + uint64_t x365; + uint64_t x366; + uint64_t x367; + uint64_t x368; + uint64_t x369; + uint64_t x370; + uint64_t x371; + uint64_t x372; + uint64_t x373; + uint64_t x374; + uint64_t x375; + uint64_t x376; + uint64_t x377; + uint64_t x378; + uint64_t x379; + uint64_t x380; + uint64_t x381; + uint64_t x382; + uint64_t x383; + uint64_t x384; + uint32_t x385; + uint64_t x386; + uint64_t x387; + uint32_t x388; + uint64_t x389; + uint64_t x390; + uint32_t x391; + uint64_t x392; + uint64_t x393; + uint32_t x394; + uint64_t x395; + uint64_t x396; + uint32_t x397; + uint64_t x398; + uint64_t x399; + uint32_t x400; + uint64_t x401; + uint64_t x402; + uint32_t x403; + uint64_t x404; + uint64_t x405; + uint32_t x406; + uint64_t x407; + uint64_t x408; + uint32_t x409; + uint64_t x410; + uint64_t x411; + uint32_t x412; + uint64_t x413; + uint64_t x414; + uint32_t x415; + uint64_t x416; + uint64_t x417; + uint32_t x418; + uint64_t x419; + uint64_t x420; + uint32_t x421; + uint64_t x422; + uint64_t x423; + uint32_t x424; + uint64_t x425; + uint64_t x426; + uint32_t x427; + uint64_t x428; + uint64_t x429; + uint32_t x430; + uint64_t x431; + uint64_t x432; + uint32_t x433; + uint64_t x434; + uint64_t x435; + uint32_t x436; + uint64_t x437; + uint32_t x438; + uint32_t x439; + uint32_t x440; + fiat_secp521r1_uint1 x441; + uint32_t x442; + uint32_t x443; + x1 = ((uint64_t)(arg1[18]) * (arg2[18])); + x2 = ((uint64_t)(arg1[18]) * ((arg2[17]) * 0x2)); + x3 = ((uint64_t)(arg1[18]) * (arg2[16])); + x4 = ((uint64_t)(arg1[18]) * ((arg2[15]) * 0x2)); + x5 = ((uint64_t)(arg1[18]) * (arg2[14])); + x6 = ((uint64_t)(arg1[18]) * (arg2[13])); + x7 = ((uint64_t)(arg1[18]) * ((arg2[12]) * 0x2)); + x8 = ((uint64_t)(arg1[18]) * (arg2[11])); + x9 = ((uint64_t)(arg1[18]) * ((arg2[10]) * 0x2)); + x10 = ((uint64_t)(arg1[18]) * (arg2[9])); + x11 = ((uint64_t)(arg1[18]) * ((arg2[8]) * 0x2)); + x12 = ((uint64_t)(arg1[18]) * (arg2[7])); + x13 = ((uint64_t)(arg1[18]) * (arg2[6])); + x14 = ((uint64_t)(arg1[18]) * ((arg2[5]) * 0x2)); + x15 = ((uint64_t)(arg1[18]) * (arg2[4])); + x16 = ((uint64_t)(arg1[18]) * ((arg2[3]) * 0x2)); + x17 = ((uint64_t)(arg1[18]) * (arg2[2])); + x18 = ((uint64_t)(arg1[18]) * ((arg2[1]) * 0x2)); + x19 = ((uint64_t)(arg1[17]) * ((arg2[18]) * 0x2)); + x20 = ((uint64_t)(arg1[17]) * ((arg2[17]) * 0x2)); + x21 = ((uint64_t)(arg1[17]) * ((arg2[16]) * 0x2)); + x22 = ((uint64_t)(arg1[17]) * ((arg2[15]) * 0x2)); + x23 = ((uint64_t)(arg1[17]) * (arg2[14])); + x24 = ((uint64_t)(arg1[17]) * ((arg2[13]) * 0x2)); + x25 = ((uint64_t)(arg1[17]) * ((arg2[12]) * 0x2)); + x26 = ((uint64_t)(arg1[17]) * ((arg2[11]) * 0x2)); + x27 = ((uint64_t)(arg1[17]) * ((arg2[10]) * 0x2)); + x28 = ((uint64_t)(arg1[17]) * ((arg2[9]) * 0x2)); + x29 = ((uint64_t)(arg1[17]) * ((arg2[8]) * 0x2)); + x30 = ((uint64_t)(arg1[17]) * (arg2[7])); + x31 = ((uint64_t)(arg1[17]) * ((arg2[6]) * 0x2)); + x32 = ((uint64_t)(arg1[17]) * ((arg2[5]) * 0x2)); + x33 = ((uint64_t)(arg1[17]) * ((arg2[4]) * 0x2)); + x34 = ((uint64_t)(arg1[17]) * ((arg2[3]) * 0x2)); + x35 = ((uint64_t)(arg1[17]) * ((arg2[2]) * 0x2)); + x36 = ((uint64_t)(arg1[16]) * (arg2[18])); + x37 = ((uint64_t)(arg1[16]) * ((arg2[17]) * 0x2)); + x38 = ((uint64_t)(arg1[16]) * (arg2[16])); + x39 = ((uint64_t)(arg1[16]) * (arg2[15])); + x40 = ((uint64_t)(arg1[16]) * (arg2[14])); + x41 = ((uint64_t)(arg1[16]) * (arg2[13])); + x42 = ((uint64_t)(arg1[16]) * ((arg2[12]) * 0x2)); + x43 = ((uint64_t)(arg1[16]) * (arg2[11])); + x44 = ((uint64_t)(arg1[16]) * ((arg2[10]) * 0x2)); + x45 = ((uint64_t)(arg1[16]) * (arg2[9])); + x46 = ((uint64_t)(arg1[16]) * (arg2[8])); + x47 = ((uint64_t)(arg1[16]) * (arg2[7])); + x48 = ((uint64_t)(arg1[16]) * (arg2[6])); + x49 = ((uint64_t)(arg1[16]) * ((arg2[5]) * 0x2)); + x50 = ((uint64_t)(arg1[16]) * (arg2[4])); + x51 = ((uint64_t)(arg1[16]) * ((arg2[3]) * 0x2)); + x52 = ((uint64_t)(arg1[15]) * ((arg2[18]) * 0x2)); + x53 = ((uint64_t)(arg1[15]) * ((arg2[17]) * 0x2)); + x54 = ((uint64_t)(arg1[15]) * (arg2[16])); + x55 = ((uint64_t)(arg1[15]) * ((arg2[15]) * 0x2)); + x56 = ((uint64_t)(arg1[15]) * (arg2[14])); + x57 = ((uint64_t)(arg1[15]) * ((arg2[13]) * 0x2)); + x58 = ((uint64_t)(arg1[15]) * ((arg2[12]) * 0x2)); + x59 = ((uint64_t)(arg1[15]) * ((arg2[11]) * 0x2)); + x60 = ((uint64_t)(arg1[15]) * ((arg2[10]) * 0x2)); + x61 = ((uint64_t)(arg1[15]) * (arg2[9])); + x62 = ((uint64_t)(arg1[15]) * ((arg2[8]) * 0x2)); + x63 = ((uint64_t)(arg1[15]) * (arg2[7])); + x64 = ((uint64_t)(arg1[15]) * ((arg2[6]) * 0x2)); + x65 = ((uint64_t)(arg1[15]) * ((arg2[5]) * 0x2)); + x66 = ((uint64_t)(arg1[15]) * ((arg2[4]) * 0x2)); + x67 = ((uint64_t)(arg1[14]) * (arg2[18])); + x68 = ((uint64_t)(arg1[14]) * (arg2[17])); + x69 = ((uint64_t)(arg1[14]) * (arg2[16])); + x70 = ((uint64_t)(arg1[14]) * (arg2[15])); + x71 = ((uint64_t)(arg1[14]) * (arg2[14])); + x72 = ((uint64_t)(arg1[14]) * (arg2[13])); + x73 = ((uint64_t)(arg1[14]) * ((arg2[12]) * 0x2)); + x74 = ((uint64_t)(arg1[14]) * (arg2[11])); + x75 = ((uint64_t)(arg1[14]) * (arg2[10])); + x76 = ((uint64_t)(arg1[14]) * (arg2[9])); + x77 = ((uint64_t)(arg1[14]) * (arg2[8])); + x78 = ((uint64_t)(arg1[14]) * (arg2[7])); + x79 = ((uint64_t)(arg1[14]) * (arg2[6])); + x80 = ((uint64_t)(arg1[14]) * ((arg2[5]) * 0x2)); + x81 = ((uint64_t)(arg1[13]) * (arg2[18])); + x82 = ((uint64_t)(arg1[13]) * ((arg2[17]) * 0x2)); + x83 = ((uint64_t)(arg1[13]) * (arg2[16])); + x84 = ((uint64_t)(arg1[13]) * ((arg2[15]) * 0x2)); + x85 = ((uint64_t)(arg1[13]) * (arg2[14])); + x86 = ((uint64_t)(arg1[13]) * ((arg2[13]) * 0x2)); + x87 = ((uint64_t)(arg1[13]) * ((arg2[12]) * 0x2)); + x88 = ((uint64_t)(arg1[13]) * (arg2[11])); + x89 = ((uint64_t)(arg1[13]) * ((arg2[10]) * 0x2)); + x90 = ((uint64_t)(arg1[13]) * (arg2[9])); + x91 = ((uint64_t)(arg1[13]) * ((arg2[8]) * 0x2)); + x92 = ((uint64_t)(arg1[13]) * (arg2[7])); + x93 = ((uint64_t)(arg1[13]) * ((arg2[6]) * 0x2)); + x94 = ((uint64_t)(arg1[12]) * ((arg2[18]) * 0x2)); + x95 = ((uint64_t)(arg1[12]) * ((arg2[17]) * 0x2)); + x96 = ((uint64_t)(arg1[12]) * ((arg2[16]) * 0x2)); + x97 = ((uint64_t)(arg1[12]) * ((arg2[15]) * 0x2)); + x98 = ((uint64_t)(arg1[12]) * ((arg2[14]) * 0x2)); + x99 = ((uint64_t)(arg1[12]) * ((arg2[13]) * 0x2)); + x100 = ((uint64_t)(arg1[12]) * ((arg2[12]) * 0x2)); + x101 = ((uint64_t)(arg1[12]) * ((arg2[11]) * 0x2)); + x102 = ((uint64_t)(arg1[12]) * ((arg2[10]) * 0x2)); + x103 = ((uint64_t)(arg1[12]) * ((arg2[9]) * 0x2)); + x104 = ((uint64_t)(arg1[12]) * ((arg2[8]) * 0x2)); + x105 = ((uint64_t)(arg1[12]) * ((arg2[7]) * 0x2)); + x106 = ((uint64_t)(arg1[11]) * (arg2[18])); + x107 = ((uint64_t)(arg1[11]) * ((arg2[17]) * 0x2)); + x108 = ((uint64_t)(arg1[11]) * (arg2[16])); + x109 = ((uint64_t)(arg1[11]) * ((arg2[15]) * 0x2)); + x110 = ((uint64_t)(arg1[11]) * (arg2[14])); + x111 = ((uint64_t)(arg1[11]) * (arg2[13])); + x112 = ((uint64_t)(arg1[11]) * ((arg2[12]) * 0x2)); + x113 = ((uint64_t)(arg1[11]) * (arg2[11])); + x114 = ((uint64_t)(arg1[11]) * ((arg2[10]) * 0x2)); + x115 = ((uint64_t)(arg1[11]) * (arg2[9])); + x116 = ((uint64_t)(arg1[11]) * ((arg2[8]) * 0x2)); + x117 = ((uint64_t)(arg1[10]) * ((arg2[18]) * 0x2)); + x118 = ((uint64_t)(arg1[10]) * ((arg2[17]) * 0x2)); + x119 = ((uint64_t)(arg1[10]) * ((arg2[16]) * 0x2)); + x120 = ((uint64_t)(arg1[10]) * ((arg2[15]) * 0x2)); + x121 = ((uint64_t)(arg1[10]) * (arg2[14])); + x122 = ((uint64_t)(arg1[10]) * ((arg2[13]) * 0x2)); + x123 = ((uint64_t)(arg1[10]) * ((arg2[12]) * 0x2)); + x124 = ((uint64_t)(arg1[10]) * ((arg2[11]) * 0x2)); + x125 = ((uint64_t)(arg1[10]) * ((arg2[10]) * 0x2)); + x126 = ((uint64_t)(arg1[10]) * ((arg2[9]) * 0x2)); + x127 = ((uint64_t)(arg1[9]) * (arg2[18])); + x128 = ((uint64_t)(arg1[9]) * ((arg2[17]) * 0x2)); + x129 = ((uint64_t)(arg1[9]) * (arg2[16])); + x130 = ((uint64_t)(arg1[9]) * (arg2[15])); + x131 = ((uint64_t)(arg1[9]) * (arg2[14])); + x132 = ((uint64_t)(arg1[9]) * (arg2[13])); + x133 = ((uint64_t)(arg1[9]) * ((arg2[12]) * 0x2)); + x134 = ((uint64_t)(arg1[9]) * (arg2[11])); + x135 = ((uint64_t)(arg1[9]) * ((arg2[10]) * 0x2)); + x136 = ((uint64_t)(arg1[8]) * ((arg2[18]) * 0x2)); + x137 = ((uint64_t)(arg1[8]) * ((arg2[17]) * 0x2)); + x138 = ((uint64_t)(arg1[8]) * (arg2[16])); + x139 = ((uint64_t)(arg1[8]) * ((arg2[15]) * 0x2)); + x140 = ((uint64_t)(arg1[8]) * (arg2[14])); + x141 = ((uint64_t)(arg1[8]) * ((arg2[13]) * 0x2)); + x142 = ((uint64_t)(arg1[8]) * ((arg2[12]) * 0x2)); + x143 = ((uint64_t)(arg1[8]) * ((arg2[11]) * 0x2)); + x144 = ((uint64_t)(arg1[7]) * (arg2[18])); + x145 = ((uint64_t)(arg1[7]) * (arg2[17])); + x146 = ((uint64_t)(arg1[7]) * (arg2[16])); + x147 = ((uint64_t)(arg1[7]) * (arg2[15])); + x148 = ((uint64_t)(arg1[7]) * (arg2[14])); + x149 = ((uint64_t)(arg1[7]) * (arg2[13])); + x150 = ((uint64_t)(arg1[7]) * ((arg2[12]) * 0x2)); + x151 = ((uint64_t)(arg1[6]) * (arg2[18])); + x152 = ((uint64_t)(arg1[6]) * ((arg2[17]) * 0x2)); + x153 = ((uint64_t)(arg1[6]) * (arg2[16])); + x154 = ((uint64_t)(arg1[6]) * ((arg2[15]) * 0x2)); + x155 = ((uint64_t)(arg1[6]) * (arg2[14])); + x156 = ((uint64_t)(arg1[6]) * ((arg2[13]) * 0x2)); + x157 = ((uint64_t)(arg1[5]) * ((arg2[18]) * 0x2)); + x158 = ((uint64_t)(arg1[5]) * ((arg2[17]) * 0x2)); + x159 = ((uint64_t)(arg1[5]) * ((arg2[16]) * 0x2)); + x160 = ((uint64_t)(arg1[5]) * ((arg2[15]) * 0x2)); + x161 = ((uint64_t)(arg1[5]) * ((arg2[14]) * 0x2)); + x162 = ((uint64_t)(arg1[4]) * (arg2[18])); + x163 = ((uint64_t)(arg1[4]) * ((arg2[17]) * 0x2)); + x164 = ((uint64_t)(arg1[4]) * (arg2[16])); + x165 = ((uint64_t)(arg1[4]) * ((arg2[15]) * 0x2)); + x166 = ((uint64_t)(arg1[3]) * ((arg2[18]) * 0x2)); + x167 = ((uint64_t)(arg1[3]) * ((arg2[17]) * 0x2)); + x168 = ((uint64_t)(arg1[3]) * ((arg2[16]) * 0x2)); + x169 = ((uint64_t)(arg1[2]) * (arg2[18])); + x170 = ((uint64_t)(arg1[2]) * ((arg2[17]) * 0x2)); + x171 = ((uint64_t)(arg1[1]) * ((arg2[18]) * 0x2)); + x172 = ((uint64_t)(arg1[18]) * (arg2[0])); + x173 = ((uint64_t)(arg1[17]) * ((arg2[1]) * 0x2)); + x174 = ((uint64_t)(arg1[17]) * (arg2[0])); + x175 = ((uint64_t)(arg1[16]) * (arg2[2])); + x176 = ((uint64_t)(arg1[16]) * (arg2[1])); + x177 = ((uint64_t)(arg1[16]) * (arg2[0])); + x178 = ((uint64_t)(arg1[15]) * ((arg2[3]) * 0x2)); + x179 = ((uint64_t)(arg1[15]) * (arg2[2])); + x180 = ((uint64_t)(arg1[15]) * ((arg2[1]) * 0x2)); + x181 = ((uint64_t)(arg1[15]) * (arg2[0])); + x182 = ((uint64_t)(arg1[14]) * (arg2[4])); + x183 = ((uint64_t)(arg1[14]) * (arg2[3])); + x184 = ((uint64_t)(arg1[14]) * (arg2[2])); + x185 = ((uint64_t)(arg1[14]) * (arg2[1])); + x186 = ((uint64_t)(arg1[14]) * (arg2[0])); + x187 = ((uint64_t)(arg1[13]) * ((arg2[5]) * 0x2)); + x188 = ((uint64_t)(arg1[13]) * (arg2[4])); + x189 = ((uint64_t)(arg1[13]) * ((arg2[3]) * 0x2)); + x190 = ((uint64_t)(arg1[13]) * (arg2[2])); + x191 = ((uint64_t)(arg1[13]) * ((arg2[1]) * 0x2)); + x192 = ((uint64_t)(arg1[13]) * (arg2[0])); + x193 = ((uint64_t)(arg1[12]) * ((arg2[6]) * 0x2)); + x194 = ((uint64_t)(arg1[12]) * ((arg2[5]) * 0x2)); + x195 = ((uint64_t)(arg1[12]) * ((arg2[4]) * 0x2)); + x196 = ((uint64_t)(arg1[12]) * ((arg2[3]) * 0x2)); + x197 = ((uint64_t)(arg1[12]) * ((arg2[2]) * 0x2)); + x198 = ((uint64_t)(arg1[12]) * ((arg2[1]) * 0x2)); + x199 = ((uint64_t)(arg1[12]) * (arg2[0])); + x200 = ((uint64_t)(arg1[11]) * (arg2[7])); + x201 = ((uint64_t)(arg1[11]) * (arg2[6])); + x202 = ((uint64_t)(arg1[11]) * ((arg2[5]) * 0x2)); + x203 = ((uint64_t)(arg1[11]) * (arg2[4])); + x204 = ((uint64_t)(arg1[11]) * ((arg2[3]) * 0x2)); + x205 = ((uint64_t)(arg1[11]) * (arg2[2])); + x206 = ((uint64_t)(arg1[11]) * (arg2[1])); + x207 = ((uint64_t)(arg1[11]) * (arg2[0])); + x208 = ((uint64_t)(arg1[10]) * ((arg2[8]) * 0x2)); + x209 = ((uint64_t)(arg1[10]) * (arg2[7])); + x210 = ((uint64_t)(arg1[10]) * ((arg2[6]) * 0x2)); + x211 = ((uint64_t)(arg1[10]) * ((arg2[5]) * 0x2)); + x212 = ((uint64_t)(arg1[10]) * ((arg2[4]) * 0x2)); + x213 = ((uint64_t)(arg1[10]) * ((arg2[3]) * 0x2)); + x214 = ((uint64_t)(arg1[10]) * (arg2[2])); + x215 = ((uint64_t)(arg1[10]) * ((arg2[1]) * 0x2)); + x216 = ((uint64_t)(arg1[10]) * (arg2[0])); + x217 = ((uint64_t)(arg1[9]) * (arg2[9])); + x218 = ((uint64_t)(arg1[9]) * (arg2[8])); + x219 = ((uint64_t)(arg1[9]) * (arg2[7])); + x220 = ((uint64_t)(arg1[9]) * (arg2[6])); + x221 = ((uint64_t)(arg1[9]) * ((arg2[5]) * 0x2)); + x222 = ((uint64_t)(arg1[9]) * (arg2[4])); + x223 = ((uint64_t)(arg1[9]) * (arg2[3])); + x224 = ((uint64_t)(arg1[9]) * (arg2[2])); + x225 = ((uint64_t)(arg1[9]) * (arg2[1])); + x226 = ((uint64_t)(arg1[9]) * (arg2[0])); + x227 = ((uint64_t)(arg1[8]) * ((arg2[10]) * 0x2)); + x228 = ((uint64_t)(arg1[8]) * (arg2[9])); + x229 = ((uint64_t)(arg1[8]) * ((arg2[8]) * 0x2)); + x230 = ((uint64_t)(arg1[8]) * (arg2[7])); + x231 = ((uint64_t)(arg1[8]) * ((arg2[6]) * 0x2)); + x232 = ((uint64_t)(arg1[8]) * ((arg2[5]) * 0x2)); + x233 = ((uint64_t)(arg1[8]) * (arg2[4])); + x234 = ((uint64_t)(arg1[8]) * ((arg2[3]) * 0x2)); + x235 = ((uint64_t)(arg1[8]) * (arg2[2])); + x236 = ((uint64_t)(arg1[8]) * ((arg2[1]) * 0x2)); + x237 = ((uint64_t)(arg1[8]) * (arg2[0])); + x238 = ((uint64_t)(arg1[7]) * (arg2[11])); + x239 = ((uint64_t)(arg1[7]) * (arg2[10])); + x240 = ((uint64_t)(arg1[7]) * (arg2[9])); + x241 = ((uint64_t)(arg1[7]) * (arg2[8])); + x242 = ((uint64_t)(arg1[7]) * (arg2[7])); + x243 = ((uint64_t)(arg1[7]) * (arg2[6])); + x244 = ((uint64_t)(arg1[7]) * (arg2[5])); + x245 = ((uint64_t)(arg1[7]) * (arg2[4])); + x246 = ((uint64_t)(arg1[7]) * (arg2[3])); + x247 = ((uint64_t)(arg1[7]) * (arg2[2])); + x248 = ((uint64_t)(arg1[7]) * (arg2[1])); + x249 = ((uint64_t)(arg1[7]) * (arg2[0])); + x250 = ((uint64_t)(arg1[6]) * ((arg2[12]) * 0x2)); + x251 = ((uint64_t)(arg1[6]) * (arg2[11])); + x252 = ((uint64_t)(arg1[6]) * ((arg2[10]) * 0x2)); + x253 = ((uint64_t)(arg1[6]) * (arg2[9])); + x254 = ((uint64_t)(arg1[6]) * ((arg2[8]) * 0x2)); + x255 = ((uint64_t)(arg1[6]) * (arg2[7])); + x256 = ((uint64_t)(arg1[6]) * (arg2[6])); + x257 = ((uint64_t)(arg1[6]) * ((arg2[5]) * 0x2)); + x258 = ((uint64_t)(arg1[6]) * (arg2[4])); + x259 = ((uint64_t)(arg1[6]) * ((arg2[3]) * 0x2)); + x260 = ((uint64_t)(arg1[6]) * (arg2[2])); + x261 = ((uint64_t)(arg1[6]) * ((arg2[1]) * 0x2)); + x262 = ((uint64_t)(arg1[6]) * (arg2[0])); + x263 = ((uint64_t)(arg1[5]) * ((arg2[13]) * 0x2)); + x264 = ((uint64_t)(arg1[5]) * ((arg2[12]) * 0x2)); + x265 = ((uint64_t)(arg1[5]) * ((arg2[11]) * 0x2)); + x266 = ((uint64_t)(arg1[5]) * ((arg2[10]) * 0x2)); + x267 = ((uint64_t)(arg1[5]) * ((arg2[9]) * 0x2)); + x268 = ((uint64_t)(arg1[5]) * ((arg2[8]) * 0x2)); + x269 = ((uint64_t)(arg1[5]) * (arg2[7])); + x270 = ((uint64_t)(arg1[5]) * ((arg2[6]) * 0x2)); + x271 = ((uint64_t)(arg1[5]) * ((arg2[5]) * 0x2)); + x272 = ((uint64_t)(arg1[5]) * ((arg2[4]) * 0x2)); + x273 = ((uint64_t)(arg1[5]) * ((arg2[3]) * 0x2)); + x274 = ((uint64_t)(arg1[5]) * ((arg2[2]) * 0x2)); + x275 = ((uint64_t)(arg1[5]) * ((arg2[1]) * 0x2)); + x276 = ((uint64_t)(arg1[5]) * (arg2[0])); + x277 = ((uint64_t)(arg1[4]) * (arg2[14])); + x278 = ((uint64_t)(arg1[4]) * (arg2[13])); + x279 = ((uint64_t)(arg1[4]) * ((arg2[12]) * 0x2)); + x280 = ((uint64_t)(arg1[4]) * (arg2[11])); + x281 = ((uint64_t)(arg1[4]) * ((arg2[10]) * 0x2)); + x282 = ((uint64_t)(arg1[4]) * (arg2[9])); + x283 = ((uint64_t)(arg1[4]) * (arg2[8])); + x284 = ((uint64_t)(arg1[4]) * (arg2[7])); + x285 = ((uint64_t)(arg1[4]) * (arg2[6])); + x286 = ((uint64_t)(arg1[4]) * ((arg2[5]) * 0x2)); + x287 = ((uint64_t)(arg1[4]) * (arg2[4])); + x288 = ((uint64_t)(arg1[4]) * ((arg2[3]) * 0x2)); + x289 = ((uint64_t)(arg1[4]) * (arg2[2])); + x290 = ((uint64_t)(arg1[4]) * (arg2[1])); + x291 = ((uint64_t)(arg1[4]) * (arg2[0])); + x292 = ((uint64_t)(arg1[3]) * ((arg2[15]) * 0x2)); + x293 = ((uint64_t)(arg1[3]) * (arg2[14])); + x294 = ((uint64_t)(arg1[3]) * ((arg2[13]) * 0x2)); + x295 = ((uint64_t)(arg1[3]) * ((arg2[12]) * 0x2)); + x296 = ((uint64_t)(arg1[3]) * ((arg2[11]) * 0x2)); + x297 = ((uint64_t)(arg1[3]) * ((arg2[10]) * 0x2)); + x298 = ((uint64_t)(arg1[3]) * (arg2[9])); + x299 = ((uint64_t)(arg1[3]) * ((arg2[8]) * 0x2)); + x300 = ((uint64_t)(arg1[3]) * (arg2[7])); + x301 = ((uint64_t)(arg1[3]) * ((arg2[6]) * 0x2)); + x302 = ((uint64_t)(arg1[3]) * ((arg2[5]) * 0x2)); + x303 = ((uint64_t)(arg1[3]) * ((arg2[4]) * 0x2)); + x304 = ((uint64_t)(arg1[3]) * ((arg2[3]) * 0x2)); + x305 = ((uint64_t)(arg1[3]) * (arg2[2])); + x306 = ((uint64_t)(arg1[3]) * ((arg2[1]) * 0x2)); + x307 = ((uint64_t)(arg1[3]) * (arg2[0])); + x308 = ((uint64_t)(arg1[2]) * (arg2[16])); + x309 = ((uint64_t)(arg1[2]) * (arg2[15])); + x310 = ((uint64_t)(arg1[2]) * (arg2[14])); + x311 = ((uint64_t)(arg1[2]) * (arg2[13])); + x312 = ((uint64_t)(arg1[2]) * ((arg2[12]) * 0x2)); + x313 = ((uint64_t)(arg1[2]) * (arg2[11])); + x314 = ((uint64_t)(arg1[2]) * (arg2[10])); + x315 = ((uint64_t)(arg1[2]) * (arg2[9])); + x316 = ((uint64_t)(arg1[2]) * (arg2[8])); + x317 = ((uint64_t)(arg1[2]) * (arg2[7])); + x318 = ((uint64_t)(arg1[2]) * (arg2[6])); + x319 = ((uint64_t)(arg1[2]) * ((arg2[5]) * 0x2)); + x320 = ((uint64_t)(arg1[2]) * (arg2[4])); + x321 = ((uint64_t)(arg1[2]) * (arg2[3])); + x322 = ((uint64_t)(arg1[2]) * (arg2[2])); + x323 = ((uint64_t)(arg1[2]) * (arg2[1])); + x324 = ((uint64_t)(arg1[2]) * (arg2[0])); + x325 = ((uint64_t)(arg1[1]) * ((arg2[17]) * 0x2)); + x326 = ((uint64_t)(arg1[1]) * (arg2[16])); + x327 = ((uint64_t)(arg1[1]) * ((arg2[15]) * 0x2)); + x328 = ((uint64_t)(arg1[1]) * (arg2[14])); + x329 = ((uint64_t)(arg1[1]) * ((arg2[13]) * 0x2)); + x330 = ((uint64_t)(arg1[1]) * ((arg2[12]) * 0x2)); + x331 = ((uint64_t)(arg1[1]) * (arg2[11])); + x332 = ((uint64_t)(arg1[1]) * ((arg2[10]) * 0x2)); + x333 = ((uint64_t)(arg1[1]) * (arg2[9])); + x334 = ((uint64_t)(arg1[1]) * ((arg2[8]) * 0x2)); + x335 = ((uint64_t)(arg1[1]) * (arg2[7])); + x336 = ((uint64_t)(arg1[1]) * ((arg2[6]) * 0x2)); + x337 = ((uint64_t)(arg1[1]) * ((arg2[5]) * 0x2)); + x338 = ((uint64_t)(arg1[1]) * (arg2[4])); + x339 = ((uint64_t)(arg1[1]) * ((arg2[3]) * 0x2)); + x340 = ((uint64_t)(arg1[1]) * (arg2[2])); + x341 = ((uint64_t)(arg1[1]) * ((arg2[1]) * 0x2)); + x342 = ((uint64_t)(arg1[1]) * (arg2[0])); + x343 = ((uint64_t)(arg1[0]) * (arg2[18])); + x344 = ((uint64_t)(arg1[0]) * (arg2[17])); + x345 = ((uint64_t)(arg1[0]) * (arg2[16])); + x346 = ((uint64_t)(arg1[0]) * (arg2[15])); + x347 = ((uint64_t)(arg1[0]) * (arg2[14])); + x348 = ((uint64_t)(arg1[0]) * (arg2[13])); + x349 = ((uint64_t)(arg1[0]) * (arg2[12])); + x350 = ((uint64_t)(arg1[0]) * (arg2[11])); + x351 = ((uint64_t)(arg1[0]) * (arg2[10])); + x352 = ((uint64_t)(arg1[0]) * (arg2[9])); + x353 = ((uint64_t)(arg1[0]) * (arg2[8])); + x354 = ((uint64_t)(arg1[0]) * (arg2[7])); + x355 = ((uint64_t)(arg1[0]) * (arg2[6])); + x356 = ((uint64_t)(arg1[0]) * (arg2[5])); + x357 = ((uint64_t)(arg1[0]) * (arg2[4])); + x358 = ((uint64_t)(arg1[0]) * (arg2[3])); + x359 = ((uint64_t)(arg1[0]) * (arg2[2])); + x360 = ((uint64_t)(arg1[0]) * (arg2[1])); + x361 = ((uint64_t)(arg1[0]) * (arg2[0])); + x362 = + (x361 + + (x171 + + (x170 + + (x168 + + (x165 + + (x161 + + (x156 + + (x150 + + (x143 + + (x135 + + (x126 + + (x116 + + (x105 + + (x93 + (x80 + (x66 + (x51 + (x35 + x18)))))))))))))))))); + x363 = (x362 >> 28); + x364 = (uint32_t)(x362 & UINT32_C(0xfffffff)); + x365 = (x343 + + (x325 + + (x308 + + (x292 + + (x277 + + (x263 + + (x250 + + (x238 + + (x227 + + (x217 + + (x208 + + (x200 + + (x193 + + (x187 + + (x182 + (x178 + (x175 + (x173 + x172)))))))))))))))))); + x366 = (x344 + + (x326 + + (x309 + + (x293 + + (x278 + + (x264 + + (x251 + + (x239 + + (x228 + + (x218 + + (x209 + + (x201 + + (x194 + + (x188 + + (x183 + (x179 + (x176 + (x174 + x1)))))))))))))))))); + x367 = (x345 + + (x327 + + (x310 + + (x294 + + (x279 + + (x265 + + (x252 + + (x240 + + (x229 + + (x219 + + (x210 + + (x202 + + (x195 + + (x189 + + (x184 + (x180 + (x177 + (x19 + x2)))))))))))))))))); + x368 = + (x346 + + (x328 + + (x311 + + (x295 + + (x280 + + (x266 + + (x253 + + (x241 + + (x230 + + (x220 + + (x211 + + (x203 + + (x196 + + (x190 + (x185 + (x181 + (x36 + (x20 + x3)))))))))))))))))); + x369 = + (x347 + + (x329 + + (x312 + + (x296 + + (x281 + + (x267 + + (x254 + + (x242 + + (x231 + + (x221 + + (x212 + + (x204 + + (x197 + + (x191 + (x186 + (x52 + (x37 + (x21 + x4)))))))))))))))))); + x370 = + (x348 + + (x330 + + (x313 + + (x297 + + (x282 + + (x268 + + (x255 + + (x243 + + (x232 + + (x222 + + (x213 + + (x205 + + (x198 + + (x192 + (x67 + (x53 + (x38 + (x22 + x5)))))))))))))))))); + x371 = (x349 + + (x331 + + (x314 + + (x298 + + (x283 + + (x269 + + (x256 + + (x244 + + (x233 + + (x223 + + (x214 + + (x206 + + (x199 + + (x81 + (x68 + (x54 + (x39 + (x23 + x6)))))))))))))))))); + x372 = (x350 + + (x332 + + (x315 + + (x299 + + (x284 + + (x270 + + (x257 + + (x245 + + (x234 + + (x224 + + (x215 + + (x207 + + (x94 + + (x82 + (x69 + (x55 + (x40 + (x24 + x7)))))))))))))))))); + x373 = (x351 + + (x333 + + (x316 + + (x300 + + (x285 + + (x271 + + (x258 + + (x246 + + (x235 + + (x225 + + (x216 + + (x106 + + (x95 + + (x83 + (x70 + (x56 + (x41 + (x25 + x8)))))))))))))))))); + x374 = (x352 + + (x334 + + (x317 + + (x301 + + (x286 + + (x272 + + (x259 + + (x247 + + (x236 + + (x226 + + (x117 + + (x107 + + (x96 + + (x84 + (x71 + (x57 + (x42 + (x26 + x9)))))))))))))))))); + x375 = + (x353 + + (x335 + + (x318 + + (x302 + + (x287 + + (x273 + + (x260 + + (x248 + + (x237 + + (x127 + + (x118 + + (x108 + + (x97 + + (x85 + (x72 + (x58 + (x43 + (x27 + x10)))))))))))))))))); + x376 = + (x354 + + (x336 + + (x319 + + (x303 + + (x288 + + (x274 + + (x261 + + (x249 + + (x136 + + (x128 + + (x119 + + (x109 + + (x98 + + (x86 + (x73 + (x59 + (x44 + (x28 + x11)))))))))))))))))); + x377 = + (x355 + + (x337 + + (x320 + + (x304 + + (x289 + + (x275 + + (x262 + + (x144 + + (x137 + + (x129 + + (x120 + + (x110 + + (x99 + + (x87 + (x74 + (x60 + (x45 + (x29 + x12)))))))))))))))))); + x378 = + (x356 + + (x338 + + (x321 + + (x305 + + (x290 + + (x276 + + (x151 + + (x145 + + (x138 + + (x130 + + (x121 + + (x111 + + (x100 + + (x88 + (x75 + (x61 + (x46 + (x30 + x13)))))))))))))))))); + x379 = + (x357 + + (x339 + + (x322 + + (x306 + + (x291 + + (x157 + + (x152 + + (x146 + + (x139 + + (x131 + + (x122 + + (x112 + + (x101 + + (x89 + (x76 + (x62 + (x47 + (x31 + x14)))))))))))))))))); + x380 = + (x358 + + (x340 + + (x323 + + (x307 + + (x162 + + (x158 + + (x153 + + (x147 + + (x140 + + (x132 + + (x123 + + (x113 + + (x102 + + (x90 + (x77 + (x63 + (x48 + (x32 + x15)))))))))))))))))); + x381 = + (x359 + + (x341 + + (x324 + + (x166 + + (x163 + + (x159 + + (x154 + + (x148 + + (x141 + + (x133 + + (x124 + + (x114 + + (x103 + + (x91 + (x78 + (x64 + (x49 + (x33 + x16)))))))))))))))))); + x382 = + (x360 + + (x342 + + (x169 + + (x167 + + (x164 + + (x160 + + (x155 + + (x149 + + (x142 + + (x134 + + (x125 + + (x115 + + (x104 + + (x92 + (x79 + (x65 + (x50 + (x34 + x17)))))))))))))))))); + x383 = (x363 + x382); + x384 = (x383 >> 27); + x385 = (uint32_t)(x383 & UINT32_C(0x7ffffff)); + x386 = (x384 + x381); + x387 = (x386 >> 28); + x388 = (uint32_t)(x386 & UINT32_C(0xfffffff)); + x389 = (x387 + x380); + x390 = (x389 >> 27); + x391 = (uint32_t)(x389 & UINT32_C(0x7ffffff)); + x392 = (x390 + x379); + x393 = (x392 >> 28); + x394 = (uint32_t)(x392 & UINT32_C(0xfffffff)); + x395 = (x393 + x378); + x396 = (x395 >> 27); + x397 = (uint32_t)(x395 & UINT32_C(0x7ffffff)); + x398 = (x396 + x377); + x399 = (x398 >> 27); + x400 = (uint32_t)(x398 & UINT32_C(0x7ffffff)); + x401 = (x399 + x376); + x402 = (x401 >> 28); + x403 = (uint32_t)(x401 & UINT32_C(0xfffffff)); + x404 = (x402 + x375); + x405 = (x404 >> 27); + x406 = (uint32_t)(x404 & UINT32_C(0x7ffffff)); + x407 = (x405 + x374); + x408 = (x407 >> 28); + x409 = (uint32_t)(x407 & UINT32_C(0xfffffff)); + x410 = (x408 + x373); + x411 = (x410 >> 27); + x412 = (uint32_t)(x410 & UINT32_C(0x7ffffff)); + x413 = (x411 + x372); + x414 = (x413 >> 28); + x415 = (uint32_t)(x413 & UINT32_C(0xfffffff)); + x416 = (x414 + x371); + x417 = (x416 >> 27); + x418 = (uint32_t)(x416 & UINT32_C(0x7ffffff)); + x419 = (x417 + x370); + x420 = (x419 >> 27); + x421 = (uint32_t)(x419 & UINT32_C(0x7ffffff)); + x422 = (x420 + x369); + x423 = (x422 >> 28); + x424 = (uint32_t)(x422 & UINT32_C(0xfffffff)); + x425 = (x423 + x368); + x426 = (x425 >> 27); + x427 = (uint32_t)(x425 & UINT32_C(0x7ffffff)); + x428 = (x426 + x367); + x429 = (x428 >> 28); + x430 = (uint32_t)(x428 & UINT32_C(0xfffffff)); + x431 = (x429 + x366); + x432 = (x431 >> 27); + x433 = (uint32_t)(x431 & UINT32_C(0x7ffffff)); + x434 = (x432 + x365); + x435 = (x434 >> 27); + x436 = (uint32_t)(x434 & UINT32_C(0x7ffffff)); + x437 = (x364 + x435); + x438 = (uint32_t)(x437 >> 28); + x439 = (uint32_t)(x437 & UINT32_C(0xfffffff)); + x440 = (x438 + x385); + x441 = (fiat_secp521r1_uint1)(x440 >> 27); + x442 = (x440 & UINT32_C(0x7ffffff)); + x443 = (x441 + x388); + out1[0] = x439; + out1[1] = x442; + out1[2] = x443; + out1[3] = x391; + out1[4] = x394; + out1[5] = x397; + out1[6] = x400; + out1[7] = x403; + out1[8] = x406; + out1[9] = x409; + out1[10] = x412; + out1[11] = x415; + out1[12] = x418; + out1[13] = x421; + out1[14] = x424; + out1[15] = x427; + out1[16] = x430; + out1[17] = x433; + out1[18] = x436; +} + +/* + * The function fiat_secp521r1_carry_square squares a field element and reduces the result. + * Postconditions: + * eval out1 mod m = (eval arg1 * eval arg1) mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664]] + * Output Bounds: + * out1: [[0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc]] + */ +static void +fiat_secp521r1_carry_square(uint32_t out1[19], + const uint32_t arg1[19]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint32_t x16; + uint32_t x17; + uint32_t x18; + uint32_t x19; + uint32_t x20; + uint32_t x21; + uint32_t x22; + uint32_t x23; + uint32_t x24; + uint32_t x25; + uint32_t x26; + uint32_t x27; + uint32_t x28; + uint32_t x29; + uint32_t x30; + uint32_t x31; + uint32_t x32; + uint32_t x33; + uint32_t x34; + uint32_t x35; + uint32_t x36; + uint64_t x37; + uint64_t x38; + uint64_t x39; + uint64_t x40; + uint64_t x41; + uint64_t x42; + uint64_t x43; + uint64_t x44; + uint64_t x45; + uint64_t x46; + uint64_t x47; + uint64_t x48; + uint64_t x49; + uint64_t x50; + uint64_t x51; + uint64_t x52; + uint64_t x53; + uint64_t x54; + uint64_t x55; + uint64_t x56; + uint64_t x57; + uint64_t x58; + uint64_t x59; + uint64_t x60; + uint64_t x61; + uint64_t x62; + uint64_t x63; + uint64_t x64; + uint64_t x65; + uint64_t x66; + uint64_t x67; + uint64_t x68; + uint64_t x69; + uint64_t x70; + uint64_t x71; + uint64_t x72; + uint64_t x73; + uint64_t x74; + uint64_t x75; + uint64_t x76; + uint64_t x77; + uint64_t x78; + uint64_t x79; + uint64_t x80; + uint64_t x81; + uint64_t x82; + uint64_t x83; + uint64_t x84; + uint64_t x85; + uint64_t x86; + uint64_t x87; + uint64_t x88; + uint64_t x89; + uint64_t x90; + uint64_t x91; + uint64_t x92; + uint64_t x93; + uint64_t x94; + uint64_t x95; + uint64_t x96; + uint64_t x97; + uint64_t x98; + uint64_t x99; + uint64_t x100; + uint64_t x101; + uint64_t x102; + uint64_t x103; + uint64_t x104; + uint64_t x105; + uint64_t x106; + uint64_t x107; + uint64_t x108; + uint64_t x109; + uint64_t x110; + uint64_t x111; + uint64_t x112; + uint64_t x113; + uint64_t x114; + uint64_t x115; + uint64_t x116; + uint64_t x117; + uint64_t x118; + uint64_t x119; + uint64_t x120; + uint64_t x121; + uint64_t x122; + uint64_t x123; + uint64_t x124; + uint64_t x125; + uint64_t x126; + uint64_t x127; + uint64_t x128; + uint64_t x129; + uint64_t x130; + uint64_t x131; + uint64_t x132; + uint64_t x133; + uint64_t x134; + uint64_t x135; + uint64_t x136; + uint64_t x137; + uint64_t x138; + uint64_t x139; + uint64_t x140; + uint64_t x141; + uint64_t x142; + uint64_t x143; + uint64_t x144; + uint64_t x145; + uint64_t x146; + uint64_t x147; + uint64_t x148; + uint64_t x149; + uint64_t x150; + uint64_t x151; + uint64_t x152; + uint64_t x153; + uint64_t x154; + uint64_t x155; + uint64_t x156; + uint64_t x157; + uint64_t x158; + uint64_t x159; + uint64_t x160; + uint64_t x161; + uint64_t x162; + uint64_t x163; + uint64_t x164; + uint64_t x165; + uint64_t x166; + uint64_t x167; + uint64_t x168; + uint64_t x169; + uint64_t x170; + uint64_t x171; + uint64_t x172; + uint64_t x173; + uint64_t x174; + uint64_t x175; + uint64_t x176; + uint64_t x177; + uint64_t x178; + uint64_t x179; + uint64_t x180; + uint64_t x181; + uint64_t x182; + uint64_t x183; + uint64_t x184; + uint64_t x185; + uint64_t x186; + uint64_t x187; + uint64_t x188; + uint64_t x189; + uint64_t x190; + uint64_t x191; + uint64_t x192; + uint64_t x193; + uint64_t x194; + uint64_t x195; + uint64_t x196; + uint64_t x197; + uint64_t x198; + uint64_t x199; + uint64_t x200; + uint64_t x201; + uint64_t x202; + uint64_t x203; + uint64_t x204; + uint64_t x205; + uint64_t x206; + uint64_t x207; + uint64_t x208; + uint64_t x209; + uint64_t x210; + uint64_t x211; + uint64_t x212; + uint64_t x213; + uint64_t x214; + uint64_t x215; + uint64_t x216; + uint64_t x217; + uint64_t x218; + uint64_t x219; + uint64_t x220; + uint64_t x221; + uint64_t x222; + uint64_t x223; + uint64_t x224; + uint64_t x225; + uint64_t x226; + uint64_t x227; + uint64_t x228; + uint32_t x229; + uint64_t x230; + uint64_t x231; + uint64_t x232; + uint64_t x233; + uint64_t x234; + uint64_t x235; + uint64_t x236; + uint64_t x237; + uint64_t x238; + uint64_t x239; + uint64_t x240; + uint64_t x241; + uint64_t x242; + uint64_t x243; + uint64_t x244; + uint64_t x245; + uint64_t x246; + uint64_t x247; + uint64_t x248; + uint64_t x249; + uint32_t x250; + uint64_t x251; + uint64_t x252; + uint32_t x253; + uint64_t x254; + uint64_t x255; + uint32_t x256; + uint64_t x257; + uint64_t x258; + uint32_t x259; + uint64_t x260; + uint64_t x261; + uint32_t x262; + uint64_t x263; + uint64_t x264; + uint32_t x265; + uint64_t x266; + uint64_t x267; + uint32_t x268; + uint64_t x269; + uint64_t x270; + uint32_t x271; + uint64_t x272; + uint64_t x273; + uint32_t x274; + uint64_t x275; + uint64_t x276; + uint32_t x277; + uint64_t x278; + uint64_t x279; + uint32_t x280; + uint64_t x281; + uint64_t x282; + uint32_t x283; + uint64_t x284; + uint64_t x285; + uint32_t x286; + uint64_t x287; + uint64_t x288; + uint32_t x289; + uint64_t x290; + uint64_t x291; + uint32_t x292; + uint64_t x293; + uint64_t x294; + uint32_t x295; + uint64_t x296; + uint64_t x297; + uint32_t x298; + uint64_t x299; + uint64_t x300; + uint32_t x301; + uint64_t x302; + uint32_t x303; + uint32_t x304; + uint32_t x305; + fiat_secp521r1_uint1 x306; + uint32_t x307; + uint32_t x308; + x1 = (arg1[18]); + x2 = (x1 * 0x2); + x3 = ((arg1[18]) * 0x2); + x4 = (arg1[17]); + x5 = (x4 * 0x2); + x6 = ((arg1[17]) * 0x2); + x7 = (arg1[16]); + x8 = (x7 * 0x2); + x9 = ((arg1[16]) * 0x2); + x10 = (arg1[15]); + x11 = (x10 * 0x2); + x12 = ((arg1[15]) * 0x2); + x13 = (arg1[14]); + x14 = (x13 * 0x2); + x15 = ((arg1[14]) * 0x2); + x16 = (arg1[13]); + x17 = (x16 * 0x2); + x18 = ((arg1[13]) * 0x2); + x19 = (arg1[12]); + x20 = (x19 * 0x2); + x21 = ((arg1[12]) * 0x2); + x22 = (arg1[11]); + x23 = (x22 * 0x2); + x24 = ((arg1[11]) * 0x2); + x25 = (arg1[10]); + x26 = (x25 * 0x2); + x27 = ((arg1[10]) * 0x2); + x28 = ((arg1[9]) * 0x2); + x29 = ((arg1[8]) * 0x2); + x30 = ((arg1[7]) * 0x2); + x31 = ((arg1[6]) * 0x2); + x32 = ((arg1[5]) * 0x2); + x33 = ((arg1[4]) * 0x2); + x34 = ((arg1[3]) * 0x2); + x35 = ((arg1[2]) * 0x2); + x36 = ((arg1[1]) * 0x2); + x37 = ((uint64_t)(arg1[18]) * x1); + x38 = ((uint64_t)(arg1[17]) * (x2 * 0x2)); + x39 = ((uint64_t)(arg1[17]) * (x4 * 0x2)); + x40 = ((uint64_t)(arg1[16]) * x2); + x41 = ((uint64_t)(arg1[16]) * (x5 * 0x2)); + x42 = ((uint64_t)(arg1[16]) * x7); + x43 = ((uint64_t)(arg1[15]) * (x2 * 0x2)); + x44 = ((uint64_t)(arg1[15]) * (x5 * 0x2)); + x45 = ((uint64_t)(arg1[15]) * x8); + x46 = ((uint64_t)(arg1[15]) * (x10 * 0x2)); + x47 = ((uint64_t)(arg1[14]) * x2); + x48 = ((uint64_t)(arg1[14]) * x5); + x49 = ((uint64_t)(arg1[14]) * x8); + x50 = ((uint64_t)(arg1[14]) * x11); + x51 = ((uint64_t)(arg1[14]) * x13); + x52 = ((uint64_t)(arg1[13]) * x2); + x53 = ((uint64_t)(arg1[13]) * (x5 * 0x2)); + x54 = ((uint64_t)(arg1[13]) * x8); + x55 = ((uint64_t)(arg1[13]) * (x11 * 0x2)); + x56 = ((uint64_t)(arg1[13]) * x14); + x57 = ((uint64_t)(arg1[13]) * (x16 * 0x2)); + x58 = ((uint64_t)(arg1[12]) * (x2 * 0x2)); + x59 = ((uint64_t)(arg1[12]) * (x5 * 0x2)); + x60 = ((uint64_t)(arg1[12]) * (x8 * 0x2)); + x61 = ((uint64_t)(arg1[12]) * (x11 * 0x2)); + x62 = ((uint64_t)(arg1[12]) * (x14 * 0x2)); + x63 = ((uint64_t)(arg1[12]) * (x17 * 0x2)); + x64 = ((uint64_t)(arg1[12]) * (x19 * 0x2)); + x65 = ((uint64_t)(arg1[11]) * x2); + x66 = ((uint64_t)(arg1[11]) * (x5 * 0x2)); + x67 = ((uint64_t)(arg1[11]) * x8); + x68 = ((uint64_t)(arg1[11]) * (x11 * 0x2)); + x69 = ((uint64_t)(arg1[11]) * x14); + x70 = ((uint64_t)(arg1[11]) * x17); + x71 = ((uint64_t)(arg1[11]) * (x20 * 0x2)); + x72 = ((uint64_t)(arg1[11]) * x22); + x73 = ((uint64_t)(arg1[10]) * (x2 * 0x2)); + x74 = ((uint64_t)(arg1[10]) * (x5 * 0x2)); + x75 = ((uint64_t)(arg1[10]) * (x8 * 0x2)); + x76 = ((uint64_t)(arg1[10]) * (x11 * 0x2)); + x77 = ((uint64_t)(arg1[10]) * x14); + x78 = ((uint64_t)(arg1[10]) * (x17 * 0x2)); + x79 = ((uint64_t)(arg1[10]) * (x20 * 0x2)); + x80 = ((uint64_t)(arg1[10]) * (x23 * 0x2)); + x81 = ((uint64_t)(arg1[10]) * (x25 * 0x2)); + x82 = ((uint64_t)(arg1[9]) * x2); + x83 = ((uint64_t)(arg1[9]) * (x5 * 0x2)); + x84 = ((uint64_t)(arg1[9]) * x8); + x85 = ((uint64_t)(arg1[9]) * x11); + x86 = ((uint64_t)(arg1[9]) * x14); + x87 = ((uint64_t)(arg1[9]) * x17); + x88 = ((uint64_t)(arg1[9]) * (x20 * 0x2)); + x89 = ((uint64_t)(arg1[9]) * x23); + x90 = ((uint64_t)(arg1[9]) * (x26 * 0x2)); + x91 = ((uint64_t)(arg1[9]) * (arg1[9])); + x92 = ((uint64_t)(arg1[8]) * (x2 * 0x2)); + x93 = ((uint64_t)(arg1[8]) * (x5 * 0x2)); + x94 = ((uint64_t)(arg1[8]) * x8); + x95 = ((uint64_t)(arg1[8]) * (x11 * 0x2)); + x96 = ((uint64_t)(arg1[8]) * x14); + x97 = ((uint64_t)(arg1[8]) * (x17 * 0x2)); + x98 = ((uint64_t)(arg1[8]) * (x20 * 0x2)); + x99 = ((uint64_t)(arg1[8]) * (x23 * 0x2)); + x100 = ((uint64_t)(arg1[8]) * (x27 * 0x2)); + x101 = ((uint64_t)(arg1[8]) * x28); + x102 = ((uint64_t)(arg1[8]) * ((arg1[8]) * 0x2)); + x103 = ((uint64_t)(arg1[7]) * x2); + x104 = ((uint64_t)(arg1[7]) * x5); + x105 = ((uint64_t)(arg1[7]) * x8); + x106 = ((uint64_t)(arg1[7]) * x11); + x107 = ((uint64_t)(arg1[7]) * x14); + x108 = ((uint64_t)(arg1[7]) * x17); + x109 = ((uint64_t)(arg1[7]) * (x20 * 0x2)); + x110 = ((uint64_t)(arg1[7]) * x24); + x111 = ((uint64_t)(arg1[7]) * x27); + x112 = ((uint64_t)(arg1[7]) * x28); + x113 = ((uint64_t)(arg1[7]) * x29); + x114 = ((uint64_t)(arg1[7]) * (arg1[7])); + x115 = ((uint64_t)(arg1[6]) * x2); + x116 = ((uint64_t)(arg1[6]) * (x5 * 0x2)); + x117 = ((uint64_t)(arg1[6]) * x8); + x118 = ((uint64_t)(arg1[6]) * (x11 * 0x2)); + x119 = ((uint64_t)(arg1[6]) * x14); + x120 = ((uint64_t)(arg1[6]) * (x17 * 0x2)); + x121 = ((uint64_t)(arg1[6]) * (x21 * 0x2)); + x122 = ((uint64_t)(arg1[6]) * x24); + x123 = ((uint64_t)(arg1[6]) * (x27 * 0x2)); + x124 = ((uint64_t)(arg1[6]) * x28); + x125 = ((uint64_t)(arg1[6]) * (x29 * 0x2)); + x126 = ((uint64_t)(arg1[6]) * x30); + x127 = ((uint64_t)(arg1[6]) * (arg1[6])); + x128 = ((uint64_t)(arg1[5]) * (x2 * 0x2)); + x129 = ((uint64_t)(arg1[5]) * (x5 * 0x2)); + x130 = ((uint64_t)(arg1[5]) * (x8 * 0x2)); + x131 = ((uint64_t)(arg1[5]) * (x11 * 0x2)); + x132 = ((uint64_t)(arg1[5]) * (x14 * 0x2)); + x133 = ((uint64_t)(arg1[5]) * (x18 * 0x2)); + x134 = ((uint64_t)(arg1[5]) * (x21 * 0x2)); + x135 = ((uint64_t)(arg1[5]) * (x24 * 0x2)); + x136 = ((uint64_t)(arg1[5]) * (x27 * 0x2)); + x137 = ((uint64_t)(arg1[5]) * (x28 * 0x2)); + x138 = ((uint64_t)(arg1[5]) * (x29 * 0x2)); + x139 = ((uint64_t)(arg1[5]) * x30); + x140 = ((uint64_t)(arg1[5]) * (x31 * 0x2)); + x141 = ((uint64_t)(arg1[5]) * ((arg1[5]) * 0x2)); + x142 = ((uint64_t)(arg1[4]) * x2); + x143 = ((uint64_t)(arg1[4]) * (x5 * 0x2)); + x144 = ((uint64_t)(arg1[4]) * x8); + x145 = ((uint64_t)(arg1[4]) * (x11 * 0x2)); + x146 = ((uint64_t)(arg1[4]) * x15); + x147 = ((uint64_t)(arg1[4]) * x18); + x148 = ((uint64_t)(arg1[4]) * (x21 * 0x2)); + x149 = ((uint64_t)(arg1[4]) * x24); + x150 = ((uint64_t)(arg1[4]) * (x27 * 0x2)); + x151 = ((uint64_t)(arg1[4]) * x28); + x152 = ((uint64_t)(arg1[4]) * x29); + x153 = ((uint64_t)(arg1[4]) * x30); + x154 = ((uint64_t)(arg1[4]) * x31); + x155 = ((uint64_t)(arg1[4]) * (x32 * 0x2)); + x156 = ((uint64_t)(arg1[4]) * (arg1[4])); + x157 = ((uint64_t)(arg1[3]) * (x2 * 0x2)); + x158 = ((uint64_t)(arg1[3]) * (x5 * 0x2)); + x159 = ((uint64_t)(arg1[3]) * (x8 * 0x2)); + x160 = ((uint64_t)(arg1[3]) * (x12 * 0x2)); + x161 = ((uint64_t)(arg1[3]) * x15); + x162 = ((uint64_t)(arg1[3]) * (x18 * 0x2)); + x163 = ((uint64_t)(arg1[3]) * (x21 * 0x2)); + x164 = ((uint64_t)(arg1[3]) * (x24 * 0x2)); + x165 = ((uint64_t)(arg1[3]) * (x27 * 0x2)); + x166 = ((uint64_t)(arg1[3]) * x28); + x167 = ((uint64_t)(arg1[3]) * (x29 * 0x2)); + x168 = ((uint64_t)(arg1[3]) * x30); + x169 = ((uint64_t)(arg1[3]) * (x31 * 0x2)); + x170 = ((uint64_t)(arg1[3]) * (x32 * 0x2)); + x171 = ((uint64_t)(arg1[3]) * (x33 * 0x2)); + x172 = ((uint64_t)(arg1[3]) * ((arg1[3]) * 0x2)); + x173 = ((uint64_t)(arg1[2]) * x2); + x174 = ((uint64_t)(arg1[2]) * (x5 * 0x2)); + x175 = ((uint64_t)(arg1[2]) * x9); + x176 = ((uint64_t)(arg1[2]) * x12); + x177 = ((uint64_t)(arg1[2]) * x15); + x178 = ((uint64_t)(arg1[2]) * x18); + x179 = ((uint64_t)(arg1[2]) * (x21 * 0x2)); + x180 = ((uint64_t)(arg1[2]) * x24); + x181 = ((uint64_t)(arg1[2]) * x27); + x182 = ((uint64_t)(arg1[2]) * x28); + x183 = ((uint64_t)(arg1[2]) * x29); + x184 = ((uint64_t)(arg1[2]) * x30); + x185 = ((uint64_t)(arg1[2]) * x31); + x186 = ((uint64_t)(arg1[2]) * (x32 * 0x2)); + x187 = ((uint64_t)(arg1[2]) * x33); + x188 = ((uint64_t)(arg1[2]) * x34); + x189 = ((uint64_t)(arg1[2]) * (arg1[2])); + x190 = ((uint64_t)(arg1[1]) * (x2 * 0x2)); + x191 = ((uint64_t)(arg1[1]) * (x6 * 0x2)); + x192 = ((uint64_t)(arg1[1]) * x9); + x193 = ((uint64_t)(arg1[1]) * (x12 * 0x2)); + x194 = ((uint64_t)(arg1[1]) * x15); + x195 = ((uint64_t)(arg1[1]) * (x18 * 0x2)); + x196 = ((uint64_t)(arg1[1]) * (x21 * 0x2)); + x197 = ((uint64_t)(arg1[1]) * x24); + x198 = ((uint64_t)(arg1[1]) * (x27 * 0x2)); + x199 = ((uint64_t)(arg1[1]) * x28); + x200 = ((uint64_t)(arg1[1]) * (x29 * 0x2)); + x201 = ((uint64_t)(arg1[1]) * x30); + x202 = ((uint64_t)(arg1[1]) * (x31 * 0x2)); + x203 = ((uint64_t)(arg1[1]) * (x32 * 0x2)); + x204 = ((uint64_t)(arg1[1]) * x33); + x205 = ((uint64_t)(arg1[1]) * (x34 * 0x2)); + x206 = ((uint64_t)(arg1[1]) * x35); + x207 = ((uint64_t)(arg1[1]) * ((arg1[1]) * 0x2)); + x208 = ((uint64_t)(arg1[0]) * x3); + x209 = ((uint64_t)(arg1[0]) * x6); + x210 = ((uint64_t)(arg1[0]) * x9); + x211 = ((uint64_t)(arg1[0]) * x12); + x212 = ((uint64_t)(arg1[0]) * x15); + x213 = ((uint64_t)(arg1[0]) * x18); + x214 = ((uint64_t)(arg1[0]) * x21); + x215 = ((uint64_t)(arg1[0]) * x24); + x216 = ((uint64_t)(arg1[0]) * x27); + x217 = ((uint64_t)(arg1[0]) * x28); + x218 = ((uint64_t)(arg1[0]) * x29); + x219 = ((uint64_t)(arg1[0]) * x30); + x220 = ((uint64_t)(arg1[0]) * x31); + x221 = ((uint64_t)(arg1[0]) * x32); + x222 = ((uint64_t)(arg1[0]) * x33); + x223 = ((uint64_t)(arg1[0]) * x34); + x224 = ((uint64_t)(arg1[0]) * x35); + x225 = ((uint64_t)(arg1[0]) * x36); + x226 = ((uint64_t)(arg1[0]) * (arg1[0])); + x227 = + (x226 + + (x190 + + (x174 + (x159 + (x145 + (x132 + (x120 + (x109 + (x99 + x90))))))))); + x228 = (x227 >> 28); + x229 = (uint32_t)(x227 & UINT32_C(0xfffffff)); + x230 = + (x208 + + (x191 + + (x175 + (x160 + (x146 + (x133 + (x121 + (x110 + (x100 + x91))))))))); + x231 = + (x209 + + (x192 + + (x176 + (x161 + (x147 + (x134 + (x122 + (x111 + (x101 + x37))))))))); + x232 = + (x210 + + (x193 + + (x177 + (x162 + (x148 + (x135 + (x123 + (x112 + (x102 + x38))))))))); + x233 = + (x211 + + (x194 + + (x178 + (x163 + (x149 + (x136 + (x124 + (x113 + (x40 + x39))))))))); + x234 = + (x212 + + (x195 + + (x179 + (x164 + (x150 + (x137 + (x125 + (x114 + (x43 + x41))))))))); + x235 = (x213 + + (x196 + + (x180 + (x165 + (x151 + (x138 + (x126 + (x47 + (x44 + x42))))))))); + x236 = (x214 + + (x197 + + (x181 + (x166 + (x152 + (x139 + (x127 + (x52 + (x48 + x45))))))))); + x237 = (x215 + + (x198 + + (x182 + (x167 + (x153 + (x140 + (x58 + (x53 + (x49 + x46))))))))); + x238 = (x216 + + (x199 + + (x183 + (x168 + (x154 + (x141 + (x65 + (x59 + (x54 + x50))))))))); + x239 = (x217 + + (x200 + + (x184 + (x169 + (x155 + (x73 + (x66 + (x60 + (x55 + x51))))))))); + x240 = (x218 + + (x201 + + (x185 + (x170 + (x156 + (x82 + (x74 + (x67 + (x61 + x56))))))))); + x241 = (x219 + + (x202 + + (x186 + (x171 + (x92 + (x83 + (x75 + (x68 + (x62 + x57))))))))); + x242 = (x220 + + (x203 + + (x187 + (x172 + (x103 + (x93 + (x84 + (x76 + (x69 + x63))))))))); + x243 = (x221 + + (x204 + + (x188 + (x115 + (x104 + (x94 + (x85 + (x77 + (x70 + x64))))))))); + x244 = (x222 + + (x205 + + (x189 + (x128 + (x116 + (x105 + (x95 + (x86 + (x78 + x71))))))))); + x245 = (x223 + + (x206 + + (x142 + (x129 + (x117 + (x106 + (x96 + (x87 + (x79 + x72))))))))); + x246 = (x224 + + (x207 + + (x157 + (x143 + (x130 + (x118 + (x107 + (x97 + (x88 + x80))))))))); + x247 = (x225 + + (x173 + + (x158 + (x144 + (x131 + (x119 + (x108 + (x98 + (x89 + x81))))))))); + x248 = (x228 + x247); + x249 = (x248 >> 27); + x250 = (uint32_t)(x248 & UINT32_C(0x7ffffff)); + x251 = (x249 + x246); + x252 = (x251 >> 28); + x253 = (uint32_t)(x251 & UINT32_C(0xfffffff)); + x254 = (x252 + x245); + x255 = (x254 >> 27); + x256 = (uint32_t)(x254 & UINT32_C(0x7ffffff)); + x257 = (x255 + x244); + x258 = (x257 >> 28); + x259 = (uint32_t)(x257 & UINT32_C(0xfffffff)); + x260 = (x258 + x243); + x261 = (x260 >> 27); + x262 = (uint32_t)(x260 & UINT32_C(0x7ffffff)); + x263 = (x261 + x242); + x264 = (x263 >> 27); + x265 = (uint32_t)(x263 & UINT32_C(0x7ffffff)); + x266 = (x264 + x241); + x267 = (x266 >> 28); + x268 = (uint32_t)(x266 & UINT32_C(0xfffffff)); + x269 = (x267 + x240); + x270 = (x269 >> 27); + x271 = (uint32_t)(x269 & UINT32_C(0x7ffffff)); + x272 = (x270 + x239); + x273 = (x272 >> 28); + x274 = (uint32_t)(x272 & UINT32_C(0xfffffff)); + x275 = (x273 + x238); + x276 = (x275 >> 27); + x277 = (uint32_t)(x275 & UINT32_C(0x7ffffff)); + x278 = (x276 + x237); + x279 = (x278 >> 28); + x280 = (uint32_t)(x278 & UINT32_C(0xfffffff)); + x281 = (x279 + x236); + x282 = (x281 >> 27); + x283 = (uint32_t)(x281 & UINT32_C(0x7ffffff)); + x284 = (x282 + x235); + x285 = (x284 >> 27); + x286 = (uint32_t)(x284 & UINT32_C(0x7ffffff)); + x287 = (x285 + x234); + x288 = (x287 >> 28); + x289 = (uint32_t)(x287 & UINT32_C(0xfffffff)); + x290 = (x288 + x233); + x291 = (x290 >> 27); + x292 = (uint32_t)(x290 & UINT32_C(0x7ffffff)); + x293 = (x291 + x232); + x294 = (x293 >> 28); + x295 = (uint32_t)(x293 & UINT32_C(0xfffffff)); + x296 = (x294 + x231); + x297 = (x296 >> 27); + x298 = (uint32_t)(x296 & UINT32_C(0x7ffffff)); + x299 = (x297 + x230); + x300 = (x299 >> 27); + x301 = (uint32_t)(x299 & UINT32_C(0x7ffffff)); + x302 = (x229 + x300); + x303 = (uint32_t)(x302 >> 28); + x304 = (uint32_t)(x302 & UINT32_C(0xfffffff)); + x305 = (x303 + x250); + x306 = (fiat_secp521r1_uint1)(x305 >> 27); + x307 = (x305 & UINT32_C(0x7ffffff)); + x308 = (x306 + x253); + out1[0] = x304; + out1[1] = x307; + out1[2] = x308; + out1[3] = x256; + out1[4] = x259; + out1[5] = x262; + out1[6] = x265; + out1[7] = x268; + out1[8] = x271; + out1[9] = x274; + out1[10] = x277; + out1[11] = x280; + out1[12] = x283; + out1[13] = x286; + out1[14] = x289; + out1[15] = x292; + out1[16] = x295; + out1[17] = x298; + out1[18] = x301; +} + +/* + * The function fiat_secp521r1_carry reduces a field element. + * Postconditions: + * eval out1 mod m = eval arg1 mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664]] + * Output Bounds: + * out1: [[0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc]] + */ +static void +fiat_secp521r1_carry(uint32_t out1[19], const uint32_t arg1[19]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint32_t x16; + uint32_t x17; + uint32_t x18; + uint32_t x19; + uint32_t x20; + uint32_t x21; + uint32_t x22; + uint32_t x23; + uint32_t x24; + uint32_t x25; + uint32_t x26; + uint32_t x27; + uint32_t x28; + uint32_t x29; + uint32_t x30; + uint32_t x31; + uint32_t x32; + uint32_t x33; + uint32_t x34; + uint32_t x35; + uint32_t x36; + uint32_t x37; + uint32_t x38; + uint32_t x39; + uint32_t x40; + x1 = (arg1[0]); + x2 = ((x1 >> 28) + (arg1[1])); + x3 = ((x2 >> 27) + (arg1[2])); + x4 = ((x3 >> 28) + (arg1[3])); + x5 = ((x4 >> 27) + (arg1[4])); + x6 = ((x5 >> 28) + (arg1[5])); + x7 = ((x6 >> 27) + (arg1[6])); + x8 = ((x7 >> 27) + (arg1[7])); + x9 = ((x8 >> 28) + (arg1[8])); + x10 = ((x9 >> 27) + (arg1[9])); + x11 = ((x10 >> 28) + (arg1[10])); + x12 = ((x11 >> 27) + (arg1[11])); + x13 = ((x12 >> 28) + (arg1[12])); + x14 = ((x13 >> 27) + (arg1[13])); + x15 = ((x14 >> 27) + (arg1[14])); + x16 = ((x15 >> 28) + (arg1[15])); + x17 = ((x16 >> 27) + (arg1[16])); + x18 = ((x17 >> 28) + (arg1[17])); + x19 = ((x18 >> 27) + (arg1[18])); + x20 = ((x1 & UINT32_C(0xfffffff)) + (x19 >> 27)); + x21 = ((fiat_secp521r1_uint1)(x20 >> 28) + (x2 & UINT32_C(0x7ffffff))); + x22 = (x20 & UINT32_C(0xfffffff)); + x23 = (x21 & UINT32_C(0x7ffffff)); + x24 = ((fiat_secp521r1_uint1)(x21 >> 27) + (x3 & UINT32_C(0xfffffff))); + x25 = (x4 & UINT32_C(0x7ffffff)); + x26 = (x5 & UINT32_C(0xfffffff)); + x27 = (x6 & UINT32_C(0x7ffffff)); + x28 = (x7 & UINT32_C(0x7ffffff)); + x29 = (x8 & UINT32_C(0xfffffff)); + x30 = (x9 & UINT32_C(0x7ffffff)); + x31 = (x10 & UINT32_C(0xfffffff)); + x32 = (x11 & UINT32_C(0x7ffffff)); + x33 = (x12 & UINT32_C(0xfffffff)); + x34 = (x13 & UINT32_C(0x7ffffff)); + x35 = (x14 & UINT32_C(0x7ffffff)); + x36 = (x15 & UINT32_C(0xfffffff)); + x37 = (x16 & UINT32_C(0x7ffffff)); + x38 = (x17 & UINT32_C(0xfffffff)); + x39 = (x18 & UINT32_C(0x7ffffff)); + x40 = (x19 & UINT32_C(0x7ffffff)); + out1[0] = x22; + out1[1] = x23; + out1[2] = x24; + out1[3] = x25; + out1[4] = x26; + out1[5] = x27; + out1[6] = x28; + out1[7] = x29; + out1[8] = x30; + out1[9] = x31; + out1[10] = x32; + out1[11] = x33; + out1[12] = x34; + out1[13] = x35; + out1[14] = x36; + out1[15] = x37; + out1[16] = x38; + out1[17] = x39; + out1[18] = x40; +} + +/* + * The function fiat_secp521r1_add adds two field elements. + * Postconditions: + * eval out1 mod m = (eval arg1 + eval arg2) mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc]] + * arg2: [[0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc]] + * Output Bounds: + * out1: [[0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664]] + */ +static void +fiat_secp521r1_add(uint32_t out1[19], const uint32_t arg1[19], + const uint32_t arg2[19]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint32_t x16; + uint32_t x17; + uint32_t x18; + uint32_t x19; + x1 = ((arg1[0]) + (arg2[0])); + x2 = ((arg1[1]) + (arg2[1])); + x3 = ((arg1[2]) + (arg2[2])); + x4 = ((arg1[3]) + (arg2[3])); + x5 = ((arg1[4]) + (arg2[4])); + x6 = ((arg1[5]) + (arg2[5])); + x7 = ((arg1[6]) + (arg2[6])); + x8 = ((arg1[7]) + (arg2[7])); + x9 = ((arg1[8]) + (arg2[8])); + x10 = ((arg1[9]) + (arg2[9])); + x11 = ((arg1[10]) + (arg2[10])); + x12 = ((arg1[11]) + (arg2[11])); + x13 = ((arg1[12]) + (arg2[12])); + x14 = ((arg1[13]) + (arg2[13])); + x15 = ((arg1[14]) + (arg2[14])); + x16 = ((arg1[15]) + (arg2[15])); + x17 = ((arg1[16]) + (arg2[16])); + x18 = ((arg1[17]) + (arg2[17])); + x19 = ((arg1[18]) + (arg2[18])); + out1[0] = x1; + out1[1] = x2; + out1[2] = x3; + out1[3] = x4; + out1[4] = x5; + out1[5] = x6; + out1[6] = x7; + out1[7] = x8; + out1[8] = x9; + out1[9] = x10; + out1[10] = x11; + out1[11] = x12; + out1[12] = x13; + out1[13] = x14; + out1[14] = x15; + out1[15] = x16; + out1[16] = x17; + out1[17] = x18; + out1[18] = x19; +} + +/* + * The function fiat_secp521r1_sub subtracts two field elements. + * Postconditions: + * eval out1 mod m = (eval arg1 - eval arg2) mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc]] + * arg2: [[0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc]] + * Output Bounds: + * out1: [[0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664]] + */ +static void +fiat_secp521r1_sub(uint32_t out1[19], const uint32_t arg1[19], + const uint32_t arg2[19]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint32_t x16; + uint32_t x17; + uint32_t x18; + uint32_t x19; + x1 = ((UINT32_C(0x1ffffffe) + (arg1[0])) - (arg2[0])); + x2 = ((UINT32_C(0xffffffe) + (arg1[1])) - (arg2[1])); + x3 = ((UINT32_C(0x1ffffffe) + (arg1[2])) - (arg2[2])); + x4 = ((UINT32_C(0xffffffe) + (arg1[3])) - (arg2[3])); + x5 = ((UINT32_C(0x1ffffffe) + (arg1[4])) - (arg2[4])); + x6 = ((UINT32_C(0xffffffe) + (arg1[5])) - (arg2[5])); + x7 = ((UINT32_C(0xffffffe) + (arg1[6])) - (arg2[6])); + x8 = ((UINT32_C(0x1ffffffe) + (arg1[7])) - (arg2[7])); + x9 = ((UINT32_C(0xffffffe) + (arg1[8])) - (arg2[8])); + x10 = ((UINT32_C(0x1ffffffe) + (arg1[9])) - (arg2[9])); + x11 = ((UINT32_C(0xffffffe) + (arg1[10])) - (arg2[10])); + x12 = ((UINT32_C(0x1ffffffe) + (arg1[11])) - (arg2[11])); + x13 = ((UINT32_C(0xffffffe) + (arg1[12])) - (arg2[12])); + x14 = ((UINT32_C(0xffffffe) + (arg1[13])) - (arg2[13])); + x15 = ((UINT32_C(0x1ffffffe) + (arg1[14])) - (arg2[14])); + x16 = ((UINT32_C(0xffffffe) + (arg1[15])) - (arg2[15])); + x17 = ((UINT32_C(0x1ffffffe) + (arg1[16])) - (arg2[16])); + x18 = ((UINT32_C(0xffffffe) + (arg1[17])) - (arg2[17])); + x19 = ((UINT32_C(0xffffffe) + (arg1[18])) - (arg2[18])); + out1[0] = x1; + out1[1] = x2; + out1[2] = x3; + out1[3] = x4; + out1[4] = x5; + out1[5] = x6; + out1[6] = x7; + out1[7] = x8; + out1[8] = x9; + out1[9] = x10; + out1[10] = x11; + out1[11] = x12; + out1[12] = x13; + out1[13] = x14; + out1[14] = x15; + out1[15] = x16; + out1[16] = x17; + out1[17] = x18; + out1[18] = x19; +} + +/* + * The function fiat_secp521r1_opp negates a field element. + * Postconditions: + * eval out1 mod m = -eval arg1 mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc]] + * Output Bounds: + * out1: [[0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x34cccccb], [0x0 ~> 0x1a666664], [0x0 ~> 0x1a666664]] + */ +static void +fiat_secp521r1_opp(uint32_t out1[19], const uint32_t arg1[19]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint32_t x16; + uint32_t x17; + uint32_t x18; + uint32_t x19; + x1 = (UINT32_C(0x1ffffffe) - (arg1[0])); + x2 = (UINT32_C(0xffffffe) - (arg1[1])); + x3 = (UINT32_C(0x1ffffffe) - (arg1[2])); + x4 = (UINT32_C(0xffffffe) - (arg1[3])); + x5 = (UINT32_C(0x1ffffffe) - (arg1[4])); + x6 = (UINT32_C(0xffffffe) - (arg1[5])); + x7 = (UINT32_C(0xffffffe) - (arg1[6])); + x8 = (UINT32_C(0x1ffffffe) - (arg1[7])); + x9 = (UINT32_C(0xffffffe) - (arg1[8])); + x10 = (UINT32_C(0x1ffffffe) - (arg1[9])); + x11 = (UINT32_C(0xffffffe) - (arg1[10])); + x12 = (UINT32_C(0x1ffffffe) - (arg1[11])); + x13 = (UINT32_C(0xffffffe) - (arg1[12])); + x14 = (UINT32_C(0xffffffe) - (arg1[13])); + x15 = (UINT32_C(0x1ffffffe) - (arg1[14])); + x16 = (UINT32_C(0xffffffe) - (arg1[15])); + x17 = (UINT32_C(0x1ffffffe) - (arg1[16])); + x18 = (UINT32_C(0xffffffe) - (arg1[17])); + x19 = (UINT32_C(0xffffffe) - (arg1[18])); + out1[0] = x1; + out1[1] = x2; + out1[2] = x3; + out1[3] = x4; + out1[4] = x5; + out1[5] = x6; + out1[6] = x7; + out1[7] = x8; + out1[8] = x9; + out1[9] = x10; + out1[10] = x11; + out1[11] = x12; + out1[12] = x13; + out1[13] = x14; + out1[14] = x15; + out1[15] = x16; + out1[16] = x17; + out1[17] = x18; + out1[18] = x19; +} + +/* + * The function fiat_secp521r1_selectznz is a multi-limb conditional select. + * Postconditions: + * eval out1 = (if arg1 = 0 then eval arg2 else eval arg3) + * + * Input Bounds: + * arg1: [0x0 ~> 0x1] + * arg2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * arg3: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + * Output Bounds: + * out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] + */ +static void +fiat_secp521r1_selectznz(uint32_t out1[19], + fiat_secp521r1_uint1 arg1, + const uint32_t arg2[19], + const uint32_t arg3[19]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint32_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint32_t x16; + uint32_t x17; + uint32_t x18; + uint32_t x19; + fiat_secp521r1_cmovznz_u32(&x1, arg1, (arg2[0]), (arg3[0])); + fiat_secp521r1_cmovznz_u32(&x2, arg1, (arg2[1]), (arg3[1])); + fiat_secp521r1_cmovznz_u32(&x3, arg1, (arg2[2]), (arg3[2])); + fiat_secp521r1_cmovznz_u32(&x4, arg1, (arg2[3]), (arg3[3])); + fiat_secp521r1_cmovznz_u32(&x5, arg1, (arg2[4]), (arg3[4])); + fiat_secp521r1_cmovznz_u32(&x6, arg1, (arg2[5]), (arg3[5])); + fiat_secp521r1_cmovznz_u32(&x7, arg1, (arg2[6]), (arg3[6])); + fiat_secp521r1_cmovznz_u32(&x8, arg1, (arg2[7]), (arg3[7])); + fiat_secp521r1_cmovznz_u32(&x9, arg1, (arg2[8]), (arg3[8])); + fiat_secp521r1_cmovznz_u32(&x10, arg1, (arg2[9]), (arg3[9])); + fiat_secp521r1_cmovznz_u32(&x11, arg1, (arg2[10]), (arg3[10])); + fiat_secp521r1_cmovznz_u32(&x12, arg1, (arg2[11]), (arg3[11])); + fiat_secp521r1_cmovznz_u32(&x13, arg1, (arg2[12]), (arg3[12])); + fiat_secp521r1_cmovznz_u32(&x14, arg1, (arg2[13]), (arg3[13])); + fiat_secp521r1_cmovznz_u32(&x15, arg1, (arg2[14]), (arg3[14])); + fiat_secp521r1_cmovznz_u32(&x16, arg1, (arg2[15]), (arg3[15])); + fiat_secp521r1_cmovznz_u32(&x17, arg1, (arg2[16]), (arg3[16])); + fiat_secp521r1_cmovznz_u32(&x18, arg1, (arg2[17]), (arg3[17])); + fiat_secp521r1_cmovznz_u32(&x19, arg1, (arg2[18]), (arg3[18])); + out1[0] = x1; + out1[1] = x2; + out1[2] = x3; + out1[3] = x4; + out1[4] = x5; + out1[5] = x6; + out1[6] = x7; + out1[7] = x8; + out1[8] = x9; + out1[9] = x10; + out1[10] = x11; + out1[11] = x12; + out1[12] = x13; + out1[13] = x14; + out1[14] = x15; + out1[15] = x16; + out1[16] = x17; + out1[17] = x18; + out1[18] = x19; +} + +/* + * The function fiat_secp521r1_to_bytes serializes a field element to bytes in little-endian order. + * Postconditions: + * out1 = map (λ x, ⌊((eval arg1 mod m) mod 2^(8 * (x + 1))) / 2^(8 * x)⌋) [0..65] + * + * Input Bounds: + * arg1: [[0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc]] + * Output Bounds: + * out1: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0x1]] + */ +static void +fiat_secp521r1_to_bytes(uint8_t out1[66], const uint32_t arg1[19]) +{ + uint32_t x1; + fiat_secp521r1_uint1 x2; + uint32_t x3; + fiat_secp521r1_uint1 x4; + uint32_t x5; + fiat_secp521r1_uint1 x6; + uint32_t x7; + fiat_secp521r1_uint1 x8; + uint32_t x9; + fiat_secp521r1_uint1 x10; + uint32_t x11; + fiat_secp521r1_uint1 x12; + uint32_t x13; + fiat_secp521r1_uint1 x14; + uint32_t x15; + fiat_secp521r1_uint1 x16; + uint32_t x17; + fiat_secp521r1_uint1 x18; + uint32_t x19; + fiat_secp521r1_uint1 x20; + uint32_t x21; + fiat_secp521r1_uint1 x22; + uint32_t x23; + fiat_secp521r1_uint1 x24; + uint32_t x25; + fiat_secp521r1_uint1 x26; + uint32_t x27; + fiat_secp521r1_uint1 x28; + uint32_t x29; + fiat_secp521r1_uint1 x30; + uint32_t x31; + fiat_secp521r1_uint1 x32; + uint32_t x33; + fiat_secp521r1_uint1 x34; + uint32_t x35; + fiat_secp521r1_uint1 x36; + uint32_t x37; + fiat_secp521r1_uint1 x38; + uint32_t x39; + uint32_t x40; + fiat_secp521r1_uint1 x41; + uint32_t x42; + fiat_secp521r1_uint1 x43; + uint32_t x44; + fiat_secp521r1_uint1 x45; + uint32_t x46; + fiat_secp521r1_uint1 x47; + uint32_t x48; + fiat_secp521r1_uint1 x49; + uint32_t x50; + fiat_secp521r1_uint1 x51; + uint32_t x52; + fiat_secp521r1_uint1 x53; + uint32_t x54; + fiat_secp521r1_uint1 x55; + uint32_t x56; + fiat_secp521r1_uint1 x57; + uint32_t x58; + fiat_secp521r1_uint1 x59; + uint32_t x60; + fiat_secp521r1_uint1 x61; + uint32_t x62; + fiat_secp521r1_uint1 x63; + uint32_t x64; + fiat_secp521r1_uint1 x65; + uint32_t x66; + fiat_secp521r1_uint1 x67; + uint32_t x68; + fiat_secp521r1_uint1 x69; + uint32_t x70; + fiat_secp521r1_uint1 x71; + uint32_t x72; + fiat_secp521r1_uint1 x73; + uint32_t x74; + fiat_secp521r1_uint1 x75; + uint32_t x76; + fiat_secp521r1_uint1 x77; + uint64_t x78; + uint32_t x79; + uint64_t x80; + uint32_t x81; + uint32_t x82; + uint32_t x83; + uint64_t x84; + uint32_t x85; + uint64_t x86; + uint32_t x87; + uint32_t x88; + uint32_t x89; + uint64_t x90; + uint32_t x91; + uint64_t x92; + uint32_t x93; + uint32_t x94; + uint8_t x95; + uint32_t x96; + uint8_t x97; + uint8_t x98; + uint8_t x99; + uint32_t x100; + uint32_t x101; + uint8_t x102; + uint32_t x103; + uint8_t x104; + uint8_t x105; + uint8_t x106; + uint64_t x107; + uint32_t x108; + uint8_t x109; + uint32_t x110; + uint8_t x111; + uint32_t x112; + uint8_t x113; + uint8_t x114; + uint8_t x115; + uint32_t x116; + uint32_t x117; + uint8_t x118; + uint32_t x119; + uint8_t x120; + uint8_t x121; + uint8_t x122; + uint64_t x123; + uint32_t x124; + uint8_t x125; + uint32_t x126; + uint8_t x127; + uint32_t x128; + uint8_t x129; + uint8_t x130; + uint8_t x131; + uint32_t x132; + uint32_t x133; + uint8_t x134; + uint32_t x135; + uint8_t x136; + uint8_t x137; + uint8_t x138; + uint32_t x139; + uint32_t x140; + uint8_t x141; + uint32_t x142; + uint8_t x143; + uint8_t x144; + uint8_t x145; + uint8_t x146; + uint32_t x147; + uint8_t x148; + uint32_t x149; + uint8_t x150; + uint8_t x151; + uint8_t x152; + uint32_t x153; + uint32_t x154; + uint8_t x155; + uint32_t x156; + uint8_t x157; + uint8_t x158; + uint8_t x159; + uint64_t x160; + uint32_t x161; + uint8_t x162; + uint32_t x163; + uint8_t x164; + uint32_t x165; + uint8_t x166; + uint8_t x167; + uint8_t x168; + uint32_t x169; + uint32_t x170; + uint8_t x171; + uint32_t x172; + uint8_t x173; + uint8_t x174; + uint8_t x175; + uint64_t x176; + uint32_t x177; + uint8_t x178; + uint32_t x179; + uint8_t x180; + uint32_t x181; + uint8_t x182; + uint8_t x183; + uint8_t x184; + uint32_t x185; + uint32_t x186; + uint8_t x187; + uint32_t x188; + uint8_t x189; + uint8_t x190; + uint8_t x191; + uint32_t x192; + uint32_t x193; + uint8_t x194; + uint32_t x195; + uint8_t x196; + uint8_t x197; + uint8_t x198; + uint8_t x199; + uint32_t x200; + uint8_t x201; + uint32_t x202; + uint8_t x203; + uint8_t x204; + uint8_t x205; + uint32_t x206; + uint32_t x207; + uint8_t x208; + uint32_t x209; + uint8_t x210; + uint8_t x211; + uint8_t x212; + uint64_t x213; + uint32_t x214; + uint8_t x215; + uint32_t x216; + uint8_t x217; + uint32_t x218; + uint8_t x219; + uint8_t x220; + uint8_t x221; + uint32_t x222; + uint32_t x223; + uint8_t x224; + uint32_t x225; + uint8_t x226; + uint8_t x227; + uint8_t x228; + uint64_t x229; + uint32_t x230; + uint8_t x231; + uint32_t x232; + uint8_t x233; + uint32_t x234; + uint8_t x235; + fiat_secp521r1_uint1 x236; + uint8_t x237; + fiat_secp521r1_subborrowx_u28(&x1, &x2, 0x0, (arg1[0]), + UINT32_C(0xfffffff)); + fiat_secp521r1_subborrowx_u27(&x3, &x4, x2, (arg1[1]), UINT32_C(0x7ffffff)); + fiat_secp521r1_subborrowx_u28(&x5, &x6, x4, (arg1[2]), UINT32_C(0xfffffff)); + fiat_secp521r1_subborrowx_u27(&x7, &x8, x6, (arg1[3]), UINT32_C(0x7ffffff)); + fiat_secp521r1_subborrowx_u28(&x9, &x10, x8, (arg1[4]), + UINT32_C(0xfffffff)); + fiat_secp521r1_subborrowx_u27(&x11, &x12, x10, (arg1[5]), + UINT32_C(0x7ffffff)); + fiat_secp521r1_subborrowx_u27(&x13, &x14, x12, (arg1[6]), + UINT32_C(0x7ffffff)); + fiat_secp521r1_subborrowx_u28(&x15, &x16, x14, (arg1[7]), + UINT32_C(0xfffffff)); + fiat_secp521r1_subborrowx_u27(&x17, &x18, x16, (arg1[8]), + UINT32_C(0x7ffffff)); + fiat_secp521r1_subborrowx_u28(&x19, &x20, x18, (arg1[9]), + UINT32_C(0xfffffff)); + fiat_secp521r1_subborrowx_u27(&x21, &x22, x20, (arg1[10]), + UINT32_C(0x7ffffff)); + fiat_secp521r1_subborrowx_u28(&x23, &x24, x22, (arg1[11]), + UINT32_C(0xfffffff)); + fiat_secp521r1_subborrowx_u27(&x25, &x26, x24, (arg1[12]), + UINT32_C(0x7ffffff)); + fiat_secp521r1_subborrowx_u27(&x27, &x28, x26, (arg1[13]), + UINT32_C(0x7ffffff)); + fiat_secp521r1_subborrowx_u28(&x29, &x30, x28, (arg1[14]), + UINT32_C(0xfffffff)); + fiat_secp521r1_subborrowx_u27(&x31, &x32, x30, (arg1[15]), + UINT32_C(0x7ffffff)); + fiat_secp521r1_subborrowx_u28(&x33, &x34, x32, (arg1[16]), + UINT32_C(0xfffffff)); + fiat_secp521r1_subborrowx_u27(&x35, &x36, x34, (arg1[17]), + UINT32_C(0x7ffffff)); + fiat_secp521r1_subborrowx_u27(&x37, &x38, x36, (arg1[18]), + UINT32_C(0x7ffffff)); + fiat_secp521r1_cmovznz_u32(&x39, x38, 0x0, UINT32_C(0xffffffff)); + fiat_secp521r1_addcarryx_u28(&x40, &x41, 0x0, x1, + (x39 & UINT32_C(0xfffffff))); + fiat_secp521r1_addcarryx_u27(&x42, &x43, x41, x3, + (x39 & UINT32_C(0x7ffffff))); + fiat_secp521r1_addcarryx_u28(&x44, &x45, x43, x5, + (x39 & UINT32_C(0xfffffff))); + fiat_secp521r1_addcarryx_u27(&x46, &x47, x45, x7, + (x39 & UINT32_C(0x7ffffff))); + fiat_secp521r1_addcarryx_u28(&x48, &x49, x47, x9, + (x39 & UINT32_C(0xfffffff))); + fiat_secp521r1_addcarryx_u27(&x50, &x51, x49, x11, + (x39 & UINT32_C(0x7ffffff))); + fiat_secp521r1_addcarryx_u27(&x52, &x53, x51, x13, + (x39 & UINT32_C(0x7ffffff))); + fiat_secp521r1_addcarryx_u28(&x54, &x55, x53, x15, + (x39 & UINT32_C(0xfffffff))); + fiat_secp521r1_addcarryx_u27(&x56, &x57, x55, x17, + (x39 & UINT32_C(0x7ffffff))); + fiat_secp521r1_addcarryx_u28(&x58, &x59, x57, x19, + (x39 & UINT32_C(0xfffffff))); + fiat_secp521r1_addcarryx_u27(&x60, &x61, x59, x21, + (x39 & UINT32_C(0x7ffffff))); + fiat_secp521r1_addcarryx_u28(&x62, &x63, x61, x23, + (x39 & UINT32_C(0xfffffff))); + fiat_secp521r1_addcarryx_u27(&x64, &x65, x63, x25, + (x39 & UINT32_C(0x7ffffff))); + fiat_secp521r1_addcarryx_u27(&x66, &x67, x65, x27, + (x39 & UINT32_C(0x7ffffff))); + fiat_secp521r1_addcarryx_u28(&x68, &x69, x67, x29, + (x39 & UINT32_C(0xfffffff))); + fiat_secp521r1_addcarryx_u27(&x70, &x71, x69, x31, + (x39 & UINT32_C(0x7ffffff))); + fiat_secp521r1_addcarryx_u28(&x72, &x73, x71, x33, + (x39 & UINT32_C(0xfffffff))); + fiat_secp521r1_addcarryx_u27(&x74, &x75, x73, x35, + (x39 & UINT32_C(0x7ffffff))); + fiat_secp521r1_addcarryx_u27(&x76, &x77, x75, x37, + (x39 & UINT32_C(0x7ffffff))); + x78 = ((uint64_t)x76 << 6); + x79 = (x74 << 3); + x80 = ((uint64_t)x72 << 7); + x81 = (x70 << 4); + x82 = (x66 << 5); + x83 = (x64 << 2); + x84 = ((uint64_t)x62 << 6); + x85 = (x60 << 3); + x86 = ((uint64_t)x58 << 7); + x87 = (x56 << 4); + x88 = (x52 << 5); + x89 = (x50 << 2); + x90 = ((uint64_t)x48 << 6); + x91 = (x46 << 3); + x92 = ((uint64_t)x44 << 7); + x93 = (x42 << 4); + x94 = (x40 >> 8); + x95 = (uint8_t)(x40 & UINT8_C(0xff)); + x96 = (x94 >> 8); + x97 = (uint8_t)(x94 & UINT8_C(0xff)); + x98 = (uint8_t)(x96 >> 8); + x99 = (uint8_t)(x96 & UINT8_C(0xff)); + x100 = (x98 + x93); + x101 = (x100 >> 8); + x102 = (uint8_t)(x100 & UINT8_C(0xff)); + x103 = (x101 >> 8); + x104 = (uint8_t)(x101 & UINT8_C(0xff)); + x105 = (uint8_t)(x103 >> 8); + x106 = (uint8_t)(x103 & UINT8_C(0xff)); + x107 = (x105 + x92); + x108 = (uint32_t)(x107 >> 8); + x109 = (uint8_t)(x107 & UINT8_C(0xff)); + x110 = (x108 >> 8); + x111 = (uint8_t)(x108 & UINT8_C(0xff)); + x112 = (x110 >> 8); + x113 = (uint8_t)(x110 & UINT8_C(0xff)); + x114 = (uint8_t)(x112 >> 8); + x115 = (uint8_t)(x112 & UINT8_C(0xff)); + x116 = (x114 + x91); + x117 = (x116 >> 8); + x118 = (uint8_t)(x116 & UINT8_C(0xff)); + x119 = (x117 >> 8); + x120 = (uint8_t)(x117 & UINT8_C(0xff)); + x121 = (uint8_t)(x119 >> 8); + x122 = (uint8_t)(x119 & UINT8_C(0xff)); + x123 = (x121 + x90); + x124 = (uint32_t)(x123 >> 8); + x125 = (uint8_t)(x123 & UINT8_C(0xff)); + x126 = (x124 >> 8); + x127 = (uint8_t)(x124 & UINT8_C(0xff)); + x128 = (x126 >> 8); + x129 = (uint8_t)(x126 & UINT8_C(0xff)); + x130 = (uint8_t)(x128 >> 8); + x131 = (uint8_t)(x128 & UINT8_C(0xff)); + x132 = (x130 + x89); + x133 = (x132 >> 8); + x134 = (uint8_t)(x132 & UINT8_C(0xff)); + x135 = (x133 >> 8); + x136 = (uint8_t)(x133 & UINT8_C(0xff)); + x137 = (uint8_t)(x135 >> 8); + x138 = (uint8_t)(x135 & UINT8_C(0xff)); + x139 = (x137 + x88); + x140 = (x139 >> 8); + x141 = (uint8_t)(x139 & UINT8_C(0xff)); + x142 = (x140 >> 8); + x143 = (uint8_t)(x140 & UINT8_C(0xff)); + x144 = (uint8_t)(x142 >> 8); + x145 = (uint8_t)(x142 & UINT8_C(0xff)); + x146 = (uint8_t)(x144 & UINT8_C(0xff)); + x147 = (x54 >> 8); + x148 = (uint8_t)(x54 & UINT8_C(0xff)); + x149 = (x147 >> 8); + x150 = (uint8_t)(x147 & UINT8_C(0xff)); + x151 = (uint8_t)(x149 >> 8); + x152 = (uint8_t)(x149 & UINT8_C(0xff)); + x153 = (x151 + x87); + x154 = (x153 >> 8); + x155 = (uint8_t)(x153 & UINT8_C(0xff)); + x156 = (x154 >> 8); + x157 = (uint8_t)(x154 & UINT8_C(0xff)); + x158 = (uint8_t)(x156 >> 8); + x159 = (uint8_t)(x156 & UINT8_C(0xff)); + x160 = (x158 + x86); + x161 = (uint32_t)(x160 >> 8); + x162 = (uint8_t)(x160 & UINT8_C(0xff)); + x163 = (x161 >> 8); + x164 = (uint8_t)(x161 & UINT8_C(0xff)); + x165 = (x163 >> 8); + x166 = (uint8_t)(x163 & UINT8_C(0xff)); + x167 = (uint8_t)(x165 >> 8); + x168 = (uint8_t)(x165 & UINT8_C(0xff)); + x169 = (x167 + x85); + x170 = (x169 >> 8); + x171 = (uint8_t)(x169 & UINT8_C(0xff)); + x172 = (x170 >> 8); + x173 = (uint8_t)(x170 & UINT8_C(0xff)); + x174 = (uint8_t)(x172 >> 8); + x175 = (uint8_t)(x172 & UINT8_C(0xff)); + x176 = (x174 + x84); + x177 = (uint32_t)(x176 >> 8); + x178 = (uint8_t)(x176 & UINT8_C(0xff)); + x179 = (x177 >> 8); + x180 = (uint8_t)(x177 & UINT8_C(0xff)); + x181 = (x179 >> 8); + x182 = (uint8_t)(x179 & UINT8_C(0xff)); + x183 = (uint8_t)(x181 >> 8); + x184 = (uint8_t)(x181 & UINT8_C(0xff)); + x185 = (x183 + x83); + x186 = (x185 >> 8); + x187 = (uint8_t)(x185 & UINT8_C(0xff)); + x188 = (x186 >> 8); + x189 = (uint8_t)(x186 & UINT8_C(0xff)); + x190 = (uint8_t)(x188 >> 8); + x191 = (uint8_t)(x188 & UINT8_C(0xff)); + x192 = (x190 + x82); + x193 = (x192 >> 8); + x194 = (uint8_t)(x192 & UINT8_C(0xff)); + x195 = (x193 >> 8); + x196 = (uint8_t)(x193 & UINT8_C(0xff)); + x197 = (uint8_t)(x195 >> 8); + x198 = (uint8_t)(x195 & UINT8_C(0xff)); + x199 = (uint8_t)(x197 & UINT8_C(0xff)); + x200 = (x68 >> 8); + x201 = (uint8_t)(x68 & UINT8_C(0xff)); + x202 = (x200 >> 8); + x203 = (uint8_t)(x200 & UINT8_C(0xff)); + x204 = (uint8_t)(x202 >> 8); + x205 = (uint8_t)(x202 & UINT8_C(0xff)); + x206 = (x204 + x81); + x207 = (x206 >> 8); + x208 = (uint8_t)(x206 & UINT8_C(0xff)); + x209 = (x207 >> 8); + x210 = (uint8_t)(x207 & UINT8_C(0xff)); + x211 = (uint8_t)(x209 >> 8); + x212 = (uint8_t)(x209 & UINT8_C(0xff)); + x213 = (x211 + x80); + x214 = (uint32_t)(x213 >> 8); + x215 = (uint8_t)(x213 & UINT8_C(0xff)); + x216 = (x214 >> 8); + x217 = (uint8_t)(x214 & UINT8_C(0xff)); + x218 = (x216 >> 8); + x219 = (uint8_t)(x216 & UINT8_C(0xff)); + x220 = (uint8_t)(x218 >> 8); + x221 = (uint8_t)(x218 & UINT8_C(0xff)); + x222 = (x220 + x79); + x223 = (x222 >> 8); + x224 = (uint8_t)(x222 & UINT8_C(0xff)); + x225 = (x223 >> 8); + x226 = (uint8_t)(x223 & UINT8_C(0xff)); + x227 = (uint8_t)(x225 >> 8); + x228 = (uint8_t)(x225 & UINT8_C(0xff)); + x229 = (x227 + x78); + x230 = (uint32_t)(x229 >> 8); + x231 = (uint8_t)(x229 & UINT8_C(0xff)); + x232 = (x230 >> 8); + x233 = (uint8_t)(x230 & UINT8_C(0xff)); + x234 = (x232 >> 8); + x235 = (uint8_t)(x232 & UINT8_C(0xff)); + x236 = (fiat_secp521r1_uint1)(x234 >> 8); + x237 = (uint8_t)(x234 & UINT8_C(0xff)); + out1[0] = x95; + out1[1] = x97; + out1[2] = x99; + out1[3] = x102; + out1[4] = x104; + out1[5] = x106; + out1[6] = x109; + out1[7] = x111; + out1[8] = x113; + out1[9] = x115; + out1[10] = x118; + out1[11] = x120; + out1[12] = x122; + out1[13] = x125; + out1[14] = x127; + out1[15] = x129; + out1[16] = x131; + out1[17] = x134; + out1[18] = x136; + out1[19] = x138; + out1[20] = x141; + out1[21] = x143; + out1[22] = x145; + out1[23] = x146; + out1[24] = x148; + out1[25] = x150; + out1[26] = x152; + out1[27] = x155; + out1[28] = x157; + out1[29] = x159; + out1[30] = x162; + out1[31] = x164; + out1[32] = x166; + out1[33] = x168; + out1[34] = x171; + out1[35] = x173; + out1[36] = x175; + out1[37] = x178; + out1[38] = x180; + out1[39] = x182; + out1[40] = x184; + out1[41] = x187; + out1[42] = x189; + out1[43] = x191; + out1[44] = x194; + out1[45] = x196; + out1[46] = x198; + out1[47] = x199; + out1[48] = x201; + out1[49] = x203; + out1[50] = x205; + out1[51] = x208; + out1[52] = x210; + out1[53] = x212; + out1[54] = x215; + out1[55] = x217; + out1[56] = x219; + out1[57] = x221; + out1[58] = x224; + out1[59] = x226; + out1[60] = x228; + out1[61] = x231; + out1[62] = x233; + out1[63] = x235; + out1[64] = x237; + out1[65] = x236; +} + +/* + * The function fiat_secp521r1_from_bytes deserializes a field element from bytes in little-endian order. + * Postconditions: + * eval out1 mod m = bytes_eval arg1 mod m + * + * Input Bounds: + * arg1: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0x1]] + * Output Bounds: + * out1: [[0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x11999999], [0x0 ~> 0x8cccccc], [0x0 ~> 0x8cccccc]] + */ +static void +fiat_secp521r1_from_bytes(uint32_t out1[19], + const uint8_t arg1[66]) +{ + uint32_t x1; + uint32_t x2; + uint32_t x3; + uint32_t x4; + uint32_t x5; + uint32_t x6; + uint32_t x7; + uint64_t x8; + uint32_t x9; + uint32_t x10; + uint32_t x11; + uint32_t x12; + uint32_t x13; + uint32_t x14; + uint32_t x15; + uint32_t x16; + uint32_t x17; + uint8_t x18; + uint32_t x19; + uint32_t x20; + uint32_t x21; + uint32_t x22; + uint32_t x23; + uint32_t x24; + uint64_t x25; + uint32_t x26; + uint32_t x27; + uint32_t x28; + uint32_t x29; + uint32_t x30; + uint32_t x31; + uint64_t x32; + uint32_t x33; + uint32_t x34; + uint32_t x35; + uint32_t x36; + uint32_t x37; + uint32_t x38; + uint32_t x39; + uint32_t x40; + uint32_t x41; + uint8_t x42; + uint32_t x43; + uint32_t x44; + uint32_t x45; + uint32_t x46; + uint32_t x47; + uint32_t x48; + uint64_t x49; + uint32_t x50; + uint32_t x51; + uint32_t x52; + uint32_t x53; + uint32_t x54; + uint32_t x55; + uint64_t x56; + uint32_t x57; + uint32_t x58; + uint32_t x59; + uint32_t x60; + uint32_t x61; + uint32_t x62; + uint32_t x63; + uint32_t x64; + uint32_t x65; + uint8_t x66; + uint32_t x67; + uint8_t x68; + uint32_t x69; + uint32_t x70; + uint32_t x71; + uint64_t x72; + uint32_t x73; + uint32_t x74; + uint32_t x75; + uint32_t x76; + uint64_t x77; + uint32_t x78; + uint64_t x79; + uint32_t x80; + uint32_t x81; + uint32_t x82; + uint32_t x83; + uint64_t x84; + uint32_t x85; + uint64_t x86; + uint32_t x87; + uint32_t x88; + fiat_secp521r1_uint1 x89; + uint32_t x90; + uint64_t x91; + uint8_t x92; + uint32_t x93; + uint32_t x94; + uint8_t x95; + uint32_t x96; + uint64_t x97; + uint8_t x98; + uint32_t x99; + uint32_t x100; + uint8_t x101; + uint32_t x102; + uint32_t x103; + uint32_t x104; + uint8_t x105; + uint32_t x106; + uint32_t x107; + fiat_secp521r1_uint1 x108; + uint32_t x109; + uint64_t x110; + uint8_t x111; + uint32_t x112; + uint32_t x113; + uint8_t x114; + uint32_t x115; + uint64_t x116; + uint8_t x117; + uint32_t x118; + uint32_t x119; + uint8_t x120; + uint32_t x121; + uint32_t x122; + uint32_t x123; + uint8_t x124; + uint32_t x125; + uint32_t x126; + fiat_secp521r1_uint1 x127; + uint32_t x128; + uint64_t x129; + uint8_t x130; + uint32_t x131; + uint32_t x132; + uint8_t x133; + uint32_t x134; + uint32_t x135; + x1 = ((uint32_t)(fiat_secp521r1_uint1)(arg1[65]) << 26); + x2 = ((uint32_t)(arg1[64]) << 18); + x3 = ((uint32_t)(arg1[63]) << 10); + x4 = ((uint32_t)(arg1[62]) << 2); + x5 = ((uint32_t)(arg1[61]) << 21); + x6 = ((uint32_t)(arg1[60]) << 13); + x7 = ((uint32_t)(arg1[59]) << 5); + x8 = ((uint64_t)(arg1[58]) << 25); + x9 = ((uint32_t)(arg1[57]) << 17); + x10 = ((uint32_t)(arg1[56]) << 9); + x11 = ((uint32_t)(arg1[55]) * 0x2); + x12 = ((uint32_t)(arg1[54]) << 20); + x13 = ((uint32_t)(arg1[53]) << 12); + x14 = ((uint32_t)(arg1[52]) << 4); + x15 = ((uint32_t)(arg1[51]) << 24); + x16 = ((uint32_t)(arg1[50]) << 16); + x17 = ((uint32_t)(arg1[49]) << 8); + x18 = (arg1[48]); + x19 = ((uint32_t)(arg1[47]) << 19); + x20 = ((uint32_t)(arg1[46]) << 11); + x21 = ((uint32_t)(arg1[45]) << 3); + x22 = ((uint32_t)(arg1[44]) << 22); + x23 = ((uint32_t)(arg1[43]) << 14); + x24 = ((uint32_t)(arg1[42]) << 6); + x25 = ((uint64_t)(arg1[41]) << 26); + x26 = ((uint32_t)(arg1[40]) << 18); + x27 = ((uint32_t)(arg1[39]) << 10); + x28 = ((uint32_t)(arg1[38]) << 2); + x29 = ((uint32_t)(arg1[37]) << 21); + x30 = ((uint32_t)(arg1[36]) << 13); + x31 = ((uint32_t)(arg1[35]) << 5); + x32 = ((uint64_t)(arg1[34]) << 25); + x33 = ((uint32_t)(arg1[33]) << 17); + x34 = ((uint32_t)(arg1[32]) << 9); + x35 = ((uint32_t)(arg1[31]) * 0x2); + x36 = ((uint32_t)(arg1[30]) << 20); + x37 = ((uint32_t)(arg1[29]) << 12); + x38 = ((uint32_t)(arg1[28]) << 4); + x39 = ((uint32_t)(arg1[27]) << 24); + x40 = ((uint32_t)(arg1[26]) << 16); + x41 = ((uint32_t)(arg1[25]) << 8); + x42 = (arg1[24]); + x43 = ((uint32_t)(arg1[23]) << 19); + x44 = ((uint32_t)(arg1[22]) << 11); + x45 = ((uint32_t)(arg1[21]) << 3); + x46 = ((uint32_t)(arg1[20]) << 22); + x47 = ((uint32_t)(arg1[19]) << 14); + x48 = ((uint32_t)(arg1[18]) << 6); + x49 = ((uint64_t)(arg1[17]) << 26); + x50 = ((uint32_t)(arg1[16]) << 18); + x51 = ((uint32_t)(arg1[15]) << 10); + x52 = ((uint32_t)(arg1[14]) << 2); + x53 = ((uint32_t)(arg1[13]) << 21); + x54 = ((uint32_t)(arg1[12]) << 13); + x55 = ((uint32_t)(arg1[11]) << 5); + x56 = ((uint64_t)(arg1[10]) << 25); + x57 = ((uint32_t)(arg1[9]) << 17); + x58 = ((uint32_t)(arg1[8]) << 9); + x59 = ((uint32_t)(arg1[7]) * 0x2); + x60 = ((uint32_t)(arg1[6]) << 20); + x61 = ((uint32_t)(arg1[5]) << 12); + x62 = ((uint32_t)(arg1[4]) << 4); + x63 = ((uint32_t)(arg1[3]) << 24); + x64 = ((uint32_t)(arg1[2]) << 16); + x65 = ((uint32_t)(arg1[1]) << 8); + x66 = (arg1[0]); + x67 = (x66 + (x65 + (x64 + x63))); + x68 = (uint8_t)(x67 >> 28); + x69 = (x67 & UINT32_C(0xfffffff)); + x70 = (x4 + (x3 + (x2 + x1))); + x71 = (x7 + (x6 + x5)); + x72 = (x11 + (x10 + (x9 + x8))); + x73 = (x14 + (x13 + x12)); + x74 = (x18 + (x17 + (x16 + x15))); + x75 = (x21 + (x20 + x19)); + x76 = (x24 + (x23 + x22)); + x77 = (x28 + (x27 + (x26 + x25))); + x78 = (x31 + (x30 + x29)); + x79 = (x35 + (x34 + (x33 + x32))); + x80 = (x38 + (x37 + x36)); + x81 = (x42 + (x41 + (x40 + x39))); + x82 = (x45 + (x44 + x43)); + x83 = (x48 + (x47 + x46)); + x84 = (x52 + (x51 + (x50 + x49))); + x85 = (x55 + (x54 + x53)); + x86 = (x59 + (x58 + (x57 + x56))); + x87 = (x62 + (x61 + x60)); + x88 = (x68 + x87); + x89 = (fiat_secp521r1_uint1)(x88 >> 27); + x90 = (x88 & UINT32_C(0x7ffffff)); + x91 = (x89 + x86); + x92 = (uint8_t)(x91 >> 28); + x93 = (uint32_t)(x91 & UINT32_C(0xfffffff)); + x94 = (x92 + x85); + x95 = (uint8_t)(x94 >> 27); + x96 = (x94 & UINT32_C(0x7ffffff)); + x97 = (x95 + x84); + x98 = (uint8_t)(x97 >> 28); + x99 = (uint32_t)(x97 & UINT32_C(0xfffffff)); + x100 = (x98 + x83); + x101 = (uint8_t)(x100 >> 27); + x102 = (x100 & UINT32_C(0x7ffffff)); + x103 = (x101 + x82); + x104 = (x103 & UINT32_C(0x7ffffff)); + x105 = (uint8_t)(x81 >> 28); + x106 = (x81 & UINT32_C(0xfffffff)); + x107 = (x105 + x80); + x108 = (fiat_secp521r1_uint1)(x107 >> 27); + x109 = (x107 & UINT32_C(0x7ffffff)); + x110 = (x108 + x79); + x111 = (uint8_t)(x110 >> 28); + x112 = (uint32_t)(x110 & UINT32_C(0xfffffff)); + x113 = (x111 + x78); + x114 = (uint8_t)(x113 >> 27); + x115 = (x113 & UINT32_C(0x7ffffff)); + x116 = (x114 + x77); + x117 = (uint8_t)(x116 >> 28); + x118 = (uint32_t)(x116 & UINT32_C(0xfffffff)); + x119 = (x117 + x76); + x120 = (uint8_t)(x119 >> 27); + x121 = (x119 & UINT32_C(0x7ffffff)); + x122 = (x120 + x75); + x123 = (x122 & UINT32_C(0x7ffffff)); + x124 = (uint8_t)(x74 >> 28); + x125 = (x74 & UINT32_C(0xfffffff)); + x126 = (x124 + x73); + x127 = (fiat_secp521r1_uint1)(x126 >> 27); + x128 = (x126 & UINT32_C(0x7ffffff)); + x129 = (x127 + x72); + x130 = (uint8_t)(x129 >> 28); + x131 = (uint32_t)(x129 & UINT32_C(0xfffffff)); + x132 = (x130 + x71); + x133 = (uint8_t)(x132 >> 27); + x134 = (x132 & UINT32_C(0x7ffffff)); + x135 = (x133 + x70); + out1[0] = x69; + out1[1] = x90; + out1[2] = x93; + out1[3] = x96; + out1[4] = x99; + out1[5] = x102; + out1[6] = x104; + out1[7] = x106; + out1[8] = x109; + out1[9] = x112; + out1[10] = x115; + out1[11] = x118; + out1[12] = x121; + out1[13] = x123; + out1[14] = x125; + out1[15] = x128; + out1[16] = x131; + out1[17] = x134; + out1[18] = x135; +} + +/* END verbatim fiat code */ + +/*- + * Finite field inversion via FLT. + * NB: this is not a real Fiat function, just named that way for consistency. + * Autogenerated: ecp/secp521r1/fe_inv.op3 + * custom repunit addition chain + */ +static void +fiat_secp521r1_inv(fe_t output, const fe_t t1) +{ + int i; + /* temporary variables */ + fe_t acc, t128, t16, t2, t256, t32, t4, t512, t516, t518, t519, t64, t8; + + fiat_secp521r1_carry_square(acc, t1); + fiat_secp521r1_carry_mul(t2, acc, t1); + fiat_secp521r1_carry_square(acc, t2); + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t4, acc, t2); + fiat_secp521r1_carry_square(acc, t4); + for (i = 0; i < 3; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t8, acc, t4); + fiat_secp521r1_carry_square(acc, t8); + for (i = 0; i < 7; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t16, acc, t8); + fiat_secp521r1_carry_square(acc, t16); + for (i = 0; i < 15; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t32, acc, t16); + fiat_secp521r1_carry_square(acc, t32); + for (i = 0; i < 31; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t64, acc, t32); + fiat_secp521r1_carry_square(acc, t64); + for (i = 0; i < 63; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t128, acc, t64); + fiat_secp521r1_carry_square(acc, t128); + for (i = 0; i < 127; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t256, acc, t128); + fiat_secp521r1_carry_square(acc, t256); + for (i = 0; i < 255; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t512, acc, t256); + fiat_secp521r1_carry_square(acc, t512); + for (i = 0; i < 3; i++) + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t516, acc, t4); + fiat_secp521r1_carry_square(acc, t516); + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(t518, acc, t2); + fiat_secp521r1_carry_square(acc, t518); + fiat_secp521r1_carry_mul(t519, acc, t1); + fiat_secp521r1_carry_square(acc, t519); + fiat_secp521r1_carry_square(acc, acc); + fiat_secp521r1_carry_mul(output, acc, t1); +} + +/* curve coefficient constants */ + +static const limb_t const_one[19] = { + UINT32_C(0x00000001), UINT32_C(0x00000000), UINT32_C(0x00000000), + UINT32_C(0x00000000), UINT32_C(0x00000000), UINT32_C(0x00000000), + UINT32_C(0x00000000), UINT32_C(0x00000000), UINT32_C(0x00000000), + UINT32_C(0x00000000), UINT32_C(0x00000000), UINT32_C(0x00000000), + UINT32_C(0x00000000), UINT32_C(0x00000000), UINT32_C(0x00000000), + UINT32_C(0x00000000), UINT32_C(0x00000000), UINT32_C(0x00000000), + UINT32_C(0x00000000) +}; + +static const limb_t const_b[19] = { + UINT32_C(0x0B503F00), UINT32_C(0x0451FD46), UINT32_C(0x0869E3DE), + UINT32_C(0x03F107A5), UINT32_C(0x0C1CD5CF), UINT32_C(0x074EEC6F), + UINT32_C(0x00B29605), UINT32_C(0x0C7E937B), UINT32_C(0x0193951E), + UINT32_C(0x0213C2AC), UINT32_C(0x013231DE), UINT32_C(0x07CEE2D2), + UINT32_C(0x06E66CC5), UINT32_C(0x0516D392), UINT32_C(0x068540EE), + UINT32_C(0x01A21A0B), UINT32_C(0x09343F25), UINT32_C(0x072C31C3), + UINT32_C(0x014654FA) +}; + +/* LUT for scalar multiplication by comb interleaving */ +static const pt_aff_t lut_cmb[13][16] = { + { + { { UINT32_C(0x02E5BD66), UINT32_C(0x07E7E31C), UINT32_C(0x048537F2), + UINT32_C(0x067830AD), UINT32_C(0x0378CD22), UINT32_C(0x01E8BFEA), + UINT32_C(0x07F0EE09), UINT32_C(0x0FE75928), UINT32_C(0x04B5E77E), + UINT32_C(0x0A7B7542), UINT32_C(0x05EC0D69), UINT32_C(0x0487E0A2), + UINT32_C(0x06414FED), UINT32_C(0x04E32409), UINT32_C(0x0395B442), + UINT32_C(0x03ECB662), UINT32_C(0x09D39B3C), UINT32_C(0x00D6E080), + UINT32_C(0x031A1638) }, + { UINT32_C(0x0FD16650), UINT32_C(0x03E94769), UINT32_C(0x05848111), + UINT32_C(0x0610D44E), UINT32_C(0x0D84D4F1), UINT32_C(0x004FEB41), + UINT32_C(0x062A85C8), UINT32_C(0x0EF42640), UINT32_C(0x06E72995), + UINT32_C(0x0CCC592F), UINT32_C(0x07A2E4E7), UINT32_C(0x01A05EBE), + UINT32_C(0x0255E6D1), UINT32_C(0x04C7AA22), UINT32_C(0x0C7D1BD9), + UINT32_C(0x00A5FB42), UINT32_C(0x078008B9), UINT32_C(0x054F1347), + UINT32_C(0x0460E4A5) } }, + { { UINT32_C(0x0E37AD7D), UINT32_C(0x0119D2ED), UINT32_C(0x05D40B4B), + UINT32_C(0x0210C586), UINT32_C(0x086EBAD2), UINT32_C(0x05AD67F8), + UINT32_C(0x00ED35E8), UINT32_C(0x0A483205), UINT32_C(0x03F164A3), + UINT32_C(0x051BA35A), UINT32_C(0x074225AF), UINT32_C(0x0AE796B5), + UINT32_C(0x06C48F66), UINT32_C(0x05A95372), UINT32_C(0x05959479), + UINT32_C(0x01D6A64B), UINT32_C(0x0232BBB2), UINT32_C(0x04887BC5), + UINT32_C(0x069CF4D4) }, + { UINT32_C(0x0E86C0E5), UINT32_C(0x0588CA1E), UINT32_C(0x0B2084BE), + UINT32_C(0x01379274), UINT32_C(0x0C33C417), UINT32_C(0x0477B0F1), + UINT32_C(0x016AD676), UINT32_C(0x0DC575B0), UINT32_C(0x02DD4CF8), + UINT32_C(0x0B9DD85C), UINT32_C(0x0563F46A), UINT32_C(0x0C5F4BE2), + UINT32_C(0x020AA740), UINT32_C(0x078AABFD), UINT32_C(0x0AB814F2), + UINT32_C(0x01F86C6C), UINT32_C(0x05BBB32F), UINT32_C(0x072FBF4C), + UINT32_C(0x04FA6C0E) } }, + { { UINT32_C(0x0C8F3078), UINT32_C(0x02B5096E), UINT32_C(0x062E71AB), + UINT32_C(0x043CDB12), UINT32_C(0x068CA75F), UINT32_C(0x03C4DF9E), + UINT32_C(0x038897F5), UINT32_C(0x0E301423), UINT32_C(0x03C0C6D5), + UINT32_C(0x0F59C870), UINT32_C(0x03571E2E), UINT32_C(0x04933C0F), + UINT32_C(0x076D4FC3), UINT32_C(0x03D2CB77), UINT32_C(0x004EB0BF), + UINT32_C(0x03C3391C), UINT32_C(0x08658E7B), UINT32_C(0x00A524F4), + UINT32_C(0x0194AFCF) }, + { UINT32_C(0x0EB090CB), UINT32_C(0x03CC3E8D), UINT32_C(0x09EFF02E), + UINT32_C(0x00E4AE6A), UINT32_C(0x0DE747C0), UINT32_C(0x00473D7F), + UINT32_C(0x0188AA01), UINT32_C(0x072CF374), UINT32_C(0x06897C90), + UINT32_C(0x08E10F76), UINT32_C(0x02F93406), UINT32_C(0x0147B760), + UINT32_C(0x03A1CB80), UINT32_C(0x00E6C7F4), UINT32_C(0x0A811291), + UINT32_C(0x02B73114), UINT32_C(0x03ADD914), UINT32_C(0x037BACC0), + UINT32_C(0x056F9BBC) } }, + { { UINT32_C(0x0816ECD4), UINT32_C(0x04EAD882), UINT32_C(0x04C33403), + UINT32_C(0x07EA1FB8), UINT32_C(0x0F11BE54), UINT32_C(0x043738EE), + UINT32_C(0x064D36F9), UINT32_C(0x0FC698D8), UINT32_C(0x0308D0AB), + UINT32_C(0x0298BB18), UINT32_C(0x02585EE2), UINT32_C(0x08A3C063), + UINT32_C(0x023D520C), UINT32_C(0x02F91707), UINT32_C(0x0B073A0C), + UINT32_C(0x0365FDA0), UINT32_C(0x0EC68DDD), UINT32_C(0x0333AB6F), + UINT32_C(0x015B5747) }, + { UINT32_C(0x0525251B), UINT32_C(0x06B8BC90), UINT32_C(0x0DF8F6B8), + UINT32_C(0x06254BBB), UINT32_C(0x097E79D9), UINT32_C(0x01647386), + UINT32_C(0x04A91D1A), UINT32_C(0x0DEC9E2B), UINT32_C(0x050F293C), + UINT32_C(0x07BCAAD7), UINT32_C(0x033144D9), UINT32_C(0x0375C76F), + UINT32_C(0x040A093C), UINT32_C(0x05AE2C16), UINT32_C(0x09D68478), + UINT32_C(0x058317A3), UINT32_C(0x054221A3), UINT32_C(0x07B37554), + UINT32_C(0x00F4B46D) } }, + { { UINT32_C(0x07CBE207), UINT32_C(0x04562796), UINT32_C(0x0A50CC3E), + UINT32_C(0x0757B0B9), UINT32_C(0x063D3D42), UINT32_C(0x07DC968C), + UINT32_C(0x079E2AB6), UINT32_C(0x0134DA35), UINT32_C(0x029E1396), + UINT32_C(0x0D6CCAE8), UINT32_C(0x0628B718), UINT32_C(0x0A64B12A), + UINT32_C(0x06E621D1), UINT32_C(0x0769A2A0), UINT32_C(0x0156D488), + UINT32_C(0x075BF157), UINT32_C(0x04304D45), UINT32_C(0x046B3C3C), + UINT32_C(0x05614E27) }, + { UINT32_C(0x09AD2A4E), UINT32_C(0x020EA86B), UINT32_C(0x001E6875), + UINT32_C(0x055D2511), UINT32_C(0x01F5CDB0), UINT32_C(0x03D2AFF6), + UINT32_C(0x007FAB76), UINT32_C(0x0057AC84), UINT32_C(0x069E5756), + UINT32_C(0x0688DC1A), UINT32_C(0x0744C7BB), UINT32_C(0x0EDB2096), + UINT32_C(0x053B873A), UINT32_C(0x01844532), UINT32_C(0x07AE938E), + UINT32_C(0x055557A2), UINT32_C(0x0BE73E16), UINT32_C(0x0193515D), + UINT32_C(0x00A8B986) } }, + { { UINT32_C(0x0A0CDB9A), UINT32_C(0x040E02DD), UINT32_C(0x035205D9), + UINT32_C(0x0049F499), UINT32_C(0x02140570), UINT32_C(0x02F8C644), + UINT32_C(0x068CD8D7), UINT32_C(0x0663DA1B), UINT32_C(0x05BC5332), + UINT32_C(0x022CA5E7), UINT32_C(0x058A9E53), UINT32_C(0x02550FBC), + UINT32_C(0x035F05E1), UINT32_C(0x076AEE3F), UINT32_C(0x0B4315CF), + UINT32_C(0x01A39573), UINT32_C(0x0BFEA8DE), UINT32_C(0x024B3FBD), + UINT32_C(0x0229D610) }, + { UINT32_C(0x0E48C808), UINT32_C(0x0074F92C), UINT32_C(0x0336BAB1), + UINT32_C(0x001C7E90), UINT32_C(0x0CDB72B2), UINT32_C(0x06452A54), + UINT32_C(0x01C49198), UINT32_C(0x0B42A4AB), UINT32_C(0x048A90E8), + UINT32_C(0x03705637), UINT32_C(0x02BA9C17), UINT32_C(0x024FB4BA), + UINT32_C(0x00842F41), UINT32_C(0x01D6EAB3), UINT32_C(0x054FB229), + UINT32_C(0x00CA8770), UINT32_C(0x0253093A), UINT32_C(0x07F97744), + UINT32_C(0x025BECC0) } }, + { { UINT32_C(0x02FBCDA7), UINT32_C(0x007848D3), UINT32_C(0x01DFF031), + UINT32_C(0x07601567), UINT32_C(0x0BA52FB0), UINT32_C(0x01E6AE23), + UINT32_C(0x01AA852F), UINT32_C(0x003C996A), UINT32_C(0x0445908E), + UINT32_C(0x070CC265), UINT32_C(0x0257D5EB), UINT32_C(0x08E13BB7), + UINT32_C(0x03786D30), UINT32_C(0x049FB9B6), UINT32_C(0x0924861A), + UINT32_C(0x0065D2B4), UINT32_C(0x0D5B39AF), UINT32_C(0x07309872), + UINT32_C(0x01F8FA63) }, + { UINT32_C(0x022A71C9), UINT32_C(0x01A01FB0), UINT32_C(0x0FD3EE52), + UINT32_C(0x0555F222), UINT32_C(0x0F0D8667), UINT32_C(0x05472FEE), + UINT32_C(0x0136FEE9), UINT32_C(0x08BC763F), UINT32_C(0x03D5D583), + UINT32_C(0x0C425583), UINT32_C(0x04F5CB83), UINT32_C(0x071A71E9), + UINT32_C(0x061B5508), UINT32_C(0x0676A851), UINT32_C(0x03ED5A08), + UINT32_C(0x01926DAA), UINT32_C(0x0FDB5234), UINT32_C(0x056DAF03), + UINT32_C(0x0423B963) } }, + { { UINT32_C(0x0CB8DB55), UINT32_C(0x02FE337B), UINT32_C(0x0F257BD3), + UINT32_C(0x02D303C7), UINT32_C(0x0C766E36), UINT32_C(0x0723F00C), + UINT32_C(0x03C3ADE8), UINT32_C(0x0BD00FFE), UINT32_C(0x01CCE27D), + UINT32_C(0x051C2372), UINT32_C(0x06A65BE2), UINT32_C(0x014B5A5E), + UINT32_C(0x042D0282), UINT32_C(0x05C7DE61), UINT32_C(0x06D4300F), + UINT32_C(0x0558FC54), UINT32_C(0x08CBE082), UINT32_C(0x03579724), + UINT32_C(0x01ADAB62) }, + { UINT32_C(0x01475465), UINT32_C(0x0343480A), UINT32_C(0x057BB2AC), + UINT32_C(0x0219888D), UINT32_C(0x06491BF6), UINT32_C(0x00CB25B2), + UINT32_C(0x010A4711), UINT32_C(0x09470A80), UINT32_C(0x01062C89), + UINT32_C(0x00BDAAFD), UINT32_C(0x020D32E9), UINT32_C(0x02E92D88), + UINT32_C(0x026EB483), UINT32_C(0x06F824B5), UINT32_C(0x03EDBF63), + UINT32_C(0x0664D233), UINT32_C(0x023AD4F9), UINT32_C(0x04E2AE27), + UINT32_C(0x06D1A368) } }, + { { UINT32_C(0x03110AE0), UINT32_C(0x07817A85), UINT32_C(0x034820ED), + UINT32_C(0x00855E1A), UINT32_C(0x003FE30C), UINT32_C(0x06D5A04E), + UINT32_C(0x06FA73CC), UINT32_C(0x04FE0287), UINT32_C(0x00A69E67), + UINT32_C(0x0A10B0EC), UINT32_C(0x049E4D24), UINT32_C(0x0ED35994), + UINT32_C(0x01A7E8AC), UINT32_C(0x04CF74F1), UINT32_C(0x0923906A), + UINT32_C(0x03874645), UINT32_C(0x0DB42741), UINT32_C(0x060FE261), + UINT32_C(0x06C0376D) }, + { UINT32_C(0x00E64647), UINT32_C(0x039CB7C7), UINT32_C(0x0EABEA6B), + UINT32_C(0x02B29856), UINT32_C(0x00839A41), UINT32_C(0x07C5AB7D), + UINT32_C(0x0697B3AB), UINT32_C(0x06DD0BF0), UINT32_C(0x05A564EF), + UINT32_C(0x02647BF3), UINT32_C(0x05856454), UINT32_C(0x02A635A2), + UINT32_C(0x033DA644), UINT32_C(0x05BCCA9A), UINT32_C(0x0EDDD106), + UINT32_C(0x011D4E4A), UINT32_C(0x0AEDB782), UINT32_C(0x03AFB62C), + UINT32_C(0x0215A0FC) } }, + { { UINT32_C(0x08D6A19B), UINT32_C(0x07F0B241), UINT32_C(0x077BC8F1), + UINT32_C(0x0063CE4B), UINT32_C(0x0C37FB3D), UINT32_C(0x075E9165), + UINT32_C(0x049192AB), UINT32_C(0x06266967), UINT32_C(0x03B30963), + UINT32_C(0x01CFE3F4), UINT32_C(0x059B66F2), UINT32_C(0x01FBFFC2), + UINT32_C(0x01D577D5), UINT32_C(0x022DBBF0), UINT32_C(0x05A1A072), + UINT32_C(0x07948C2D), UINT32_C(0x08690F81), UINT32_C(0x0490C833), + UINT32_C(0x02663733) }, + { UINT32_C(0x0BFD0575), UINT32_C(0x0091A695), UINT32_C(0x07FC8952), + UINT32_C(0x0313D53F), UINT32_C(0x0DDFD693), UINT32_C(0x06458C70), + UINT32_C(0x058761CC), UINT32_C(0x02EB8CF9), UINT32_C(0x02D963FF), + UINT32_C(0x0AEE4EE7), UINT32_C(0x05DC6CA8), UINT32_C(0x0D2B3143), + UINT32_C(0x038ADEF3), UINT32_C(0x033E9457), UINT32_C(0x035B245D), + UINT32_C(0x01424975), UINT32_C(0x03DAB987), UINT32_C(0x00C4D404), + UINT32_C(0x04DF5768) } }, + { { UINT32_C(0x03C8C9ED), UINT32_C(0x06F39969), UINT32_C(0x08DA5A85), + UINT32_C(0x02407274), UINT32_C(0x0D6CDEB2), UINT32_C(0x03B609F5), + UINT32_C(0x06CA4BF5), UINT32_C(0x0D62A309), UINT32_C(0x0257EAE4), + UINT32_C(0x0CFF528C), UINT32_C(0x07CEB388), UINT32_C(0x0A606548), + UINT32_C(0x030BB457), UINT32_C(0x01345DCC), UINT32_C(0x09ED3B10), + UINT32_C(0x04855085), UINT32_C(0x07A5F679), UINT32_C(0x00234E85), + UINT32_C(0x06872ECB) }, + { UINT32_C(0x0CBA4DF5), UINT32_C(0x00BC43C9), UINT32_C(0x0996C3CC), + UINT32_C(0x01E2EC93), UINT32_C(0x0B15F26C), UINT32_C(0x05CB18FB), + UINT32_C(0x05F5A1D1), UINT32_C(0x0A483295), UINT32_C(0x0741A53D), + UINT32_C(0x0F4FEFBE), UINT32_C(0x052DED75), UINT32_C(0x09B06028), + UINT32_C(0x0671464F), UINT32_C(0x0741E002), UINT32_C(0x0E40CE62), + UINT32_C(0x012DA7C5), UINT32_C(0x067A9058), UINT32_C(0x07A9F1DD), + UINT32_C(0x04688275) } }, + { { UINT32_C(0x02AF535C), UINT32_C(0x046A5ECE), UINT32_C(0x0CB00D43), + UINT32_C(0x063584D5), UINT32_C(0x0F881F87), UINT32_C(0x02697B14), + UINT32_C(0x074F1FC7), UINT32_C(0x0AF5B0AF), UINT32_C(0x06F83FC9), + UINT32_C(0x0A8A203E), UINT32_C(0x0469A19B), UINT32_C(0x0A092434), + UINT32_C(0x069E17EC), UINT32_C(0x0773D1CD), UINT32_C(0x0F547B8E), + UINT32_C(0x01CACEC5), UINT32_C(0x0B26EDB6), UINT32_C(0x03AE5202), + UINT32_C(0x06B82C9D) }, + { UINT32_C(0x0FA0D000), UINT32_C(0x015C3536), UINT32_C(0x0470ADB0), + UINT32_C(0x008A151A), UINT32_C(0x030884ED), UINT32_C(0x06EC1F74), + UINT32_C(0x01E13D93), UINT32_C(0x0E97FCF4), UINT32_C(0x0043361E), + UINT32_C(0x05B81C21), UINT32_C(0x048F0898), UINT32_C(0x00CAD0C5), + UINT32_C(0x06243416), UINT32_C(0x03EBACFF), UINT32_C(0x0068471C), + UINT32_C(0x022858FC), UINT32_C(0x0A700CD1), UINT32_C(0x004BCA70), + UINT32_C(0x03CB25EA) } }, + { { UINT32_C(0x0F70ACE0), UINT32_C(0x00C2460B), UINT32_C(0x0A7F627F), + UINT32_C(0x01D6384B), UINT32_C(0x0C9F9078), UINT32_C(0x02A9923F), + UINT32_C(0x02B743F1), UINT32_C(0x0C36EE4D), UINT32_C(0x01856917), + UINT32_C(0x03329552), UINT32_C(0x05918A93), UINT32_C(0x0EC471DC), + UINT32_C(0x01946C41), UINT32_C(0x00039881), UINT32_C(0x05DFF9D2), + UINT32_C(0x05874A6F), UINT32_C(0x04306946), UINT32_C(0x05AB8B53), + UINT32_C(0x0553A131) }, + { UINT32_C(0x04C78230), UINT32_C(0x025BCE40), UINT32_C(0x0CD6DA86), + UINT32_C(0x054A8CE5), UINT32_C(0x0BD7BB78), UINT32_C(0x029A965C), + UINT32_C(0x068F11B8), UINT32_C(0x02FBC1A0), UINT32_C(0x06354357), + UINT32_C(0x0CCD4DBD), UINT32_C(0x051102A2), UINT32_C(0x031FD9B0), + UINT32_C(0x02C008A8), UINT32_C(0x00AD491F), UINT32_C(0x0BB60D3F), + UINT32_C(0x02A28F80), UINT32_C(0x008E75C4), UINT32_C(0x0522E322), + UINT32_C(0x03343F73) } }, + { { UINT32_C(0x0002D68B), UINT32_C(0x07643017), UINT32_C(0x088AD06A), + UINT32_C(0x0408925D), UINT32_C(0x08F2C855), UINT32_C(0x036834C5), + UINT32_C(0x0289A9D7), UINT32_C(0x0719D483), UINT32_C(0x032123DA), + UINT32_C(0x0B0A9B01), UINT32_C(0x0230FC26), UINT32_C(0x08B0CFCD), + UINT32_C(0x074393E1), UINT32_C(0x0439CA9A), UINT32_C(0x089E646F), + UINT32_C(0x024D4EB8), UINT32_C(0x036D4EC5), UINT32_C(0x03F0431F), + UINT32_C(0x0580DCFB) }, + { UINT32_C(0x0D90B740), UINT32_C(0x066AECA5), UINT32_C(0x0B5967E7), + UINT32_C(0x07CE13A8), UINT32_C(0x0CB918FF), UINT32_C(0x052A2ED5), + UINT32_C(0x009DC3A7), UINT32_C(0x092EBC54), UINT32_C(0x07A491ED), + UINT32_C(0x0644023D), UINT32_C(0x06F1C343), UINT32_C(0x0EED295B), + UINT32_C(0x0173D4B0), UINT32_C(0x04FE8C9E), UINT32_C(0x0C06A3FA), + UINT32_C(0x0028401A), UINT32_C(0x0FC38BCB), UINT32_C(0x020029B9), + UINT32_C(0x03C565C1) } }, + { { UINT32_C(0x0EDA25DC), UINT32_C(0x03927618), UINT32_C(0x0EDB2C58), + UINT32_C(0x00B2BAA3), UINT32_C(0x0E7BCCF6), UINT32_C(0x03A11FFE), + UINT32_C(0x02001D5C), UINT32_C(0x076D7291), UINT32_C(0x029BC068), + UINT32_C(0x094260B9), UINT32_C(0x0671EECC), UINT32_C(0x07B0A2FB), + UINT32_C(0x047A1899), UINT32_C(0x07CFA289), UINT32_C(0x065A085F), + UINT32_C(0x041FBFCB), UINT32_C(0x0050FB67), UINT32_C(0x02D9296D), + UINT32_C(0x05D31913) }, + { UINT32_C(0x021A0C30), UINT32_C(0x07BBBC48), UINT32_C(0x077F7A30), + UINT32_C(0x024F84DD), UINT32_C(0x00FC19E6), UINT32_C(0x035C1B4C), + UINT32_C(0x02861399), UINT32_C(0x0CE0D90B), UINT32_C(0x00E21952), + UINT32_C(0x0A696F7C), UINT32_C(0x03D6F2B5), UINT32_C(0x07F2D73D), + UINT32_C(0x03F2D910), UINT32_C(0x00119F7C), UINT32_C(0x01B7B782), + UINT32_C(0x02CC95B4), UINT32_C(0x033CD00B), UINT32_C(0x005F0FE8), + UINT32_C(0x046BCE9F) } }, + { { UINT32_C(0x016A8803), UINT32_C(0x057D0E0C), UINT32_C(0x04902444), + UINT32_C(0x06BC911C), UINT32_C(0x0C88373E), UINT32_C(0x0302735A), + UINT32_C(0x07E0A60D), UINT32_C(0x04C9D429), UINT32_C(0x05543A90), + UINT32_C(0x0EE4D9AC), UINT32_C(0x050794BC), UINT32_C(0x0985C982), + UINT32_C(0x0595F0A9), UINT32_C(0x05ABA2C4), UINT32_C(0x07307B7D), + UINT32_C(0x06A58CDB), UINT32_C(0x08CC2A00), UINT32_C(0x019E61E1), + UINT32_C(0x0363A648) }, + { UINT32_C(0x09792D19), UINT32_C(0x04677C73), UINT32_C(0x08631594), + UINT32_C(0x032F8F6A), UINT32_C(0x098EA86F), UINT32_C(0x032B9330), + UINT32_C(0x009CD434), UINT32_C(0x04D14790), UINT32_C(0x06B8C324), + UINT32_C(0x035461EE), UINT32_C(0x06E597DA), UINT32_C(0x00182BBE), + UINT32_C(0x04A3C432), UINT32_C(0x045AA031), UINT32_C(0x014A30EC), + UINT32_C(0x009C13A2), UINT32_C(0x0C730FBE), UINT32_C(0x06A8A94C), + UINT32_C(0x049EC08E) } }, + }, + { + { { UINT32_C(0x043C6A8B), UINT32_C(0x069E114E), UINT32_C(0x02D17119), + UINT32_C(0x07161008), UINT32_C(0x04253BA7), UINT32_C(0x06D7E9D1), + UINT32_C(0x07AFFFEA), UINT32_C(0x0C20088E), UINT32_C(0x009D84CD), + UINT32_C(0x094B5A8B), UINT32_C(0x070C9B19), UINT32_C(0x0A140336), + UINT32_C(0x059D32DC), UINT32_C(0x07D5C770), UINT32_C(0x0B702098), + UINT32_C(0x0646FC6A), UINT32_C(0x06312DAB), UINT32_C(0x05DEF39B), + UINT32_C(0x07B32BAC) }, + { UINT32_C(0x06B04438), UINT32_C(0x0086BBC2), UINT32_C(0x0CE331EB), + UINT32_C(0x07A1DB2A), UINT32_C(0x04798584), UINT32_C(0x0632A66E), + UINT32_C(0x03A4F5AE), UINT32_C(0x03B41996), UINT32_C(0x061944D5), + UINT32_C(0x0E8ECAB0), UINT32_C(0x00E38A9B), UINT32_C(0x0BBF7088), + UINT32_C(0x022E1052), UINT32_C(0x00FB1445), UINT32_C(0x0FF1C5EA), + UINT32_C(0x034DB2F7), UINT32_C(0x04C560D6), UINT32_C(0x050E7FEA), + UINT32_C(0x00B97B7C) } }, + { { UINT32_C(0x004ED5E3), UINT32_C(0x012DA268), UINT32_C(0x08C92EF3), + UINT32_C(0x06F60BF9), UINT32_C(0x0656B119), UINT32_C(0x014823AF), + UINT32_C(0x058D04AC), UINT32_C(0x099D3419), UINT32_C(0x00CFAE71), + UINT32_C(0x0B423A38), UINT32_C(0x05EA80E2), UINT32_C(0x06C1F218), + UINT32_C(0x03E72AD5), UINT32_C(0x0691F49A), UINT32_C(0x04310FAB), + UINT32_C(0x05D250AD), UINT32_C(0x084D7BFA), UINT32_C(0x070595DE), + UINT32_C(0x017825D9) }, + { UINT32_C(0x0A7D5B37), UINT32_C(0x00B0A7A2), UINT32_C(0x0ED3BDEF), + UINT32_C(0x02B29FDB), UINT32_C(0x085BCC71), UINT32_C(0x0455FDD9), + UINT32_C(0x0595CF1F), UINT32_C(0x0040CCA6), UINT32_C(0x04FA2F23), + UINT32_C(0x04A05DD3), UINT32_C(0x07E18B4E), UINT32_C(0x045A2A46), + UINT32_C(0x058F2043), UINT32_C(0x038FC52D), UINT32_C(0x0A7666DC), + UINT32_C(0x0701CE42), UINT32_C(0x04B38B92), UINT32_C(0x01AD842D), + UINT32_C(0x07A0B6A0) } }, + { { UINT32_C(0x029D2024), UINT32_C(0x0728395A), UINT32_C(0x04DB516D), + UINT32_C(0x0504C2CE), UINT32_C(0x03C5DEB1), UINT32_C(0x041CFF48), + UINT32_C(0x014AE223), UINT32_C(0x0856531F), UINT32_C(0x02EC3F65), + UINT32_C(0x0A46F536), UINT32_C(0x04ECB2AA), UINT32_C(0x0FB7289E), + UINT32_C(0x03DE9EFF), UINT32_C(0x0724BAA3), UINT32_C(0x0508D541), + UINT32_C(0x051B73BA), UINT32_C(0x0B38749E), UINT32_C(0x044097DF), + UINT32_C(0x00E5AC8E) }, + { UINT32_C(0x0DDD93A9), UINT32_C(0x04295052), UINT32_C(0x0E03B84C), + UINT32_C(0x00B38799), UINT32_C(0x037F6A48), UINT32_C(0x07614753), + UINT32_C(0x05765258), UINT32_C(0x0E0CA450), UINT32_C(0x07CFB537), + UINT32_C(0x07342BEF), UINT32_C(0x05C319BB), UINT32_C(0x04F3A1F5), + UINT32_C(0x04762545), UINT32_C(0x0589360C), UINT32_C(0x0E5A46C8), + UINT32_C(0x02744137), UINT32_C(0x05E9E991), UINT32_C(0x01523BC2), + UINT32_C(0x062CDAB6) } }, + { { UINT32_C(0x090E92D6), UINT32_C(0x00FA75A5), UINT32_C(0x040D6969), + UINT32_C(0x011D7DDB), UINT32_C(0x0B02AC62), UINT32_C(0x07679C7F), + UINT32_C(0x07FD8A06), UINT32_C(0x0A623D2A), UINT32_C(0x034C8ED2), + UINT32_C(0x07FB351F), UINT32_C(0x008857BA), UINT32_C(0x09AD9171), + UINT32_C(0x03CB7A5B), UINT32_C(0x01A56DB4), UINT32_C(0x09225D29), + UINT32_C(0x07819EC5), UINT32_C(0x0645D37A), UINT32_C(0x0618AED1), + UINT32_C(0x053A82A2) }, + { UINT32_C(0x0662F537), UINT32_C(0x00AB8407), UINT32_C(0x0FF98DF8), + UINT32_C(0x03C0F116), UINT32_C(0x0C87DD6F), UINT32_C(0x00995A87), + UINT32_C(0x036E7BF1), UINT32_C(0x0318B15E), UINT32_C(0x01116415), + UINT32_C(0x00A53CD8), UINT32_C(0x0237AEF5), UINT32_C(0x065DCC5D), + UINT32_C(0x048F2118), UINT32_C(0x011F3E13), UINT32_C(0x0AD27061), + UINT32_C(0x02B7B666), UINT32_C(0x01CB618D), UINT32_C(0x02EC555A), + UINT32_C(0x058DF8C5) } }, + { { UINT32_C(0x0B9839DA), UINT32_C(0x0047D336), UINT32_C(0x09E93377), + UINT32_C(0x00074C09), UINT32_C(0x08B5F722), UINT32_C(0x06A0986D), + UINT32_C(0x03ABD41C), UINT32_C(0x057C1CAA), UINT32_C(0x02B2ACCA), + UINT32_C(0x0FC9B996), UINT32_C(0x05488187), UINT32_C(0x07861011), + UINT32_C(0x0163907B), UINT32_C(0x07F6DAF7), UINT32_C(0x0363BC0E), + UINT32_C(0x058EF00F), UINT32_C(0x05446B66), UINT32_C(0x0514AA79), + UINT32_C(0x04A03953) }, + { UINT32_C(0x0C1962CE), UINT32_C(0x06493BB1), UINT32_C(0x086D6126), + UINT32_C(0x00FCE569), UINT32_C(0x0DC92336), UINT32_C(0x015B8163), + UINT32_C(0x0432A31C), UINT32_C(0x0133A6EE), UINT32_C(0x0578D7AF), + UINT32_C(0x0840A2D3), UINT32_C(0x064C1FC2), UINT32_C(0x085837C8), + UINT32_C(0x0641237D), UINT32_C(0x054AF205), UINT32_C(0x0657C4E2), + UINT32_C(0x04B8B1E0), UINT32_C(0x00272237), UINT32_C(0x05B53E59), + UINT32_C(0x001FEA03) } }, + { { UINT32_C(0x0D2BF9A7), UINT32_C(0x01A65815), UINT32_C(0x06FC3341), + UINT32_C(0x065823F4), UINT32_C(0x01599DE7), UINT32_C(0x070CA981), + UINT32_C(0x067E13C8), UINT32_C(0x009A9A6A), UINT32_C(0x0229B72F), + UINT32_C(0x09B1BC4A), UINT32_C(0x06BCE69A), UINT32_C(0x0FA69B0D), + UINT32_C(0x078B83C0), UINT32_C(0x06E62A5C), UINT32_C(0x021D206C), + UINT32_C(0x04E0CE16), UINT32_C(0x0F728EF3), UINT32_C(0x0453D52E), + UINT32_C(0x01844B54) }, + { UINT32_C(0x020C30CB), UINT32_C(0x04E85BEE), UINT32_C(0x095E4EAF), + UINT32_C(0x075E0168), UINT32_C(0x039C14AF), UINT32_C(0x0370EA5A), + UINT32_C(0x05B0F157), UINT32_C(0x02E11B96), UINT32_C(0x042E3824), + UINT32_C(0x0D5DC5BB), UINT32_C(0x00451C96), UINT32_C(0x0E911392), + UINT32_C(0x0724269B), UINT32_C(0x04003692), UINT32_C(0x076FEA68), + UINT32_C(0x033CBDE1), UINT32_C(0x0417AF7D), UINT32_C(0x00B9592D), + UINT32_C(0x027FA0B4) } }, + { { UINT32_C(0x0B2E6D92), UINT32_C(0x06E8F69A), UINT32_C(0x0DCD1AA5), + UINT32_C(0x01FB27B9), UINT32_C(0x04974F21), UINT32_C(0x027768BA), + UINT32_C(0x02769E05), UINT32_C(0x08C4A5CC), UINT32_C(0x047AF64B), + UINT32_C(0x08B89BB2), UINT32_C(0x02ED5662), UINT32_C(0x03939461), + UINT32_C(0x01F7401B), UINT32_C(0x06FDF357), UINT32_C(0x019C98D9), + UINT32_C(0x07B1E9DD), UINT32_C(0x075DC034), UINT32_C(0x01E0054F), + UINT32_C(0x02A2F727) }, + { UINT32_C(0x0EB71C5F), UINT32_C(0x023BF702), UINT32_C(0x02236711), + UINT32_C(0x012F6D73), UINT32_C(0x0CA22E0A), UINT32_C(0x02359757), + UINT32_C(0x0157DA08), UINT32_C(0x05CB0525), UINT32_C(0x0102CBFE), + UINT32_C(0x0854B694), UINT32_C(0x07F9F306), UINT32_C(0x0A6E3855), + UINT32_C(0x024CCD83), UINT32_C(0x0220CC0E), UINT32_C(0x0AAD6848), + UINT32_C(0x0783A366), UINT32_C(0x0B9AD104), UINT32_C(0x02844B14), + UINT32_C(0x07B5BC13) } }, + { { UINT32_C(0x01490429), UINT32_C(0x07C3B47C), UINT32_C(0x0DB7A58B), + UINT32_C(0x04D10D93), UINT32_C(0x08CA405B), UINT32_C(0x07FD087B), + UINT32_C(0x07C88AC9), UINT32_C(0x07D54451), UINT32_C(0x07010F32), + UINT32_C(0x06D62976), UINT32_C(0x03752EE7), UINT32_C(0x0A2326FD), + UINT32_C(0x00445040), UINT32_C(0x03605DB9), UINT32_C(0x03194920), + UINT32_C(0x01F8F0DF), UINT32_C(0x0F321EF5), UINT32_C(0x0297EC47), + UINT32_C(0x05C97D9A) }, + { UINT32_C(0x087CA374), UINT32_C(0x04D9BD85), UINT32_C(0x09E4C1E2), + UINT32_C(0x05C6B60F), UINT32_C(0x03338BE0), UINT32_C(0x06C38E9F), + UINT32_C(0x030527CA), UINT32_C(0x0F28850A), UINT32_C(0x039421C7), + UINT32_C(0x02DE48C5), UINT32_C(0x0652719F), UINT32_C(0x097E2E6B), + UINT32_C(0x0758DD1C), UINT32_C(0x06788A64), UINT32_C(0x01CDEC4A), + UINT32_C(0x0314A216), UINT32_C(0x022EE734), UINT32_C(0x023BD455), + UINT32_C(0x05EC7716) } }, + { { UINT32_C(0x03ACF0F9), UINT32_C(0x0203D95A), UINT32_C(0x0286435B), + UINT32_C(0x01818DC4), UINT32_C(0x02821B92), UINT32_C(0x06AE5102), + UINT32_C(0x07066934), UINT32_C(0x07BC9150), UINT32_C(0x07BA5607), + UINT32_C(0x0EC5981C), UINT32_C(0x04C69569), UINT32_C(0x03CC0C2A), + UINT32_C(0x07DA94A0), UINT32_C(0x07E65511), UINT32_C(0x086234FB), + UINT32_C(0x05407465), UINT32_C(0x0F825CD7), UINT32_C(0x03F370CC), + UINT32_C(0x00DC963A) }, + { UINT32_C(0x09436D81), UINT32_C(0x04465793), UINT32_C(0x041DBE76), + UINT32_C(0x0384C090), UINT32_C(0x005C5350), UINT32_C(0x07296D6A), + UINT32_C(0x04712C6D), UINT32_C(0x0B8974CF), UINT32_C(0x07A230E5), + UINT32_C(0x0CBF52A8), UINT32_C(0x016C1814), UINT32_C(0x06EDC3F7), + UINT32_C(0x0627F679), UINT32_C(0x0750029A), UINT32_C(0x06E2AA55), + UINT32_C(0x0245FF68), UINT32_C(0x0F8F41C6), UINT32_C(0x00A2BB27), + UINT32_C(0x052BDC1F) } }, + { { UINT32_C(0x06C8D427), UINT32_C(0x0648C043), UINT32_C(0x045E9C01), + UINT32_C(0x042CC909), UINT32_C(0x089A90AA), UINT32_C(0x007114E3), + UINT32_C(0x0085B7C3), UINT32_C(0x0B9DE134), UINT32_C(0x06B0A9E9), + UINT32_C(0x0AAAEBCC), UINT32_C(0x0092A52A), UINT32_C(0x0D6E2713), + UINT32_C(0x05857362), UINT32_C(0x0118376C), UINT32_C(0x000A08F8), + UINT32_C(0x003DE32F), UINT32_C(0x0E3FE6ED), UINT32_C(0x06CFB412), + UINT32_C(0x043D1662) }, + { UINT32_C(0x0D400463), UINT32_C(0x0448C05A), UINT32_C(0x0AE67E6E), + UINT32_C(0x059369CB), UINT32_C(0x0A23C77C), UINT32_C(0x06E7F666), + UINT32_C(0x05BB8233), UINT32_C(0x095E95B6), UINT32_C(0x0284C07C), + UINT32_C(0x0F6C7097), UINT32_C(0x0443F5D5), UINT32_C(0x0301FE7F), + UINT32_C(0x023010C9), UINT32_C(0x009D2363), UINT32_C(0x07BD65C2), + UINT32_C(0x07E297A0), UINT32_C(0x034DDA50), UINT32_C(0x07ADC7E7), + UINT32_C(0x03060E2B) } }, + { { UINT32_C(0x0924C15F), UINT32_C(0x04E07505), UINT32_C(0x08D0DCCF), + UINT32_C(0x01D04769), UINT32_C(0x02E2E204), UINT32_C(0x0713097A), + UINT32_C(0x07E9B59C), UINT32_C(0x07FDCF7A), UINT32_C(0x03E60E03), + UINT32_C(0x0423C6CD), UINT32_C(0x06A163F7), UINT32_C(0x07C0FA8B), + UINT32_C(0x01341D2B), UINT32_C(0x06745C51), UINT32_C(0x03C9DE3A), + UINT32_C(0x06D6D6F5), UINT32_C(0x0F5AF83F), UINT32_C(0x02698DEF), + UINT32_C(0x06091F29) }, + { UINT32_C(0x0DBEEE78), UINT32_C(0x060A02B3), UINT32_C(0x0558AE6B), + UINT32_C(0x07100333), UINT32_C(0x0A312381), UINT32_C(0x02FA9A13), + UINT32_C(0x06D1C0C3), UINT32_C(0x0C625336), UINT32_C(0x03B853CF), + UINT32_C(0x08B3BE37), UINT32_C(0x0104E5D9), UINT32_C(0x053B9B53), + UINT32_C(0x02A2D06C), UINT32_C(0x01CDC864), UINT32_C(0x0F04A867), + UINT32_C(0x07663226), UINT32_C(0x0FD6C54B), UINT32_C(0x040943C5), + UINT32_C(0x03C04D10) } }, + { { UINT32_C(0x090F8C80), UINT32_C(0x0582A686), UINT32_C(0x0BA42ED6), + UINT32_C(0x070A8F1E), UINT32_C(0x0AB02D12), UINT32_C(0x01EB5C3D), + UINT32_C(0x07479B29), UINT32_C(0x04D72C41), UINT32_C(0x0362562E), + UINT32_C(0x06FAF4FC), UINT32_C(0x033FED54), UINT32_C(0x0229578C), + UINT32_C(0x005B4CFB), UINT32_C(0x03BA05BF), UINT32_C(0x0B4A3FBC), + UINT32_C(0x07DBD5D5), UINT32_C(0x05E8639D), UINT32_C(0x07D5867F), + UINT32_C(0x027FE947) }, + { UINT32_C(0x01982847), UINT32_C(0x008A8D79), UINT32_C(0x0B215B64), + UINT32_C(0x06EDECCB), UINT32_C(0x045309BE), UINT32_C(0x055465DE), + UINT32_C(0x0426ED2E), UINT32_C(0x0D49D672), UINT32_C(0x01000B74), + UINT32_C(0x01206E3C), UINT32_C(0x061A0CA8), UINT32_C(0x020BEC03), + UINT32_C(0x02104AC7), UINT32_C(0x03FB64AC), UINT32_C(0x097C06BE), + UINT32_C(0x05DF7C1D), UINT32_C(0x0EFD23AB), UINT32_C(0x042BC8D8), + UINT32_C(0x02A649D7) } }, + { { UINT32_C(0x0643409F), UINT32_C(0x06A50E0A), UINT32_C(0x00C269C2), + UINT32_C(0x0130B8C0), UINT32_C(0x0B25EAD2), UINT32_C(0x07A4A516), + UINT32_C(0x0375B082), UINT32_C(0x0E197F8C), UINT32_C(0x0546B686), + UINT32_C(0x0B8287C5), UINT32_C(0x04A367C1), UINT32_C(0x07DF58A1), + UINT32_C(0x05B7DD15), UINT32_C(0x061763FD), UINT32_C(0x0E2DF8E8), + UINT32_C(0x05ABFC51), UINT32_C(0x087018C8), UINT32_C(0x05935143), + UINT32_C(0x05E9EFA4) }, + { UINT32_C(0x0AF2F29D), UINT32_C(0x0063F9B1), UINT32_C(0x0FB11A34), + UINT32_C(0x02D7C22E), UINT32_C(0x08AF67E7), UINT32_C(0x005AC16C), + UINT32_C(0x047EE080), UINT32_C(0x0B7677A2), UINT32_C(0x04500DDC), + UINT32_C(0x0137CD80), UINT32_C(0x01CF2369), UINT32_C(0x0DE177B8), + UINT32_C(0x018122DE), UINT32_C(0x00EDFC0C), UINT32_C(0x0048B9ED), + UINT32_C(0x043633B7), UINT32_C(0x0666D33E), UINT32_C(0x00317E10), + UINT32_C(0x066100C3) } }, + { { UINT32_C(0x037B93A2), UINT32_C(0x07917621), UINT32_C(0x048F411C), + UINT32_C(0x04EF1E2A), UINT32_C(0x0FC8F91F), UINT32_C(0x04090E1D), + UINT32_C(0x066F78F2), UINT32_C(0x0C2C0207), UINT32_C(0x065E2513), + UINT32_C(0x0F03BADB), UINT32_C(0x03689AF4), UINT32_C(0x0FE959E2), + UINT32_C(0x028B6A5E), UINT32_C(0x0101C577), UINT32_C(0x0C3A5192), + UINT32_C(0x03042F53), UINT32_C(0x0E2A6A29), UINT32_C(0x0231095D), + UINT32_C(0x06E29445) }, + { UINT32_C(0x07A00331), UINT32_C(0x041D85F7), UINT32_C(0x0D189E24), + UINT32_C(0x0294578C), UINT32_C(0x04A9E7A3), UINT32_C(0x037F260A), + UINT32_C(0x060D62BB), UINT32_C(0x07AED3DE), UINT32_C(0x0727FEAB), + UINT32_C(0x0283C99C), UINT32_C(0x05A11B56), UINT32_C(0x08953348), + UINT32_C(0x01A388E1), UINT32_C(0x028932F2), UINT32_C(0x0AFFD5A7), + UINT32_C(0x042CF6C6), UINT32_C(0x072339BA), UINT32_C(0x06344724), + UINT32_C(0x0395F757) } }, + { { UINT32_C(0x01328CE4), UINT32_C(0x01D69A89), UINT32_C(0x03D3B2E3), + UINT32_C(0x0780829F), UINT32_C(0x0848A488), UINT32_C(0x057B85BD), + UINT32_C(0x02051385), UINT32_C(0x06706AD6), UINT32_C(0x02D6482A), + UINT32_C(0x0A8717D0), UINT32_C(0x05383AC5), UINT32_C(0x03250B87), + UINT32_C(0x05C77D8D), UINT32_C(0x05198B6D), UINT32_C(0x03FACF90), + UINT32_C(0x062058A1), UINT32_C(0x008F96B1), UINT32_C(0x01F29CAF), + UINT32_C(0x00358EC7) }, + { UINT32_C(0x0B620A88), UINT32_C(0x06288694), UINT32_C(0x05B21FAC), + UINT32_C(0x03F64B44), UINT32_C(0x0DBD251D), UINT32_C(0x06B0D130), + UINT32_C(0x04314394), UINT32_C(0x02479C97), UINT32_C(0x003417DF), + UINT32_C(0x0318B1D4), UINT32_C(0x0762DFD7), UINT32_C(0x0DDA6BF1), + UINT32_C(0x0214A508), UINT32_C(0x0231DEBD), UINT32_C(0x0D8733B2), + UINT32_C(0x02ACA66C), UINT32_C(0x05C275E4), UINT32_C(0x07A8A625), + UINT32_C(0x001D2426) } }, + { { UINT32_C(0x0C95FF29), UINT32_C(0x0608C2C5), UINT32_C(0x0404108F), + UINT32_C(0x03383226), UINT32_C(0x07F8CE0C), UINT32_C(0x0600859C), + UINT32_C(0x04899A96), UINT32_C(0x00CCD8EA), UINT32_C(0x02796E7C), + UINT32_C(0x0FB706CC), UINT32_C(0x0111E6FC), UINT32_C(0x027E2706), + UINT32_C(0x03EBDDF3), UINT32_C(0x02838065), UINT32_C(0x0585FBC0), + UINT32_C(0x07572ED5), UINT32_C(0x0907E1E4), UINT32_C(0x017E67B8), + UINT32_C(0x041786F0) }, + { UINT32_C(0x04519732), UINT32_C(0x073D0689), UINT32_C(0x0DF32FF7), + UINT32_C(0x01246800), UINT32_C(0x068478E9), UINT32_C(0x031DEA3C), + UINT32_C(0x03E71E8F), UINT32_C(0x08C6C89E), UINT32_C(0x012CDD96), + UINT32_C(0x0AEEE8F4), UINT32_C(0x0121A9C4), UINT32_C(0x01F73DAA), + UINT32_C(0x033160E0), UINT32_C(0x062B3F6E), UINT32_C(0x081E3B9C), + UINT32_C(0x029ED0A5), UINT32_C(0x05F0DBFB), UINT32_C(0x0765E7EB), + UINT32_C(0x06026E18) } }, + }, + { + { { UINT32_C(0x0ED2EB86), UINT32_C(0x073B24CD), UINT32_C(0x01308B7E), + UINT32_C(0x001667D5), UINT32_C(0x06D840A4), UINT32_C(0x01CE15F3), + UINT32_C(0x00EC4628), UINT32_C(0x0BE255D7), UINT32_C(0x039A76B9), + UINT32_C(0x0CA76752), UINT32_C(0x02EA45FE), UINT32_C(0x0CB0A354), + UINT32_C(0x019D90B7), UINT32_C(0x036C0B82), UINT32_C(0x07E353B2), + UINT32_C(0x00B45E15), UINT32_C(0x0E1E3229), UINT32_C(0x06EED669), + UINT32_C(0x07975597) }, + { UINT32_C(0x04B5DE1E), UINT32_C(0x05185A2C), UINT32_C(0x0F1C1594), + UINT32_C(0x01D7FD5B), UINT32_C(0x0CD949EB), UINT32_C(0x02E191E5), + UINT32_C(0x03295CCA), UINT32_C(0x02F97A05), UINT32_C(0x052209AD), + UINT32_C(0x0C0AF1C4), UINT32_C(0x07F93AD2), UINT32_C(0x060F26C1), + UINT32_C(0x0274993E), UINT32_C(0x023CDD4A), UINT32_C(0x08D9B938), + UINT32_C(0x00D32B5E), UINT32_C(0x04FE5190), UINT32_C(0x01AB014D), + UINT32_C(0x05DD64A0) } }, + { { UINT32_C(0x0C2CA70B), UINT32_C(0x0346AE90), UINT32_C(0x0F8387AC), + UINT32_C(0x03ABE62A), UINT32_C(0x029DA053), UINT32_C(0x0041F61B), + UINT32_C(0x02CBC0BF), UINT32_C(0x05243AE9), UINT32_C(0x0360C16B), + UINT32_C(0x0C28A299), UINT32_C(0x0795D938), UINT32_C(0x02AC475A), + UINT32_C(0x0113BEAF), UINT32_C(0x05A671E6), UINT32_C(0x05C8C591), + UINT32_C(0x06924739), UINT32_C(0x02A54EEF), UINT32_C(0x02F274E3), + UINT32_C(0x0049A1CD) }, + { UINT32_C(0x0426994D), UINT32_C(0x07F97B31), UINT32_C(0x0DA0C788), + UINT32_C(0x04B6F8C8), UINT32_C(0x05463D1A), UINT32_C(0x07C155D5), + UINT32_C(0x00BA793E), UINT32_C(0x0AB08953), UINT32_C(0x042C3976), + UINT32_C(0x069C681F), UINT32_C(0x02ABCC5A), UINT32_C(0x024C8F72), + UINT32_C(0x067DF148), UINT32_C(0x0180DD65), UINT32_C(0x042A4819), + UINT32_C(0x01AFAAD4), UINT32_C(0x0334701F), UINT32_C(0x031ADC33), + UINT32_C(0x03AA0140) } }, + { { UINT32_C(0x0BEE1F7B), UINT32_C(0x07EA5E6A), UINT32_C(0x06C716A1), + UINT32_C(0x01C6DCD9), UINT32_C(0x00C62805), UINT32_C(0x06E99086), + UINT32_C(0x047E4182), UINT32_C(0x04E699EA), UINT32_C(0x017F98AF), + UINT32_C(0x0C64E476), UINT32_C(0x0464A2AE), UINT32_C(0x0AF646E7), + UINT32_C(0x0734C8DA), UINT32_C(0x069B3D13), UINT32_C(0x0BD58EFB), + UINT32_C(0x0572D3C4), UINT32_C(0x0889BAF4), UINT32_C(0x049A880A), + UINT32_C(0x01790356) }, + { UINT32_C(0x0D71A4FA), UINT32_C(0x017475C1), UINT32_C(0x0B53C845), + UINT32_C(0x00ED5EC3), UINT32_C(0x072B9DBC), UINT32_C(0x032C8366), + UINT32_C(0x02B3D21C), UINT32_C(0x0E8E8016), UINT32_C(0x04B6FF58), + UINT32_C(0x017276EC), UINT32_C(0x069855EF), UINT32_C(0x0342CFC2), + UINT32_C(0x00D109A0), UINT32_C(0x07614A72), UINT32_C(0x09DC301B), + UINT32_C(0x036B57F5), UINT32_C(0x06CB91C2), UINT32_C(0x03E8DF1A), + UINT32_C(0x070FD727) } }, + { { UINT32_C(0x032574BE), UINT32_C(0x04115A04), UINT32_C(0x0F98172F), + UINT32_C(0x04AEDED0), UINT32_C(0x02519CD4), UINT32_C(0x05A01A73), + UINT32_C(0x06EEA282), UINT32_C(0x0BBAAC38), UINT32_C(0x02CC4028), + UINT32_C(0x03AACD20), UINT32_C(0x01A067DD), UINT32_C(0x0AFED584), + UINT32_C(0x06846B34), UINT32_C(0x01F4D8B2), UINT32_C(0x00AB5080), + UINT32_C(0x02EFB0FB), UINT32_C(0x09F1C68E), UINT32_C(0x01829F05), + UINT32_C(0x008F3C67) }, + { UINT32_C(0x062EC0F0), UINT32_C(0x04CAAFE4), UINT32_C(0x08147733), + UINT32_C(0x038A422E), UINT32_C(0x0085656E), UINT32_C(0x02D1FFD4), + UINT32_C(0x0731016E), UINT32_C(0x022AA6C1), UINT32_C(0x04385C24), + UINT32_C(0x06B4D30A), UINT32_C(0x04FF86E3), UINT32_C(0x0540E9AE), + UINT32_C(0x039185FE), UINT32_C(0x0278D41E), UINT32_C(0x05EEE86F), + UINT32_C(0x05D399FD), UINT32_C(0x07D5B982), UINT32_C(0x0364A589), + UINT32_C(0x07E1654F) } }, + { { UINT32_C(0x0D8CB3CC), UINT32_C(0x06C254BF), UINT32_C(0x0FBC2C5D), + UINT32_C(0x07F746F2), UINT32_C(0x07E4259D), UINT32_C(0x022B49C4), + UINT32_C(0x04CE0ECE), UINT32_C(0x095F3130), UINT32_C(0x064022C7), + UINT32_C(0x076A7307), UINT32_C(0x074FEA23), UINT32_C(0x09CDD626), + UINT32_C(0x0612A401), UINT32_C(0x0562E226), UINT32_C(0x027BA2E0), + UINT32_C(0x01D98EB5), UINT32_C(0x0A54B2FF), UINT32_C(0x0345BAFC), + UINT32_C(0x05CE5083) }, + { UINT32_C(0x082FB619), UINT32_C(0x01E59C7B), UINT32_C(0x07C56C18), + UINT32_C(0x0594E677), UINT32_C(0x0EBA4C47), UINT32_C(0x01F1C6FF), + UINT32_C(0x016B9F48), UINT32_C(0x0443B057), UINT32_C(0x017930FC), + UINT32_C(0x0D94B0A6), UINT32_C(0x0501D4ED), UINT32_C(0x0EB5EA2F), + UINT32_C(0x03F2D8D0), UINT32_C(0x04A1DA92), UINT32_C(0x0A702231), + UINT32_C(0x063C2830), UINT32_C(0x06F5E127), UINT32_C(0x06BE79CE), + UINT32_C(0x06600B2F) } }, + { { UINT32_C(0x0F26ECDA), UINT32_C(0x0052168B), UINT32_C(0x0CBDB9E3), + UINT32_C(0x052FFD0A), UINT32_C(0x02FDCD7B), UINT32_C(0x05791EA2), + UINT32_C(0x03DF5472), UINT32_C(0x0544715D), UINT32_C(0x032F4FBD), + UINT32_C(0x05DA4E99), UINT32_C(0x000977D5), UINT32_C(0x0AEE5E82), + UINT32_C(0x07B5A2B7), UINT32_C(0x02494676), UINT32_C(0x0B416152), + UINT32_C(0x03AC76C7), UINT32_C(0x0B21FDC6), UINT32_C(0x04ECC50E), + UINT32_C(0x02A4E6AB) }, + { UINT32_C(0x031E0BB4), UINT32_C(0x05FC9964), UINT32_C(0x014AC466), + UINT32_C(0x038F82D0), UINT32_C(0x0C0B56B8), UINT32_C(0x0217513C), + UINT32_C(0x0498C923), UINT32_C(0x076EEC28), UINT32_C(0x03824F59), + UINT32_C(0x0B7B1382), UINT32_C(0x056FE399), UINT32_C(0x00794841), + UINT32_C(0x076FEEC8), UINT32_C(0x0219F413), UINT32_C(0x04ABDD19), + UINT32_C(0x04CE2F28), UINT32_C(0x0F2E86F7), UINT32_C(0x02F472AF), + UINT32_C(0x06774781) } }, + { { UINT32_C(0x0CEBC7BE), UINT32_C(0x00221686), UINT32_C(0x04E2E2B5), + UINT32_C(0x02865641), UINT32_C(0x0400F945), UINT32_C(0x01CF69C4), + UINT32_C(0x002D7B22), UINT32_C(0x04D5A98C), UINT32_C(0x075AA74B), + UINT32_C(0x0926F727), UINT32_C(0x0318AD6B), UINT32_C(0x009AE911), + UINT32_C(0x00216BA5), UINT32_C(0x0794C1D5), UINT32_C(0x047BB387), + UINT32_C(0x05890517), UINT32_C(0x0C438287), UINT32_C(0x04D6AF1C), + UINT32_C(0x010C34E7) }, + { UINT32_C(0x02E3859D), UINT32_C(0x06690EFE), UINT32_C(0x0F063DCD), + UINT32_C(0x068C490B), UINT32_C(0x06DE5321), UINT32_C(0x0225E5EC), + UINT32_C(0x0573AFDE), UINT32_C(0x0C5AD59A), UINT32_C(0x064D175A), + UINT32_C(0x09D71327), UINT32_C(0x03D7526B), UINT32_C(0x04C7D696), + UINT32_C(0x05C7C0BF), UINT32_C(0x04314949), UINT32_C(0x064EA7B0), + UINT32_C(0x008652D7), UINT32_C(0x0EA31279), UINT32_C(0x0668F188), + UINT32_C(0x035A0886) } }, + { { UINT32_C(0x02EB8133), UINT32_C(0x03EC558C), UINT32_C(0x088B2CEF), + UINT32_C(0x008352FC), UINT32_C(0x0ECF2FB1), UINT32_C(0x01F0E6BB), + UINT32_C(0x023E4A68), UINT32_C(0x0B9CC299), UINT32_C(0x02937BC1), + UINT32_C(0x0A4FE033), UINT32_C(0x03BAB078), UINT32_C(0x078C8608), + UINT32_C(0x000D53E7), UINT32_C(0x06DA1D39), UINT32_C(0x05E14C61), + UINT32_C(0x035624BE), UINT32_C(0x06669427), UINT32_C(0x079FAB65), + UINT32_C(0x0663AC20) }, + { UINT32_C(0x06835A15), UINT32_C(0x013B136D), UINT32_C(0x08DB323F), + UINT32_C(0x068809A4), UINT32_C(0x02A3957E), UINT32_C(0x0081A010), + UINT32_C(0x06B7C838), UINT32_C(0x074F156F), UINT32_C(0x00F3A4DB), + UINT32_C(0x07ADF165), UINT32_C(0x05A07A0A), UINT32_C(0x0585D310), + UINT32_C(0x02A4FAF9), UINT32_C(0x03A5C451), UINT32_C(0x00426908), + UINT32_C(0x03C76306), UINT32_C(0x0D3289C2), UINT32_C(0x04FD8A7B), + UINT32_C(0x03974EFE) } }, + { { UINT32_C(0x01D85118), UINT32_C(0x03F039A9), UINT32_C(0x0A744F66), + UINT32_C(0x00B874D3), UINT32_C(0x0AD31A3A), UINT32_C(0x07A3C5F8), + UINT32_C(0x045FFFF5), UINT32_C(0x023754A5), UINT32_C(0x02E38CB8), + UINT32_C(0x05910E6C), UINT32_C(0x01773ED0), UINT32_C(0x0835A72A), + UINT32_C(0x01BE848A), UINT32_C(0x07BD444B), UINT32_C(0x0B4AFA36), + UINT32_C(0x03B51CEC), UINT32_C(0x076A82F4), UINT32_C(0x049B5424), + UINT32_C(0x01EDBBC3) }, + { UINT32_C(0x0D472029), UINT32_C(0x07322E8C), UINT32_C(0x0891E31F), + UINT32_C(0x0598F9A4), UINT32_C(0x0B8A6C89), UINT32_C(0x065A918E), + UINT32_C(0x01B36F21), UINT32_C(0x05650472), UINT32_C(0x053A7D69), + UINT32_C(0x05F09FDE), UINT32_C(0x03CE6055), UINT32_C(0x017487DC), + UINT32_C(0x01B03227), UINT32_C(0x013D4913), UINT32_C(0x096CA6AE), + UINT32_C(0x000E46D4), UINT32_C(0x07F35B2C), UINT32_C(0x06FDC86A), + UINT32_C(0x0191F319) } }, + { { UINT32_C(0x0CE12393), UINT32_C(0x015F4FB3), UINT32_C(0x0C3E8E50), + UINT32_C(0x06CE6B2D), UINT32_C(0x0B3C1693), UINT32_C(0x045162F6), + UINT32_C(0x0407EFF6), UINT32_C(0x00A9135E), UINT32_C(0x047CF46F), + UINT32_C(0x04E91DC4), UINT32_C(0x036B9A3C), UINT32_C(0x0134193D), + UINT32_C(0x003E5C05), UINT32_C(0x00082BD9), UINT32_C(0x067D8D47), + UINT32_C(0x02764530), UINT32_C(0x01E6C320), UINT32_C(0x04A28C2A), + UINT32_C(0x048FBA5C) }, + { UINT32_C(0x0CE5DBF5), UINT32_C(0x0385772C), UINT32_C(0x019E313F), + UINT32_C(0x073071A7), UINT32_C(0x0F5FC824), UINT32_C(0x02D63EF3), + UINT32_C(0x02B70267), UINT32_C(0x0A6BE174), UINT32_C(0x076EA84E), + UINT32_C(0x0FA0EBFC), UINT32_C(0x06D310F3), UINT32_C(0x01962AC7), + UINT32_C(0x0209883D), UINT32_C(0x03B86C97), UINT32_C(0x00441CDD), + UINT32_C(0x0066501C), UINT32_C(0x03267C1F), UINT32_C(0x03EAC5C9), + UINT32_C(0x00069F5A) } }, + { { UINT32_C(0x01D1EEDB), UINT32_C(0x0706D366), UINT32_C(0x04DB59F7), + UINT32_C(0x03130058), UINT32_C(0x0FBF1E90), UINT32_C(0x02990341), + UINT32_C(0x052D42D0), UINT32_C(0x0D9F883C), UINT32_C(0x01C3CC5F), + UINT32_C(0x0602F8E0), UINT32_C(0x0719E908), UINT32_C(0x0152A103), + UINT32_C(0x05A33891), UINT32_C(0x0095E49C), UINT32_C(0x07DC00AE), + UINT32_C(0x00D04AA8), UINT32_C(0x034051A0), UINT32_C(0x01C589DC), + UINT32_C(0x044769AA) }, + { UINT32_C(0x05A4238D), UINT32_C(0x038BBADC), UINT32_C(0x024C6D7A), + UINT32_C(0x058D2A82), UINT32_C(0x0BE67DEB), UINT32_C(0x057F5E80), + UINT32_C(0x055D31EA), UINT32_C(0x0DB49C5A), UINT32_C(0x070BEC2C), + UINT32_C(0x0F3322C2), UINT32_C(0x06C3108C), UINT32_C(0x0A1130EB), + UINT32_C(0x01DE1843), UINT32_C(0x002476B9), UINT32_C(0x0C1602A0), + UINT32_C(0x020FD705), UINT32_C(0x0E87B144), UINT32_C(0x00271FD2), + UINT32_C(0x02A1E7C8) } }, + { { UINT32_C(0x0BB71E17), UINT32_C(0x00B697E6), UINT32_C(0x027C50D2), + UINT32_C(0x02FF8F72), UINT32_C(0x052B77CA), UINT32_C(0x02997C16), + UINT32_C(0x013C0178), UINT32_C(0x0F7FCEE6), UINT32_C(0x040B66E5), + UINT32_C(0x03A69C37), UINT32_C(0x02E55D76), UINT32_C(0x00F908D4), + UINT32_C(0x052718AB), UINT32_C(0x0076528F), UINT32_C(0x0306D84E), + UINT32_C(0x07EBCA7C), UINT32_C(0x01165F7E), UINT32_C(0x01DB45A9), + UINT32_C(0x067FCC94) }, + { UINT32_C(0x0791633D), UINT32_C(0x047BD9A1), UINT32_C(0x0A26D9CC), + UINT32_C(0x000BE536), UINT32_C(0x0F022B81), UINT32_C(0x064B6F3C), + UINT32_C(0x03B7DA09), UINT32_C(0x0F632491), UINT32_C(0x02A9B2EF), + UINT32_C(0x029A6C74), UINT32_C(0x039178C1), UINT32_C(0x06C1B980), + UINT32_C(0x025426C4), UINT32_C(0x00AC18E2), UINT32_C(0x0854C009), + UINT32_C(0x07A990A9), UINT32_C(0x0BA40528), UINT32_C(0x05C4D8A8), + UINT32_C(0x0628B343) } }, + { { UINT32_C(0x07812A25), UINT32_C(0x0179F4F9), UINT32_C(0x09DE2C08), + UINT32_C(0x02F4F1F9), UINT32_C(0x04F48E6A), UINT32_C(0x07549212), + UINT32_C(0x016DCA05), UINT32_C(0x07A3A534), UINT32_C(0x0359AADF), + UINT32_C(0x0E969384), UINT32_C(0x061DBB0C), UINT32_C(0x0E368BE3), + UINT32_C(0x07060163), UINT32_C(0x07CA82E3), UINT32_C(0x07332717), + UINT32_C(0x0002DFB2), UINT32_C(0x03AD0A18), UINT32_C(0x0417995E), + UINT32_C(0x0326668F) }, + { UINT32_C(0x09EF75E3), UINT32_C(0x07B04772), UINT32_C(0x0852DCD8), + UINT32_C(0x06097708), UINT32_C(0x0B957C2C), UINT32_C(0x038B98A1), + UINT32_C(0x02B82598), UINT32_C(0x0F132C73), UINT32_C(0x04CE431B), + UINT32_C(0x07D4CBE1), UINT32_C(0x049BA972), UINT32_C(0x00D3788D), + UINT32_C(0x07EDE5A2), UINT32_C(0x0635F8BD), UINT32_C(0x0EB9AB1A), + UINT32_C(0x02C621B4), UINT32_C(0x0BCBFF41), UINT32_C(0x0439D1F9), + UINT32_C(0x003044A8) } }, + { { UINT32_C(0x0CF8D334), UINT32_C(0x037C1C48), UINT32_C(0x05CD52D5), + UINT32_C(0x047578F0), UINT32_C(0x0BE7BC07), UINT32_C(0x06E68827), + UINT32_C(0x076445CB), UINT32_C(0x0FEBF611), UINT32_C(0x00142073), + UINT32_C(0x029F031E), UINT32_C(0x076C6434), UINT32_C(0x0F98F9D0), + UINT32_C(0x034E14D3), UINT32_C(0x038E0268), UINT32_C(0x0191305B), + UINT32_C(0x032A0200), UINT32_C(0x05EF4C75), UINT32_C(0x02826331), + UINT32_C(0x04D82A88) }, + { UINT32_C(0x0D51E170), UINT32_C(0x00D3F07F), UINT32_C(0x08365D15), + UINT32_C(0x0781A3A1), UINT32_C(0x0D4BE663), UINT32_C(0x00175259), + UINT32_C(0x000C1FA1), UINT32_C(0x0F00FCE0), UINT32_C(0x00299B52), + UINT32_C(0x0C7D7E01), UINT32_C(0x052A3C59), UINT32_C(0x07C9CF44), + UINT32_C(0x05E7EE2B), UINT32_C(0x035E7031), UINT32_C(0x0FE2CB7C), + UINT32_C(0x0403D2B4), UINT32_C(0x0FC9A748), UINT32_C(0x07D461AF), + UINT32_C(0x006E35B5) } }, + { { UINT32_C(0x0594D02E), UINT32_C(0x075E6F14), UINT32_C(0x03360822), + UINT32_C(0x03E7DDDB), UINT32_C(0x0F1C6110), UINT32_C(0x072483CF), + UINT32_C(0x03ECF221), UINT32_C(0x0D658C87), UINT32_C(0x060AC74F), + UINT32_C(0x0F51CC4C), UINT32_C(0x03EB69F7), UINT32_C(0x07B2F64B), + UINT32_C(0x0242F07B), UINT32_C(0x058E5984), UINT32_C(0x03A0B7A4), + UINT32_C(0x03CE806B), UINT32_C(0x06139B85), UINT32_C(0x01DAAFE3), + UINT32_C(0x0130F7E5) }, + { UINT32_C(0x020891BB), UINT32_C(0x077E28D4), UINT32_C(0x0AAEAA8D), + UINT32_C(0x00B2D799), UINT32_C(0x0E10388A), UINT32_C(0x001DFD31), + UINT32_C(0x059F85F1), UINT32_C(0x00BC7E55), UINT32_C(0x05309429), + UINT32_C(0x0FEDF8A8), UINT32_C(0x06B52B0D), UINT32_C(0x0E3F8A44), + UINT32_C(0x07A8E2A2), UINT32_C(0x07D5866C), UINT32_C(0x02DBCD7C), + UINT32_C(0x02895FBE), UINT32_C(0x0F66BDAD), UINT32_C(0x048C3CAD), + UINT32_C(0x078587AD) } }, + { { UINT32_C(0x0B1B7656), UINT32_C(0x02A1E440), UINT32_C(0x04EF5EA7), + UINT32_C(0x059FA6A2), UINT32_C(0x0C68CD6D), UINT32_C(0x005E8043), + UINT32_C(0x01AE592B), UINT32_C(0x00DD5F88), UINT32_C(0x0559B430), + UINT32_C(0x0BF3DF59), UINT32_C(0x011CBD52), UINT32_C(0x0DDDE17B), + UINT32_C(0x031D26D8), UINT32_C(0x0148FB57), UINT32_C(0x04EDBF2D), + UINT32_C(0x07220D0D), UINT32_C(0x0F7B0807), UINT32_C(0x076B1F6E), + UINT32_C(0x0306320E) }, + { UINT32_C(0x07EEE80E), UINT32_C(0x0754C15A), UINT32_C(0x093487F6), + UINT32_C(0x023D5CA0), UINT32_C(0x00BD77C2), UINT32_C(0x0271EF5D), + UINT32_C(0x04FAEAB7), UINT32_C(0x07EBA560), UINT32_C(0x015A18D8), + UINT32_C(0x039861D4), UINT32_C(0x041FD3C8), UINT32_C(0x0D5863CB), + UINT32_C(0x066C5F53), UINT32_C(0x06380D15), UINT32_C(0x0E825C9F), + UINT32_C(0x00BA76BE), UINT32_C(0x0BC4E3B8), UINT32_C(0x06216B12), + UINT32_C(0x03B4F0D4) } }, + }, + { + { { UINT32_C(0x0201C48B), UINT32_C(0x073C85A8), UINT32_C(0x095DC61E), + UINT32_C(0x05F14993), UINT32_C(0x0123BD40), UINT32_C(0x05907610), + UINT32_C(0x046FBB4C), UINT32_C(0x0A0F3B82), UINT32_C(0x078A34BB), + UINT32_C(0x003DB127), UINT32_C(0x052D9AD5), UINT32_C(0x05103EE9), + UINT32_C(0x0465988A), UINT32_C(0x005F3641), UINT32_C(0x085495F9), + UINT32_C(0x069A8F20), UINT32_C(0x064AA21B), UINT32_C(0x007CCB01), + UINT32_C(0x04384B61) }, + { UINT32_C(0x051DE678), UINT32_C(0x07820FBE), UINT32_C(0x063426A0), + UINT32_C(0x01B262F0), UINT32_C(0x0B0B9013), UINT32_C(0x045C8465), + UINT32_C(0x0240C64E), UINT32_C(0x0DDA697F), UINT32_C(0x0201A64C), + UINT32_C(0x016B17DF), UINT32_C(0x065E1757), UINT32_C(0x0F6B7334), + UINT32_C(0x07ED2866), UINT32_C(0x028D6370), UINT32_C(0x0E25340A), + UINT32_C(0x002693F4), UINT32_C(0x07D889A8), UINT32_C(0x06B215F7), + UINT32_C(0x062B5959) } }, + { { UINT32_C(0x0D9C3B89), UINT32_C(0x077CC1DC), UINT32_C(0x013DDAA7), + UINT32_C(0x0111C6F8), UINT32_C(0x0577407F), UINT32_C(0x01FF52EA), + UINT32_C(0x06D56CA6), UINT32_C(0x06331227), UINT32_C(0x03AB576F), + UINT32_C(0x0CD7FD4F), UINT32_C(0x06AF74C0), UINT32_C(0x0AD52465), + UINT32_C(0x041865E8), UINT32_C(0x0546A928), UINT32_C(0x00FE8F9D), + UINT32_C(0x07C2CDD8), UINT32_C(0x0C0D3434), UINT32_C(0x030F8525), + UINT32_C(0x05B51E81) }, + { UINT32_C(0x08A5170B), UINT32_C(0x074FC061), UINT32_C(0x0060E606), + UINT32_C(0x017D8D1E), UINT32_C(0x0A8E0395), UINT32_C(0x0428DCF1), + UINT32_C(0x046F46B8), UINT32_C(0x05E254D7), UINT32_C(0x05D05211), + UINT32_C(0x0B46AD84), UINT32_C(0x03446BA1), UINT32_C(0x00CA5FED), + UINT32_C(0x02A8C267), UINT32_C(0x0570EC98), UINT32_C(0x0750367D), + UINT32_C(0x0362D78B), UINT32_C(0x0C84DA94), UINT32_C(0x07AF8D8F), + UINT32_C(0x0583AA8B) } }, + { { UINT32_C(0x09126FAC), UINT32_C(0x06B05898), UINT32_C(0x0872DF85), + UINT32_C(0x048C3352), UINT32_C(0x0331E5B3), UINT32_C(0x076671FB), + UINT32_C(0x02076524), UINT32_C(0x0492A4A3), UINT32_C(0x06D57C7C), + UINT32_C(0x052A5C41), UINT32_C(0x052CA0DF), UINT32_C(0x0E7D0224), + UINT32_C(0x07241BC6), UINT32_C(0x0234848A), UINT32_C(0x048CE05E), + UINT32_C(0x01B286B5), UINT32_C(0x0B054813), UINT32_C(0x02F6EDFC), + UINT32_C(0x0250A4D8) }, + { UINT32_C(0x0831CD9D), UINT32_C(0x04B04313), UINT32_C(0x0F484946), + UINT32_C(0x03B996C8), UINT32_C(0x00F547BB), UINT32_C(0x007A0AA7), + UINT32_C(0x065BBAA5), UINT32_C(0x014C49BC), UINT32_C(0x03D6CABB), + UINT32_C(0x01EF46B3), UINT32_C(0x05A5D159), UINT32_C(0x0EDE3DB4), + UINT32_C(0x00D1B3A0), UINT32_C(0x02F97DFA), UINT32_C(0x0D68EB87), + UINT32_C(0x06CE81C0), UINT32_C(0x00D73B27), UINT32_C(0x0342609A), + UINT32_C(0x019C049C) } }, + { { UINT32_C(0x08BC45E5), UINT32_C(0x015B0C25), UINT32_C(0x0B2A43B0), + UINT32_C(0x00067BBC), UINT32_C(0x07B24685), UINT32_C(0x0046140C), + UINT32_C(0x0157806B), UINT32_C(0x049AE2AD), UINT32_C(0x0113F8DF), + UINT32_C(0x06BBA162), UINT32_C(0x0534E07B), UINT32_C(0x086988E1), + UINT32_C(0x00E2C213), UINT32_C(0x0513FA95), UINT32_C(0x0EC2A78F), + UINT32_C(0x02E28447), UINT32_C(0x011B9FFF), UINT32_C(0x01506FAF), + UINT32_C(0x07B4C5A9) }, + { UINT32_C(0x0AE71753), UINT32_C(0x0151FA30), UINT32_C(0x091691B4), + UINT32_C(0x02ACCC22), UINT32_C(0x0BA74B18), UINT32_C(0x0073B635), + UINT32_C(0x02F0EB55), UINT32_C(0x0CC9DF51), UINT32_C(0x0784FCDA), + UINT32_C(0x0BFAD098), UINT32_C(0x03F5BFD6), UINT32_C(0x006AD5C5), + UINT32_C(0x014F12F5), UINT32_C(0x0745527A), UINT32_C(0x03A6506B), + UINT32_C(0x015CF2C8), UINT32_C(0x039A3185), UINT32_C(0x077CD12B), + UINT32_C(0x02A9BAF3) } }, + { { UINT32_C(0x00D9229F), UINT32_C(0x039D37CD), UINT32_C(0x0948ECC6), + UINT32_C(0x0072BCB0), UINT32_C(0x0A458017), UINT32_C(0x038A159B), + UINT32_C(0x0368034D), UINT32_C(0x0B0315FA), UINT32_C(0x01756900), + UINT32_C(0x04149285), UINT32_C(0x03FFBD8A), UINT32_C(0x0079E774), + UINT32_C(0x0702A2CF), UINT32_C(0x0641C3A8), UINT32_C(0x0F3751BA), + UINT32_C(0x028EDF14), UINT32_C(0x090F681A), UINT32_C(0x012CF177), + UINT32_C(0x04614034) }, + { UINT32_C(0x04E4C072), UINT32_C(0x07E207E1), UINT32_C(0x02D8F8F8), + UINT32_C(0x013BFA68), UINT32_C(0x0CC798F9), UINT32_C(0x014BAAD6), + UINT32_C(0x023BD550), UINT32_C(0x0919F8D1), UINT32_C(0x03C00ADA), + UINT32_C(0x0758236E), UINT32_C(0x058602C2), UINT32_C(0x0FA0FE24), + UINT32_C(0x01A8C5A6), UINT32_C(0x0026B4C4), UINT32_C(0x0534F014), + UINT32_C(0x02CF2A7F), UINT32_C(0x00192714), UINT32_C(0x04B51417), + UINT32_C(0x0168C607) } }, + { { UINT32_C(0x019403A6), UINT32_C(0x04E6BA92), UINT32_C(0x0065202D), + UINT32_C(0x06FDAE5F), UINT32_C(0x0AD1C130), UINT32_C(0x05C03BED), + UINT32_C(0x00D7CFCE), UINT32_C(0x02B63E74), UINT32_C(0x06CD8D97), + UINT32_C(0x00E7608A), UINT32_C(0x05009FCD), UINT32_C(0x01026095), + UINT32_C(0x058890EC), UINT32_C(0x0662F635), UINT32_C(0x0F16F3A2), + UINT32_C(0x06B88A1B), UINT32_C(0x000D681A), UINT32_C(0x05689B12), + UINT32_C(0x0620658C) }, + { UINT32_C(0x0B48EFBA), UINT32_C(0x01574FA6), UINT32_C(0x0FC77D17), + UINT32_C(0x06CDF2A2), UINT32_C(0x0DCEA8A9), UINT32_C(0x00B1DE26), + UINT32_C(0x009A7C7A), UINT32_C(0x0435CC54), UINT32_C(0x06E8AF2E), + UINT32_C(0x09AFC5BC), UINT32_C(0x05124055), UINT32_C(0x045BF6E2), + UINT32_C(0x0536C8AD), UINT32_C(0x073FE4CD), UINT32_C(0x0A467A40), + UINT32_C(0x03EB6B38), UINT32_C(0x05F039C6), UINT32_C(0x00622055), + UINT32_C(0x045DF262) } }, + { { UINT32_C(0x0C5E165D), UINT32_C(0x00A8610A), UINT32_C(0x062AF616), + UINT32_C(0x055190B9), UINT32_C(0x0F988454), UINT32_C(0x0395472A), + UINT32_C(0x036DCD3E), UINT32_C(0x0FDA6187), UINT32_C(0x036EC91D), + UINT32_C(0x0E66FCFC), UINT32_C(0x077BBD1F), UINT32_C(0x0DF3E1C9), + UINT32_C(0x040454AC), UINT32_C(0x03004F37), UINT32_C(0x0CBDED62), + UINT32_C(0x03DD5570), UINT32_C(0x05724DFF), UINT32_C(0x07B6002A), + UINT32_C(0x00B93C70) }, + { UINT32_C(0x06C8A9BC), UINT32_C(0x032D8B60), UINT32_C(0x0C0850D6), + UINT32_C(0x06C94F36), UINT32_C(0x0649CD3A), UINT32_C(0x000C0E51), + UINT32_C(0x07B40760), UINT32_C(0x0BFA6092), UINT32_C(0x019FB910), + UINT32_C(0x092A27FF), UINT32_C(0x02D6F975), UINT32_C(0x0E910EDA), + UINT32_C(0x01FFB3D4), UINT32_C(0x01814FFF), UINT32_C(0x0985A6F8), + UINT32_C(0x06787CA6), UINT32_C(0x0B7B7FC6), UINT32_C(0x01532265), + UINT32_C(0x06228702) } }, + { { UINT32_C(0x0391B195), UINT32_C(0x01F1A68F), UINT32_C(0x0AB9DD28), + UINT32_C(0x000B690E), UINT32_C(0x0C4FD58F), UINT32_C(0x05292C46), + UINT32_C(0x0017D075), UINT32_C(0x010E0044), UINT32_C(0x0709FE41), + UINT32_C(0x02F0CD13), UINT32_C(0x003D99BE), UINT32_C(0x0E6F68D8), + UINT32_C(0x04608708), UINT32_C(0x05B1F159), UINT32_C(0x0A4CFC70), + UINT32_C(0x02FB2946), UINT32_C(0x076D32E5), UINT32_C(0x0482F0ED), + UINT32_C(0x06ED3305) }, + { UINT32_C(0x05C4416F), UINT32_C(0x02270E15), UINT32_C(0x073143E0), + UINT32_C(0x02F4151F), UINT32_C(0x099069A7), UINT32_C(0x05437AEB), + UINT32_C(0x027A90CA), UINT32_C(0x0A75E48C), UINT32_C(0x013FC627), + UINT32_C(0x0300361B), UINT32_C(0x072745C2), UINT32_C(0x0C9DD555), + UINT32_C(0x05D86308), UINT32_C(0x03713AF4), UINT32_C(0x01AF9EBC), + UINT32_C(0x0157F18F), UINT32_C(0x0E008EAF), UINT32_C(0x0409010B), + UINT32_C(0x074F85AA) } }, + { { UINT32_C(0x045C5FF5), UINT32_C(0x046845EE), UINT32_C(0x074B8893), + UINT32_C(0x036C56E2), UINT32_C(0x0CC7B43B), UINT32_C(0x030C1789), + UINT32_C(0x05916A34), UINT32_C(0x0F2AFB7C), UINT32_C(0x0154EDEB), + UINT32_C(0x0407BF3E), UINT32_C(0x05362D80), UINT32_C(0x0CCA97B1), + UINT32_C(0x041BFF6D), UINT32_C(0x05DAE466), UINT32_C(0x07D9D691), + UINT32_C(0x023DBF89), UINT32_C(0x05162F52), UINT32_C(0x000CBF57), + UINT32_C(0x0154EDFD) }, + { UINT32_C(0x08BF712A), UINT32_C(0x06009B91), UINT32_C(0x0AFFBD38), + UINT32_C(0x03FD6332), UINT32_C(0x06CD1DC8), UINT32_C(0x06C678BF), + UINT32_C(0x0040E5CE), UINT32_C(0x02743457), UINT32_C(0x060DF50E), + UINT32_C(0x0691C947), UINT32_C(0x0746D675), UINT32_C(0x0D68B325), + UINT32_C(0x0290D55C), UINT32_C(0x015B144C), UINT32_C(0x05A0332F), + UINT32_C(0x0563DB53), UINT32_C(0x04CED890), UINT32_C(0x04AC67C8), + UINT32_C(0x04387D35) } }, + { { UINT32_C(0x0A66FBB8), UINT32_C(0x05FDBF97), UINT32_C(0x0A47124E), + UINT32_C(0x03FED0AF), UINT32_C(0x082B44B9), UINT32_C(0x0244ADCE), + UINT32_C(0x05980D8A), UINT32_C(0x0687D615), UINT32_C(0x07E4662D), + UINT32_C(0x03F2180A), UINT32_C(0x04BA4DB6), UINT32_C(0x03FE8141), + UINT32_C(0x04B2BC20), UINT32_C(0x006DF40A), UINT32_C(0x0AB2698D), + UINT32_C(0x0365D173), UINT32_C(0x08DE4017), UINT32_C(0x079E6BA2), + UINT32_C(0x02C7A033) }, + { UINT32_C(0x075570A1), UINT32_C(0x06A48901), UINT32_C(0x0492AC74), + UINT32_C(0x077D2844), UINT32_C(0x0DB87BFD), UINT32_C(0x01D218B2), + UINT32_C(0x0522DA69), UINT32_C(0x0B4F7CF4), UINT32_C(0x00841BC4), + UINT32_C(0x0E420155), UINT32_C(0x00BDBB35), UINT32_C(0x0BB5E945), + UINT32_C(0x06FE4123), UINT32_C(0x0435B025), UINT32_C(0x0ACCEA16), + UINT32_C(0x00BE381C), UINT32_C(0x0C3F4D0D), UINT32_C(0x03862E1B), + UINT32_C(0x04A46652) } }, + { { UINT32_C(0x009B3F23), UINT32_C(0x00CFBD75), UINT32_C(0x069BE715), + UINT32_C(0x009C9678), UINT32_C(0x013F2EB4), UINT32_C(0x04EE1278), + UINT32_C(0x06387FDD), UINT32_C(0x0329F9F1), UINT32_C(0x048E212F), + UINT32_C(0x0F24F073), UINT32_C(0x008F0FD5), UINT32_C(0x02F3DAFE), + UINT32_C(0x039C6160), UINT32_C(0x018F4D1D), UINT32_C(0x0E9D0F18), + UINT32_C(0x066F0916), UINT32_C(0x09931852), UINT32_C(0x040EEBEA), + UINT32_C(0x032448BB) }, + { UINT32_C(0x0C226E2C), UINT32_C(0x07706840), UINT32_C(0x0D3C1C34), + UINT32_C(0x07E4BA61), UINT32_C(0x0A51E4A1), UINT32_C(0x038E00FB), + UINT32_C(0x06E25F2A), UINT32_C(0x0C263EC1), UINT32_C(0x078D29D8), + UINT32_C(0x07C7272D), UINT32_C(0x0572E10B), UINT32_C(0x0B83C0DC), + UINT32_C(0x02179CDB), UINT32_C(0x066C84E3), UINT32_C(0x07675170), + UINT32_C(0x00BDF2F6), UINT32_C(0x0F52477D), UINT32_C(0x00FE3151), + UINT32_C(0x05460029) } }, + { { UINT32_C(0x0DA35EBF), UINT32_C(0x066B421E), UINT32_C(0x07116B3C), + UINT32_C(0x077330D7), UINT32_C(0x0CE4D316), UINT32_C(0x027318E8), + UINT32_C(0x04CA0B0C), UINT32_C(0x06EFBBCB), UINT32_C(0x027FF80D), + UINT32_C(0x07B56250), UINT32_C(0x03FBF443), UINT32_C(0x0E5E86E3), + UINT32_C(0x01050837), UINT32_C(0x027F8C63), UINT32_C(0x0040889F), + UINT32_C(0x0233D7DC), UINT32_C(0x085C1EB3), UINT32_C(0x0190948B), + UINT32_C(0x02A42839) }, + { UINT32_C(0x046020F0), UINT32_C(0x04A9DB75), UINT32_C(0x0C1F003A), + UINT32_C(0x05C091F8), UINT32_C(0x069D2F26), UINT32_C(0x05CBE28A), + UINT32_C(0x00B98CA0), UINT32_C(0x0C44F77C), UINT32_C(0x06591FB2), + UINT32_C(0x0336AA95), UINT32_C(0x05A28AC0), UINT32_C(0x0A8AC670), + UINT32_C(0x0735C3E5), UINT32_C(0x049911B7), UINT32_C(0x04F28112), + UINT32_C(0x0532B634), UINT32_C(0x00A3E84F), UINT32_C(0x06EA385D), + UINT32_C(0x01F2A03A) } }, + { { UINT32_C(0x06A09384), UINT32_C(0x0260C3CA), UINT32_C(0x092529A6), + UINT32_C(0x016D77CF), UINT32_C(0x0B8E2D9A), UINT32_C(0x01055E02), + UINT32_C(0x055BC4FD), UINT32_C(0x0CA2C0AF), UINT32_C(0x03A4ABF9), + UINT32_C(0x0290D54C), UINT32_C(0x07B6E3EE), UINT32_C(0x07074346), + UINT32_C(0x047E1F90), UINT32_C(0x06D2B228), UINT32_C(0x064225A4), + UINT32_C(0x06F125F2), UINT32_C(0x0D66264B), UINT32_C(0x01B0F052), + UINT32_C(0x070B7573) }, + { UINT32_C(0x0B2264B8), UINT32_C(0x04D4A619), UINT32_C(0x0AC1F517), + UINT32_C(0x049FE3F8), UINT32_C(0x08BEDBF0), UINT32_C(0x01EB5F66), + UINT32_C(0x0145535A), UINT32_C(0x042D102F), UINT32_C(0x04447303), + UINT32_C(0x067B60A3), UINT32_C(0x043A9645), UINT32_C(0x0D502303), + UINT32_C(0x0669CEC4), UINT32_C(0x052699E3), UINT32_C(0x0E740F66), + UINT32_C(0x011DF90D), UINT32_C(0x006017A2), UINT32_C(0x03C99A89), + UINT32_C(0x069500E3) } }, + { { UINT32_C(0x0184B415), UINT32_C(0x06F26FDD), UINT32_C(0x01E5007E), + UINT32_C(0x038A2542), UINT32_C(0x0DA8A807), UINT32_C(0x078F5424), + UINT32_C(0x04D3FA96), UINT32_C(0x0A456FBD), UINT32_C(0x062853C6), + UINT32_C(0x017211A6), UINT32_C(0x049854E5), UINT32_C(0x0A8F3585), + UINT32_C(0x079A3009), UINT32_C(0x07AFB481), UINT32_C(0x081AFE37), + UINT32_C(0x031A410E), UINT32_C(0x0EADF215), UINT32_C(0x02649FCC), + UINT32_C(0x00A68E58) }, + { UINT32_C(0x0A87B468), UINT32_C(0x0744629E), UINT32_C(0x010788AE), + UINT32_C(0x00DA10EC), UINT32_C(0x07BD591B), UINT32_C(0x07BC474E), + UINT32_C(0x02AE7E4E), UINT32_C(0x074ED106), UINT32_C(0x059550A8), + UINT32_C(0x0C2FBDF7), UINT32_C(0x078A0AB0), UINT32_C(0x019D9F46), + UINT32_C(0x030FE4BE), UINT32_C(0x00DF9F6A), UINT32_C(0x04D2A38F), + UINT32_C(0x052B1469), UINT32_C(0x005AE2E6), UINT32_C(0x07E6C02D), + UINT32_C(0x0283843A) } }, + { { UINT32_C(0x0784F95B), UINT32_C(0x01616DEF), UINT32_C(0x056C696A), + UINT32_C(0x03B98963), UINT32_C(0x085F2426), UINT32_C(0x07BDAC89), + UINT32_C(0x05EAFBF9), UINT32_C(0x09A4C8CC), UINT32_C(0x0558AA78), + UINT32_C(0x0D041BCD), UINT32_C(0x04BDD0B5), UINT32_C(0x037216D5), + UINT32_C(0x06BD4C93), UINT32_C(0x0042A72A), UINT32_C(0x0B4A6F17), + UINT32_C(0x0177EE47), UINT32_C(0x028752B7), UINT32_C(0x0750D182), + UINT32_C(0x04BE36EA) }, + { UINT32_C(0x01DCCF70), UINT32_C(0x05249FC9), UINT32_C(0x063EE812), + UINT32_C(0x0362E5A3), UINT32_C(0x017DB2F0), UINT32_C(0x05508041), + UINT32_C(0x078C050C), UINT32_C(0x0C161A22), UINT32_C(0x078E338A), + UINT32_C(0x0BB9EF36), UINT32_C(0x001185AB), UINT32_C(0x09058EAD), + UINT32_C(0x00D3AF42), UINT32_C(0x02FBEDA9), UINT32_C(0x0996A3FA), + UINT32_C(0x02E0B934), UINT32_C(0x08F57F1A), UINT32_C(0x025EB5CE), + UINT32_C(0x0254456F) } }, + { { UINT32_C(0x08F9B528), UINT32_C(0x04174130), UINT32_C(0x013E12B3), + UINT32_C(0x022B697D), UINT32_C(0x0B0CEF11), UINT32_C(0x03A2E8E2), + UINT32_C(0x00D96F4F), UINT32_C(0x0B4B7DF9), UINT32_C(0x0056458A), + UINT32_C(0x083BA433), UINT32_C(0x068A2473), UINT32_C(0x0D586B52), + UINT32_C(0x00ACD634), UINT32_C(0x01D1EAD7), UINT32_C(0x03036203), + UINT32_C(0x000C0094), UINT32_C(0x047A01B9), UINT32_C(0x0212F1A6), + UINT32_C(0x04D19921) }, + { UINT32_C(0x0837554E), UINT32_C(0x02ECC2C4), UINT32_C(0x0B80FBFE), + UINT32_C(0x07A5E03B), UINT32_C(0x041C1C48), UINT32_C(0x043DD0D4), + UINT32_C(0x04C36416), UINT32_C(0x0869B643), UINT32_C(0x028DC568), + UINT32_C(0x0F15A5D2), UINT32_C(0x00D7FC36), UINT32_C(0x04D7306E), + UINT32_C(0x0306A221), UINT32_C(0x04950B4A), UINT32_C(0x06DC4FCA), + UINT32_C(0x048D5878), UINT32_C(0x0032B7DE), UINT32_C(0x000E5973), + UINT32_C(0x04FFCD15) } }, + }, + { + { { UINT32_C(0x051368EE), UINT32_C(0x03C182D8), UINT32_C(0x0233E580), + UINT32_C(0x0467AAF9), UINT32_C(0x038EEE52), UINT32_C(0x01F8CCEB), + UINT32_C(0x04E7863B), UINT32_C(0x0974DE7F), UINT32_C(0x07C7D47D), + UINT32_C(0x01F4B806), UINT32_C(0x0059F163), UINT32_C(0x07DFA5B8), + UINT32_C(0x0449B3CD), UINT32_C(0x0378D1F4), UINT32_C(0x03486C59), + UINT32_C(0x02FFDC03), UINT32_C(0x0854568F), UINT32_C(0x017FDD91), + UINT32_C(0x0384B0DC) }, + { UINT32_C(0x08A3F84B), UINT32_C(0x065DE2C1), UINT32_C(0x085945B9), + UINT32_C(0x04E5C55A), UINT32_C(0x06CB12ED), UINT32_C(0x07B741CC), + UINT32_C(0x05B2C0EB), UINT32_C(0x0809AC7E), UINT32_C(0x04A46CA2), + UINT32_C(0x061FF16D), UINT32_C(0x03744313), UINT32_C(0x0C777A3B), + UINT32_C(0x0207FD18), UINT32_C(0x0539771F), UINT32_C(0x01004BCB), + UINT32_C(0x04A8FC6F), UINT32_C(0x0F0A63E8), UINT32_C(0x02373910), + UINT32_C(0x072840F7) } }, + { { UINT32_C(0x0E024391), UINT32_C(0x02781D5D), UINT32_C(0x05026331), + UINT32_C(0x025635CD), UINT32_C(0x0492939D), UINT32_C(0x00222466), + UINT32_C(0x0456BF4C), UINT32_C(0x07C8DEE7), UINT32_C(0x000178A5), + UINT32_C(0x051D50AE), UINT32_C(0x02CE451F), UINT32_C(0x01814C6B), + UINT32_C(0x0265AE7F), UINT32_C(0x0312E044), UINT32_C(0x0848FF64), + UINT32_C(0x013BB3DA), UINT32_C(0x0C153136), UINT32_C(0x019DF825), + UINT32_C(0x0462A6B6) }, + { UINT32_C(0x0E9AB68C), UINT32_C(0x04B05DA9), UINT32_C(0x04C2481A), + UINT32_C(0x076E7298), UINT32_C(0x09F0C636), UINT32_C(0x01F7D7D4), + UINT32_C(0x00F9BB8A), UINT32_C(0x0F077B4D), UINT32_C(0x0259165A), + UINT32_C(0x0592DC29), UINT32_C(0x02303769), UINT32_C(0x0EDF23B9), + UINT32_C(0x06E3C4F3), UINT32_C(0x026481C0), UINT32_C(0x033547D1), + UINT32_C(0x04349C82), UINT32_C(0x0FB49FD0), UINT32_C(0x03D48B1E), + UINT32_C(0x00EDD6A9) } }, + { { UINT32_C(0x09496A3E), UINT32_C(0x0779CC41), UINT32_C(0x0F31204C), + UINT32_C(0x01DD9727), UINT32_C(0x0B88711D), UINT32_C(0x0531C3F2), + UINT32_C(0x04294797), UINT32_C(0x043683B3), UINT32_C(0x05DBB4CC), + UINT32_C(0x06B27F93), UINT32_C(0x04CEFE76), UINT32_C(0x02EF8CFB), + UINT32_C(0x065C5182), UINT32_C(0x051D70E4), UINT32_C(0x0B92D89E), + UINT32_C(0x015A48BA), UINT32_C(0x00689714), UINT32_C(0x02F0F899), + UINT32_C(0x03A05527) }, + { UINT32_C(0x04B88B67), UINT32_C(0x0337896D), UINT32_C(0x0AC27DF4), + UINT32_C(0x02CFE168), UINT32_C(0x003AC24A), UINT32_C(0x0287B4A1), + UINT32_C(0x04C9337D), UINT32_C(0x0480FCAA), UINT32_C(0x0385E818), + UINT32_C(0x0698332E), UINT32_C(0x00B177F0), UINT32_C(0x088F3F24), + UINT32_C(0x056A2745), UINT32_C(0x06A53116), UINT32_C(0x0101CC1F), + UINT32_C(0x013E9DBA), UINT32_C(0x06227F55), UINT32_C(0x03D027B4), + UINT32_C(0x02CD8668) } }, + { { UINT32_C(0x0076683D), UINT32_C(0x076BEE0D), UINT32_C(0x0D7D7B4C), + UINT32_C(0x0108643A), UINT32_C(0x0F993C30), UINT32_C(0x07B71D95), + UINT32_C(0x029E4008), UINT32_C(0x034C59B6), UINT32_C(0x00E01922), + UINT32_C(0x062750BC), UINT32_C(0x00DA23D4), UINT32_C(0x0BF7FFAF), + UINT32_C(0x016F2E12), UINT32_C(0x0546677C), UINT32_C(0x038327C5), + UINT32_C(0x07930C31), UINT32_C(0x03297791), UINT32_C(0x06E93707), + UINT32_C(0x0731AA7A) }, + { UINT32_C(0x0B99594F), UINT32_C(0x0300795B), UINT32_C(0x0C5F3D55), + UINT32_C(0x01C1DE37), UINT32_C(0x02FD7C9F), UINT32_C(0x001493C6), + UINT32_C(0x07BB523B), UINT32_C(0x08D81CF9), UINT32_C(0x000974EA), + UINT32_C(0x04B4CFBC), UINT32_C(0x04354B41), UINT32_C(0x0644AB94), + UINT32_C(0x0251A61B), UINT32_C(0x0555FAF5), UINT32_C(0x03713B98), + UINT32_C(0x0597947C), UINT32_C(0x061DDC4D), UINT32_C(0x01C1E655), + UINT32_C(0x05DDAC10) } }, + { { UINT32_C(0x02662A6A), UINT32_C(0x0721BA5B), UINT32_C(0x08BFB362), + UINT32_C(0x02A23D78), UINT32_C(0x04F666A1), UINT32_C(0x060FB317), + UINT32_C(0x0729C7ED), UINT32_C(0x09B1B389), UINT32_C(0x031F8856), + UINT32_C(0x06913D9E), UINT32_C(0x0779217C), UINT32_C(0x0A3634CD), + UINT32_C(0x06292B3F), UINT32_C(0x01E6FDE6), UINT32_C(0x0F97C1F0), + UINT32_C(0x0698999D), UINT32_C(0x0D773548), UINT32_C(0x01ED7CE9), + UINT32_C(0x00FFC55A) }, + { UINT32_C(0x0D76A58E), UINT32_C(0x0195519C), UINT32_C(0x02C2F7AB), + UINT32_C(0x061D1820), UINT32_C(0x09A1252D), UINT32_C(0x07772B8E), + UINT32_C(0x05554A30), UINT32_C(0x0687BCF0), UINT32_C(0x06CE8978), + UINT32_C(0x0961AAB6), UINT32_C(0x0611194A), UINT32_C(0x097F9E4C), + UINT32_C(0x07E8543A), UINT32_C(0x076F7FC5), UINT32_C(0x039F7F09), + UINT32_C(0x074DF751), UINT32_C(0x000B4239), UINT32_C(0x010D59A8), + UINT32_C(0x03F90438) } }, + { { UINT32_C(0x0DA09D54), UINT32_C(0x06AF7630), UINT32_C(0x02BF95A8), + UINT32_C(0x055D4226), UINT32_C(0x059FD1D0), UINT32_C(0x06B060C9), + UINT32_C(0x07D177E4), UINT32_C(0x03F4F180), UINT32_C(0x021C92CF), + UINT32_C(0x02D3DD59), UINT32_C(0x048EB409), UINT32_C(0x07E17E45), + UINT32_C(0x05EEE57B), UINT32_C(0x01B0CED0), UINT32_C(0x0E7E68AB), + UINT32_C(0x043C0C09), UINT32_C(0x0A766549), UINT32_C(0x0006D7E3), + UINT32_C(0x06CB262D) }, + { UINT32_C(0x045007F6), UINT32_C(0x077C78B0), UINT32_C(0x006040A8), + UINT32_C(0x06713C8D), UINT32_C(0x09341EBC), UINT32_C(0x0236E27C), + UINT32_C(0x055A82B4), UINT32_C(0x06F7750F), UINT32_C(0x0669305F), + UINT32_C(0x017EE81A), UINT32_C(0x01216750), UINT32_C(0x0ED65974), + UINT32_C(0x03FEF768), UINT32_C(0x01F1588F), UINT32_C(0x0E26B74A), + UINT32_C(0x078B116C), UINT32_C(0x0B1F0885), UINT32_C(0x05EF5659), + UINT32_C(0x02E63355) } }, + { { UINT32_C(0x0FB0D3ED), UINT32_C(0x003E5A50), UINT32_C(0x0C55AAAF), + UINT32_C(0x0289AC3D), UINT32_C(0x05EF5174), UINT32_C(0x0719E0EE), + UINT32_C(0x01A9C3D8), UINT32_C(0x0DE06CD1), UINT32_C(0x07ED918A), + UINT32_C(0x0BF6A107), UINT32_C(0x06149FAB), UINT32_C(0x0880197B), + UINT32_C(0x060CCF4B), UINT32_C(0x015F00A0), UINT32_C(0x026084C4), + UINT32_C(0x06C15B05), UINT32_C(0x04E4098B), UINT32_C(0x063ED2C8), + UINT32_C(0x058C6384) }, + { UINT32_C(0x040FA002), UINT32_C(0x01B4B412), UINT32_C(0x08A0A8F3), + UINT32_C(0x015D5274), UINT32_C(0x0B3D6C31), UINT32_C(0x0241F67E), + UINT32_C(0x0383A0C0), UINT32_C(0x0D2CCE25), UINT32_C(0x07A721DD), + UINT32_C(0x0FD7994F), UINT32_C(0x04852FC2), UINT32_C(0x0EEB0BC8), + UINT32_C(0x05CF0812), UINT32_C(0x06594895), UINT32_C(0x0F6294B1), + UINT32_C(0x047E9685), UINT32_C(0x03C1ADBF), UINT32_C(0x00B567D9), + UINT32_C(0x005C4AB1) } }, + { { UINT32_C(0x0696BA83), UINT32_C(0x06603D4F), UINT32_C(0x0885A978), + UINT32_C(0x011657F3), UINT32_C(0x0774554D), UINT32_C(0x01806495), + UINT32_C(0x01B33254), UINT32_C(0x0A1BB9D6), UINT32_C(0x03A6DF67), + UINT32_C(0x03AB9C8C), UINT32_C(0x0737480A), UINT32_C(0x00203D86), + UINT32_C(0x04CE906D), UINT32_C(0x0751DBBB), UINT32_C(0x01AB53E1), + UINT32_C(0x01405C83), UINT32_C(0x0894C75D), UINT32_C(0x02ACD3EC), + UINT32_C(0x02926ACF) }, + { UINT32_C(0x0E8C01EF), UINT32_C(0x043477F5), UINT32_C(0x068FA361), + UINT32_C(0x07FC59F7), UINT32_C(0x04967BAC), UINT32_C(0x0236FCA8), + UINT32_C(0x053E4F2C), UINT32_C(0x02BA3E65), UINT32_C(0x05F9F6F0), + UINT32_C(0x064247B4), UINT32_C(0x021B5084), UINT32_C(0x0894325C), + UINT32_C(0x04EFE79C), UINT32_C(0x0188ED3F), UINT32_C(0x0D4FE809), + UINT32_C(0x044BAE94), UINT32_C(0x0C8112AE), UINT32_C(0x05C68229), + UINT32_C(0x07D43896) } }, + { { UINT32_C(0x046C1FB6), UINT32_C(0x077D8036), UINT32_C(0x0295DD8C), + UINT32_C(0x04452F28), UINT32_C(0x0B23C464), UINT32_C(0x0644D5BA), + UINT32_C(0x05069E01), UINT32_C(0x090DF002), UINT32_C(0x03B40591), + UINT32_C(0x01F28172), UINT32_C(0x06905D57), UINT32_C(0x0DF1C74E), + UINT32_C(0x05CE4958), UINT32_C(0x079BDE8E), UINT32_C(0x0D3F2F1A), + UINT32_C(0x04E07C5F), UINT32_C(0x088FF1FA), UINT32_C(0x05C72030), + UINT32_C(0x03BE09B6) }, + { UINT32_C(0x0A78B572), UINT32_C(0x052D6B4B), UINT32_C(0x091101F1), + UINT32_C(0x01EB64B1), UINT32_C(0x0AA87947), UINT32_C(0x01ECBA5D), + UINT32_C(0x03E02CC6), UINT32_C(0x0FDA4839), UINT32_C(0x02FF59B8), + UINT32_C(0x0CA6ED0F), UINT32_C(0x06C0BD08), UINT32_C(0x0948203F), + UINT32_C(0x00417563), UINT32_C(0x03ED5E44), UINT32_C(0x09D9F1D1), + UINT32_C(0x043138E9), UINT32_C(0x087C76A9), UINT32_C(0x0436C464), + UINT32_C(0x065BC41C) } }, + { { UINT32_C(0x0878503F), UINT32_C(0x02F87D12), UINT32_C(0x02476646), + UINT32_C(0x0245CC6E), UINT32_C(0x0D4C90B6), UINT32_C(0x03F5323B), + UINT32_C(0x05B608C2), UINT32_C(0x0E11AA7B), UINT32_C(0x03BBF4CC), + UINT32_C(0x0E62F0E5), UINT32_C(0x03FDD83B), UINT32_C(0x01FAF12E), + UINT32_C(0x00E02D6E), UINT32_C(0x0404666D), UINT32_C(0x0A39480C), + UINT32_C(0x05904EE4), UINT32_C(0x0D422EC7), UINT32_C(0x009272AF), + UINT32_C(0x065E518B) }, + { UINT32_C(0x0947A480), UINT32_C(0x0638CCA2), UINT32_C(0x0B86EFCD), + UINT32_C(0x04C5912B), UINT32_C(0x0416F142), UINT32_C(0x066CD9A8), + UINT32_C(0x0062F342), UINT32_C(0x030CBA20), UINT32_C(0x0675D320), + UINT32_C(0x02C4F492), UINT32_C(0x04263BD8), UINT32_C(0x0B10ED23), + UINT32_C(0x00458FD7), UINT32_C(0x064D3804), UINT32_C(0x030CE729), + UINT32_C(0x055F1902), UINT32_C(0x005C9288), UINT32_C(0x05B65212), + UINT32_C(0x03463ED7) } }, + { { UINT32_C(0x0002FA40), UINT32_C(0x019C27F1), UINT32_C(0x00CBB750), + UINT32_C(0x03DB3435), UINT32_C(0x07286E98), UINT32_C(0x0279AAFF), + UINT32_C(0x06D46384), UINT32_C(0x0A49DB6A), UINT32_C(0x0137478E), + UINT32_C(0x07036ADC), UINT32_C(0x0156A020), UINT32_C(0x03444CA2), + UINT32_C(0x014A059C), UINT32_C(0x062920C4), UINT32_C(0x05340D48), + UINT32_C(0x07AB2B40), UINT32_C(0x060E1CBF), UINT32_C(0x06DBC3C7), + UINT32_C(0x02A6E451) }, + { UINT32_C(0x02203C97), UINT32_C(0x0318811D), UINT32_C(0x02528A1B), + UINT32_C(0x04016192), UINT32_C(0x002C3086), UINT32_C(0x031D212C), + UINT32_C(0x03FC1DA6), UINT32_C(0x0E3A234E), UINT32_C(0x048A2B44), + UINT32_C(0x046AB91A), UINT32_C(0x03F8806B), UINT32_C(0x073943DE), + UINT32_C(0x02B12570), UINT32_C(0x024DEAC9), UINT32_C(0x08C3B2AA), + UINT32_C(0x06910619), UINT32_C(0x01EBE0ED), UINT32_C(0x04FB5E82), + UINT32_C(0x068938E9) } }, + { { UINT32_C(0x06A8409F), UINT32_C(0x03819FA0), UINT32_C(0x04EBCC7D), + UINT32_C(0x05295667), UINT32_C(0x00BD47C4), UINT32_C(0x02F397A5), + UINT32_C(0x00B133A1), UINT32_C(0x073E4AFA), UINT32_C(0x0760D526), + UINT32_C(0x0D372CAA), UINT32_C(0x0068759A), UINT32_C(0x09A7813F), + UINT32_C(0x000A0F4E), UINT32_C(0x01EAF02F), UINT32_C(0x09F88085), + UINT32_C(0x0117D84A), UINT32_C(0x0B583330), UINT32_C(0x07FFDDE3), + UINT32_C(0x00C0B54F) }, + { UINT32_C(0x0593BC03), UINT32_C(0x05294489), UINT32_C(0x0C95575C), + UINT32_C(0x06A16930), UINT32_C(0x07E57953), UINT32_C(0x04258C35), + UINT32_C(0x027EF886), UINT32_C(0x09A129B5), UINT32_C(0x034A8854), + UINT32_C(0x0BB5AF8F), UINT32_C(0x0469C5BA), UINT32_C(0x000C4849), + UINT32_C(0x00CE9665), UINT32_C(0x02759E17), UINT32_C(0x087D763E), + UINT32_C(0x03FB717D), UINT32_C(0x0F3FD635), UINT32_C(0x007CA5FC), + UINT32_C(0x01D3A8B2) } }, + { { UINT32_C(0x068172DA), UINT32_C(0x05B9F788), UINT32_C(0x0612E973), + UINT32_C(0x0052E050), UINT32_C(0x099B39D0), UINT32_C(0x061F5F0F), + UINT32_C(0x0799AF1A), UINT32_C(0x0466C10B), UINT32_C(0x0680E8D3), + UINT32_C(0x04361EC0), UINT32_C(0x05210B2E), UINT32_C(0x0DF23AB3), + UINT32_C(0x02B3A0B2), UINT32_C(0x0380194E), UINT32_C(0x09D77AFB), + UINT32_C(0x06BCE4AB), UINT32_C(0x05EAD2E7), UINT32_C(0x02DD9B74), + UINT32_C(0x033D66F2) }, + { UINT32_C(0x0BF1C993), UINT32_C(0x04E38933), UINT32_C(0x02FC4FAF), + UINT32_C(0x0461AE62), UINT32_C(0x0F6D1B38), UINT32_C(0x021B47B4), + UINT32_C(0x01F061C9), UINT32_C(0x051CC234), UINT32_C(0x01C8E186), + UINT32_C(0x001C7EF9), UINT32_C(0x0664E0E2), UINT32_C(0x048E8CC7), + UINT32_C(0x015C9670), UINT32_C(0x0481B87A), UINT32_C(0x05BCAD05), + UINT32_C(0x003B38E6), UINT32_C(0x00886CA1), UINT32_C(0x00B0D706), + UINT32_C(0x026557A5) } }, + { { UINT32_C(0x05F0E5DA), UINT32_C(0x03682274), UINT32_C(0x0F4E352F), + UINT32_C(0x0105AE83), UINT32_C(0x0A820E71), UINT32_C(0x022C5CEC), + UINT32_C(0x03DD2CFC), UINT32_C(0x0298E61A), UINT32_C(0x00120917), + UINT32_C(0x0B0B64DF), UINT32_C(0x03C1333E), UINT32_C(0x03C5D41B), + UINT32_C(0x04B5D215), UINT32_C(0x0187971D), UINT32_C(0x0389EAD7), + UINT32_C(0x03CFCCE2), UINT32_C(0x063F13FF), UINT32_C(0x0652C165), + UINT32_C(0x07742EFC) }, + { UINT32_C(0x0931C0F0), UINT32_C(0x018F45E5), UINT32_C(0x0C4C756D), + UINT32_C(0x0537A469), UINT32_C(0x0433FB52), UINT32_C(0x0754DECC), + UINT32_C(0x04D896F7), UINT32_C(0x04335219), UINT32_C(0x073BBC0E), + UINT32_C(0x083BA2C0), UINT32_C(0x012D3B9E), UINT32_C(0x023EABD5), + UINT32_C(0x04475CF9), UINT32_C(0x07A0DA39), UINT32_C(0x088DDF48), + UINT32_C(0x002FFFDF), UINT32_C(0x0D8B7000), UINT32_C(0x06504250), + UINT32_C(0x00F1A818) } }, + { { UINT32_C(0x052228CC), UINT32_C(0x06FA4348), UINT32_C(0x0F049E30), + UINT32_C(0x0713CA99), UINT32_C(0x0E5D39FE), UINT32_C(0x0057B8DA), + UINT32_C(0x003125E1), UINT32_C(0x0CC15492), UINT32_C(0x07700BE8), + UINT32_C(0x08CFE785), UINT32_C(0x00CEB57F), UINT32_C(0x0F478327), + UINT32_C(0x05A00945), UINT32_C(0x0490F14E), UINT32_C(0x025BA378), + UINT32_C(0x060ED998), UINT32_C(0x01B249B5), UINT32_C(0x0023BC4C), + UINT32_C(0x04DEDEC8) }, + { UINT32_C(0x0BA1E090), UINT32_C(0x027EBAC8), UINT32_C(0x0DD6FE71), + UINT32_C(0x01F0ADDC), UINT32_C(0x0549F634), UINT32_C(0x06BE8416), + UINT32_C(0x02F156E2), UINT32_C(0x0A531A53), UINT32_C(0x00AFBE73), + UINT32_C(0x0FFF18EB), UINT32_C(0x0020C1DC), UINT32_C(0x0F409F61), + UINT32_C(0x04E3859C), UINT32_C(0x015D5ECF), UINT32_C(0x03B3F268), + UINT32_C(0x0288B503), UINT32_C(0x03A276BD), UINT32_C(0x0286EE9C), + UINT32_C(0x03166F91) } }, + { { UINT32_C(0x0F1CAC2C), UINT32_C(0x035777A8), UINT32_C(0x0AF34113), + UINT32_C(0x050DD855), UINT32_C(0x0B6BC9C1), UINT32_C(0x07010D91), + UINT32_C(0x0452008D), UINT32_C(0x0471A3DA), UINT32_C(0x05830FDC), + UINT32_C(0x0F222BBE), UINT32_C(0x04848384), UINT32_C(0x049CFD4D), + UINT32_C(0x01817D66), UINT32_C(0x0724627E), UINT32_C(0x082270B8), + UINT32_C(0x07ED5A0F), UINT32_C(0x0EEA015A), UINT32_C(0x0700F77E), + UINT32_C(0x007E36E1) }, + { UINT32_C(0x09244F78), UINT32_C(0x049DAC0A), UINT32_C(0x0573D581), + UINT32_C(0x001D1B4C), UINT32_C(0x0F0116EB), UINT32_C(0x03CFFD42), + UINT32_C(0x043FFF66), UINT32_C(0x048523A0), UINT32_C(0x0671CEF3), + UINT32_C(0x0EC2D7AF), UINT32_C(0x0049EBD0), UINT32_C(0x0F4034B6), + UINT32_C(0x05C34B54), UINT32_C(0x025E680B), UINT32_C(0x0D2C5BEA), + UINT32_C(0x06F544F6), UINT32_C(0x0B0CFA5A), UINT32_C(0x018276AE), + UINT32_C(0x077D6B16) } }, + }, + { + { { UINT32_C(0x00E10587), UINT32_C(0x01885D11), UINT32_C(0x00A74863), + UINT32_C(0x02F34C13), UINT32_C(0x0BD4B6A2), UINT32_C(0x00E26C23), + UINT32_C(0x07F483FF), UINT32_C(0x0A97D9DC), UINT32_C(0x02338A61), + UINT32_C(0x07F72547), UINT32_C(0x03535AFC), UINT32_C(0x0B8E96B4), + UINT32_C(0x001E804D), UINT32_C(0x03BD1DFE), UINT32_C(0x0A6ED29A), + UINT32_C(0x0634588A), UINT32_C(0x0F0F6D32), UINT32_C(0x0117DDE8), + UINT32_C(0x037107C5) }, + { UINT32_C(0x0BF698BD), UINT32_C(0x0671195E), UINT32_C(0x0E9DC570), + UINT32_C(0x052CBC52), UINT32_C(0x0C08C8ED), UINT32_C(0x04213081), + UINT32_C(0x00A08E33), UINT32_C(0x0A4BC1ED), UINT32_C(0x00B396EB), + UINT32_C(0x0FF34D08), UINT32_C(0x04A4BDD9), UINT32_C(0x0A6F615E), + UINT32_C(0x0534B5A0), UINT32_C(0x0057D6A7), UINT32_C(0x0F6CE02C), + UINT32_C(0x06F6315B), UINT32_C(0x0D666709), UINT32_C(0x050AF998), + UINT32_C(0x006F0E3F) } }, + { { UINT32_C(0x06965640), UINT32_C(0x0081356B), UINT32_C(0x0F41E038), + UINT32_C(0x06713218), UINT32_C(0x0FB9E806), UINT32_C(0x0121D001), + UINT32_C(0x07B97EDD), UINT32_C(0x0CDDEFA2), UINT32_C(0x0585D94D), + UINT32_C(0x065F4CD7), UINT32_C(0x03CFC91B), UINT32_C(0x06B603EF), + UINT32_C(0x07128C67), UINT32_C(0x030595F0), UINT32_C(0x0E51FB71), + UINT32_C(0x06217FBE), UINT32_C(0x0B730732), UINT32_C(0x06277C1D), + UINT32_C(0x04AE17C6) }, + { UINT32_C(0x0CFB1D0D), UINT32_C(0x053AA14E), UINT32_C(0x0442F9BE), + UINT32_C(0x0786EEC1), UINT32_C(0x0EF775DF), UINT32_C(0x07A66D5B), + UINT32_C(0x032CDF98), UINT32_C(0x0CA3E106), UINT32_C(0x07042EBA), + UINT32_C(0x00FD51A1), UINT32_C(0x02B743F2), UINT32_C(0x0D214308), + UINT32_C(0x03293BD7), UINT32_C(0x0635DC49), UINT32_C(0x0EB86870), + UINT32_C(0x03EB73BF), UINT32_C(0x07F02587), UINT32_C(0x0017A824), + UINT32_C(0x01F012DD) } }, + { { UINT32_C(0x0E0BF039), UINT32_C(0x003B2CD3), UINT32_C(0x0C2C0F48), + UINT32_C(0x039AED35), UINT32_C(0x044C7CCC), UINT32_C(0x0364D078), + UINT32_C(0x02C04409), UINT32_C(0x0CAEF9C4), UINT32_C(0x05C37F4A), + UINT32_C(0x0D99EE77), UINT32_C(0x0200140A), UINT32_C(0x0A3BBBDE), + UINT32_C(0x041E7C9A), UINT32_C(0x0371B744), UINT32_C(0x05A165FF), + UINT32_C(0x05A7216A), UINT32_C(0x0A9CE444), UINT32_C(0x03DD4951), + UINT32_C(0x031EC3D2) }, + { UINT32_C(0x08EAF6EB), UINT32_C(0x0703CD67), UINT32_C(0x0DEBC6FB), + UINT32_C(0x079F8F47), UINT32_C(0x090D3A5B), UINT32_C(0x05FF4EFE), + UINT32_C(0x05A2BC42), UINT32_C(0x006C3961), UINT32_C(0x00795219), + UINT32_C(0x0FF8315E), UINT32_C(0x05BD4244), UINT32_C(0x02EEA381), + UINT32_C(0x02022F89), UINT32_C(0x07878373), UINT32_C(0x084B3FA1), + UINT32_C(0x0715713B), UINT32_C(0x0EF55815), UINT32_C(0x0748BA61), + UINT32_C(0x0445AEE6) } }, + { { UINT32_C(0x0DCBF5E2), UINT32_C(0x03557A9E), UINT32_C(0x063D2A67), + UINT32_C(0x00EFE9F6), UINT32_C(0x09FA350B), UINT32_C(0x03896396), + UINT32_C(0x01F8036E), UINT32_C(0x0DC0F10D), UINT32_C(0x02B56329), + UINT32_C(0x02504A0F), UINT32_C(0x063A7100), UINT32_C(0x0FA5A9E7), + UINT32_C(0x07665FD9), UINT32_C(0x05DE4FB8), UINT32_C(0x00484D0C), + UINT32_C(0x03AEE4FB), UINT32_C(0x046B10E6), UINT32_C(0x04D5E0D6), + UINT32_C(0x01F835F4) }, + { UINT32_C(0x047D2B4B), UINT32_C(0x05847634), UINT32_C(0x0C0A675C), + UINT32_C(0x00120157), UINT32_C(0x07AF8F0E), UINT32_C(0x0251A99B), + UINT32_C(0x00CEE4D0), UINT32_C(0x07351889), UINT32_C(0x0621596F), + UINT32_C(0x00C5618B), UINT32_C(0x066E65D2), UINT32_C(0x049D9FBE), + UINT32_C(0x01E37BCF), UINT32_C(0x01C629C9), UINT32_C(0x0EC1F561), + UINT32_C(0x02AFE546), UINT32_C(0x0005751E), UINT32_C(0x018C42B2), + UINT32_C(0x01EAA03C) } }, + { { UINT32_C(0x0D959BD9), UINT32_C(0x038EEBBB), UINT32_C(0x08419A01), + UINT32_C(0x05F1CCBE), UINT32_C(0x03171501), UINT32_C(0x07C18C55), + UINT32_C(0x035306D9), UINT32_C(0x011DBDEA), UINT32_C(0x036E5963), + UINT32_C(0x090BCEBA), UINT32_C(0x01350854), UINT32_C(0x0BB28AF5), + UINT32_C(0x04F74928), UINT32_C(0x0330FF01), UINT32_C(0x095BA009), + UINT32_C(0x0578BFB6), UINT32_C(0x0FCF0801), UINT32_C(0x03302535), + UINT32_C(0x06BFF304) }, + { UINT32_C(0x0384E611), UINT32_C(0x00AD5348), UINT32_C(0x0E493BE6), + UINT32_C(0x03CA4CDB), UINT32_C(0x0C4D1BD5), UINT32_C(0x027B8CE4), + UINT32_C(0x02E5B4CB), UINT32_C(0x0707AF6D), UINT32_C(0x06A39971), + UINT32_C(0x0BA42E4C), UINT32_C(0x0755E74C), UINT32_C(0x04AD6360), + UINT32_C(0x068A6F0D), UINT32_C(0x023144DE), UINT32_C(0x07375993), + UINT32_C(0x02780B3A), UINT32_C(0x0E492027), UINT32_C(0x05808694), + UINT32_C(0x07431A53) } }, + { { UINT32_C(0x010FBD04), UINT32_C(0x019723AA), UINT32_C(0x025CF109), + UINT32_C(0x03F3A3A7), UINT32_C(0x0D9D8E3F), UINT32_C(0x02F7C4B0), + UINT32_C(0x03DF7DF6), UINT32_C(0x0B60F06D), UINT32_C(0x02A5D26D), + UINT32_C(0x0C5F86A4), UINT32_C(0x06E7FCD9), UINT32_C(0x0DEF388F), + UINT32_C(0x05AC83A6), UINT32_C(0x0217A751), UINT32_C(0x00401D85), + UINT32_C(0x075A320E), UINT32_C(0x01AE8195), UINT32_C(0x06F4F327), + UINT32_C(0x04C77D2F) }, + { UINT32_C(0x09493BE8), UINT32_C(0x00A14C7B), UINT32_C(0x091C8FF9), + UINT32_C(0x01DEAA22), UINT32_C(0x0AB4BA27), UINT32_C(0x0562E012), + UINT32_C(0x07519BAB), UINT32_C(0x062D9AAA), UINT32_C(0x058B7863), + UINT32_C(0x08A2419C), UINT32_C(0x035D8277), UINT32_C(0x0F5C3CF3), + UINT32_C(0x03527C6B), UINT32_C(0x00F3B9E0), UINT32_C(0x0EF25B4A), + UINT32_C(0x0127A8B4), UINT32_C(0x0CE17BD2), UINT32_C(0x0195E53E), + UINT32_C(0x071B9B4C) } }, + { { UINT32_C(0x0DAA2FB7), UINT32_C(0x021B0EB2), UINT32_C(0x0B55E936), + UINT32_C(0x057A20CC), UINT32_C(0x01398941), UINT32_C(0x06E0BA5C), + UINT32_C(0x07DEDA3A), UINT32_C(0x00B1377E), UINT32_C(0x008093F5), + UINT32_C(0x00F8C281), UINT32_C(0x05D4332E), UINT32_C(0x0CF54E5F), + UINT32_C(0x039D7F62), UINT32_C(0x0699AB5B), UINT32_C(0x05FE8914), + UINT32_C(0x01C38070), UINT32_C(0x0685A0AC), UINT32_C(0x0104BEEE), + UINT32_C(0x06E340C1) }, + { UINT32_C(0x0FDAA949), UINT32_C(0x02A92433), UINT32_C(0x04E882FB), + UINT32_C(0x0435EA3D), UINT32_C(0x0CFC4BD1), UINT32_C(0x065698D5), + UINT32_C(0x02B61BEC), UINT32_C(0x0A7025E9), UINT32_C(0x06C77C84), + UINT32_C(0x066340BA), UINT32_C(0x07C0B02F), UINT32_C(0x0F9B4BCA), + UINT32_C(0x0207D1CA), UINT32_C(0x061D80D9), UINT32_C(0x061524CC), + UINT32_C(0x03F6A9F8), UINT32_C(0x094B6D53), UINT32_C(0x017C53E1), + UINT32_C(0x00BC771D) } }, + { { UINT32_C(0x0C8D6167), UINT32_C(0x0171F9BD), UINT32_C(0x05943DEC), + UINT32_C(0x01837B9B), UINT32_C(0x06E46FBD), UINT32_C(0x050C893D), + UINT32_C(0x0034F50C), UINT32_C(0x0E98EEDA), UINT32_C(0x06603ADA), + UINT32_C(0x0FF3362D), UINT32_C(0x023406A4), UINT32_C(0x03DC7095), + UINT32_C(0x03BCCC93), UINT32_C(0x033BDFE7), UINT32_C(0x0AA65D81), + UINT32_C(0x0739E2AF), UINT32_C(0x03455112), UINT32_C(0x06643DC0), + UINT32_C(0x020DF18F) }, + { UINT32_C(0x084BF04E), UINT32_C(0x024B7756), UINT32_C(0x059E51F9), + UINT32_C(0x05998215), UINT32_C(0x03684ACA), UINT32_C(0x065BD6DC), + UINT32_C(0x03075ACB), UINT32_C(0x01AD9C9A), UINT32_C(0x07375334), + UINT32_C(0x01731A12), UINT32_C(0x000384D3), UINT32_C(0x02632FF6), + UINT32_C(0x0023BB3A), UINT32_C(0x0348AF93), UINT32_C(0x088B02BB), + UINT32_C(0x02C7DE6E), UINT32_C(0x0933F326), UINT32_C(0x00B1B61E), + UINT32_C(0x076AC60E) } }, + { { UINT32_C(0x0757C756), UINT32_C(0x05545A21), UINT32_C(0x018FFA93), + UINT32_C(0x06C9A78F), UINT32_C(0x02C61841), UINT32_C(0x040A1739), + UINT32_C(0x04441B1D), UINT32_C(0x052E0E81), UINT32_C(0x07E14C4D), + UINT32_C(0x0FFFC0D5), UINT32_C(0x03072E2E), UINT32_C(0x007584A9), + UINT32_C(0x01259E6D), UINT32_C(0x002D25F5), UINT32_C(0x0C519B94), + UINT32_C(0x01BB1C14), UINT32_C(0x02CEB824), UINT32_C(0x02BBBEA4), + UINT32_C(0x035E112A) }, + { UINT32_C(0x0288CF7B), UINT32_C(0x0045C5C7), UINT32_C(0x002D8D8C), + UINT32_C(0x03BE5B42), UINT32_C(0x0A81E4C6), UINT32_C(0x0141578F), + UINT32_C(0x033F7AC2), UINT32_C(0x0EE71541), UINT32_C(0x067EAD7B), + UINT32_C(0x07E75F23), UINT32_C(0x011AF108), UINT32_C(0x047CA170), + UINT32_C(0x05308227), UINT32_C(0x054879D4), UINT32_C(0x0A37B132), + UINT32_C(0x00E6D1CA), UINT32_C(0x0629367A), UINT32_C(0x03276C5F), + UINT32_C(0x004CBC63) } }, + { { UINT32_C(0x00CF69E7), UINT32_C(0x0584FC9D), UINT32_C(0x06952F73), + UINT32_C(0x0281D51C), UINT32_C(0x037663C6), UINT32_C(0x0537F046), + UINT32_C(0x0725FFD4), UINT32_C(0x0C66B9FC), UINT32_C(0x049A3EDF), + UINT32_C(0x0F4FB830), UINT32_C(0x06728E50), UINT32_C(0x07B188F6), + UINT32_C(0x021C067A), UINT32_C(0x06F06BE8), UINT32_C(0x00AA347B), + UINT32_C(0x031AABF8), UINT32_C(0x03347446), UINT32_C(0x04B62373), + UINT32_C(0x043D128D) }, + { UINT32_C(0x02AE7427), UINT32_C(0x00F73AC9), UINT32_C(0x0095D833), + UINT32_C(0x00E6005C), UINT32_C(0x007FD8B7), UINT32_C(0x074C2204), + UINT32_C(0x00283649), UINT32_C(0x084EDD51), UINT32_C(0x05AC7321), + UINT32_C(0x08C40328), UINT32_C(0x04BFB5EF), UINT32_C(0x0A555FE0), + UINT32_C(0x04C70C7C), UINT32_C(0x076D0055), UINT32_C(0x0425B2E6), + UINT32_C(0x029D910F), UINT32_C(0x0B0A51DB), UINT32_C(0x04B38F9B), + UINT32_C(0x01028D80) } }, + { { UINT32_C(0x0F3DE4D2), UINT32_C(0x06047E27), UINT32_C(0x03505298), + UINT32_C(0x062523ED), UINT32_C(0x0F0D4A9F), UINT32_C(0x0150EF42), + UINT32_C(0x056CBCAD), UINT32_C(0x0B36A628), UINT32_C(0x071A352A), + UINT32_C(0x0D7A2CB8), UINT32_C(0x050FEDFC), UINT32_C(0x02BAC823), + UINT32_C(0x010EDF77), UINT32_C(0x0459668A), UINT32_C(0x04041659), + UINT32_C(0x07432BB7), UINT32_C(0x0F9651D8), UINT32_C(0x01999DE2), + UINT32_C(0x00CBECA1) }, + { UINT32_C(0x06A2607F), UINT32_C(0x06DC83E9), UINT32_C(0x005B1A08), + UINT32_C(0x05B9405C), UINT32_C(0x091E04D3), UINT32_C(0x0546E232), + UINT32_C(0x0566FE22), UINT32_C(0x0695BB9A), UINT32_C(0x0074A612), + UINT32_C(0x0E9787A0), UINT32_C(0x077B1860), UINT32_C(0x05404661), + UINT32_C(0x00184991), UINT32_C(0x02A1C038), UINT32_C(0x0A57F0B8), + UINT32_C(0x0382A987), UINT32_C(0x0691AC01), UINT32_C(0x02D8A8A9), + UINT32_C(0x05A19B11) } }, + { { UINT32_C(0x081DC2A6), UINT32_C(0x017A4663), UINT32_C(0x0209D21F), + UINT32_C(0x06A6AA7F), UINT32_C(0x051CC44C), UINT32_C(0x000D763F), + UINT32_C(0x034EFD90), UINT32_C(0x0DEE4042), UINT32_C(0x07CBAFFB), + UINT32_C(0x082C34D9), UINT32_C(0x02EB3FE5), UINT32_C(0x0BF15295), + UINT32_C(0x027D4089), UINT32_C(0x056DBCC8), UINT32_C(0x024595A7), + UINT32_C(0x03EC08BE), UINT32_C(0x057085E2), UINT32_C(0x017E7356), + UINT32_C(0x049CE745) }, + { UINT32_C(0x0123BA29), UINT32_C(0x0045804E), UINT32_C(0x08DEDF0E), + UINT32_C(0x00CB57D1), UINT32_C(0x0F61E577), UINT32_C(0x06EB6B79), + UINT32_C(0x05E3EED1), UINT32_C(0x09CB4DCD), UINT32_C(0x05DAE17F), + UINT32_C(0x034F393E), UINT32_C(0x03F5164C), UINT32_C(0x05F3C4A2), + UINT32_C(0x0708CC05), UINT32_C(0x04F2CAC7), UINT32_C(0x0798DD7C), + UINT32_C(0x0513331D), UINT32_C(0x004B3A41), UINT32_C(0x00801443), + UINT32_C(0x0196B762) } }, + { { UINT32_C(0x0356B52C), UINT32_C(0x03557744), UINT32_C(0x050104FE), + UINT32_C(0x069B4687), UINT32_C(0x0337937D), UINT32_C(0x018C3F4F), + UINT32_C(0x00568175), UINT32_C(0x01EE408E), UINT32_C(0x04092DE8), + UINT32_C(0x05E59E83), UINT32_C(0x0299816F), UINT32_C(0x05556DCC), + UINT32_C(0x038621D8), UINT32_C(0x0278A753), UINT32_C(0x05BC9211), + UINT32_C(0x009E162C), UINT32_C(0x0A3409DC), UINT32_C(0x04076EA9), + UINT32_C(0x0464CEC0) }, + { UINT32_C(0x0A659158), UINT32_C(0x022396D5), UINT32_C(0x08424377), + UINT32_C(0x0054703B), UINT32_C(0x0D2722F5), UINT32_C(0x03BAEB8A), + UINT32_C(0x04B65383), UINT32_C(0x07997DDA), UINT32_C(0x07F6A3B2), + UINT32_C(0x0BAFF348), UINT32_C(0x0299F9D9), UINT32_C(0x0B97AA04), + UINT32_C(0x02BA4DB8), UINT32_C(0x0696475F), UINT32_C(0x0B68D089), + UINT32_C(0x0472CB9F), UINT32_C(0x08CACFAE), UINT32_C(0x028807A6), + UINT32_C(0x009288EF) } }, + { { UINT32_C(0x0ED9CDF5), UINT32_C(0x00B31C4E), UINT32_C(0x0C549857), + UINT32_C(0x02D7F964), UINT32_C(0x074F9F98), UINT32_C(0x0792DF5F), + UINT32_C(0x020ED722), UINT32_C(0x0AA8C982), UINT32_C(0x02A2408C), + UINT32_C(0x053CDF30), UINT32_C(0x01CF47E5), UINT32_C(0x08E3FF2F), + UINT32_C(0x0333087A), UINT32_C(0x028090D6), UINT32_C(0x032F6CA0), + UINT32_C(0x02CF642E), UINT32_C(0x0DAB4498), UINT32_C(0x04A66B66), + UINT32_C(0x07248BCE) }, + { UINT32_C(0x092B1FE6), UINT32_C(0x02AD6EEE), UINT32_C(0x0EB5963E), + UINT32_C(0x0621B6BD), UINT32_C(0x04A1A8EF), UINT32_C(0x0374D40D), + UINT32_C(0x0573791F), UINT32_C(0x0DED8513), UINT32_C(0x03AEE0F5), + UINT32_C(0x03420B85), UINT32_C(0x04366099), UINT32_C(0x087C7CA7), + UINT32_C(0x00B9ADB9), UINT32_C(0x056E8EBA), UINT32_C(0x0E532676), + UINT32_C(0x05D27A22), UINT32_C(0x0554F4E5), UINT32_C(0x0474B581), + UINT32_C(0x02A6694F) } }, + { { UINT32_C(0x080DE633), UINT32_C(0x0639306E), UINT32_C(0x0CA4F76E), + UINT32_C(0x05BB3DCB), UINT32_C(0x06DA081A), UINT32_C(0x052EA9E2), + UINT32_C(0x017AF437), UINT32_C(0x07D25D54), UINT32_C(0x0772DE75), + UINT32_C(0x05670178), UINT32_C(0x06E81696), UINT32_C(0x0D28F3A1), + UINT32_C(0x07AF022A), UINT32_C(0x07B0D67B), UINT32_C(0x04C17950), + UINT32_C(0x001B706E), UINT32_C(0x04CE5637), UINT32_C(0x04CE1F2F), + UINT32_C(0x0211C385) }, + { UINT32_C(0x0E5D0D74), UINT32_C(0x0411D39E), UINT32_C(0x06137F67), + UINT32_C(0x00487846), UINT32_C(0x01B15D1C), UINT32_C(0x02B65C31), + UINT32_C(0x06027C03), UINT32_C(0x01F15577), UINT32_C(0x011F0564), + UINT32_C(0x066BA415), UINT32_C(0x00520E15), UINT32_C(0x01F82222), + UINT32_C(0x07F8C048), UINT32_C(0x05A09F41), UINT32_C(0x0BBA92E8), + UINT32_C(0x017E3648), UINT32_C(0x0861CC16), UINT32_C(0x07A9DAF6), + UINT32_C(0x05F2C6E5) } }, + { { UINT32_C(0x04DA7708), UINT32_C(0x057D4066), UINT32_C(0x01F6A8A0), + UINT32_C(0x00EE18FE), UINT32_C(0x05BB3FCD), UINT32_C(0x071CB79F), + UINT32_C(0x038BBCE0), UINT32_C(0x0AAFE87E), UINT32_C(0x0245536B), + UINT32_C(0x0D0401C6), UINT32_C(0x027984FD), UINT32_C(0x0064D51F), + UINT32_C(0x04DCF2A2), UINT32_C(0x037E99AD), UINT32_C(0x03487C33), + UINT32_C(0x068353F1), UINT32_C(0x0BA863FC), UINT32_C(0x00721339), + UINT32_C(0x0754D195) }, + { UINT32_C(0x09031706), UINT32_C(0x0327DD4E), UINT32_C(0x05DDA163), + UINT32_C(0x03F893AE), UINT32_C(0x0F1F3959), UINT32_C(0x02EC658A), + UINT32_C(0x05A438AD), UINT32_C(0x0AE93F30), UINT32_C(0x01D8B56B), + UINT32_C(0x09592309), UINT32_C(0x0189BB66), UINT32_C(0x050E8D52), + UINT32_C(0x0526168D), UINT32_C(0x07FD307D), UINT32_C(0x08A4C7BC), + UINT32_C(0x03B12944), UINT32_C(0x08329BC8), UINT32_C(0x02A4A1CE), + UINT32_C(0x0087B284) } }, + }, + { + { { UINT32_C(0x01C86157), UINT32_C(0x0017ED5F), UINT32_C(0x079948D2), + UINT32_C(0x02FD6755), UINT32_C(0x0A5E2B5C), UINT32_C(0x00395EB0), + UINT32_C(0x070A6ECC), UINT32_C(0x031E307B), UINT32_C(0x070DA4B9), + UINT32_C(0x0166FB85), UINT32_C(0x02AF3210), UINT32_C(0x079379FF), + UINT32_C(0x010504D3), UINT32_C(0x022DFB7B), UINT32_C(0x0C019CF3), + UINT32_C(0x05E0727A), UINT32_C(0x0CE73CB9), UINT32_C(0x005CF0C7), + UINT32_C(0x039AD397) }, + { UINT32_C(0x08E15F36), UINT32_C(0x04E08562), UINT32_C(0x0EC12012), + UINT32_C(0x009F68C4), UINT32_C(0x0733E4B1), UINT32_C(0x014872C8), + UINT32_C(0x0490CCCC), UINT32_C(0x0E53957D), UINT32_C(0x05CD4F2D), + UINT32_C(0x082FD79D), UINT32_C(0x05F2B6D8), UINT32_C(0x0C7600B1), + UINT32_C(0x02D81D79), UINT32_C(0x007520D1), UINT32_C(0x09EEC681), + UINT32_C(0x04D6FB1B), UINT32_C(0x0641B032), UINT32_C(0x0283E5C0), + UINT32_C(0x072A39F3) } }, + { { UINT32_C(0x01C9C2EC), UINT32_C(0x03A87BAF), UINT32_C(0x056E06F3), + UINT32_C(0x02AA4CD5), UINT32_C(0x0D64394D), UINT32_C(0x044B2642), + UINT32_C(0x018E8ECB), UINT32_C(0x02C6B29E), UINT32_C(0x00B5D0E1), + UINT32_C(0x0795603C), UINT32_C(0x027FEAC7), UINT32_C(0x07400535), + UINT32_C(0x04BD90C2), UINT32_C(0x0212CC37), UINT32_C(0x018B9D6C), + UINT32_C(0x05FC9D53), UINT32_C(0x03C7248E), UINT32_C(0x038A1FEB), + UINT32_C(0x06C809CE) }, + { UINT32_C(0x06F1CACC), UINT32_C(0x0758DFC1), UINT32_C(0x019C0D17), + UINT32_C(0x0749CD61), UINT32_C(0x00C0724E), UINT32_C(0x0667F861), + UINT32_C(0x03CDAF01), UINT32_C(0x0DE66325), UINT32_C(0x0767BD47), + UINT32_C(0x0A1FDF93), UINT32_C(0x04E66E27), UINT32_C(0x004977BC), + UINT32_C(0x05EE6515), UINT32_C(0x018DEC59), UINT32_C(0x03B99628), + UINT32_C(0x02B69F3F), UINT32_C(0x019CC516), UINT32_C(0x07CB4623), + UINT32_C(0x0353C229) } }, + { { UINT32_C(0x05A2D6F0), UINT32_C(0x04982642), UINT32_C(0x088CE54F), + UINT32_C(0x06602A66), UINT32_C(0x0A17C84E), UINT32_C(0x02BE4DCE), + UINT32_C(0x0718C264), UINT32_C(0x0FDCB2D1), UINT32_C(0x01F7AC59), + UINT32_C(0x0E4C2C6C), UINT32_C(0x01B5B9D3), UINT32_C(0x0CCEB9E5), + UINT32_C(0x04C7FB08), UINT32_C(0x04600748), UINT32_C(0x09F19FD9), + UINT32_C(0x011C0141), UINT32_C(0x0A08392D), UINT32_C(0x07099321), + UINT32_C(0x075F26A3) }, + { UINT32_C(0x0AF35FA1), UINT32_C(0x01CA261B), UINT32_C(0x0FF7838D), + UINT32_C(0x00432E0D), UINT32_C(0x08296922), UINT32_C(0x077D0499), + UINT32_C(0x06A4988A), UINT32_C(0x0D91BD7B), UINT32_C(0x007D4895), + UINT32_C(0x01A77EB2), UINT32_C(0x0491B2C9), UINT32_C(0x07D6BB4E), + UINT32_C(0x065BB828), UINT32_C(0x05D28C77), UINT32_C(0x034C1831), + UINT32_C(0x03111000), UINT32_C(0x048A3F8F), UINT32_C(0x007D19EE), + UINT32_C(0x006FAC9D) } }, + { { UINT32_C(0x0719C87C), UINT32_C(0x07385BC9), UINT32_C(0x01F42502), + UINT32_C(0x074D4561), UINT32_C(0x02CA79B8), UINT32_C(0x01BE905A), + UINT32_C(0x044E03DC), UINT32_C(0x05034A1A), UINT32_C(0x012B4964), + UINT32_C(0x0BF284CE), UINT32_C(0x0080C91A), UINT32_C(0x0B4EE205), + UINT32_C(0x0121E876), UINT32_C(0x04C7D981), UINT32_C(0x09D6F0D5), + UINT32_C(0x011438CC), UINT32_C(0x0906A777), UINT32_C(0x05FD89D1), + UINT32_C(0x01D7C3AC) }, + { UINT32_C(0x0392D834), UINT32_C(0x0199066B), UINT32_C(0x0E53AECD), + UINT32_C(0x0279A7E5), UINT32_C(0x0E8B313A), UINT32_C(0x04F8A2AF), + UINT32_C(0x062A274F), UINT32_C(0x0869ED62), UINT32_C(0x01C4081F), + UINT32_C(0x0DD27618), UINT32_C(0x0093ED89), UINT32_C(0x053869B6), + UINT32_C(0x07CB8D0C), UINT32_C(0x00D79FE6), UINT32_C(0x04A20332), + UINT32_C(0x03366324), UINT32_C(0x0C0B74C3), UINT32_C(0x070C316E), + UINT32_C(0x066AD76F) } }, + { { UINT32_C(0x011FA55B), UINT32_C(0x0775F5E8), UINT32_C(0x0C7BF6F4), + UINT32_C(0x07FCBE6F), UINT32_C(0x021BE3C2), UINT32_C(0x0017D919), + UINT32_C(0x01644455), UINT32_C(0x0AEE3FD7), UINT32_C(0x0259DD5E), + UINT32_C(0x002EC22F), UINT32_C(0x00D308F5), UINT32_C(0x038F6CBC), + UINT32_C(0x04FDED85), UINT32_C(0x001A53FA), UINT32_C(0x03E09FE9), + UINT32_C(0x0312E74F), UINT32_C(0x09B20907), UINT32_C(0x078CC1DB), + UINT32_C(0x066D9E8D) }, + { UINT32_C(0x08C7A5B7), UINT32_C(0x038B0D82), UINT32_C(0x063E4030), + UINT32_C(0x06CE3A75), UINT32_C(0x0488AD55), UINT32_C(0x0054AAAA), + UINT32_C(0x044F068C), UINT32_C(0x0CCE69AA), UINT32_C(0x014EF6E0), + UINT32_C(0x068C0346), UINT32_C(0x01443327), UINT32_C(0x0A416B3D), + UINT32_C(0x04EB25A7), UINT32_C(0x00B6E80F), UINT32_C(0x0819D7FD), + UINT32_C(0x061AFFF1), UINT32_C(0x070E8C81), UINT32_C(0x061C5530), + UINT32_C(0x0473CB02) } }, + { { UINT32_C(0x08D8BE36), UINT32_C(0x057DE7D1), UINT32_C(0x06025FA9), + UINT32_C(0x0039A5D5), UINT32_C(0x00FD02EF), UINT32_C(0x02EE7913), + UINT32_C(0x04E5E224), UINT32_C(0x052DC251), UINT32_C(0x04138D66), + UINT32_C(0x09FAF17A), UINT32_C(0x030D57A1), UINT32_C(0x08B8F06A), + UINT32_C(0x01D015A2), UINT32_C(0x0153FCA9), UINT32_C(0x0C54D5DF), + UINT32_C(0x00BAAE4A), UINT32_C(0x0940A0FA), UINT32_C(0x038292EA), + UINT32_C(0x02C97BC9) }, + { UINT32_C(0x024BFA00), UINT32_C(0x057378C3), UINT32_C(0x0A92C578), + UINT32_C(0x07A6310B), UINT32_C(0x0F28F901), UINT32_C(0x04ED3F57), + UINT32_C(0x037C7D8A), UINT32_C(0x00B71701), UINT32_C(0x0173A01A), + UINT32_C(0x0A9B43A3), UINT32_C(0x0196E612), UINT32_C(0x07111189), + UINT32_C(0x03F5BC1D), UINT32_C(0x05154B49), UINT32_C(0x0DD68D97), + UINT32_C(0x0220CC1D), UINT32_C(0x0895DF59), UINT32_C(0x0014717C), + UINT32_C(0x0384CEF8) } }, + { { UINT32_C(0x05F8022D), UINT32_C(0x07431A94), UINT32_C(0x0A7A9097), + UINT32_C(0x06FC555D), UINT32_C(0x0578029C), UINT32_C(0x00758DC8), + UINT32_C(0x00FDAF66), UINT32_C(0x0AE902D1), UINT32_C(0x06FDDF4D), + UINT32_C(0x056FCD2A), UINT32_C(0x0393CA27), UINT32_C(0x083EDDB9), + UINT32_C(0x071C8D5E), UINT32_C(0x02DA7EE1), UINT32_C(0x091B7578), + UINT32_C(0x022CF2B8), UINT32_C(0x08F559AF), UINT32_C(0x00F551D9), + UINT32_C(0x04CE7872) }, + { UINT32_C(0x0450FD39), UINT32_C(0x05325A33), UINT32_C(0x06D04EAD), + UINT32_C(0x0111017F), UINT32_C(0x04B7D043), UINT32_C(0x009CD030), + UINT32_C(0x02760D24), UINT32_C(0x0B333C83), UINT32_C(0x0178F799), + UINT32_C(0x06E56E99), UINT32_C(0x06AC4002), UINT32_C(0x06C6F55C), + UINT32_C(0x04212C69), UINT32_C(0x0776C549), UINT32_C(0x05AD10F2), + UINT32_C(0x07D4C443), UINT32_C(0x093443A3), UINT32_C(0x01E4DAC4), + UINT32_C(0x062304F4) } }, + { { UINT32_C(0x09FFF942), UINT32_C(0x039E7FBF), UINT32_C(0x0E4E0544), + UINT32_C(0x01C8EF03), UINT32_C(0x015953E4), UINT32_C(0x0641511A), + UINT32_C(0x0340D7DD), UINT32_C(0x04FBA207), UINT32_C(0x04DCD411), + UINT32_C(0x0CE5C435), UINT32_C(0x06C85A54), UINT32_C(0x0596F209), + UINT32_C(0x006C47CF), UINT32_C(0x039823F7), UINT32_C(0x01721D4C), + UINT32_C(0x03FE86B7), UINT32_C(0x044008FA), UINT32_C(0x05E107EC), + UINT32_C(0x0146DF75) }, + { UINT32_C(0x03BF30CF), UINT32_C(0x034E0D17), UINT32_C(0x0C6EB8E1), + UINT32_C(0x016786DE), UINT32_C(0x0B4F8D94), UINT32_C(0x01E54C18), + UINT32_C(0x0409537F), UINT32_C(0x0AD69F59), UINT32_C(0x04423A96), + UINT32_C(0x01427559), UINT32_C(0x0517F981), UINT32_C(0x0C655FF1), + UINT32_C(0x072A4662), UINT32_C(0x014DB58F), UINT32_C(0x09979D6E), + UINT32_C(0x05396DDB), UINT32_C(0x03E46CF7), UINT32_C(0x062B9D62), + UINT32_C(0x0334D070) } }, + { { UINT32_C(0x0C8B2AF6), UINT32_C(0x04C4030A), UINT32_C(0x03F4EA61), + UINT32_C(0x06B51CFD), UINT32_C(0x08530E96), UINT32_C(0x035106EB), + UINT32_C(0x07ACB7C9), UINT32_C(0x003FAA6D), UINT32_C(0x005AFE21), + UINT32_C(0x09C9266C), UINT32_C(0x02684731), UINT32_C(0x0745AC29), + UINT32_C(0x06162CD8), UINT32_C(0x069A0B95), UINT32_C(0x090B8391), + UINT32_C(0x0570D83A), UINT32_C(0x09AE0D06), UINT32_C(0x054A95B8), + UINT32_C(0x02CB380B) }, + { UINT32_C(0x02779E4D), UINT32_C(0x04B32E43), UINT32_C(0x0C0582B0), + UINT32_C(0x03521F35), UINT32_C(0x089A8F39), UINT32_C(0x03BF1933), + UINT32_C(0x027659AD), UINT32_C(0x0607CE4F), UINT32_C(0x072A97A4), + UINT32_C(0x0F6C2DAD), UINT32_C(0x0648C496), UINT32_C(0x02D0AF23), + UINT32_C(0x036927AF), UINT32_C(0x032E9075), UINT32_C(0x01C0AD79), + UINT32_C(0x02044936), UINT32_C(0x0DBCFEA2), UINT32_C(0x07DADFF1), + UINT32_C(0x06EDBCF7) } }, + { { UINT32_C(0x0209B80C), UINT32_C(0x01E54056), UINT32_C(0x0E397930), + UINT32_C(0x01AD9D0C), UINT32_C(0x0908F895), UINT32_C(0x02A9A26E), + UINT32_C(0x00744EB0), UINT32_C(0x0B2D7673), UINT32_C(0x00736623), + UINT32_C(0x0F9EEB98), UINT32_C(0x07E8C693), UINT32_C(0x05615D70), + UINT32_C(0x077E9858), UINT32_C(0x045C88B2), UINT32_C(0x06BA3291), + UINT32_C(0x02089363), UINT32_C(0x0D1148CA), UINT32_C(0x026B1CE4), + UINT32_C(0x0267E39A) }, + { UINT32_C(0x0E9F76E1), UINT32_C(0x0700247A), UINT32_C(0x02F5C013), + UINT32_C(0x045D6B0B), UINT32_C(0x02398752), UINT32_C(0x011414B8), + UINT32_C(0x0189B0D8), UINT32_C(0x065621BE), UINT32_C(0x07214CB5), + UINT32_C(0x0C72745E), UINT32_C(0x026E830D), UINT32_C(0x0BB5064F), + UINT32_C(0x03BD6991), UINT32_C(0x067AABA6), UINT32_C(0x03AAD9C4), + UINT32_C(0x01C748B3), UINT32_C(0x0F2AD6A8), UINT32_C(0x07B1AAD0), + UINT32_C(0x0515A45B) } }, + { { UINT32_C(0x0D45283F), UINT32_C(0x033F0C2B), UINT32_C(0x0EF7ECBA), + UINT32_C(0x03F31217), UINT32_C(0x0BF2BDDB), UINT32_C(0x05AE5F1D), + UINT32_C(0x015A33AE), UINT32_C(0x0B1D94AB), UINT32_C(0x00BB377A), + UINT32_C(0x077D4679), UINT32_C(0x056AF89C), UINT32_C(0x07165F99), + UINT32_C(0x046A17A3), UINT32_C(0x04CF6178), UINT32_C(0x00269B9B), + UINT32_C(0x03F1B9F6), UINT32_C(0x07453C34), UINT32_C(0x07253011), + UINT32_C(0x074559A2) }, + { UINT32_C(0x08D82B0E), UINT32_C(0x00D12F5F), UINT32_C(0x01FD52F5), + UINT32_C(0x03C4069B), UINT32_C(0x0B01B2FE), UINT32_C(0x05E81250), + UINT32_C(0x035DC621), UINT32_C(0x034EA726), UINT32_C(0x04613127), + UINT32_C(0x0B36D680), UINT32_C(0x06F52BC5), UINT32_C(0x04B16171), + UINT32_C(0x02156292), UINT32_C(0x0180583E), UINT32_C(0x0C8D5B19), + UINT32_C(0x043B9BE2), UINT32_C(0x097EF032), UINT32_C(0x0307A273), + UINT32_C(0x02ECC50D) } }, + { { UINT32_C(0x0613AC50), UINT32_C(0x01BBB9CD), UINT32_C(0x032CF181), + UINT32_C(0x04565F80), UINT32_C(0x09B00E52), UINT32_C(0x011EC5E2), + UINT32_C(0x05E7561C), UINT32_C(0x05B6572C), UINT32_C(0x072FBF3A), + UINT32_C(0x04311E38), UINT32_C(0x0350633E), UINT32_C(0x0C27E7E9), + UINT32_C(0x02DC82FC), UINT32_C(0x01DE746D), UINT32_C(0x078E3236), + UINT32_C(0x0712B6B0), UINT32_C(0x000A7E83), UINT32_C(0x0115CB1B), + UINT32_C(0x04C1103F) }, + { UINT32_C(0x0359ED2E), UINT32_C(0x065ADF64), UINT32_C(0x025E3238), + UINT32_C(0x076BEAFD), UINT32_C(0x072427F7), UINT32_C(0x05DBCD55), + UINT32_C(0x07AB37FF), UINT32_C(0x0865BFD5), UINT32_C(0x04382D44), + UINT32_C(0x0F1D5580), UINT32_C(0x06D00533), UINT32_C(0x08D6A784), + UINT32_C(0x05BB29BF), UINT32_C(0x005CEC3F), UINT32_C(0x06575E68), + UINT32_C(0x053585D5), UINT32_C(0x0403BCB0), UINT32_C(0x02F77540), + UINT32_C(0x02470C7F) } }, + { { UINT32_C(0x02C087ED), UINT32_C(0x07961B4B), UINT32_C(0x0F657FC0), + UINT32_C(0x00B16431), UINT32_C(0x01885C19), UINT32_C(0x029A3FB7), + UINT32_C(0x0721535D), UINT32_C(0x02FAD79C), UINT32_C(0x0596E385), + UINT32_C(0x02412161), UINT32_C(0x0289A97A), UINT32_C(0x01B54107), + UINT32_C(0x0271E7BB), UINT32_C(0x02E3D256), UINT32_C(0x07E3B820), + UINT32_C(0x07F5A8EE), UINT32_C(0x0C3BD541), UINT32_C(0x01BBC84D), + UINT32_C(0x02D55A46) }, + { UINT32_C(0x006E7D53), UINT32_C(0x07982C04), UINT32_C(0x09C948A0), + UINT32_C(0x00A62A93), UINT32_C(0x047CD945), UINT32_C(0x060F1A2B), + UINT32_C(0x05764587), UINT32_C(0x02111992), UINT32_C(0x03CD3492), + UINT32_C(0x0E5873CA), UINT32_C(0x04871D26), UINT32_C(0x0EBDD263), + UINT32_C(0x07899288), UINT32_C(0x00105962), UINT32_C(0x07975B25), + UINT32_C(0x00D6A34D), UINT32_C(0x02DF3799), UINT32_C(0x02807307), + UINT32_C(0x06FCAC54) } }, + { { UINT32_C(0x0302E505), UINT32_C(0x02CAC37A), UINT32_C(0x01A79721), + UINT32_C(0x03B2E74F), UINT32_C(0x0BE5B627), UINT32_C(0x019F58EA), + UINT32_C(0x03B18976), UINT32_C(0x0663CE37), UINT32_C(0x04C1003E), + UINT32_C(0x086DCC91), UINT32_C(0x0566BE13), UINT32_C(0x0A0C94D1), + UINT32_C(0x04A0F522), UINT32_C(0x01CBC165), UINT32_C(0x03D621C1), + UINT32_C(0x03F68C3D), UINT32_C(0x04156E0A), UINT32_C(0x04C1C807), + UINT32_C(0x002BF853) }, + { UINT32_C(0x073938D8), UINT32_C(0x076E66F8), UINT32_C(0x0251205F), + UINT32_C(0x01B82A4E), UINT32_C(0x0C9EAC88), UINT32_C(0x0736DBEE), + UINT32_C(0x028732CD), UINT32_C(0x03522855), UINT32_C(0x0343EE5A), + UINT32_C(0x053E49A4), UINT32_C(0x025D55C0), UINT32_C(0x0D4096DF), + UINT32_C(0x01108518), UINT32_C(0x02AE724F), UINT32_C(0x07514106), + UINT32_C(0x0301EB15), UINT32_C(0x0D82C2DE), UINT32_C(0x05E3A585), + UINT32_C(0x036F14AF) } }, + { { UINT32_C(0x07452267), UINT32_C(0x01E0D6D7), UINT32_C(0x04A4A896), + UINT32_C(0x06D1C7B5), UINT32_C(0x03C983EF), UINT32_C(0x017B4C4A), + UINT32_C(0x07C8F2FB), UINT32_C(0x078C2CCC), UINT32_C(0x0676C9A3), + UINT32_C(0x09CD585C), UINT32_C(0x0529FFB0), UINT32_C(0x020720BD), + UINT32_C(0x07B793B3), UINT32_C(0x07E65DA3), UINT32_C(0x0C89EDD5), + UINT32_C(0x04009C8D), UINT32_C(0x0EDC15A4), UINT32_C(0x077C8AC3), + UINT32_C(0x074868C1) }, + { UINT32_C(0x0DBC2674), UINT32_C(0x07B6C41F), UINT32_C(0x0B10636B), + UINT32_C(0x0607B000), UINT32_C(0x01B2C3EF), UINT32_C(0x014283CF), + UINT32_C(0x07BD944A), UINT32_C(0x016DA691), UINT32_C(0x0147454E), + UINT32_C(0x052DE117), UINT32_C(0x06E5CDC4), UINT32_C(0x0C7BE891), + UINT32_C(0x03BD94DE), UINT32_C(0x00362FA3), UINT32_C(0x0608B5DA), + UINT32_C(0x000C28A8), UINT32_C(0x06CFAD2C), UINT32_C(0x0502E5EB), + UINT32_C(0x0081DDC6) } }, + { { UINT32_C(0x0A2FCC67), UINT32_C(0x050EED2A), UINT32_C(0x0EAC3925), + UINT32_C(0x03CCFE3E), UINT32_C(0x0DC1F4E8), UINT32_C(0x012FD64C), + UINT32_C(0x02CFA2B3), UINT32_C(0x07921E80), UINT32_C(0x04F76E6D), + UINT32_C(0x090CBEA8), UINT32_C(0x00304ECF), UINT32_C(0x0933B9C8), + UINT32_C(0x01E92879), UINT32_C(0x062A922A), UINT32_C(0x03BEBB40), + UINT32_C(0x0475B5A4), UINT32_C(0x0AB9D3C2), UINT32_C(0x02845E4B), + UINT32_C(0x073D2AD6) }, + { UINT32_C(0x026C197B), UINT32_C(0x060C44B9), UINT32_C(0x07D6B2DD), + UINT32_C(0x06E7D188), UINT32_C(0x03B672A1), UINT32_C(0x0277F32F), + UINT32_C(0x011D4198), UINT32_C(0x07C178F6), UINT32_C(0x02E95A84), + UINT32_C(0x005619C7), UINT32_C(0x029B73FC), UINT32_C(0x03CAC5E3), + UINT32_C(0x068A3B5E), UINT32_C(0x07C2DFA8), UINT32_C(0x00EC9903), + UINT32_C(0x07AEED34), UINT32_C(0x08C0A0D0), UINT32_C(0x02A2FF79), + UINT32_C(0x06DBE6B8) } }, + }, + { + { { UINT32_C(0x0C3D1383), UINT32_C(0x04E126EE), UINT32_C(0x0B631DA3), + UINT32_C(0x03014900), UINT32_C(0x0D3831FE), UINT32_C(0x01BF06C7), + UINT32_C(0x032CA284), UINT32_C(0x092E0CA0), UINT32_C(0x01703AE0), + UINT32_C(0x0DCB8158), UINT32_C(0x06FF316B), UINT32_C(0x0ED60D31), + UINT32_C(0x05DB467E), UINT32_C(0x01F3917A), UINT32_C(0x06770BD1), + UINT32_C(0x00A944AF), UINT32_C(0x08E2035D), UINT32_C(0x020A054F), + UINT32_C(0x035F8744) }, + { UINT32_C(0x0A303000), UINT32_C(0x0029FD2C), UINT32_C(0x0A5D9AC4), + UINT32_C(0x06593596), UINT32_C(0x0288D9B1), UINT32_C(0x02B32376), + UINT32_C(0x067C4E0D), UINT32_C(0x0D1B984D), UINT32_C(0x04235BF5), + UINT32_C(0x001AA52B), UINT32_C(0x0221BA35), UINT32_C(0x0B74D0D3), + UINT32_C(0x03DDFA56), UINT32_C(0x004A6854), UINT32_C(0x01203660), + UINT32_C(0x0090027D), UINT32_C(0x02356607), UINT32_C(0x064E652F), + UINT32_C(0x01D4CBEB) } }, + { { UINT32_C(0x05CFE5E0), UINT32_C(0x04C8937C), UINT32_C(0x084C1BC9), + UINT32_C(0x0651FCA6), UINT32_C(0x0BDAC076), UINT32_C(0x079DB07C), + UINT32_C(0x01988893), UINT32_C(0x0D8E1644), UINT32_C(0x04F7CFCD), + UINT32_C(0x05727E1E), UINT32_C(0x073F0B5C), UINT32_C(0x0D975E23), + UINT32_C(0x06001F51), UINT32_C(0x07B2218F), UINT32_C(0x07159FF4), + UINT32_C(0x02D8AF28), UINT32_C(0x0F0AFF67), UINT32_C(0x0464C014), + UINT32_C(0x005A1007) }, + { UINT32_C(0x078A8DB5), UINT32_C(0x035A301E), UINT32_C(0x0E9F9693), + UINT32_C(0x07A8969A), UINT32_C(0x096A5ECF), UINT32_C(0x03467DDF), + UINT32_C(0x07AF13AA), UINT32_C(0x0BF17A6B), UINT32_C(0x00FBC9C7), + UINT32_C(0x002F3F21), UINT32_C(0x01610D30), UINT32_C(0x0A6FEF92), + UINT32_C(0x00334A31), UINT32_C(0x0619D424), UINT32_C(0x011832DC), + UINT32_C(0x04A2EBED), UINT32_C(0x092C4F4E), UINT32_C(0x03E72AFA), + UINT32_C(0x04555CAD) } }, + { { UINT32_C(0x0E8401D3), UINT32_C(0x031A9337), UINT32_C(0x0A68B915), + UINT32_C(0x006E6E9B), UINT32_C(0x0B1B6E29), UINT32_C(0x01B7F14B), + UINT32_C(0x047E0BD8), UINT32_C(0x0A8CBD43), UINT32_C(0x024528C3), + UINT32_C(0x08CA88A7), UINT32_C(0x000A1FEE), UINT32_C(0x0F21E47C), + UINT32_C(0x07D1A248), UINT32_C(0x04BE0AD5), UINT32_C(0x071E2CED), + UINT32_C(0x025521CD), UINT32_C(0x0F41E897), UINT32_C(0x0398886C), + UINT32_C(0x04779FFD) }, + { UINT32_C(0x0A828FA8), UINT32_C(0x017C8B2C), UINT32_C(0x0910B047), + UINT32_C(0x06160B77), UINT32_C(0x0B98B463), UINT32_C(0x07DF3373), + UINT32_C(0x0455763C), UINT32_C(0x0F1284BE), UINT32_C(0x00906AAE), + UINT32_C(0x01A75E0B), UINT32_C(0x07A6DA7C), UINT32_C(0x0FFCAFF1), + UINT32_C(0x050D6EE5), UINT32_C(0x024BD0BA), UINT32_C(0x08383A01), + UINT32_C(0x070AE8EA), UINT32_C(0x0CAA2B64), UINT32_C(0x06171B63), + UINT32_C(0x020CE9FD) } }, + { { UINT32_C(0x0147F509), UINT32_C(0x0074A121), UINT32_C(0x0B1C1B8D), + UINT32_C(0x00A39076), UINT32_C(0x0E542208), UINT32_C(0x01A08FA4), + UINT32_C(0x012AA998), UINT32_C(0x0954BE0E), UINT32_C(0x05751A97), + UINT32_C(0x09EFE174), UINT32_C(0x05C09E0D), UINT32_C(0x0DEE1815), + UINT32_C(0x000B0415), UINT32_C(0x06D82BE5), UINT32_C(0x000E24A9), + UINT32_C(0x042F7FD4), UINT32_C(0x0698791D), UINT32_C(0x05A5F79E), + UINT32_C(0x0334C8D5) }, + { UINT32_C(0x0BB690A0), UINT32_C(0x01835514), UINT32_C(0x031B4F26), + UINT32_C(0x023AC44F), UINT32_C(0x012CDCD1), UINT32_C(0x059AE369), + UINT32_C(0x0123A551), UINT32_C(0x0AEBA693), UINT32_C(0x07D984CD), + UINT32_C(0x0DAD9128), UINT32_C(0x0765643E), UINT32_C(0x0910F0F8), + UINT32_C(0x03FB31E2), UINT32_C(0x01BD811A), UINT32_C(0x059F6B39), + UINT32_C(0x049E6619), UINT32_C(0x06B63C96), UINT32_C(0x075166F7), + UINT32_C(0x025CA72B) } }, + { { UINT32_C(0x055F34E4), UINT32_C(0x00BF08BF), UINT32_C(0x03730236), + UINT32_C(0x039543BD), UINT32_C(0x05C17F94), UINT32_C(0x00A5C65D), + UINT32_C(0x06121DA8), UINT32_C(0x099AC777), UINT32_C(0x02DCC3D6), + UINT32_C(0x09002059), UINT32_C(0x0460BBB3), UINT32_C(0x07A202D8), + UINT32_C(0x04C44EB5), UINT32_C(0x049D001E), UINT32_C(0x0E783DED), + UINT32_C(0x0120D789), UINT32_C(0x086FA177), UINT32_C(0x065D19BF), + UINT32_C(0x042CA8B7) }, + { UINT32_C(0x02860379), UINT32_C(0x06375711), UINT32_C(0x078E9829), + UINT32_C(0x04F20A43), UINT32_C(0x0ADA67C4), UINT32_C(0x054101F4), + UINT32_C(0x0602943F), UINT32_C(0x03FD9150), UINT32_C(0x06B8D61B), + UINT32_C(0x06F5ADD6), UINT32_C(0x06EB2BAC), UINT32_C(0x0A07906A), + UINT32_C(0x0147EDC1), UINT32_C(0x0477D372), UINT32_C(0x0025B1CE), + UINT32_C(0x071B32CF), UINT32_C(0x0F40C9C6), UINT32_C(0x02483D0B), + UINT32_C(0x07A56FCD) } }, + { { UINT32_C(0x0B1B724E), UINT32_C(0x0100B5C8), UINT32_C(0x081380B3), + UINT32_C(0x048D8711), UINT32_C(0x0E363740), UINT32_C(0x029ED59F), + UINT32_C(0x05E7819F), UINT32_C(0x02898DC3), UINT32_C(0x03621527), + UINT32_C(0x0F99DD5D), UINT32_C(0x01DF449E), UINT32_C(0x022C0763), + UINT32_C(0x04490568), UINT32_C(0x051A6A61), UINT32_C(0x0EE682C8), + UINT32_C(0x0315AB2B), UINT32_C(0x08BF8EC0), UINT32_C(0x0221F0BD), + UINT32_C(0x0034A2F5) }, + { UINT32_C(0x0505A0E7), UINT32_C(0x031C759D), UINT32_C(0x006AE380), + UINT32_C(0x04AD9B4F), UINT32_C(0x0F850346), UINT32_C(0x0053B140), + UINT32_C(0x060AB23A), UINT32_C(0x021E3C52), UINT32_C(0x002B9A66), + UINT32_C(0x01646B7A), UINT32_C(0x03977D69), UINT32_C(0x02418634), + UINT32_C(0x05E2030C), UINT32_C(0x06F8DED9), UINT32_C(0x064302A0), + UINT32_C(0x0553D4B6), UINT32_C(0x0956D92B), UINT32_C(0x0537BD35), + UINT32_C(0x07AFABE7) } }, + { { UINT32_C(0x04CB8040), UINT32_C(0x016D2E6C), UINT32_C(0x0DDE4688), + UINT32_C(0x00DF2559), UINT32_C(0x0A980125), UINT32_C(0x066A1AC7), + UINT32_C(0x07DF5C4B), UINT32_C(0x0FD3C659), UINT32_C(0x00481C65), + UINT32_C(0x0AE5A70F), UINT32_C(0x029F751C), UINT32_C(0x00B4A3D4), + UINT32_C(0x075575BC), UINT32_C(0x045CF25E), UINT32_C(0x06867A07), + UINT32_C(0x076D7354), UINT32_C(0x0861487C), UINT32_C(0x017CEA2E), + UINT32_C(0x03228414) }, + { UINT32_C(0x026AE111), UINT32_C(0x038FA015), UINT32_C(0x060716CA), + UINT32_C(0x04976285), UINT32_C(0x059BC9DE), UINT32_C(0x043BF937), + UINT32_C(0x035F13A1), UINT32_C(0x0F8D8888), UINT32_C(0x06D5E9F8), + UINT32_C(0x08616DB1), UINT32_C(0x032C0CBB), UINT32_C(0x0AA3299C), + UINT32_C(0x03F194B4), UINT32_C(0x00D0F72D), UINT32_C(0x0B3FCCBD), + UINT32_C(0x02803044), UINT32_C(0x0A08E3C3), UINT32_C(0x037A0997), + UINT32_C(0x05DC3B19) } }, + { { UINT32_C(0x085193F0), UINT32_C(0x019978F4), UINT32_C(0x0BF0C234), + UINT32_C(0x04F7BBC1), UINT32_C(0x0722B6D6), UINT32_C(0x013DCEE7), + UINT32_C(0x05D575CD), UINT32_C(0x0779F809), UINT32_C(0x06335183), + UINT32_C(0x0DCC718C), UINT32_C(0x02D1E7DB), UINT32_C(0x0F6A6D57), + UINT32_C(0x065A96BF), UINT32_C(0x065930E7), UINT32_C(0x039B793F), + UINT32_C(0x06A9BA2E), UINT32_C(0x0C033596), UINT32_C(0x01BE1126), + UINT32_C(0x03EA93B8) }, + { UINT32_C(0x03161177), UINT32_C(0x002665D5), UINT32_C(0x017B69C9), + UINT32_C(0x07892DD4), UINT32_C(0x0F6F8ECB), UINT32_C(0x0576AF37), + UINT32_C(0x03C1E515), UINT32_C(0x05A60E50), UINT32_C(0x02549873), + UINT32_C(0x09B3D920), UINT32_C(0x029DA082), UINT32_C(0x009DAE44), + UINT32_C(0x0197C8E7), UINT32_C(0x0154A33B), UINT32_C(0x097B3971), + UINT32_C(0x023C0423), UINT32_C(0x02B8C68C), UINT32_C(0x04DCA653), + UINT32_C(0x00079A0F) } }, + { { UINT32_C(0x063E2975), UINT32_C(0x06BEC9ED), UINT32_C(0x0B38790C), + UINT32_C(0x022D87D1), UINT32_C(0x0EA228A4), UINT32_C(0x010DBA9F), + UINT32_C(0x015868D8), UINT32_C(0x080C5E0D), UINT32_C(0x075196CF), + UINT32_C(0x0A3AFD7E), UINT32_C(0x031A6E14), UINT32_C(0x0E7A5374), + UINT32_C(0x067A8FE5), UINT32_C(0x06ECEB0D), UINT32_C(0x0B84F9C7), + UINT32_C(0x0680604D), UINT32_C(0x072314F9), UINT32_C(0x03A2F4B2), + UINT32_C(0x06C5081F) }, + { UINT32_C(0x0B981980), UINT32_C(0x0349CBF0), UINT32_C(0x072972B5), + UINT32_C(0x02885527), UINT32_C(0x0150CDBD), UINT32_C(0x07F178E3), + UINT32_C(0x032B4111), UINT32_C(0x0B2B4EF6), UINT32_C(0x000F21B3), + UINT32_C(0x039D39FF), UINT32_C(0x07E2383D), UINT32_C(0x0F91A9DF), + UINT32_C(0x000BF2A4), UINT32_C(0x003EA686), UINT32_C(0x06E3C109), + UINT32_C(0x05D771D7), UINT32_C(0x03336F2A), UINT32_C(0x00A9A15C), + UINT32_C(0x0310BC8B) } }, + { { UINT32_C(0x082B5AA4), UINT32_C(0x04A7240C), UINT32_C(0x00ABF375), + UINT32_C(0x07E33DEB), UINT32_C(0x01BD8789), UINT32_C(0x06BA83A6), + UINT32_C(0x05A6491B), UINT32_C(0x04DB69BD), UINT32_C(0x010D6A55), + UINT32_C(0x0D5DAFA1), UINT32_C(0x06C7F999), UINT32_C(0x0185AD3E), + UINT32_C(0x027EAEB5), UINT32_C(0x006644C8), UINT32_C(0x0B9709E1), + UINT32_C(0x07676CF0), UINT32_C(0x0508273E), UINT32_C(0x054D3FBB), + UINT32_C(0x063EFA4A) }, + { UINT32_C(0x010AA767), UINT32_C(0x01CC5A04), UINT32_C(0x0BE5B1B3), + UINT32_C(0x06950FCE), UINT32_C(0x0E94E6DB), UINT32_C(0x0497BB17), + UINT32_C(0x00CC06B4), UINT32_C(0x08846F32), UINT32_C(0x0314DC3B), + UINT32_C(0x0BA27736), UINT32_C(0x0432450D), UINT32_C(0x04925C53), + UINT32_C(0x03119EE1), UINT32_C(0x04A66669), UINT32_C(0x05FBA305), + UINT32_C(0x033D4900), UINT32_C(0x0FE789AF), UINT32_C(0x0671EF4B), + UINT32_C(0x0259D6DF) } }, + { { UINT32_C(0x05C529C4), UINT32_C(0x04097FDD), UINT32_C(0x0296486E), + UINT32_C(0x05D5E29C), UINT32_C(0x0B3FABA2), UINT32_C(0x0695126C), + UINT32_C(0x0312362F), UINT32_C(0x08DC4B4B), UINT32_C(0x0413884F), + UINT32_C(0x067DDD33), UINT32_C(0x055DBD8F), UINT32_C(0x07D0B9CB), + UINT32_C(0x01BE7C35), UINT32_C(0x043BC43D), UINT32_C(0x00E5A19E), + UINT32_C(0x017725FC), UINT32_C(0x006A669F), UINT32_C(0x063FD379), + UINT32_C(0x0682F5E5) }, + { UINT32_C(0x0035FA1B), UINT32_C(0x0302079C), UINT32_C(0x0A397CF2), + UINT32_C(0x02A9E0EB), UINT32_C(0x0183E8FA), UINT32_C(0x00950C41), + UINT32_C(0x05ACFED2), UINT32_C(0x0B8DC827), UINT32_C(0x0004B05C), + UINT32_C(0x0ECD486A), UINT32_C(0x04FBAB30), UINT32_C(0x0A2FE908), + UINT32_C(0x05C95F6D), UINT32_C(0x06B30876), UINT32_C(0x0F3D7A8A), + UINT32_C(0x0734E57D), UINT32_C(0x0410C523), UINT32_C(0x057AD388), + UINT32_C(0x073AF161) } }, + { { UINT32_C(0x033E8718), UINT32_C(0x05E156C6), UINT32_C(0x0188F2D0), + UINT32_C(0x07B490F4), UINT32_C(0x0D1D9936), UINT32_C(0x045ACF91), + UINT32_C(0x05EADE92), UINT32_C(0x09204996), UINT32_C(0x03FB05AD), + UINT32_C(0x0952B30E), UINT32_C(0x066E8B73), UINT32_C(0x02E38706), + UINT32_C(0x06AD215A), UINT32_C(0x05770FF2), UINT32_C(0x0CCC64AA), + UINT32_C(0x00A77560), UINT32_C(0x084A4A57), UINT32_C(0x07428950), + UINT32_C(0x007783FF) }, + { UINT32_C(0x07864A53), UINT32_C(0x02B0B04D), UINT32_C(0x0CE9B903), + UINT32_C(0x032C4DB9), UINT32_C(0x0ED34B7B), UINT32_C(0x02B9BB80), + UINT32_C(0x0107A7A1), UINT32_C(0x0133502C), UINT32_C(0x06939D9B), + UINT32_C(0x07AE6A42), UINT32_C(0x01C55CB0), UINT32_C(0x0A087059), + UINT32_C(0x011E8069), UINT32_C(0x02AC5D81), UINT32_C(0x0FF470E4), + UINT32_C(0x068D4B88), UINT32_C(0x03B934D1), UINT32_C(0x01E86F4D), + UINT32_C(0x00286D40) } }, + { { UINT32_C(0x0A097CC4), UINT32_C(0x07C93D92), UINT32_C(0x03638A82), + UINT32_C(0x05D44662), UINT32_C(0x034F8801), UINT32_C(0x01E1B0E9), + UINT32_C(0x03132ED7), UINT32_C(0x0D61A771), UINT32_C(0x0777FA2F), + UINT32_C(0x0E4D4244), UINT32_C(0x02CDDCA4), UINT32_C(0x01988721), + UINT32_C(0x0694972F), UINT32_C(0x02AA2585), UINT32_C(0x06A552DD), + UINT32_C(0x02719251), UINT32_C(0x0C4FD604), UINT32_C(0x033FC4DD), + UINT32_C(0x02A49BC5) }, + { UINT32_C(0x0ECC32F4), UINT32_C(0x03998CBA), UINT32_C(0x0E555140), + UINT32_C(0x06BE70C6), UINT32_C(0x02ECE0DB), UINT32_C(0x07D7EE62), + UINT32_C(0x006B8450), UINT32_C(0x0C677BF6), UINT32_C(0x0065EEBA), + UINT32_C(0x0C8F791B), UINT32_C(0x05880489), UINT32_C(0x07724E1B), + UINT32_C(0x00C43815), UINT32_C(0x079C7129), UINT32_C(0x0AC7BD8B), + UINT32_C(0x00B35A76), UINT32_C(0x0E62F127), UINT32_C(0x06892912), + UINT32_C(0x069DE730) } }, + { { UINT32_C(0x0D176E2E), UINT32_C(0x04BD43B7), UINT32_C(0x0843A348), + UINT32_C(0x0749D5C1), UINT32_C(0x0ED9CC05), UINT32_C(0x00305C32), + UINT32_C(0x037CC7F4), UINT32_C(0x03DF22FB), UINT32_C(0x05799B29), + UINT32_C(0x0BAA8556), UINT32_C(0x01B9550B), UINT32_C(0x0B71D97D), + UINT32_C(0x071866D2), UINT32_C(0x042A76ED), UINT32_C(0x0CF558E6), + UINT32_C(0x05C52446), UINT32_C(0x0E80A5C3), UINT32_C(0x0732DC8B), + UINT32_C(0x05430293) }, + { UINT32_C(0x08A05AA1), UINT32_C(0x060E94EA), UINT32_C(0x0495DB83), + UINT32_C(0x07F23E7E), UINT32_C(0x09BABC6A), UINT32_C(0x07B134F3), + UINT32_C(0x02C60301), UINT32_C(0x0C76C75A), UINT32_C(0x0496E91D), + UINT32_C(0x0354A538), UINT32_C(0x03F832DB), UINT32_C(0x03139812), + UINT32_C(0x028BB56E), UINT32_C(0x06BC315A), UINT32_C(0x08F87E08), + UINT32_C(0x04EB9933), UINT32_C(0x0D94A083), UINT32_C(0x00F1E782), + UINT32_C(0x00039DA7) } }, + { { UINT32_C(0x0F46E9D5), UINT32_C(0x04AFDE7F), UINT32_C(0x02DD9156), + UINT32_C(0x03A43A4A), UINT32_C(0x0334CF91), UINT32_C(0x06B820D5), + UINT32_C(0x02AB098A), UINT32_C(0x010407F3), UINT32_C(0x06E15825), + UINT32_C(0x0DE19BBC), UINT32_C(0x05C155A7), UINT32_C(0x098AB480), + UINT32_C(0x027F0A26), UINT32_C(0x001E493A), UINT32_C(0x0D3BF154), + UINT32_C(0x0022BB7B), UINT32_C(0x092F7F8A), UINT32_C(0x025E06B0), + UINT32_C(0x0214EC84) }, + { UINT32_C(0x0E367447), UINT32_C(0x07A76C60), UINT32_C(0x0E7F25B2), + UINT32_C(0x061DC274), UINT32_C(0x08037471), UINT32_C(0x0601CC83), + UINT32_C(0x077C01C1), UINT32_C(0x0BD797B8), UINT32_C(0x07A2D854), + UINT32_C(0x0F539925), UINT32_C(0x00056A50), UINT32_C(0x0F52ABBB), + UINT32_C(0x01C407C4), UINT32_C(0x046E3EC8), UINT32_C(0x08C6B255), + UINT32_C(0x06BB4D5F), UINT32_C(0x09336DFF), UINT32_C(0x00D914F1), + UINT32_C(0x01F9DBAA) } }, + { { UINT32_C(0x0D831A04), UINT32_C(0x05A97D33), UINT32_C(0x0906D401), + UINT32_C(0x01E543D5), UINT32_C(0x063B64A7), UINT32_C(0x01DF1F04), + UINT32_C(0x07BEAE26), UINT32_C(0x0C4C51CE), UINT32_C(0x071253E1), + UINT32_C(0x07C5C1BC), UINT32_C(0x0686EDD8), UINT32_C(0x0EADB491), + UINT32_C(0x06FCC7E8), UINT32_C(0x04DC895B), UINT32_C(0x0DA99CB1), + UINT32_C(0x07538043), UINT32_C(0x0DCCD221), UINT32_C(0x05338542), + UINT32_C(0x0263F3E2) }, + { UINT32_C(0x049B2FC3), UINT32_C(0x00D9571D), UINT32_C(0x09A6B74E), + UINT32_C(0x013E9069), UINT32_C(0x0C142061), UINT32_C(0x0661D5AE), + UINT32_C(0x078F1467), UINT32_C(0x0568D3A9), UINT32_C(0x02729AA5), + UINT32_C(0x0749905F), UINT32_C(0x02491337), UINT32_C(0x0A8EED74), + UINT32_C(0x070FB80C), UINT32_C(0x066BA15B), UINT32_C(0x087A7668), + UINT32_C(0x03342CBD), UINT32_C(0x0FCD50D2), UINT32_C(0x017CF7F9), + UINT32_C(0x05DA6EDD) } }, + }, + { + { { UINT32_C(0x08ECE594), UINT32_C(0x02E6D7AF), UINT32_C(0x0160833B), + UINT32_C(0x05E9199C), UINT32_C(0x05C1EB44), UINT32_C(0x01F9CDD2), + UINT32_C(0x04ECBF7E), UINT32_C(0x011F5E2E), UINT32_C(0x00B16683), + UINT32_C(0x082C80F7), UINT32_C(0x04F6D76E), UINT32_C(0x0A9035A2), + UINT32_C(0x02A6F996), UINT32_C(0x07CF51EF), UINT32_C(0x011C78A5), + UINT32_C(0x03E6811A), UINT32_C(0x0DCCBD54), UINT32_C(0x029CA158), + UINT32_C(0x0188556B) }, + { UINT32_C(0x0EBBFAD7), UINT32_C(0x036D4FEF), UINT32_C(0x0DAD8CB2), + UINT32_C(0x024C5461), UINT32_C(0x09F7253C), UINT32_C(0x052C8206), + UINT32_C(0x03009FD7), UINT32_C(0x05A4E883), UINT32_C(0x04FFDBF8), + UINT32_C(0x07B5A2D0), UINT32_C(0x0487033B), UINT32_C(0x003EABFC), + UINT32_C(0x0107E479), UINT32_C(0x0479A422), UINT32_C(0x0ECEA707), + UINT32_C(0x05D06F61), UINT32_C(0x05BD0428), UINT32_C(0x01301D97), + UINT32_C(0x0137ADE9) } }, + { { UINT32_C(0x008164D4), UINT32_C(0x02998A00), UINT32_C(0x0E9FE1D5), + UINT32_C(0x05B9A827), UINT32_C(0x0AA45754), UINT32_C(0x06793FDD), + UINT32_C(0x01D8C060), UINT32_C(0x030ECBF4), UINT32_C(0x01FDC34C), + UINT32_C(0x0FA8650F), UINT32_C(0x0739AA31), UINT32_C(0x0905FB0D), + UINT32_C(0x04B98585), UINT32_C(0x04528DD9), UINT32_C(0x0582E0E8), + UINT32_C(0x0685885D), UINT32_C(0x008F4125), UINT32_C(0x02A15C01), + UINT32_C(0x023D540D) }, + { UINT32_C(0x039B003C), UINT32_C(0x074C5CC0), UINT32_C(0x029B2FBB), + UINT32_C(0x07F27890), UINT32_C(0x0C083234), UINT32_C(0x054081D7), + UINT32_C(0x0109E54D), UINT32_C(0x08920F8E), UINT32_C(0x07D87B98), + UINT32_C(0x07E36E68), UINT32_C(0x023912DB), UINT32_C(0x071A5BBC), + UINT32_C(0x0733E49F), UINT32_C(0x058495D0), UINT32_C(0x0068F694), + UINT32_C(0x012DCC7D), UINT32_C(0x0DC88ED4), UINT32_C(0x06D1A2D4), + UINT32_C(0x02BBA636) } }, + { { UINT32_C(0x0B78796F), UINT32_C(0x0335FA8E), UINT32_C(0x0243FD16), + UINT32_C(0x03C6B319), UINT32_C(0x01CD8CA8), UINT32_C(0x0704FAEE), + UINT32_C(0x04540F1E), UINT32_C(0x092AC9A2), UINT32_C(0x020A1CA3), + UINT32_C(0x023FC6DD), UINT32_C(0x01EFAF42), UINT32_C(0x00BC4AB2), + UINT32_C(0x0206DD26), UINT32_C(0x07400CF2), UINT32_C(0x072BD012), + UINT32_C(0x00840AB3), UINT32_C(0x016D752E), UINT32_C(0x00CEF006), + UINT32_C(0x0647C23D) }, + { UINT32_C(0x0F6CA70B), UINT32_C(0x05AFF85F), UINT32_C(0x031691E3), + UINT32_C(0x01063899), UINT32_C(0x02420E8C), UINT32_C(0x03D2D13C), + UINT32_C(0x059E8A01), UINT32_C(0x0FC5FC43), UINT32_C(0x042A852F), + UINT32_C(0x06446FD4), UINT32_C(0x0341CB5B), UINT32_C(0x044193ED), + UINT32_C(0x073BE475), UINT32_C(0x051FCBEA), UINT32_C(0x00D6D405), + UINT32_C(0x00A0026F), UINT32_C(0x09A09555), UINT32_C(0x0037DFDB), + UINT32_C(0x0186A76D) } }, + { { UINT32_C(0x06762E69), UINT32_C(0x05E586F2), UINT32_C(0x08A5D295), + UINT32_C(0x021AEB8A), UINT32_C(0x0D8E9356), UINT32_C(0x05E8F45E), + UINT32_C(0x04336CB6), UINT32_C(0x04373909), UINT32_C(0x020299B5), + UINT32_C(0x013EB290), UINT32_C(0x061E0E31), UINT32_C(0x07167125), + UINT32_C(0x01291CE5), UINT32_C(0x05F204F5), UINT32_C(0x060A0EA2), + UINT32_C(0x0414B179), UINT32_C(0x064F6F43), UINT32_C(0x0114060E), + UINT32_C(0x040928CF) }, + { UINT32_C(0x0B54A6C6), UINT32_C(0x010FE7C2), UINT32_C(0x0FDA19CB), + UINT32_C(0x056B791E), UINT32_C(0x049ED286), UINT32_C(0x02401472), + UINT32_C(0x048F8CD1), UINT32_C(0x0EAC2400), UINT32_C(0x075D6078), + UINT32_C(0x0EAAD7B3), UINT32_C(0x051EDE19), UINT32_C(0x0D7E6F09), + UINT32_C(0x001044A9), UINT32_C(0x0411E3BA), UINT32_C(0x0D3647C4), + UINT32_C(0x00168497), UINT32_C(0x08BA1235), UINT32_C(0x01C93676), + UINT32_C(0x01411BDC) } }, + { { UINT32_C(0x07F5FEA0), UINT32_C(0x068F1494), UINT32_C(0x0CF3659A), + UINT32_C(0x034F4CD5), UINT32_C(0x08840E07), UINT32_C(0x01463227), + UINT32_C(0x02CE4099), UINT32_C(0x00306A1A), UINT32_C(0x043276DA), + UINT32_C(0x0C0A79A8), UINT32_C(0x045485DA), UINT32_C(0x0D43B7E5), + UINT32_C(0x0245D30D), UINT32_C(0x07040ECA), UINT32_C(0x0F0944E2), + UINT32_C(0x02FAB448), UINT32_C(0x0A3418D6), UINT32_C(0x00AEEE32), + UINT32_C(0x054B0477) }, + { UINT32_C(0x002E1A49), UINT32_C(0x02417738), UINT32_C(0x003FC230), + UINT32_C(0x057B81BC), UINT32_C(0x09252F9B), UINT32_C(0x071E923E), + UINT32_C(0x07556FE9), UINT32_C(0x0405C043), UINT32_C(0x05F4A479), + UINT32_C(0x00AE6EBC), UINT32_C(0x0470CEA9), UINT32_C(0x043EFE7F), + UINT32_C(0x032F779B), UINT32_C(0x05D5E4C1), UINT32_C(0x0F412FF3), + UINT32_C(0x029E0A95), UINT32_C(0x027FF900), UINT32_C(0x0639C4FE), + UINT32_C(0x05496FF2) } }, + { { UINT32_C(0x093A81E5), UINT32_C(0x06552EA0), UINT32_C(0x076C940F), + UINT32_C(0x04D9EBF4), UINT32_C(0x07435E68), UINT32_C(0x00026B20), + UINT32_C(0x022F07A1), UINT32_C(0x0D1152A6), UINT32_C(0x01605EB4), + UINT32_C(0x021ED2B3), UINT32_C(0x0416BC52), UINT32_C(0x0F03BB25), + UINT32_C(0x032FD879), UINT32_C(0x0224E24D), UINT32_C(0x0227BC06), + UINT32_C(0x07E18BB7), UINT32_C(0x0846E10C), UINT32_C(0x025383D2), + UINT32_C(0x0716FE98) }, + { UINT32_C(0x048353E7), UINT32_C(0x06A51D17), UINT32_C(0x0602B7B4), + UINT32_C(0x00A3A912), UINT32_C(0x00D41798), UINT32_C(0x009BAAA2), + UINT32_C(0x014F6863), UINT32_C(0x0B8C9E0C), UINT32_C(0x004E89E7), + UINT32_C(0x01EA2B4D), UINT32_C(0x069FE41B), UINT32_C(0x0E23CD44), + UINT32_C(0x0284C3F8), UINT32_C(0x0709633E), UINT32_C(0x00EC122E), + UINT32_C(0x054C3546), UINT32_C(0x0274CE48), UINT32_C(0x0562858C), + UINT32_C(0x00845131) } }, + { { UINT32_C(0x093C77DA), UINT32_C(0x01D351AD), UINT32_C(0x023A3C02), + UINT32_C(0x050A84F5), UINT32_C(0x0D2278BA), UINT32_C(0x0166F47B), + UINT32_C(0x010E24C3), UINT32_C(0x0171F355), UINT32_C(0x070D70CC), + UINT32_C(0x0F04C14A), UINT32_C(0x0675CE80), UINT32_C(0x03C92277), + UINT32_C(0x027C5314), UINT32_C(0x0475432E), UINT32_C(0x0A42C984), + UINT32_C(0x021A86BA), UINT32_C(0x09667047), UINT32_C(0x0162D620), + UINT32_C(0x05CE1F5E) }, + { UINT32_C(0x0541016D), UINT32_C(0x04AA27AD), UINT32_C(0x024272A0), + UINT32_C(0x0124A937), UINT32_C(0x04022798), UINT32_C(0x04C4908F), + UINT32_C(0x078D2755), UINT32_C(0x05FC4690), UINT32_C(0x03D49867), + UINT32_C(0x0D0542ED), UINT32_C(0x014AC0C6), UINT32_C(0x0444F4AA), + UINT32_C(0x0527B53A), UINT32_C(0x04E463E4), UINT32_C(0x084795B9), + UINT32_C(0x06190D53), UINT32_C(0x01F0982A), UINT32_C(0x06C19AFA), + UINT32_C(0x02B40A43) } }, + { { UINT32_C(0x0D526DD9), UINT32_C(0x02D2A436), UINT32_C(0x06CBC632), + UINT32_C(0x06A016EB), UINT32_C(0x0229215C), UINT32_C(0x063A186E), + UINT32_C(0x056A2652), UINT32_C(0x0982D8F0), UINT32_C(0x04950B55), + UINT32_C(0x0C34A068), UINT32_C(0x036F958C), UINT32_C(0x0EC7C304), + UINT32_C(0x00685912), UINT32_C(0x00521605), UINT32_C(0x074386C5), + UINT32_C(0x06C5C880), UINT32_C(0x01D5C0E0), UINT32_C(0x0321B5FC), + UINT32_C(0x031F89D8) }, + { UINT32_C(0x0E4F4EFB), UINT32_C(0x042EF02C), UINT32_C(0x0747294D), + UINT32_C(0x06315147), UINT32_C(0x09826B36), UINT32_C(0x044F7A99), + UINT32_C(0x00DA6A3B), UINT32_C(0x0B192C6C), UINT32_C(0x017D9CD6), + UINT32_C(0x07D0FC8D), UINT32_C(0x00306186), UINT32_C(0x0DA5FD2C), + UINT32_C(0x048EA8B6), UINT32_C(0x041BED38), UINT32_C(0x028A7681), + UINT32_C(0x0444E09E), UINT32_C(0x07A1C182), UINT32_C(0x06CEB6B8), + UINT32_C(0x0402E972) } }, + { { UINT32_C(0x0A37CD61), UINT32_C(0x07A90498), UINT32_C(0x03236B70), + UINT32_C(0x010D1CA8), UINT32_C(0x0C8EE94C), UINT32_C(0x01332402), + UINT32_C(0x00D01671), UINT32_C(0x0D20BD0A), UINT32_C(0x04F8905D), + UINT32_C(0x0CB75503), UINT32_C(0x07C71184), UINT32_C(0x04D224FF), + UINT32_C(0x05EF5D3B), UINT32_C(0x02D2D84B), UINT32_C(0x0776D6B8), + UINT32_C(0x01B04C47), UINT32_C(0x0C6883AD), UINT32_C(0x041BC984), + UINT32_C(0x0738830F) }, + { UINT32_C(0x008A7408), UINT32_C(0x01833053), UINT32_C(0x0DCDED77), + UINT32_C(0x0660E3CD), UINT32_C(0x003541F4), UINT32_C(0x06650324), + UINT32_C(0x056D1103), UINT32_C(0x012DDC16), UINT32_C(0x04858446), + UINT32_C(0x031BD98F), UINT32_C(0x07EA97C0), UINT32_C(0x033EA10E), + UINT32_C(0x07E40598), UINT32_C(0x03935067), UINT32_C(0x06BD3C58), + UINT32_C(0x0709A382), UINT32_C(0x0FFD62B5), UINT32_C(0x03ACA64E), + UINT32_C(0x02BDB05C) } }, + { { UINT32_C(0x019DDB66), UINT32_C(0x0151276D), UINT32_C(0x0D169D42), + UINT32_C(0x07424F74), UINT32_C(0x0073574B), UINT32_C(0x029D6033), + UINT32_C(0x04805B63), UINT32_C(0x0FF3CCB8), UINT32_C(0x0657BEB9), + UINT32_C(0x06710C8D), UINT32_C(0x076A0EFE), UINT32_C(0x05FFC38A), + UINT32_C(0x039B2127), UINT32_C(0x04A7D60B), UINT32_C(0x0D352201), + UINT32_C(0x0459932F), UINT32_C(0x0A56306E), UINT32_C(0x05D63C8E), + UINT32_C(0x01727D3E) }, + { UINT32_C(0x0A228C02), UINT32_C(0x0454E2FD), UINT32_C(0x0C5CF406), + UINT32_C(0x072A6748), UINT32_C(0x09478B3C), UINT32_C(0x01C032C4), + UINT32_C(0x024B1CF3), UINT32_C(0x07BCB89A), UINT32_C(0x017F8136), + UINT32_C(0x03BFA207), UINT32_C(0x0032CE35), UINT32_C(0x01301C08), + UINT32_C(0x01F1D68E), UINT32_C(0x024447E0), UINT32_C(0x00655D3F), + UINT32_C(0x04B5B6DB), UINT32_C(0x08F50A61), UINT32_C(0x07FE19DA), + UINT32_C(0x01906979) } }, + { { UINT32_C(0x04E80EB1), UINT32_C(0x052DB749), UINT32_C(0x0FA876FF), + UINT32_C(0x014D563E), UINT32_C(0x0DD8DCB4), UINT32_C(0x06D08CF5), + UINT32_C(0x0088B6C9), UINT32_C(0x099DAF2C), UINT32_C(0x06ADE3E9), + UINT32_C(0x05F27F40), UINT32_C(0x076292C5), UINT32_C(0x02149C44), + UINT32_C(0x04ECED26), UINT32_C(0x04016166), UINT32_C(0x0E8DD0F0), + UINT32_C(0x02703366), UINT32_C(0x09A4D3F8), UINT32_C(0x000C4924), + UINT32_C(0x066F3B89) }, + { UINT32_C(0x00F92986), UINT32_C(0x001B8CB3), UINT32_C(0x0C27E556), + UINT32_C(0x05EAB0C7), UINT32_C(0x0A95BBEF), UINT32_C(0x011331B7), + UINT32_C(0x03245504), UINT32_C(0x0B108EBA), UINT32_C(0x0704FE66), + UINT32_C(0x0AEECF39), UINT32_C(0x0485E096), UINT32_C(0x0D5B3E1E), + UINT32_C(0x02DB3A00), UINT32_C(0x06FBA80E), UINT32_C(0x0AEE0EA5), + UINT32_C(0x064273CE), UINT32_C(0x0CD775D3), UINT32_C(0x00232462), + UINT32_C(0x0347DCE7) } }, + { { UINT32_C(0x029AE558), UINT32_C(0x07BED198), UINT32_C(0x073802BF), + UINT32_C(0x0528429C), UINT32_C(0x02A79F18), UINT32_C(0x045BFA11), + UINT32_C(0x07B77865), UINT32_C(0x065D4D35), UINT32_C(0x03701A97), + UINT32_C(0x03C87FB5), UINT32_C(0x07338AED), UINT32_C(0x0260F0C6), + UINT32_C(0x032E371B), UINT32_C(0x048EAB15), UINT32_C(0x06488CED), + UINT32_C(0x04349BDC), UINT32_C(0x09FF872F), UINT32_C(0x01EBC954), + UINT32_C(0x02644425) }, + { UINT32_C(0x0AAD22D1), UINT32_C(0x04DA634D), UINT32_C(0x0931B0A2), + UINT32_C(0x0366BA6D), UINT32_C(0x0A03F852), UINT32_C(0x003C4DA2), + UINT32_C(0x07BDDE59), UINT32_C(0x00543C06), UINT32_C(0x05EA4710), + UINT32_C(0x0622BACC), UINT32_C(0x03C86D6F), UINT32_C(0x0810EAB1), + UINT32_C(0x0128E64D), UINT32_C(0x02C5B6EF), UINT32_C(0x0F37432C), + UINT32_C(0x0391A4CD), UINT32_C(0x09344B8B), UINT32_C(0x007DDA34), + UINT32_C(0x02408EDC) } }, + { { UINT32_C(0x0EB8B398), UINT32_C(0x068DF986), UINT32_C(0x0BCADF8A), + UINT32_C(0x01829A9B), UINT32_C(0x017C9B77), UINT32_C(0x0446621A), + UINT32_C(0x026EE0C4), UINT32_C(0x0E0FE9B2), UINT32_C(0x0528FE1C), + UINT32_C(0x08E6DD5A), UINT32_C(0x018FB2E0), UINT32_C(0x0FD2A7AB), + UINT32_C(0x002E71A2), UINT32_C(0x069C2EFB), UINT32_C(0x0156F759), + UINT32_C(0x04F3A78E), UINT32_C(0x022C4533), UINT32_C(0x069A2816), + UINT32_C(0x03C034B1) }, + { UINT32_C(0x0D05FF6A), UINT32_C(0x07761186), UINT32_C(0x0D73ABC6), + UINT32_C(0x06AC086B), UINT32_C(0x0BF965A1), UINT32_C(0x05F6546D), + UINT32_C(0x07767397), UINT32_C(0x005C4608), UINT32_C(0x005803C4), + UINT32_C(0x024EE133), UINT32_C(0x05FC51BD), UINT32_C(0x099F0D97), + UINT32_C(0x00437C0C), UINT32_C(0x0553A827), UINT32_C(0x0FB0EB60), + UINT32_C(0x06A7AEC5), UINT32_C(0x07C31264), UINT32_C(0x020D4B32), + UINT32_C(0x045F6381) } }, + { { UINT32_C(0x04D9F1F8), UINT32_C(0x05315A15), UINT32_C(0x01990B25), + UINT32_C(0x01A6DE98), UINT32_C(0x036D854A), UINT32_C(0x03D25F0D), + UINT32_C(0x06673F83), UINT32_C(0x04C56936), UINT32_C(0x019ACD66), + UINT32_C(0x0C1F1C47), UINT32_C(0x04AD0FD3), UINT32_C(0x0148F4FA), + UINT32_C(0x07BC3A93), UINT32_C(0x02F86E22), UINT32_C(0x0291F62B), + UINT32_C(0x01F87233), UINT32_C(0x0F616501), UINT32_C(0x06C1B9E5), + UINT32_C(0x05FB6CAA) }, + { UINT32_C(0x0DAF0C41), UINT32_C(0x050BE47B), UINT32_C(0x0DD799BF), + UINT32_C(0x00BB8754), UINT32_C(0x07221726), UINT32_C(0x00F26A35), + UINT32_C(0x0474A809), UINT32_C(0x0250B288), UINT32_C(0x0680A8C1), + UINT32_C(0x09FDC598), UINT32_C(0x00424EA2), UINT32_C(0x09CADE7E), + UINT32_C(0x0092845D), UINT32_C(0x0301B24F), UINT32_C(0x0CF7BF3E), + UINT32_C(0x0747B26E), UINT32_C(0x04110EBF), UINT32_C(0x002FC650), + UINT32_C(0x066AF8B8) } }, + { { UINT32_C(0x06DBC74A), UINT32_C(0x02C31098), UINT32_C(0x069497D4), + UINT32_C(0x048864EC), UINT32_C(0x01E12C96), UINT32_C(0x03EE9F03), + UINT32_C(0x05400CB4), UINT32_C(0x00B9E174), UINT32_C(0x04923BC3), + UINT32_C(0x0B5B54EA), UINT32_C(0x04A635C8), UINT32_C(0x0039A770), + UINT32_C(0x079340D3), UINT32_C(0x02B053A6), UINT32_C(0x0AA8C800), + UINT32_C(0x073E66A4), UINT32_C(0x0304ED5B), UINT32_C(0x007ACB50), + UINT32_C(0x069EBA57) }, + { UINT32_C(0x04FA3D53), UINT32_C(0x050EF28C), UINT32_C(0x09A3C2CF), + UINT32_C(0x03DE9C58), UINT32_C(0x085E0F9C), UINT32_C(0x069D187C), + UINT32_C(0x04624402), UINT32_C(0x0C81F8BF), UINT32_C(0x02E444D9), + UINT32_C(0x0D776F3C), UINT32_C(0x02B966E8), UINT32_C(0x017A5803), + UINT32_C(0x005E79FE), UINT32_C(0x017FF63B), UINT32_C(0x05B01559), + UINT32_C(0x03097D34), UINT32_C(0x0F3A10BA), UINT32_C(0x0712D05A), + UINT32_C(0x03904282) } }, + { { UINT32_C(0x0727DDB2), UINT32_C(0x0322FBEE), UINT32_C(0x006E2FCD), + UINT32_C(0x07EA06FF), UINT32_C(0x0BA09E24), UINT32_C(0x00F733F8), + UINT32_C(0x03D6DCAE), UINT32_C(0x049125D5), UINT32_C(0x077E1A66), + UINT32_C(0x0D68AE84), UINT32_C(0x04F77FA6), UINT32_C(0x0964F229), + UINT32_C(0x011AD49C), UINT32_C(0x05CC02E9), UINT32_C(0x03E1CD67), + UINT32_C(0x06E9B6EE), UINT32_C(0x02ABE8BE), UINT32_C(0x056C7601), + UINT32_C(0x050C554C) }, + { UINT32_C(0x01B068CF), UINT32_C(0x012F41C1), UINT32_C(0x0CD31293), + UINT32_C(0x056F1C35), UINT32_C(0x0716CA13), UINT32_C(0x0544293E), + UINT32_C(0x06007211), UINT32_C(0x04F726E6), UINT32_C(0x007D49EF), + UINT32_C(0x0E336972), UINT32_C(0x031C46EF), UINT32_C(0x025A6106), + UINT32_C(0x05AA92B9), UINT32_C(0x011700B0), UINT32_C(0x011058CF), + UINT32_C(0x00395DAC), UINT32_C(0x02BBCCE0), UINT32_C(0x029EAC52), + UINT32_C(0x028A26A5) } }, + }, + { + { { UINT32_C(0x0FFE4858), UINT32_C(0x044AC143), UINT32_C(0x06252D69), + UINT32_C(0x03691755), UINT32_C(0x0DE0F670), UINT32_C(0x0295E478), + UINT32_C(0x05945AF8), UINT32_C(0x0A5D32CA), UINT32_C(0x0234DE82), + UINT32_C(0x0F67E075), UINT32_C(0x06115CED), UINT32_C(0x00AE3A40), + UINT32_C(0x04F21740), UINT32_C(0x05BA53F6), UINT32_C(0x05840CD3), + UINT32_C(0x02246AB6), UINT32_C(0x0A7E5891), UINT32_C(0x00E30EE3), + UINT32_C(0x06E32125) }, + { UINT32_C(0x028DA023), UINT32_C(0x0757D14A), UINT32_C(0x0F1F2367), + UINT32_C(0x071B23A0), UINT32_C(0x09FF6F22), UINT32_C(0x06AE99FC), + UINT32_C(0x07D2FAD3), UINT32_C(0x0C60DF70), UINT32_C(0x008ADC3F), + UINT32_C(0x090D9E92), UINT32_C(0x027C0C30), UINT32_C(0x01553F37), + UINT32_C(0x047ACF16), UINT32_C(0x017392AB), UINT32_C(0x05D9DD01), + UINT32_C(0x07D1EF5C), UINT32_C(0x039F6FB5), UINT32_C(0x029DC337), + UINT32_C(0x04960195) } }, + { { UINT32_C(0x0994A7B1), UINT32_C(0x00E9A7BA), UINT32_C(0x03544C1B), + UINT32_C(0x0606BDF6), UINT32_C(0x01F3406A), UINT32_C(0x0635C178), + UINT32_C(0x04CA0BE9), UINT32_C(0x09B74F10), UINT32_C(0x046E4155), + UINT32_C(0x0655718B), UINT32_C(0x06B58CFD), UINT32_C(0x00E2656C), + UINT32_C(0x0426833D), UINT32_C(0x063C550C), UINT32_C(0x049DDCA9), + UINT32_C(0x04F6A9FC), UINT32_C(0x0676F8FD), UINT32_C(0x07BCA38C), + UINT32_C(0x059BDCBC) }, + { UINT32_C(0x096F6D73), UINT32_C(0x0378FAEB), UINT32_C(0x0AA2949D), + UINT32_C(0x02979AD2), UINT32_C(0x0FD54FA0), UINT32_C(0x0358AB66), + UINT32_C(0x012D1C2E), UINT32_C(0x0A3E9433), UINT32_C(0x012502DC), + UINT32_C(0x0BF42C60), UINT32_C(0x02403252), UINT32_C(0x0B59A13D), + UINT32_C(0x07CE87D8), UINT32_C(0x06EFA510), UINT32_C(0x0F316813), + UINT32_C(0x048C6131), UINT32_C(0x0ABB4F2B), UINT32_C(0x00135CF6), + UINT32_C(0x019B839C) } }, + { { UINT32_C(0x0CDE12CD), UINT32_C(0x01F2EE46), UINT32_C(0x096668FC), + UINT32_C(0x06800020), UINT32_C(0x0D8D4DC3), UINT32_C(0x01F9D872), + UINT32_C(0x0074B363), UINT32_C(0x08E353D0), UINT32_C(0x06B87B06), + UINT32_C(0x05F1A3E4), UINT32_C(0x03D67702), UINT32_C(0x0AD5ACE9), + UINT32_C(0x024E9994), UINT32_C(0x03C2A440), UINT32_C(0x05A6C55C), + UINT32_C(0x045CAA47), UINT32_C(0x0AC34E77), UINT32_C(0x068E05E3), + UINT32_C(0x0598564E) }, + { UINT32_C(0x0366B021), UINT32_C(0x017935A2), UINT32_C(0x04F773DB), + UINT32_C(0x04629F66), UINT32_C(0x096AE2DC), UINT32_C(0x00DB3EE0), + UINT32_C(0x05684F63), UINT32_C(0x00391BA5), UINT32_C(0x07270BBB), + UINT32_C(0x0E28A705), UINT32_C(0x02BB0A4B), UINT32_C(0x097DCA61), + UINT32_C(0x04E133F5), UINT32_C(0x04899B3E), UINT32_C(0x00637ACF), + UINT32_C(0x02D4E63D), UINT32_C(0x09635CB7), UINT32_C(0x02DEDDE2), + UINT32_C(0x02229A95) } }, + { { UINT32_C(0x0CD34315), UINT32_C(0x02E1C8DC), UINT32_C(0x067A6FB7), + UINT32_C(0x03DB6FAE), UINT32_C(0x07281C55), UINT32_C(0x046AC647), + UINT32_C(0x002E790C), UINT32_C(0x0F3D1BC4), UINT32_C(0x0533A625), + UINT32_C(0x06417AC2), UINT32_C(0x018ACECE), UINT32_C(0x0B7019D6), + UINT32_C(0x06EDA9DA), UINT32_C(0x01938AF8), UINT32_C(0x029911BB), + UINT32_C(0x03E2995B), UINT32_C(0x0C0E3FBA), UINT32_C(0x011596D1), + UINT32_C(0x00271C3C) }, + { UINT32_C(0x0356A25A), UINT32_C(0x072A1ED9), UINT32_C(0x0EAF77B0), + UINT32_C(0x02B4B853), UINT32_C(0x0C759255), UINT32_C(0x02FB6C3D), + UINT32_C(0x0704DFA8), UINT32_C(0x0D59777F), UINT32_C(0x078F4FA8), + UINT32_C(0x03C11635), UINT32_C(0x02E52765), UINT32_C(0x02ACB74C), + UINT32_C(0x007731B9), UINT32_C(0x0137AD56), UINT32_C(0x063A4E6E), + UINT32_C(0x06744404), UINT32_C(0x09B78353), UINT32_C(0x04631A57), + UINT32_C(0x018C7F7E) } }, + { { UINT32_C(0x0EAD4FF9), UINT32_C(0x05871450), UINT32_C(0x07F9BF26), + UINT32_C(0x02BC1D4E), UINT32_C(0x00CD4484), UINT32_C(0x04EBA4AB), + UINT32_C(0x01DEDBB8), UINT32_C(0x0E25B38D), UINT32_C(0x049D1268), + UINT32_C(0x0D04AABB), UINT32_C(0x01AEF51D), UINT32_C(0x00829E43), + UINT32_C(0x05402C62), UINT32_C(0x0368D70D), UINT32_C(0x03775E01), + UINT32_C(0x04503803), UINT32_C(0x02B6C48D), UINT32_C(0x01FD101D), + UINT32_C(0x0025FF9E) }, + { UINT32_C(0x0B8B195A), UINT32_C(0x02323FFC), UINT32_C(0x00557FA3), + UINT32_C(0x073ED365), UINT32_C(0x0A376D54), UINT32_C(0x023A3994), + UINT32_C(0x00F1CC64), UINT32_C(0x080DCBBA), UINT32_C(0x01BB869C), + UINT32_C(0x084DE7DF), UINT32_C(0x03102B44), UINT32_C(0x0559CF4A), + UINT32_C(0x0385604A), UINT32_C(0x05CB3A44), UINT32_C(0x022C8F10), + UINT32_C(0x00AC8251), UINT32_C(0x0D40C893), UINT32_C(0x00107891), + UINT32_C(0x06795987) } }, + { { UINT32_C(0x06920A2A), UINT32_C(0x051ED07D), UINT32_C(0x0D40A6DB), + UINT32_C(0x004D5082), UINT32_C(0x0BB2B0B9), UINT32_C(0x046EEDFC), + UINT32_C(0x077C4F4D), UINT32_C(0x0025B307), UINT32_C(0x00CCCEED), + UINT32_C(0x05AD182A), UINT32_C(0x0734F059), UINT32_C(0x0B480EE5), + UINT32_C(0x0170F1CB), UINT32_C(0x0417A672), UINT32_C(0x05B933B3), + UINT32_C(0x0279BB07), UINT32_C(0x0341E8CB), UINT32_C(0x071F7EBF), + UINT32_C(0x0231AF93) }, + { UINT32_C(0x01CA3CCC), UINT32_C(0x042A30AF), UINT32_C(0x0E1E55F1), + UINT32_C(0x07A6A1AC), UINT32_C(0x0D95EC2F), UINT32_C(0x029E2CCD), + UINT32_C(0x00847505), UINT32_C(0x0184F443), UINT32_C(0x04B6D717), + UINT32_C(0x03764831), UINT32_C(0x043E0649), UINT32_C(0x0378A536), + UINT32_C(0x0430CAB4), UINT32_C(0x05B08C42), UINT32_C(0x0B147E31), + UINT32_C(0x0270B565), UINT32_C(0x056846E1), UINT32_C(0x0393806E), + UINT32_C(0x0102687E) } }, + { { UINT32_C(0x0EB5DCD3), UINT32_C(0x0185FC5D), UINT32_C(0x03181617), + UINT32_C(0x01479862), UINT32_C(0x0D1E00A3), UINT32_C(0x000E2351), + UINT32_C(0x041EA413), UINT32_C(0x0EC09039), UINT32_C(0x00213EFE), + UINT32_C(0x02085A51), UINT32_C(0x027B7641), UINT32_C(0x0EE239C0), + UINT32_C(0x06D0F7BB), UINT32_C(0x0267C803), UINT32_C(0x0B79A7EE), + UINT32_C(0x0681FFDF), UINT32_C(0x08DFF64B), UINT32_C(0x0688C37C), + UINT32_C(0x03D1AE9F) }, + { UINT32_C(0x03B68E6C), UINT32_C(0x07F04BE5), UINT32_C(0x060E4D0D), + UINT32_C(0x0534899D), UINT32_C(0x0FA52B9C), UINT32_C(0x001C4752), + UINT32_C(0x00BCA60E), UINT32_C(0x041ED165), UINT32_C(0x01DBEB9D), + UINT32_C(0x04BEFD90), UINT32_C(0x05B1A36F), UINT32_C(0x0C6DA7CD), + UINT32_C(0x025F29BF), UINT32_C(0x0143D052), UINT32_C(0x099FCD3B), + UINT32_C(0x04934EE0), UINT32_C(0x00F9287C), UINT32_C(0x06BF2174), + UINT32_C(0x05D3AAEB) } }, + { { UINT32_C(0x0B07B1BF), UINT32_C(0x008B8614), UINT32_C(0x00E21485), + UINT32_C(0x07064A8F), UINT32_C(0x04328BCA), UINT32_C(0x0126ADF3), + UINT32_C(0x07D9CEFE), UINT32_C(0x0B5FE8D9), UINT32_C(0x03B144E7), + UINT32_C(0x0FF1E126), UINT32_C(0x06AF8F59), UINT32_C(0x07A6CE02), + UINT32_C(0x07F9BE52), UINT32_C(0x003588EF), UINT32_C(0x0EFF3D3A), + UINT32_C(0x052C77D2), UINT32_C(0x010CACE8), UINT32_C(0x05B1B51F), + UINT32_C(0x06F19D06) }, + { UINT32_C(0x042166D8), UINT32_C(0x04CD028C), UINT32_C(0x039C24AE), + UINT32_C(0x02C03F19), UINT32_C(0x067F4B98), UINT32_C(0x020FC733), + UINT32_C(0x01DAB42C), UINT32_C(0x02FF3B82), UINT32_C(0x048BCF28), + UINT32_C(0x019BFE25), UINT32_C(0x05777D5F), UINT32_C(0x06871AF8), + UINT32_C(0x04139F9E), UINT32_C(0x07211D99), UINT32_C(0x0AD09893), + UINT32_C(0x01E0FD46), UINT32_C(0x02906E37), UINT32_C(0x028275DB), + UINT32_C(0x046A1575) } }, + { { UINT32_C(0x08AA3834), UINT32_C(0x06C07864), UINT32_C(0x0E044947), + UINT32_C(0x03335EFD), UINT32_C(0x067B5E62), UINT32_C(0x034C6315), + UINT32_C(0x07572306), UINT32_C(0x07CFC444), UINT32_C(0x01B85C68), + UINT32_C(0x04AE9317), UINT32_C(0x004244BB), UINT32_C(0x02B9387A), + UINT32_C(0x07EC501D), UINT32_C(0x030A85A4), UINT32_C(0x035462ED), + UINT32_C(0x0713AD0C), UINT32_C(0x053851AC), UINT32_C(0x02FE3E5B), + UINT32_C(0x06B40EB3) }, + { UINT32_C(0x053E08C6), UINT32_C(0x05772205), UINT32_C(0x030BB610), + UINT32_C(0x008EE615), UINT32_C(0x0B7E6CE7), UINT32_C(0x00783E50), + UINT32_C(0x0096806A), UINT32_C(0x066126FD), UINT32_C(0x051C1C80), + UINT32_C(0x0ECBCD5E), UINT32_C(0x03A28DED), UINT32_C(0x08FD6395), + UINT32_C(0x022A192F), UINT32_C(0x0736A4A0), UINT32_C(0x01369C64), + UINT32_C(0x02AB6ECE), UINT32_C(0x06E0E541), UINT32_C(0x03248146), + UINT32_C(0x00948603) } }, + { { UINT32_C(0x069B34EA), UINT32_C(0x0336603F), UINT32_C(0x06DBFFB7), + UINT32_C(0x0300F54C), UINT32_C(0x03402123), UINT32_C(0x04E1356D), + UINT32_C(0x04422E8C), UINT32_C(0x0C555F86), UINT32_C(0x065AB272), + UINT32_C(0x053F830F), UINT32_C(0x0579A41E), UINT32_C(0x0FEFEF91), + UINT32_C(0x004E0795), UINT32_C(0x016107F9), UINT32_C(0x08D654BD), + UINT32_C(0x04ABFECE), UINT32_C(0x06C9D84D), UINT32_C(0x03813525), + UINT32_C(0x07CB6F50) }, + { UINT32_C(0x09047156), UINT32_C(0x010B8EB7), UINT32_C(0x0CC6FC83), + UINT32_C(0x0431B14F), UINT32_C(0x03572502), UINT32_C(0x076096FF), + UINT32_C(0x0028C298), UINT32_C(0x066F3BBA), UINT32_C(0x00B06491), + UINT32_C(0x0665164A), UINT32_C(0x04A5A55D), UINT32_C(0x02DAC096), + UINT32_C(0x03E71E1C), UINT32_C(0x0256A93B), UINT32_C(0x04C0530A), + UINT32_C(0x062EDF21), UINT32_C(0x0F59E8F8), UINT32_C(0x019409ED), + UINT32_C(0x07A2F4BF) } }, + { { UINT32_C(0x0665B1CF), UINT32_C(0x0034F110), UINT32_C(0x0E6E0C55), + UINT32_C(0x05548084), UINT32_C(0x0CB9C817), UINT32_C(0x010A8F87), + UINT32_C(0x012A9C49), UINT32_C(0x0982F57E), UINT32_C(0x00D5BB56), + UINT32_C(0x0649D707), UINT32_C(0x00C86A10), UINT32_C(0x0C3ED33B), + UINT32_C(0x065AEDD0), UINT32_C(0x061D08CC), UINT32_C(0x010AAD5D), + UINT32_C(0x015E11C5), UINT32_C(0x0CE68252), UINT32_C(0x03DCA282), + UINT32_C(0x023E7D61) }, + { UINT32_C(0x094CC511), UINT32_C(0x053544CA), UINT32_C(0x067DDC2E), + UINT32_C(0x022C5BA7), UINT32_C(0x0E503DBC), UINT32_C(0x06CD2E73), + UINT32_C(0x058CE06F), UINT32_C(0x072AA3E8), UINT32_C(0x06DB1977), + UINT32_C(0x04494EBF), UINT32_C(0x00968BBC), UINT32_C(0x02E8F607), + UINT32_C(0x06F93369), UINT32_C(0x00836553), UINT32_C(0x05A73753), + UINT32_C(0x03A8B586), UINT32_C(0x00A046AC), UINT32_C(0x0211F089), + UINT32_C(0x0389954D) } }, + { { UINT32_C(0x0BB13D25), UINT32_C(0x023A4F60), UINT32_C(0x05B894C3), + UINT32_C(0x01F6CF6C), UINT32_C(0x0F316A82), UINT32_C(0x07269483), + UINT32_C(0x0724D1FF), UINT32_C(0x081060C2), UINT32_C(0x07213116), + UINT32_C(0x0B65307F), UINT32_C(0x06CB9993), UINT32_C(0x04580D3B), + UINT32_C(0x064521E7), UINT32_C(0x07FA9810), UINT32_C(0x00B180DF), + UINT32_C(0x058701A7), UINT32_C(0x08BFB845), UINT32_C(0x0175BF68), + UINT32_C(0x02BF1464) }, + { UINT32_C(0x04B66F01), UINT32_C(0x059EAFDA), UINT32_C(0x02EB7B38), + UINT32_C(0x0382ED4B), UINT32_C(0x0D3E8A47), UINT32_C(0x061E1C44), + UINT32_C(0x06369F05), UINT32_C(0x0221CD6C), UINT32_C(0x033836B4), + UINT32_C(0x0580C2E2), UINT32_C(0x071C3002), UINT32_C(0x0C51E97D), + UINT32_C(0x06D684C3), UINT32_C(0x074D62F1), UINT32_C(0x0851439A), + UINT32_C(0x038AB710), UINT32_C(0x0300D39E), UINT32_C(0x0390C464), + UINT32_C(0x04D98E09) } }, + { { UINT32_C(0x0140A004), UINT32_C(0x00D68C0B), UINT32_C(0x080890B3), + UINT32_C(0x07D532CC), UINT32_C(0x05EC2C5B), UINT32_C(0x065415DB), + UINT32_C(0x021CBEF3), UINT32_C(0x0C92C4C7), UINT32_C(0x002C11E2), + UINT32_C(0x087FFDBE), UINT32_C(0x00BBD5AB), UINT32_C(0x0D3147C6), + UINT32_C(0x027322CF), UINT32_C(0x048AE30E), UINT32_C(0x0A78BD27), + UINT32_C(0x06E52637), UINT32_C(0x0F79BB43), UINT32_C(0x05C2CDD9), + UINT32_C(0x03AEDAB1) }, + { UINT32_C(0x01F8F797), UINT32_C(0x05E078E8), UINT32_C(0x0A430953), + UINT32_C(0x079FE860), UINT32_C(0x098B3236), UINT32_C(0x00A0033B), + UINT32_C(0x0311C26A), UINT32_C(0x02325326), UINT32_C(0x021CEBBC), + UINT32_C(0x01C498E4), UINT32_C(0x02365440), UINT32_C(0x091FBA94), + UINT32_C(0x017487BB), UINT32_C(0x0321A8D5), UINT32_C(0x071AEF9F), + UINT32_C(0x047D457D), UINT32_C(0x01BCFB0E), UINT32_C(0x0071F7BC), + UINT32_C(0x075AEFAA) } }, + { { UINT32_C(0x0C98DFAE), UINT32_C(0x01C5257A), UINT32_C(0x06506435), + UINT32_C(0x00916D1A), UINT32_C(0x0D65B633), UINT32_C(0x06BAC13A), + UINT32_C(0x013D2F72), UINT32_C(0x0B8C7FD1), UINT32_C(0x0068E619), + UINT32_C(0x0C30A25B), UINT32_C(0x016EBDF8), UINT32_C(0x0D8A2E42), + UINT32_C(0x01E2AB8D), UINT32_C(0x07855AFB), UINT32_C(0x01F15FBB), + UINT32_C(0x01DA4917), UINT32_C(0x074DB277), UINT32_C(0x030BAC3C), + UINT32_C(0x01B1B048) }, + { UINT32_C(0x00C92FB5), UINT32_C(0x00781A5F), UINT32_C(0x0B53EE11), + UINT32_C(0x04366DE3), UINT32_C(0x0D7AFCA1), UINT32_C(0x04C3CAB8), + UINT32_C(0x031EB35F), UINT32_C(0x00CDDA16), UINT32_C(0x05DB2AA4), + UINT32_C(0x0EEC79C5), UINT32_C(0x0123CDB1), UINT32_C(0x0A41DC06), + UINT32_C(0x06880096), UINT32_C(0x069843C8), UINT32_C(0x0CF78DBD), + UINT32_C(0x0751C797), UINT32_C(0x0381D873), UINT32_C(0x055DD420), + UINT32_C(0x011ED33F) } }, + { { UINT32_C(0x0629DD22), UINT32_C(0x0329136A), UINT32_C(0x0F4C3A86), + UINT32_C(0x02DF1D68), UINT32_C(0x0629460E), UINT32_C(0x04615D04), + UINT32_C(0x06370A73), UINT32_C(0x0FF4CD28), UINT32_C(0x031AD006), + UINT32_C(0x08F7AAC2), UINT32_C(0x05792159), UINT32_C(0x0680FF31), + UINT32_C(0x04E1BAE8), UINT32_C(0x02E9B2B2), UINT32_C(0x0033BF36), + UINT32_C(0x07DA8F9E), UINT32_C(0x0C93AB40), UINT32_C(0x01D743F3), + UINT32_C(0x07644D30) }, + { UINT32_C(0x075200EB), UINT32_C(0x07C0784F), UINT32_C(0x0BE5A2EF), + UINT32_C(0x002C4071), UINT32_C(0x0BB7DD65), UINT32_C(0x004ADBD2), + UINT32_C(0x040D6568), UINT32_C(0x0F9A3BB6), UINT32_C(0x003E18E7), + UINT32_C(0x0B2FA6B5), UINT32_C(0x04ED429F), UINT32_C(0x06091338), + UINT32_C(0x01D161FD), UINT32_C(0x00454AAD), UINT32_C(0x0CAE06AA), + UINT32_C(0x04E95021), UINT32_C(0x04523C5D), UINT32_C(0x041594F0), + UINT32_C(0x065084CD) } }, + { { UINT32_C(0x002145D7), UINT32_C(0x047D8374), UINT32_C(0x0467ABA3), + UINT32_C(0x051CC3F5), UINT32_C(0x0483BB69), UINT32_C(0x05CC8B8E), + UINT32_C(0x00E452BD), UINT32_C(0x04333A28), UINT32_C(0x04F1A76A), + UINT32_C(0x0CC64EC5), UINT32_C(0x05D9332C), UINT32_C(0x0E975BFD), + UINT32_C(0x036AEA82), UINT32_C(0x03B66BE1), UINT32_C(0x0C8D0897), + UINT32_C(0x00F4E2EA), UINT32_C(0x0E84A7FD), UINT32_C(0x04F8C351), + UINT32_C(0x03B65097) }, + { UINT32_C(0x0DDB406F), UINT32_C(0x00890ADF), UINT32_C(0x03BBC60E), + UINT32_C(0x01C0CA21), UINT32_C(0x0A76C2EF), UINT32_C(0x01695DF8), + UINT32_C(0x07073F32), UINT32_C(0x0EED6813), UINT32_C(0x014D6ADC), + UINT32_C(0x0AD30E57), UINT32_C(0x0080597C), UINT32_C(0x051E8314), + UINT32_C(0x02334D30), UINT32_C(0x01C9AC19), UINT32_C(0x0D628FAA), + UINT32_C(0x03467107), UINT32_C(0x027B5A2C), UINT32_C(0x07FE2414), + UINT32_C(0x06D835AF) } }, + }, + { + { { UINT32_C(0x0EF34144), UINT32_C(0x030D91DC), UINT32_C(0x05517757), + UINT32_C(0x007F4856), UINT32_C(0x07EAF164), UINT32_C(0x058E3931), + UINT32_C(0x0713CF7A), UINT32_C(0x0D5B04EB), UINT32_C(0x0416E9E6), + UINT32_C(0x02479D66), UINT32_C(0x03230F77), UINT32_C(0x0E9111E0), + UINT32_C(0x004A4528), UINT32_C(0x02C7F7D1), UINT32_C(0x02C19F36), + UINT32_C(0x0456B2EE), UINT32_C(0x083CA160), UINT32_C(0x04377D25), + UINT32_C(0x02CC5D8D) }, + { UINT32_C(0x024FDE34), UINT32_C(0x056A1AF8), UINT32_C(0x04A1F978), + UINT32_C(0x07F66131), UINT32_C(0x09CCCEFE), UINT32_C(0x056AE73E), + UINT32_C(0x0373907A), UINT32_C(0x08E4DFA2), UINT32_C(0x06104B90), + UINT32_C(0x0CB65FE3), UINT32_C(0x0157AEF0), UINT32_C(0x0346E5AE), + UINT32_C(0x06A8D9D0), UINT32_C(0x034F592B), UINT32_C(0x06A50F43), + UINT32_C(0x03B946D2), UINT32_C(0x0B23CFAE), UINT32_C(0x01428E19), + UINT32_C(0x01E96239) } }, + { { UINT32_C(0x0FF5FDD9), UINT32_C(0x06FD0B27), UINT32_C(0x0E5375B8), + UINT32_C(0x02903F56), UINT32_C(0x0A0998F1), UINT32_C(0x04C7F7A7), + UINT32_C(0x07B849C2), UINT32_C(0x01F684C1), UINT32_C(0x03D27FA7), + UINT32_C(0x0ECDF852), UINT32_C(0x067A0FF9), UINT32_C(0x01170172), + UINT32_C(0x06847341), UINT32_C(0x0384EC35), UINT32_C(0x097FA0B1), + UINT32_C(0x056D5954), UINT32_C(0x0811FE39), UINT32_C(0x03141A8E), + UINT32_C(0x03197AAF) }, + { UINT32_C(0x06B64713), UINT32_C(0x01EA477B), UINT32_C(0x0401B800), + UINT32_C(0x056A093F), UINT32_C(0x0B18523C), UINT32_C(0x05FBF38B), + UINT32_C(0x0000837C), UINT32_C(0x0205CC9C), UINT32_C(0x0211586E), + UINT32_C(0x00E95959), UINT32_C(0x011034DB), UINT32_C(0x0705835C), + UINT32_C(0x0534A7CA), UINT32_C(0x01BEEAE0), UINT32_C(0x011191B1), + UINT32_C(0x06AC6C8E), UINT32_C(0x0F65A0B0), UINT32_C(0x01E452CE), + UINT32_C(0x07AA591C) } }, + { { UINT32_C(0x04BE78BD), UINT32_C(0x06F41AA4), UINT32_C(0x09895DC2), + UINT32_C(0x05E43C02), UINT32_C(0x0F5ED50D), UINT32_C(0x0055BA85), + UINT32_C(0x04B88B8C), UINT32_C(0x07C05237), UINT32_C(0x06B089B3), + UINT32_C(0x09D41AEF), UINT32_C(0x07A77F2E), UINT32_C(0x0B03794F), + UINT32_C(0x0272136B), UINT32_C(0x013E2617), UINT32_C(0x039B53A2), + UINT32_C(0x04704526), UINT32_C(0x0958114F), UINT32_C(0x01DF2245), + UINT32_C(0x0736ACD3) }, + { UINT32_C(0x020FED74), UINT32_C(0x0142B2B5), UINT32_C(0x00BC648B), + UINT32_C(0x045D8303), UINT32_C(0x01238CE7), UINT32_C(0x041E6696), + UINT32_C(0x07794FE3), UINT32_C(0x02BC0623), UINT32_C(0x04D21409), + UINT32_C(0x05FABD03), UINT32_C(0x074FAEA0), UINT32_C(0x08FD5BE6), + UINT32_C(0x041F41AC), UINT32_C(0x046062AA), UINT32_C(0x06780730), + UINT32_C(0x035F4E6F), UINT32_C(0x016D4890), UINT32_C(0x05B93E77), + UINT32_C(0x01E38302) } }, + { { UINT32_C(0x0736B7A8), UINT32_C(0x049E4056), UINT32_C(0x01935194), + UINT32_C(0x056AFE87), UINT32_C(0x0526EB80), UINT32_C(0x0763756F), + UINT32_C(0x0438F678), UINT32_C(0x074903F5), UINT32_C(0x0305EF19), + UINT32_C(0x0434448D), UINT32_C(0x05186915), UINT32_C(0x00E55244), + UINT32_C(0x017BD6D1), UINT32_C(0x0747C684), UINT32_C(0x0FEE9906), + UINT32_C(0x07BEA2FE), UINT32_C(0x04C3FEC5), UINT32_C(0x05EAB892), + UINT32_C(0x03E3B341) }, + { UINT32_C(0x0DEF19D6), UINT32_C(0x03A56FE1), UINT32_C(0x09F33CC0), + UINT32_C(0x03E3A7C9), UINT32_C(0x04712359), UINT32_C(0x02515669), + UINT32_C(0x035C962B), UINT32_C(0x08C45240), UINT32_C(0x033CCA10), + UINT32_C(0x06965FA2), UINT32_C(0x04F88D82), UINT32_C(0x0FDE595A), + UINT32_C(0x0241F5B1), UINT32_C(0x03F203E1), UINT32_C(0x0BB7CDF8), + UINT32_C(0x046409AD), UINT32_C(0x08E4A186), UINT32_C(0x01723DD8), + UINT32_C(0x02B93AF0) } }, + { { UINT32_C(0x0FACC519), UINT32_C(0x027F5A2C), UINT32_C(0x0CA8C450), + UINT32_C(0x03EC651F), UINT32_C(0x0B47E880), UINT32_C(0x01B9DB47), + UINT32_C(0x06895D1C), UINT32_C(0x0F1857B2), UINT32_C(0x06CC04B3), + UINT32_C(0x01C2D89D), UINT32_C(0x04525759), UINT32_C(0x0B6EACB4), + UINT32_C(0x07770FC8), UINT32_C(0x04A7FC79), UINT32_C(0x03B56F1C), + UINT32_C(0x0248A360), UINT32_C(0x0A73C4C6), UINT32_C(0x04BA5188), + UINT32_C(0x0400E477) }, + { UINT32_C(0x0AEA3E6E), UINT32_C(0x05DA167B), UINT32_C(0x02C8D4B1), + UINT32_C(0x074DB11C), UINT32_C(0x05DB2724), UINT32_C(0x04492C83), + UINT32_C(0x00B62A05), UINT32_C(0x03A036B6), UINT32_C(0x07BC9211), + UINT32_C(0x05739939), UINT32_C(0x00FD8C64), UINT32_C(0x0E68B0EC), + UINT32_C(0x050FC3F3), UINT32_C(0x0446466F), UINT32_C(0x0A598C89), + UINT32_C(0x062CB99D), UINT32_C(0x0C97B1FA), UINT32_C(0x077F1F42), + UINT32_C(0x051B5A92) } }, + { { UINT32_C(0x09C36058), UINT32_C(0x05929A37), UINT32_C(0x079147E4), + UINT32_C(0x0546B4E8), UINT32_C(0x0C41B43A), UINT32_C(0x05F16140), + UINT32_C(0x0124A189), UINT32_C(0x0D01EFB0), UINT32_C(0x00FCDC74), + UINT32_C(0x0D3E796F), UINT32_C(0x0597A54B), UINT32_C(0x097F7DE8), + UINT32_C(0x0677C89A), UINT32_C(0x036C6165), UINT32_C(0x0DFFFA33), + UINT32_C(0x0782CAAE), UINT32_C(0x07E6FE65), UINT32_C(0x04887038), + UINT32_C(0x0636D482) }, + { UINT32_C(0x071EFA02), UINT32_C(0x07F91B7E), UINT32_C(0x0950028E), + UINT32_C(0x069527C7), UINT32_C(0x09CE6F6C), UINT32_C(0x01FEEAA0), + UINT32_C(0x014DED92), UINT32_C(0x0D94B717), UINT32_C(0x014B513D), + UINT32_C(0x0A97F421), UINT32_C(0x075448FA), UINT32_C(0x041A5F24), + UINT32_C(0x0721201F), UINT32_C(0x0444C83A), UINT32_C(0x07F6AE04), + UINT32_C(0x030824B5), UINT32_C(0x0246F2D9), UINT32_C(0x05F21CD9), + UINT32_C(0x06817477) } }, + { { UINT32_C(0x0DDEF055), UINT32_C(0x01C63F00), UINT32_C(0x0570BDE9), + UINT32_C(0x07433A8A), UINT32_C(0x099522A9), UINT32_C(0x051DEDFE), + UINT32_C(0x01712838), UINT32_C(0x0C8ECC33), UINT32_C(0x04846773), + UINT32_C(0x0D5E2042), UINT32_C(0x017373E7), UINT32_C(0x04742EE4), + UINT32_C(0x01053131), UINT32_C(0x01BD8B10), UINT32_C(0x01A5A425), + UINT32_C(0x072BB78A), UINT32_C(0x01A26990), UINT32_C(0x02CD45F0), + UINT32_C(0x03124D19) }, + { UINT32_C(0x01A2F1BD), UINT32_C(0x02C1057A), UINT32_C(0x07B6C2D1), + UINT32_C(0x00B79FA6), UINT32_C(0x09B44B1B), UINT32_C(0x0428D7E8), + UINT32_C(0x04C94C23), UINT32_C(0x0DFB15C5), UINT32_C(0x02F5DBF7), + UINT32_C(0x0BC452A9), UINT32_C(0x044F06AF), UINT32_C(0x06C3295D), + UINT32_C(0x0661CB9B), UINT32_C(0x0001E990), UINT32_C(0x022A6D5E), + UINT32_C(0x03420E57), UINT32_C(0x0D5E7F7E), UINT32_C(0x0593D853), + UINT32_C(0x00938C95) } }, + { { UINT32_C(0x0899A80A), UINT32_C(0x063E3726), UINT32_C(0x08972EC5), + UINT32_C(0x037C93BE), UINT32_C(0x031E1342), UINT32_C(0x07C51EDF), + UINT32_C(0x03702DD4), UINT32_C(0x086F89E1), UINT32_C(0x047EBB47), + UINT32_C(0x06A291B7), UINT32_C(0x0685EBFA), UINT32_C(0x0EF566F4), + UINT32_C(0x02FC8735), UINT32_C(0x03A7F885), UINT32_C(0x0963A567), + UINT32_C(0x02DEC9A4), UINT32_C(0x033285D3), UINT32_C(0x0049779E), + UINT32_C(0x05AB7D24) }, + { UINT32_C(0x04E67976), UINT32_C(0x03AD342E), UINT32_C(0x006D58B0), + UINT32_C(0x0490C968), UINT32_C(0x0428E13C), UINT32_C(0x0183F7B5), + UINT32_C(0x0168EF02), UINT32_C(0x031E9F33), UINT32_C(0x079C2D32), + UINT32_C(0x0EC6C4B2), UINT32_C(0x06334DE3), UINT32_C(0x04E10D5F), + UINT32_C(0x0431C81B), UINT32_C(0x001EE024), UINT32_C(0x01F6A3D0), + UINT32_C(0x0009B04D), UINT32_C(0x0A95C815), UINT32_C(0x06C721B5), + UINT32_C(0x07DEE1A8) } }, + { { UINT32_C(0x0C112CB8), UINT32_C(0x00691E2E), UINT32_C(0x01DBEB00), + UINT32_C(0x077CCE8A), UINT32_C(0x03E91FE4), UINT32_C(0x0690BBBF), + UINT32_C(0x0577CA8A), UINT32_C(0x00B5C974), UINT32_C(0x029377A0), + UINT32_C(0x06FDF488), UINT32_C(0x00872436), UINT32_C(0x0506D32E), + UINT32_C(0x055C17BB), UINT32_C(0x03B00666), UINT32_C(0x0D26AAA8), + UINT32_C(0x03829C3F), UINT32_C(0x08B67A64), UINT32_C(0x0475D296), + UINT32_C(0x027FEFC5) }, + { UINT32_C(0x06814D18), UINT32_C(0x01588692), UINT32_C(0x0D4F0EDD), + UINT32_C(0x007DFA60), UINT32_C(0x042E603A), UINT32_C(0x00885394), + UINT32_C(0x05F797E2), UINT32_C(0x041238B4), UINT32_C(0x052305E5), + UINT32_C(0x0D9515E8), UINT32_C(0x05B10FCD), UINT32_C(0x08F6C6F8), + UINT32_C(0x043FB734), UINT32_C(0x014BE940), UINT32_C(0x0E882EEE), + UINT32_C(0x0077B050), UINT32_C(0x02093150), UINT32_C(0x05A0B712), + UINT32_C(0x06E640E8) } }, + { { UINT32_C(0x0BE77EA4), UINT32_C(0x03634A86), UINT32_C(0x01F8DFF4), + UINT32_C(0x005A0F6B), UINT32_C(0x0D30990A), UINT32_C(0x0712090D), + UINT32_C(0x048C153A), UINT32_C(0x029E8CA3), UINT32_C(0x052B7982), + UINT32_C(0x01355D1B), UINT32_C(0x00109FDB), UINT32_C(0x029EF3CE), + UINT32_C(0x02FA1090), UINT32_C(0x033F025F), UINT32_C(0x03D1969F), + UINT32_C(0x052EDB5F), UINT32_C(0x04D2BEF3), UINT32_C(0x06BF5DE5), + UINT32_C(0x00C8983F) }, + { UINT32_C(0x04B8EB93), UINT32_C(0x0058C176), UINT32_C(0x00A13CB4), + UINT32_C(0x053DF577), UINT32_C(0x0156AEB4), UINT32_C(0x005E3851), + UINT32_C(0x069CEAE2), UINT32_C(0x0030FF4F), UINT32_C(0x001DA227), + UINT32_C(0x05AF81D3), UINT32_C(0x03D80D8D), UINT32_C(0x0A3E8600), + UINT32_C(0x03D228FC), UINT32_C(0x0665245C), UINT32_C(0x09E5CE2E), + UINT32_C(0x03843A9B), UINT32_C(0x02F2D31B), UINT32_C(0x041832DC), + UINT32_C(0x02E66351) } }, + { { UINT32_C(0x05730C8D), UINT32_C(0x06092618), UINT32_C(0x079F5AFA), + UINT32_C(0x06F3E0CF), UINT32_C(0x092BC672), UINT32_C(0x0276DE36), + UINT32_C(0x02D07EDC), UINT32_C(0x0FC6A29F), UINT32_C(0x0486EFA2), + UINT32_C(0x0909E264), UINT32_C(0x056F98E8), UINT32_C(0x08A33777), + UINT32_C(0x007820C7), UINT32_C(0x07E651CF), UINT32_C(0x0928B418), + UINT32_C(0x05EF7EA1), UINT32_C(0x0BE35987), UINT32_C(0x023FE702), + UINT32_C(0x04B874D9) }, + { UINT32_C(0x001A8D36), UINT32_C(0x03FC40DA), UINT32_C(0x00561AB4), + UINT32_C(0x036E4547), UINT32_C(0x0D462FB9), UINT32_C(0x07B2E89D), + UINT32_C(0x0616BF2B), UINT32_C(0x02FA3373), UINT32_C(0x067EE578), + UINT32_C(0x02B81792), UINT32_C(0x03A32F95), UINT32_C(0x019591EC), + UINT32_C(0x047F05AA), UINT32_C(0x058E2F29), UINT32_C(0x04CECEE9), + UINT32_C(0x07DF3632), UINT32_C(0x02BFB16E), UINT32_C(0x03AB1AD0), + UINT32_C(0x0610FCE9) } }, + { { UINT32_C(0x0CE87EAC), UINT32_C(0x00235BF1), UINT32_C(0x0EAE0AF1), + UINT32_C(0x03D89DD3), UINT32_C(0x0B789073), UINT32_C(0x01AC0815), + UINT32_C(0x055721C2), UINT32_C(0x0B2BAD77), UINT32_C(0x05787CF1), + UINT32_C(0x00C70041), UINT32_C(0x00EEE049), UINT32_C(0x0D01B922), + UINT32_C(0x022A24F8), UINT32_C(0x0317FAC7), UINT32_C(0x0D5F402C), + UINT32_C(0x0439541B), UINT32_C(0x07D56CC2), UINT32_C(0x00EB80BF), + UINT32_C(0x00E40AA6) }, + { UINT32_C(0x0A01F6F0), UINT32_C(0x020DA18A), UINT32_C(0x073C68C0), + UINT32_C(0x05338AFA), UINT32_C(0x0DDC8CB0), UINT32_C(0x001C0CED), + UINT32_C(0x07A82BBC), UINT32_C(0x081BF5E1), UINT32_C(0x00B876DD), + UINT32_C(0x09864ED3), UINT32_C(0x07F89153), UINT32_C(0x0A066C82), + UINT32_C(0x042461BC), UINT32_C(0x07592D13), UINT32_C(0x02DBFA28), + UINT32_C(0x0371D64F), UINT32_C(0x0326B139), UINT32_C(0x0545030E), + UINT32_C(0x03B02EDD) } }, + { { UINT32_C(0x0C8AA41D), UINT32_C(0x02999435), UINT32_C(0x011470BE), + UINT32_C(0x02448ABD), UINT32_C(0x0C3A559A), UINT32_C(0x03DE4EDA), + UINT32_C(0x0267ACAB), UINT32_C(0x05B64BAF), UINT32_C(0x06167A36), + UINT32_C(0x080925DF), UINT32_C(0x0748EB2E), UINT32_C(0x0262E572), + UINT32_C(0x06655A71), UINT32_C(0x02DC7E31), UINT32_C(0x009FA448), + UINT32_C(0x05991E95), UINT32_C(0x0FA3D04A), UINT32_C(0x0484BE25), + UINT32_C(0x0438E396) }, + { UINT32_C(0x044C41BB), UINT32_C(0x02EFDFC2), UINT32_C(0x0F459DA9), + UINT32_C(0x04A94A2D), UINT32_C(0x03F47C03), UINT32_C(0x07FA71AF), + UINT32_C(0x03DC178C), UINT32_C(0x0129963B), UINT32_C(0x021E1FD4), + UINT32_C(0x0E7487EB), UINT32_C(0x00C3DDB0), UINT32_C(0x06EE0434), + UINT32_C(0x06D2712F), UINT32_C(0x07842656), UINT32_C(0x013F8F26), + UINT32_C(0x01F9766F), UINT32_C(0x061BD12C), UINT32_C(0x02B96EB7), + UINT32_C(0x01F8FA20) } }, + { { UINT32_C(0x0FB80E07), UINT32_C(0x050B08F2), UINT32_C(0x064554C9), + UINT32_C(0x078E1F81), UINT32_C(0x09ED8841), UINT32_C(0x0596ADC2), + UINT32_C(0x034DF164), UINT32_C(0x020E6E12), UINT32_C(0x018EDA4D), + UINT32_C(0x0174E31B), UINT32_C(0x03B107F1), UINT32_C(0x010EC155), + UINT32_C(0x07FA899A), UINT32_C(0x0717505D), UINT32_C(0x05819825), + UINT32_C(0x0542EC55), UINT32_C(0x038DD6D7), UINT32_C(0x0497E5A0), + UINT32_C(0x03081495) }, + { UINT32_C(0x064986F4), UINT32_C(0x03BD600B), UINT32_C(0x04B78E0D), + UINT32_C(0x0098465F), UINT32_C(0x0E7E78C0), UINT32_C(0x0127CC0E), + UINT32_C(0x07A3BC64), UINT32_C(0x001DBF18), UINT32_C(0x06A78B45), + UINT32_C(0x0D3A5A6B), UINT32_C(0x0682C6C2), UINT32_C(0x0B8EE95B), + UINT32_C(0x066E64B3), UINT32_C(0x04178CB0), UINT32_C(0x0FC2F66E), + UINT32_C(0x04EABB3C), UINT32_C(0x084AF2DE), UINT32_C(0x04C297C1), + UINT32_C(0x0136B06E) } }, + { { UINT32_C(0x07DF6D6E), UINT32_C(0x01F00ED6), UINT32_C(0x02705D3E), + UINT32_C(0x038023D6), UINT32_C(0x0A85D53D), UINT32_C(0x01C4664A), + UINT32_C(0x0610B36C), UINT32_C(0x02BAE274), UINT32_C(0x03566DBB), + UINT32_C(0x0854659C), UINT32_C(0x00F106D4), UINT32_C(0x09D0A630), + UINT32_C(0x01B5D98A), UINT32_C(0x01B27CA8), UINT32_C(0x0F254343), + UINT32_C(0x075491B9), UINT32_C(0x025D2274), UINT32_C(0x04F17B63), + UINT32_C(0x06865DA3) }, + { UINT32_C(0x0D4C1CFE), UINT32_C(0x0612B559), UINT32_C(0x0D29CCC2), + UINT32_C(0x06835607), UINT32_C(0x0E442A4F), UINT32_C(0x003F2EA3), + UINT32_C(0x04DA7E80), UINT32_C(0x079ABF17), UINT32_C(0x062A7A50), + UINT32_C(0x0FE31E03), UINT32_C(0x044D195D), UINT32_C(0x01A9DC51), + UINT32_C(0x05B8C361), UINT32_C(0x06390D3D), UINT32_C(0x0544BD42), + UINT32_C(0x02DB7A09), UINT32_C(0x0367E705), UINT32_C(0x01B34C53), + UINT32_C(0x055F8181) } }, + { { UINT32_C(0x0F3F00C1), UINT32_C(0x04C36A17), UINT32_C(0x0CB05A60), + UINT32_C(0x05742C4B), UINT32_C(0x029DC7BA), UINT32_C(0x00946765), + UINT32_C(0x01F6280B), UINT32_C(0x0A250657), UINT32_C(0x057853BE), + UINT32_C(0x027C17D4), UINT32_C(0x061E6EE7), UINT32_C(0x068934C0), + UINT32_C(0x0225275D), UINT32_C(0x004E706A), UINT32_C(0x08A0E33D), + UINT32_C(0x02EFB382), UINT32_C(0x0231B332), UINT32_C(0x045E20A6), + UINT32_C(0x076538EE) }, + { UINT32_C(0x072461C9), UINT32_C(0x071D932B), UINT32_C(0x099D4C01), + UINT32_C(0x0401E666), UINT32_C(0x07DB6FB0), UINT32_C(0x049F43E4), + UINT32_C(0x056167EA), UINT32_C(0x0D49C41D), UINT32_C(0x05F10CA9), + UINT32_C(0x080EC5BB), UINT32_C(0x05C98C31), UINT32_C(0x01E1F452), + UINT32_C(0x07E42338), UINT32_C(0x04049AA9), UINT32_C(0x032E5588), + UINT32_C(0x01E28C9C), UINT32_C(0x04BCDC8D), UINT32_C(0x04309C54), + UINT32_C(0x02042514) } }, + }, + { + { { UINT32_C(0x02648196), UINT32_C(0x01BF352B), UINT32_C(0x0FCEC15F), + UINT32_C(0x02D3A085), UINT32_C(0x011002A5), UINT32_C(0x026E7651), + UINT32_C(0x021C2A73), UINT32_C(0x0E3392B7), UINT32_C(0x01A26456), + UINT32_C(0x00E05940), UINT32_C(0x05C6D0D8), UINT32_C(0x085D0F62), + UINT32_C(0x03B743E5), UINT32_C(0x05B2C76F), UINT32_C(0x0B270AB3), + UINT32_C(0x076B0EF8), UINT32_C(0x0E5EF80C), UINT32_C(0x0751E040), + UINT32_C(0x0769C73A) }, + { UINT32_C(0x0D9BC7BB), UINT32_C(0x01B398D4), UINT32_C(0x094E3D5E), + UINT32_C(0x0679261C), UINT32_C(0x0F579BC0), UINT32_C(0x0087234F), + UINT32_C(0x01C48CDA), UINT32_C(0x01065BB9), UINT32_C(0x04A8A1F3), + UINT32_C(0x097D469B), UINT32_C(0x046FC17A), UINT32_C(0x00CAE969), + UINT32_C(0x02E690B5), UINT32_C(0x0187C437), UINT32_C(0x000FCD13), + UINT32_C(0x07C0FA30), UINT32_C(0x02F0D63C), UINT32_C(0x0583AE53), + UINT32_C(0x036A77FE) } }, + { { UINT32_C(0x01DE62A2), UINT32_C(0x03B6F417), UINT32_C(0x08D8470C), + UINT32_C(0x041AB290), UINT32_C(0x0D3155E4), UINT32_C(0x043123A7), + UINT32_C(0x06EC3DAC), UINT32_C(0x09575F29), UINT32_C(0x05CC8C01), + UINT32_C(0x028CF2E0), UINT32_C(0x00BB01F9), UINT32_C(0x01E4C554), + UINT32_C(0x07B3F1F5), UINT32_C(0x00E4DC2E), UINT32_C(0x0F6F4AA9), + UINT32_C(0x03F7C702), UINT32_C(0x0EC18583), UINT32_C(0x02949031), + UINT32_C(0x05C16F04) }, + { UINT32_C(0x03BFC242), UINT32_C(0x06AF3468), UINT32_C(0x0509C734), + UINT32_C(0x002581C3), UINT32_C(0x0CD6F167), UINT32_C(0x068B6408), + UINT32_C(0x07D05F00), UINT32_C(0x0D520CDF), UINT32_C(0x02C463E5), + UINT32_C(0x003D2B75), UINT32_C(0x02640D09), UINT32_C(0x0C38D324), + UINT32_C(0x016E198B), UINT32_C(0x01BF3B79), UINT32_C(0x08EFB3AE), + UINT32_C(0x01B11ADD), UINT32_C(0x0428FEBD), UINT32_C(0x0288A4BC), + UINT32_C(0x02ED3D8D) } }, + { { UINT32_C(0x0FE3927A), UINT32_C(0x004463DC), UINT32_C(0x0A23634B), + UINT32_C(0x02C96252), UINT32_C(0x088ACC38), UINT32_C(0x003687F2), + UINT32_C(0x07070A41), UINT32_C(0x0A3D6F58), UINT32_C(0x02ACC6F9), + UINT32_C(0x07A117B7), UINT32_C(0x04BF3041), UINT32_C(0x006C3D57), + UINT32_C(0x05E2A443), UINT32_C(0x00D534BB), UINT32_C(0x01838CCA), + UINT32_C(0x07E9698D), UINT32_C(0x0463E2DC), UINT32_C(0x05A8243F), + UINT32_C(0x02BC2618) }, + { UINT32_C(0x0EBC6638), UINT32_C(0x04B3F3FB), UINT32_C(0x0A7F699B), + UINT32_C(0x070541A8), UINT32_C(0x00275BF7), UINT32_C(0x0335548D), + UINT32_C(0x00C681F5), UINT32_C(0x0AE9575E), UINT32_C(0x02032835), + UINT32_C(0x027F35BF), UINT32_C(0x00A83998), UINT32_C(0x04869978), + UINT32_C(0x04F819CA), UINT32_C(0x075D1DAF), UINT32_C(0x0B79E387), + UINT32_C(0x033A57AB), UINT32_C(0x057298F2), UINT32_C(0x0583C4E3), + UINT32_C(0x067E752D) } }, + { { UINT32_C(0x06B4D0F2), UINT32_C(0x059C637E), UINT32_C(0x0515A54F), + UINT32_C(0x01CB93DA), UINT32_C(0x0AF87FEF), UINT32_C(0x07247119), + UINT32_C(0x0368E1D8), UINT32_C(0x0287508B), UINT32_C(0x04E3B00B), + UINT32_C(0x03EDF00C), UINT32_C(0x0060EB2B), UINT32_C(0x009B64B7), + UINT32_C(0x0059A064), UINT32_C(0x02C48CC2), UINT32_C(0x0D938166), + UINT32_C(0x039A77EF), UINT32_C(0x04F26973), UINT32_C(0x015B1DA7), + UINT32_C(0x048D6DB3) }, + { UINT32_C(0x011EBBDB), UINT32_C(0x06BC0045), UINT32_C(0x0275B56E), + UINT32_C(0x03B89420), UINT32_C(0x013420FC), UINT32_C(0x076F18E5), + UINT32_C(0x00A74F63), UINT32_C(0x0E0F64B7), UINT32_C(0x00503282), + UINT32_C(0x094735D1), UINT32_C(0x013CC6D6), UINT32_C(0x0E5C0E1C), + UINT32_C(0x015BA8D6), UINT32_C(0x07D45F0A), UINT32_C(0x0A29FE38), + UINT32_C(0x0029F319), UINT32_C(0x03AC2D85), UINT32_C(0x027ECAF3), + UINT32_C(0x029D9051) } }, + { { UINT32_C(0x0EA400A9), UINT32_C(0x0158306B), UINT32_C(0x015222F8), + UINT32_C(0x07A029A5), UINT32_C(0x01BD2907), UINT32_C(0x0570C0F6), + UINT32_C(0x0751FAE1), UINT32_C(0x07964BF7), UINT32_C(0x009AA3B7), + UINT32_C(0x03DF8285), UINT32_C(0x005D2075), UINT32_C(0x0DDBE6E5), + UINT32_C(0x04FB407B), UINT32_C(0x05ABE7D8), UINT32_C(0x0C49401A), + UINT32_C(0x04BA9696), UINT32_C(0x03CCE450), UINT32_C(0x04636480), + UINT32_C(0x03F1ABE9) }, + { UINT32_C(0x03EA1F68), UINT32_C(0x0676F7FA), UINT32_C(0x078995D6), + UINT32_C(0x01690C80), UINT32_C(0x0DDD1529), UINT32_C(0x007F78C9), + UINT32_C(0x0408771E), UINT32_C(0x0513A792), UINT32_C(0x003B85AB), + UINT32_C(0x016D7EB5), UINT32_C(0x05E5699C), UINT32_C(0x0BECEE12), + UINT32_C(0x00107C5D), UINT32_C(0x00E4EB89), UINT32_C(0x02F4C652), + UINT32_C(0x04E39F7A), UINT32_C(0x034AED07), UINT32_C(0x0212550E), + UINT32_C(0x0188E07E) } }, + { { UINT32_C(0x0FBBA24C), UINT32_C(0x01E20A63), UINT32_C(0x0FA95AAC), + UINT32_C(0x01C44416), UINT32_C(0x0F08DC76), UINT32_C(0x043CBDF1), + UINT32_C(0x012ABC29), UINT32_C(0x0F6C4233), UINT32_C(0x06107D90), + UINT32_C(0x002CBE36), UINT32_C(0x05234963), UINT32_C(0x059E8B8F), + UINT32_C(0x06167695), UINT32_C(0x04B21ABA), UINT32_C(0x094ABDA3), + UINT32_C(0x01B5AF79), UINT32_C(0x00351EF1), UINT32_C(0x03FE1EFE), + UINT32_C(0x03E83BD1) }, + { UINT32_C(0x04ADEFE3), UINT32_C(0x028AF72F), UINT32_C(0x09E0C0D6), + UINT32_C(0x0104ED8F), UINT32_C(0x0AE0148F), UINT32_C(0x02B05ACD), + UINT32_C(0x066B1ED0), UINT32_C(0x0A3C6BFA), UINT32_C(0x032BBFF9), + UINT32_C(0x0F66AD88), UINT32_C(0x04A9A376), UINT32_C(0x0AF0D447), + UINT32_C(0x047BD087), UINT32_C(0x005F677C), UINT32_C(0x014088B0), + UINT32_C(0x00EDD8EE), UINT32_C(0x0598516D), UINT32_C(0x03FE1205), + UINT32_C(0x073098DE) } }, + { { UINT32_C(0x02841A85), UINT32_C(0x0451A0F7), UINT32_C(0x076BCBFC), + UINT32_C(0x027E002B), UINT32_C(0x04ACD1B5), UINT32_C(0x03AADBAC), + UINT32_C(0x011F71FA), UINT32_C(0x0E1089CF), UINT32_C(0x058740CA), + UINT32_C(0x06DB26BB), UINT32_C(0x02494970), UINT32_C(0x07CCD9E0), + UINT32_C(0x05749062), UINT32_C(0x061E24EF), UINT32_C(0x0BA44927), + UINT32_C(0x01396A99), UINT32_C(0x0C2129A5), UINT32_C(0x06C4E538), + UINT32_C(0x02D308F2) }, + { UINT32_C(0x0E7B0D82), UINT32_C(0x0295DE15), UINT32_C(0x059C10B0), + UINT32_C(0x0240D76A), UINT32_C(0x0AA33AC3), UINT32_C(0x02D5D368), + UINT32_C(0x05DF8706), UINT32_C(0x0A4B7001), UINT32_C(0x031DBF6C), + UINT32_C(0x0BC72CD8), UINT32_C(0x046962A7), UINT32_C(0x0D13BB53), + UINT32_C(0x039B98C0), UINT32_C(0x05AA84ED), UINT32_C(0x058D2735), + UINT32_C(0x0508AB59), UINT32_C(0x085DF0E3), UINT32_C(0x06AA60D9), + UINT32_C(0x0192578B) } }, + { { UINT32_C(0x052517BF), UINT32_C(0x07C0E587), UINT32_C(0x038A5531), + UINT32_C(0x03EE1FF1), UINT32_C(0x062AB6E8), UINT32_C(0x06EF4CCB), + UINT32_C(0x00A09F25), UINT32_C(0x0DBE8342), UINT32_C(0x01D7E02F), + UINT32_C(0x094C49AE), UINT32_C(0x01445CE4), UINT32_C(0x0F435B7F), + UINT32_C(0x07CDF16E), UINT32_C(0x009B8491), UINT32_C(0x0B24E6F7), + UINT32_C(0x01648959), UINT32_C(0x00615CA9), UINT32_C(0x014879FC), + UINT32_C(0x015CCCCE) }, + { UINT32_C(0x0BB6E5C0), UINT32_C(0x072270A8), UINT32_C(0x02BC713E), + UINT32_C(0x0194AF0E), UINT32_C(0x0745C682), UINT32_C(0x00066C6F), + UINT32_C(0x03D36CF5), UINT32_C(0x0593CBB1), UINT32_C(0x05AE790D), + UINT32_C(0x06B1FF53), UINT32_C(0x0620A507), UINT32_C(0x0CB462BF), + UINT32_C(0x068C215C), UINT32_C(0x06AB108C), UINT32_C(0x0B7E3900), + UINT32_C(0x03D88910), UINT32_C(0x0539E087), UINT32_C(0x04AE3141), + UINT32_C(0x035ED7D6) } }, + { { UINT32_C(0x0254F3D7), UINT32_C(0x06792204), UINT32_C(0x0230569F), + UINT32_C(0x03D3FDA9), UINT32_C(0x0B84DD99), UINT32_C(0x07725C4C), + UINT32_C(0x06B0E7C3), UINT32_C(0x0B78D3DF), UINT32_C(0x078AC360), + UINT32_C(0x06CAB919), UINT32_C(0x02F4F70A), UINT32_C(0x013A8BD5), + UINT32_C(0x021D73E0), UINT32_C(0x044B1B4D), UINT32_C(0x0E88A7D4), + UINT32_C(0x05BAA6EC), UINT32_C(0x0526DE60), UINT32_C(0x01D8806A), + UINT32_C(0x04244303) }, + { UINT32_C(0x0108C612), UINT32_C(0x0395A34F), UINT32_C(0x0339198F), + UINT32_C(0x01F179EC), UINT32_C(0x0708D6F3), UINT32_C(0x01DF5235), + UINT32_C(0x0232C546), UINT32_C(0x030C41B0), UINT32_C(0x015FE8CF), + UINT32_C(0x0F21BBB4), UINT32_C(0x0323FD77), UINT32_C(0x06DD81ED), + UINT32_C(0x04136906), UINT32_C(0x054B66A1), UINT32_C(0x0CBBD05A), + UINT32_C(0x0336CEE8), UINT32_C(0x0FCF1FFD), UINT32_C(0x041BBD8F), + UINT32_C(0x07AB12C9) } }, + { { UINT32_C(0x0BBE227D), UINT32_C(0x05858F23), UINT32_C(0x04BF491E), + UINT32_C(0x05728183), UINT32_C(0x079C714E), UINT32_C(0x022A1FCF), + UINT32_C(0x01EF871B), UINT32_C(0x09EDB7B8), UINT32_C(0x01D525A3), + UINT32_C(0x0A87DA27), UINT32_C(0x043F0A4E), UINT32_C(0x09B1CDD1), + UINT32_C(0x00B92721), UINT32_C(0x00B6CCD6), UINT32_C(0x0D63DB15), + UINT32_C(0x023CE576), UINT32_C(0x0C4080E4), UINT32_C(0x033F2061), + UINT32_C(0x031AA1D9) }, + { UINT32_C(0x07EC3A20), UINT32_C(0x01C69A3A), UINT32_C(0x001C25C7), + UINT32_C(0x0210B9C8), UINT32_C(0x08BDFFA8), UINT32_C(0x02E8214B), + UINT32_C(0x017C3E9B), UINT32_C(0x084D91D9), UINT32_C(0x038B3D24), + UINT32_C(0x0EC9081E), UINT32_C(0x026E58E8), UINT32_C(0x032908AE), + UINT32_C(0x02B2F37D), UINT32_C(0x058B11CB), UINT32_C(0x07538C24), + UINT32_C(0x06945091), UINT32_C(0x0F538568), UINT32_C(0x064897F5), + UINT32_C(0x03110AAF) } }, + { { UINT32_C(0x093E7BB1), UINT32_C(0x026B09F0), UINT32_C(0x0763D63D), + UINT32_C(0x01CAD134), UINT32_C(0x053290E7), UINT32_C(0x03190F55), + UINT32_C(0x05929346), UINT32_C(0x090E1278), UINT32_C(0x01D360D4), + UINT32_C(0x0AE8B6AE), UINT32_C(0x036A79E4), UINT32_C(0x08B891A0), + UINT32_C(0x0448F896), UINT32_C(0x02316FA4), UINT32_C(0x0B3F9158), + UINT32_C(0x045DAD8C), UINT32_C(0x073BD91F), UINT32_C(0x0407FC71), + UINT32_C(0x0403F724) }, + { UINT32_C(0x0C0213B3), UINT32_C(0x04667E35), UINT32_C(0x0E2CEB9C), + UINT32_C(0x064EC72A), UINT32_C(0x0A339F01), UINT32_C(0x01E44700), + UINT32_C(0x029951E3), UINT32_C(0x0F9E1903), UINT32_C(0x0760075A), + UINT32_C(0x0B3FB167), UINT32_C(0x015349C6), UINT32_C(0x04915326), + UINT32_C(0x06972404), UINT32_C(0x03D0B541), UINT32_C(0x0FFB253E), + UINT32_C(0x0670C067), UINT32_C(0x017EDCC3), UINT32_C(0x06348A30), + UINT32_C(0x0755DC54) } }, + { { UINT32_C(0x0D72BA02), UINT32_C(0x07FF1EEA), UINT32_C(0x0066BDAD), + UINT32_C(0x039D956A), UINT32_C(0x04E892D7), UINT32_C(0x052419F2), + UINT32_C(0x034B725A), UINT32_C(0x095A35DA), UINT32_C(0x05559103), + UINT32_C(0x018A8F9F), UINT32_C(0x04FC3975), UINT32_C(0x0D1740D2), + UINT32_C(0x0375B900), UINT32_C(0x0761403F), UINT32_C(0x0B953A5F), + UINT32_C(0x04F2FF71), UINT32_C(0x0E1B0B58), UINT32_C(0x07D8573F), + UINT32_C(0x053E8C3E) }, + { UINT32_C(0x055A3B73), UINT32_C(0x04EBD845), UINT32_C(0x0D3A5D27), + UINT32_C(0x03216043), UINT32_C(0x0A2D5A11), UINT32_C(0x03D32430), + UINT32_C(0x063F87FD), UINT32_C(0x0DBF84E0), UINT32_C(0x04C9934A), + UINT32_C(0x08BE9480), UINT32_C(0x02F6DE30), UINT32_C(0x052DB294), + UINT32_C(0x03230313), UINT32_C(0x04592516), UINT32_C(0x0B992B10), + UINT32_C(0x03125EE2), UINT32_C(0x0445BCF9), UINT32_C(0x07349143), + UINT32_C(0x05A112C7) } }, + { { UINT32_C(0x0EA0B318), UINT32_C(0x03F1B159), UINT32_C(0x0487E52E), + UINT32_C(0x05D27B9C), UINT32_C(0x0EBAD615), UINT32_C(0x0459C5D9), + UINT32_C(0x073079D5), UINT32_C(0x078FD2D4), UINT32_C(0x006B7643), + UINT32_C(0x0A73DC2C), UINT32_C(0x041938CF), UINT32_C(0x098897E0), + UINT32_C(0x07660928), UINT32_C(0x058BF110), UINT32_C(0x0696BC61), + UINT32_C(0x07DE18FC), UINT32_C(0x0B815951), UINT32_C(0x04662BC8), + UINT32_C(0x054FF046) }, + { UINT32_C(0x052466CC), UINT32_C(0x02C9E253), UINT32_C(0x07D1C495), + UINT32_C(0x024A0473), UINT32_C(0x0E5AEABA), UINT32_C(0x06DFF20F), + UINT32_C(0x03CCEFD9), UINT32_C(0x0F806D4B), UINT32_C(0x0192D911), + UINT32_C(0x06A7E064), UINT32_C(0x0136BD6C), UINT32_C(0x03CF3E59), + UINT32_C(0x036C910C), UINT32_C(0x02852F51), UINT32_C(0x0D2261F6), + UINT32_C(0x07B11789), UINT32_C(0x05D5440C), UINT32_C(0x068EB2BF), + UINT32_C(0x07C9D3D2) } }, + { { UINT32_C(0x03F78C83), UINT32_C(0x026282EB), UINT32_C(0x0E7E58C8), + UINT32_C(0x01460384), UINT32_C(0x07F8288C), UINT32_C(0x004DDB38), + UINT32_C(0x068A22C1), UINT32_C(0x03B4E4B7), UINT32_C(0x046EC7F7), + UINT32_C(0x0F499BF8), UINT32_C(0x00E98F9D), UINT32_C(0x0201835A), + UINT32_C(0x06CDC18D), UINT32_C(0x054E87E0), UINT32_C(0x09E1190B), + UINT32_C(0x07C8570C), UINT32_C(0x0EE788C0), UINT32_C(0x003B8466), + UINT32_C(0x0513D8F7) }, + { UINT32_C(0x082AE76F), UINT32_C(0x0467154F), UINT32_C(0x090D360C), + UINT32_C(0x04725E35), UINT32_C(0x077F0A4A), UINT32_C(0x01658344), + UINT32_C(0x07BFD41E), UINT32_C(0x0816DFE5), UINT32_C(0x01A64B33), + UINT32_C(0x07DEC344), UINT32_C(0x0404AABD), UINT32_C(0x0DD22DB3), + UINT32_C(0x0372E5A1), UINT32_C(0x01DD7525), UINT32_C(0x01C8CACD), + UINT32_C(0x06A4B923), UINT32_C(0x0CD78815), UINT32_C(0x03B62E43), + UINT32_C(0x0182DCE0) } }, + { { UINT32_C(0x04B1FB35), UINT32_C(0x0061A026), UINT32_C(0x099D37D7), + UINT32_C(0x046459E6), UINT32_C(0x0E8A57EF), UINT32_C(0x001BD06E), + UINT32_C(0x04A92B84), UINT32_C(0x06098C4C), UINT32_C(0x0358B593), + UINT32_C(0x0D4DFE1C), UINT32_C(0x063599D3), UINT32_C(0x02DD18DC), + UINT32_C(0x03007901), UINT32_C(0x01E9DD8D), UINT32_C(0x0400CC35), + UINT32_C(0x0778E5F5), UINT32_C(0x05D5B6A3), UINT32_C(0x02FD411C), + UINT32_C(0x02B425A2) }, + { UINT32_C(0x03812C10), UINT32_C(0x03B78EFC), UINT32_C(0x09532CE4), + UINT32_C(0x04F7D4A9), UINT32_C(0x0F7C04C8), UINT32_C(0x0683AE68), + UINT32_C(0x011B6140), UINT32_C(0x0156737D), UINT32_C(0x035A4EB9), + UINT32_C(0x0A0B7443), UINT32_C(0x064319EB), UINT32_C(0x0B315217), + UINT32_C(0x049C0FB2), UINT32_C(0x004E46BC), UINT32_C(0x0318D072), + UINT32_C(0x052D3EA9), UINT32_C(0x06A15FA8), UINT32_C(0x02E0D5AB), + UINT32_C(0x008DD356) } }, + { { UINT32_C(0x0D00894F), UINT32_C(0x0415F67D), UINT32_C(0x0C243D11), + UINT32_C(0x02B8C573), UINT32_C(0x05C886B6), UINT32_C(0x073E2A37), + UINT32_C(0x01B4E4FA), UINT32_C(0x09A09251), UINT32_C(0x020282E5), + UINT32_C(0x0BCA7D2D), UINT32_C(0x066FF292), UINT32_C(0x09926C99), + UINT32_C(0x03617A48), UINT32_C(0x01530215), UINT32_C(0x063E7DBA), + UINT32_C(0x078B1DFB), UINT32_C(0x0C3844B7), UINT32_C(0x03201272), + UINT32_C(0x0778B4FA) }, + { UINT32_C(0x09305F18), UINT32_C(0x04DACE51), UINT32_C(0x0D07FE4D), + UINT32_C(0x04990FE7), UINT32_C(0x07120719), UINT32_C(0x07AE031B), + UINT32_C(0x003430FE), UINT32_C(0x00C1FBD4), UINT32_C(0x036A0A51), + UINT32_C(0x0A6A12BB), UINT32_C(0x072B00FE), UINT32_C(0x0F112F16), + UINT32_C(0x002D898C), UINT32_C(0x00D7F3F0), UINT32_C(0x02CCB574), + UINT32_C(0x076345FF), UINT32_C(0x02C9358F), UINT32_C(0x017BCB4B), + UINT32_C(0x0579734A) } }, + }, + { + { { UINT32_C(0x0F0DB502), UINT32_C(0x007283D0), UINT32_C(0x08EF623D), + UINT32_C(0x03EA8C5E), UINT32_C(0x0A209E1F), UINT32_C(0x03A40740), + UINT32_C(0x02F81888), UINT32_C(0x0722A969), UINT32_C(0x03DCF02A), + UINT32_C(0x0B8BF42D), UINT32_C(0x046BF6EC), UINT32_C(0x04E7DE79), + UINT32_C(0x032FE5DF), UINT32_C(0x01C17AC3), UINT32_C(0x088F43CD), + UINT32_C(0x06D316FF), UINT32_C(0x00B6FB94), UINT32_C(0x03A7A692), + UINT32_C(0x03E132AC) }, + { UINT32_C(0x045CE248), UINT32_C(0x0462F43F), UINT32_C(0x09F103B7), + UINT32_C(0x03CE6503), UINT32_C(0x02C55CD7), UINT32_C(0x01FAC8B9), + UINT32_C(0x07F7D41F), UINT32_C(0x049B3922), UINT32_C(0x0538164A), + UINT32_C(0x0C32168B), UINT32_C(0x021D15D5), UINT32_C(0x0FBE7AB4), + UINT32_C(0x049ABD36), UINT32_C(0x06689278), UINT32_C(0x090906E0), + UINT32_C(0x02853127), UINT32_C(0x032C40D9), UINT32_C(0x0284E722), + UINT32_C(0x05B9DA3D) } }, + { { UINT32_C(0x08B06389), UINT32_C(0x039D7B29), UINT32_C(0x026E0D8E), + UINT32_C(0x038E31F2), UINT32_C(0x0F482001), UINT32_C(0x046C5627), + UINT32_C(0x0153F461), UINT32_C(0x0FC4C626), UINT32_C(0x035A22C9), + UINT32_C(0x0CB5BCED), UINT32_C(0x032AE85F), UINT32_C(0x097105A2), + UINT32_C(0x0661090D), UINT32_C(0x02190C38), UINT32_C(0x05F88BB1), + UINT32_C(0x020AFD4B), UINT32_C(0x07693E86), UINT32_C(0x036234B0), + UINT32_C(0x0201EE7C) }, + { UINT32_C(0x05177EBC), UINT32_C(0x07334497), UINT32_C(0x021FB6DB), + UINT32_C(0x00E242A1), UINT32_C(0x06ACC48D), UINT32_C(0x0617860E), + UINT32_C(0x04002467), UINT32_C(0x006684B4), UINT32_C(0x005E7367), + UINT32_C(0x02210321), UINT32_C(0x06AE2E12), UINT32_C(0x0A170483), + UINT32_C(0x06811FED), UINT32_C(0x02AF7598), UINT32_C(0x099B28F0), + UINT32_C(0x04B2EAC3), UINT32_C(0x03144E87), UINT32_C(0x052C741C), + UINT32_C(0x00219EE8) } }, + { { UINT32_C(0x00581DC0), UINT32_C(0x076911B9), UINT32_C(0x03F907DF), + UINT32_C(0x00FD8CCC), UINT32_C(0x0BD0DFDF), UINT32_C(0x0388BBE8), + UINT32_C(0x0549C09A), UINT32_C(0x0387AC55), UINT32_C(0x07AF40E6), + UINT32_C(0x0981B7A5), UINT32_C(0x05ADE4BE), UINT32_C(0x052D5C55), + UINT32_C(0x076A04D2), UINT32_C(0x032751B9), UINT32_C(0x0BCE279F), + UINT32_C(0x034D2A39), UINT32_C(0x0AEDCDAE), UINT32_C(0x00365DC7), + UINT32_C(0x03453CBF) }, + { UINT32_C(0x0FAB453E), UINT32_C(0x011CF084), UINT32_C(0x09E21C47), + UINT32_C(0x06CF3197), UINT32_C(0x00831296), UINT32_C(0x057F4CE5), + UINT32_C(0x020F8EE8), UINT32_C(0x05B31872), UINT32_C(0x0779598D), + UINT32_C(0x07C7AC32), UINT32_C(0x05B64DC4), UINT32_C(0x0E058DB2), + UINT32_C(0x060142F5), UINT32_C(0x0757FAC8), UINT32_C(0x0320EFE8), + UINT32_C(0x03D158EA), UINT32_C(0x025240D2), UINT32_C(0x0116989D), + UINT32_C(0x04BFB887) } }, + { { UINT32_C(0x0DB8A57B), UINT32_C(0x0056DCD3), UINT32_C(0x0355B904), + UINT32_C(0x03D5725A), UINT32_C(0x007C7371), UINT32_C(0x00CF4193), + UINT32_C(0x020AD78C), UINT32_C(0x0305EFAF), UINT32_C(0x03715E8F), + UINT32_C(0x04E06800), UINT32_C(0x0464FE0B), UINT32_C(0x041671C5), + UINT32_C(0x07289FAC), UINT32_C(0x045EC338), UINT32_C(0x049BEE4D), + UINT32_C(0x06F62A0E), UINT32_C(0x04025E36), UINT32_C(0x05D25CE9), + UINT32_C(0x07C568B5) }, + { UINT32_C(0x0D4BD6B6), UINT32_C(0x00933993), UINT32_C(0x0B7EEBBA), + UINT32_C(0x0281309E), UINT32_C(0x065E8268), UINT32_C(0x035579CF), + UINT32_C(0x05550C9A), UINT32_C(0x0D7980B4), UINT32_C(0x0531F076), + UINT32_C(0x0CD2F37E), UINT32_C(0x03059FC3), UINT32_C(0x00281179), + UINT32_C(0x019AAC99), UINT32_C(0x017555A7), UINT32_C(0x0FF849A4), + UINT32_C(0x04EE5361), UINT32_C(0x08C87DDE), UINT32_C(0x004920CB), + UINT32_C(0x0472AE6B) } }, + { { UINT32_C(0x05AD0B4E), UINT32_C(0x0000D01D), UINT32_C(0x0A1C822E), + UINT32_C(0x004A7A0A), UINT32_C(0x0AA08F1E), UINT32_C(0x05917BCC), + UINT32_C(0x073D4A38), UINT32_C(0x06389FF3), UINT32_C(0x047A94F0), + UINT32_C(0x06710D9B), UINT32_C(0x0752964E), UINT32_C(0x030EF732), + UINT32_C(0x01AE9023), UINT32_C(0x0752E2B4), UINT32_C(0x0343C25C), + UINT32_C(0x04C0A3C3), UINT32_C(0x0B4EFABB), UINT32_C(0x079ACB07), + UINT32_C(0x05BEE507) }, + { UINT32_C(0x03494AD9), UINT32_C(0x05EA99AF), UINT32_C(0x0389480B), + UINT32_C(0x05160DCE), UINT32_C(0x010C3CBB), UINT32_C(0x04B92C2A), + UINT32_C(0x05F2D771), UINT32_C(0x0A57A2FD), UINT32_C(0x007C232D), + UINT32_C(0x0ECF6652), UINT32_C(0x06762C3E), UINT32_C(0x0531B5E7), + UINT32_C(0x03E82FC8), UINT32_C(0x01820A9D), UINT32_C(0x010298C1), + UINT32_C(0x040BB915), UINT32_C(0x06C4DE5F), UINT32_C(0x00F95873), + UINT32_C(0x00D564BB) } }, + { { UINT32_C(0x06647B76), UINT32_C(0x05951386), UINT32_C(0x01C3CEEE), + UINT32_C(0x05B4A2A9), UINT32_C(0x00C0D10D), UINT32_C(0x07198ABC), + UINT32_C(0x0344EBA4), UINT32_C(0x01102AAD), UINT32_C(0x00A6BD8E), + UINT32_C(0x041FD3B9), UINT32_C(0x072FD40E), UINT32_C(0x04DF271A), + UINT32_C(0x07951CEE), UINT32_C(0x0434A805), UINT32_C(0x03CBC676), + UINT32_C(0x07E6DD9D), UINT32_C(0x037A89AF), UINT32_C(0x01076ABD), + UINT32_C(0x00509445) }, + { UINT32_C(0x0D8A2C33), UINT32_C(0x05E083E6), UINT32_C(0x05C0317D), + UINT32_C(0x0602A2EA), UINT32_C(0x00A16254), UINT32_C(0x065050EB), + UINT32_C(0x014C68D6), UINT32_C(0x0EA8DF00), UINT32_C(0x002096BA), + UINT32_C(0x00D2E7B4), UINT32_C(0x03580F1C), UINT32_C(0x0237FA0E), + UINT32_C(0x01C7F56A), UINT32_C(0x054A6A4F), UINT32_C(0x03E879F4), + UINT32_C(0x008B47F5), UINT32_C(0x0EDF35FC), UINT32_C(0x01F3F7F0), + UINT32_C(0x03E78806) } }, + { { UINT32_C(0x038F6A40), UINT32_C(0x05B8DCB9), UINT32_C(0x07D27CDC), + UINT32_C(0x03392DA1), UINT32_C(0x066611C2), UINT32_C(0x066344AA), + UINT32_C(0x05F431C8), UINT32_C(0x07255E87), UINT32_C(0x0135642A), + UINT32_C(0x051CFCBA), UINT32_C(0x045D25F5), UINT32_C(0x08BB7E3A), + UINT32_C(0x022605AB), UINT32_C(0x00C874AA), UINT32_C(0x0195652F), + UINT32_C(0x00E16A23), UINT32_C(0x0D18A297), UINT32_C(0x024B6188), + UINT32_C(0x025A9403) }, + { UINT32_C(0x04F1EAD3), UINT32_C(0x03669651), UINT32_C(0x0E87093B), + UINT32_C(0x05F1CF35), UINT32_C(0x019B74E6), UINT32_C(0x0177BF8B), + UINT32_C(0x036B76B9), UINT32_C(0x0B817B29), UINT32_C(0x009C77FA), + UINT32_C(0x0202860C), UINT32_C(0x01D1AB54), UINT32_C(0x0B180712), + UINT32_C(0x06B274AA), UINT32_C(0x0121DBED), UINT32_C(0x0AEA446B), + UINT32_C(0x044661E9), UINT32_C(0x0C3EE1D4), UINT32_C(0x045027EE), + UINT32_C(0x014C275F) } }, + { { UINT32_C(0x004023FD), UINT32_C(0x01669241), UINT32_C(0x0693C19B), + UINT32_C(0x0058FB3D), UINT32_C(0x0756B182), UINT32_C(0x075D0BEC), + UINT32_C(0x07A393EF), UINT32_C(0x0B75B610), UINT32_C(0x07D0B5FD), + UINT32_C(0x060DEE19), UINT32_C(0x02373BD5), UINT32_C(0x0A1D84BA), + UINT32_C(0x07E8F3AA), UINT32_C(0x01D80791), UINT32_C(0x09D535D0), + UINT32_C(0x01AB79C2), UINT32_C(0x0D7911BC), UINT32_C(0x03496555), + UINT32_C(0x0370FC52) }, + { UINT32_C(0x0CA626DD), UINT32_C(0x018A8079), UINT32_C(0x02E35F36), + UINT32_C(0x00EF1C67), UINT32_C(0x0942648A), UINT32_C(0x05578B93), + UINT32_C(0x07DDB397), UINT32_C(0x095E9BED), UINT32_C(0x07DEB648), + UINT32_C(0x020D82EB), UINT32_C(0x02384172), UINT32_C(0x0988C739), + UINT32_C(0x035C1ACA), UINT32_C(0x053C61ED), UINT32_C(0x036A12D0), + UINT32_C(0x070600B9), UINT32_C(0x05505FED), UINT32_C(0x04D77717), + UINT32_C(0x04E32DD7) } }, + { { UINT32_C(0x0F32AB3F), UINT32_C(0x03271637), UINT32_C(0x01E6E3C1), + UINT32_C(0x04B433DF), UINT32_C(0x0313D761), UINT32_C(0x01F05C43), + UINT32_C(0x01B6E232), UINT32_C(0x0B782E36), UINT32_C(0x0142A283), + UINT32_C(0x06A37377), UINT32_C(0x063B9255), UINT32_C(0x05FF47C8), + UINT32_C(0x02270CEE), UINT32_C(0x04B3AC67), UINT32_C(0x07D72B62), + UINT32_C(0x006133F9), UINT32_C(0x0BFDFB85), UINT32_C(0x04FE3C0B), + UINT32_C(0x0406E239) }, + { UINT32_C(0x0737D38E), UINT32_C(0x07FBCD12), UINT32_C(0x00F51FBD), + UINT32_C(0x02A182A2), UINT32_C(0x062DA827), UINT32_C(0x01D9AB6A), + UINT32_C(0x0539AEBA), UINT32_C(0x0AB608B0), UINT32_C(0x0226B3BB), + UINT32_C(0x0ED7323F), UINT32_C(0x04ADDB11), UINT32_C(0x05B1E5DF), + UINT32_C(0x013ECB65), UINT32_C(0x0282983F), UINT32_C(0x02BDD0BD), + UINT32_C(0x07F0D675), UINT32_C(0x0C80C17E), UINT32_C(0x06B40353), + UINT32_C(0x01D570D9) } }, + { { UINT32_C(0x0D4D4113), UINT32_C(0x0371ACBF), UINT32_C(0x076D0600), + UINT32_C(0x06867748), UINT32_C(0x0267DC5C), UINT32_C(0x04199EE8), + UINT32_C(0x015FF11F), UINT32_C(0x01DBB00A), UINT32_C(0x03C8E489), + UINT32_C(0x0218373A), UINT32_C(0x00180AE9), UINT32_C(0x0A2CAFBC), + UINT32_C(0x016437D1), UINT32_C(0x058A25D0), UINT32_C(0x0AB57613), + UINT32_C(0x07DF8B7E), UINT32_C(0x0985AF6A), UINT32_C(0x04CCAE37), + UINT32_C(0x0300D01F) }, + { UINT32_C(0x092A3113), UINT32_C(0x05B20515), UINT32_C(0x0F0E530A), + UINT32_C(0x0605CBBF), UINT32_C(0x05FD19B3), UINT32_C(0x01593B38), + UINT32_C(0x003D988A), UINT32_C(0x03D76657), UINT32_C(0x017E79DC), + UINT32_C(0x02EC918C), UINT32_C(0x069A3B0F), UINT32_C(0x06FB78CA), + UINT32_C(0x07B0B30F), UINT32_C(0x0224A884), UINT32_C(0x0FF6CD50), + UINT32_C(0x07D9D639), UINT32_C(0x0D753C54), UINT32_C(0x04ED3D38), + UINT32_C(0x01E9C727) } }, + { { UINT32_C(0x0201CD59), UINT32_C(0x01D5BE35), UINT32_C(0x0B2E0772), + UINT32_C(0x04E8E2C3), UINT32_C(0x06C76E20), UINT32_C(0x01464A0E), + UINT32_C(0x056C1CE9), UINT32_C(0x04E3B528), UINT32_C(0x037AAFAB), + UINT32_C(0x06CE134F), UINT32_C(0x06158AF6), UINT32_C(0x02AF338B), + UINT32_C(0x025085B6), UINT32_C(0x07AABBFC), UINT32_C(0x0670F3BE), + UINT32_C(0x0108503F), UINT32_C(0x0DC85D51), UINT32_C(0x07F4439A), + UINT32_C(0x046E6FC9) }, + { UINT32_C(0x08FFB263), UINT32_C(0x01FF6045), UINT32_C(0x0C4E1676), + UINT32_C(0x038E4F62), UINT32_C(0x06DD24CD), UINT32_C(0x0142D912), + UINT32_C(0x015AAC36), UINT32_C(0x0DF58E09), UINT32_C(0x038F3D3B), + UINT32_C(0x014D0412), UINT32_C(0x0123F0AF), UINT32_C(0x0021ED27), + UINT32_C(0x0004843B), UINT32_C(0x05BF4326), UINT32_C(0x05A672B0), + UINT32_C(0x02B6453D), UINT32_C(0x0C7F1450), UINT32_C(0x04A895A4), + UINT32_C(0x061C3DF9) } }, + { { UINT32_C(0x0E593E49), UINT32_C(0x07ABFF21), UINT32_C(0x076E69C7), + UINT32_C(0x05C81656), UINT32_C(0x0858D39E), UINT32_C(0x041FC1FA), + UINT32_C(0x03599A84), UINT32_C(0x0ECF483C), UINT32_C(0x0190C4E8), + UINT32_C(0x08EA24D2), UINT32_C(0x03536BE7), UINT32_C(0x0E3746C4), + UINT32_C(0x0632F6BA), UINT32_C(0x05CFBDCC), UINT32_C(0x060097CB), + UINT32_C(0x04B0546F), UINT32_C(0x0AB5C45F), UINT32_C(0x04F8975E), + UINT32_C(0x04C5D61F) }, + { UINT32_C(0x062B46F6), UINT32_C(0x07516E20), UINT32_C(0x0C1F955C), + UINT32_C(0x001F66A2), UINT32_C(0x0ED0D917), UINT32_C(0x0406AF99), + UINT32_C(0x069CF83E), UINT32_C(0x0D4D8A00), UINT32_C(0x03D763C5), + UINT32_C(0x0E1FD9A7), UINT32_C(0x0056211F), UINT32_C(0x07531A2F), + UINT32_C(0x00973B69), UINT32_C(0x021DCD32), UINT32_C(0x09D0AC99), + UINT32_C(0x0549BFEA), UINT32_C(0x0305E319), UINT32_C(0x01342656), + UINT32_C(0x001B80FB) } }, + { { UINT32_C(0x031FFCBB), UINT32_C(0x06BC2475), UINT32_C(0x090EA8B2), + UINT32_C(0x0716EDFB), UINT32_C(0x0418E2AE), UINT32_C(0x0381C978), + UINT32_C(0x05591029), UINT32_C(0x09BD26C6), UINT32_C(0x0460D4D5), + UINT32_C(0x07DAA20D), UINT32_C(0x01560E68), UINT32_C(0x04AAAB23), + UINT32_C(0x01EA985C), UINT32_C(0x0631896F), UINT32_C(0x0FD13830), + UINT32_C(0x0416257F), UINT32_C(0x069B78E7), UINT32_C(0x0016004F), + UINT32_C(0x07B5E05F) }, + { UINT32_C(0x0749B010), UINT32_C(0x0716A42F), UINT32_C(0x0DEDE224), + UINT32_C(0x06E403DB), UINT32_C(0x01FC6739), UINT32_C(0x07F5928B), + UINT32_C(0x04FF09AE), UINT32_C(0x096D2235), UINT32_C(0x032412BF), + UINT32_C(0x0635ABB1), UINT32_C(0x0480F063), UINT32_C(0x0BA557CC), + UINT32_C(0x05C0FEF3), UINT32_C(0x01C7CB5C), UINT32_C(0x09482C2A), + UINT32_C(0x003CF65B), UINT32_C(0x0F39C07C), UINT32_C(0x00902580), + UINT32_C(0x053F7D95) } }, + { { UINT32_C(0x00C6A752), UINT32_C(0x0600187B), UINT32_C(0x031FD29E), + UINT32_C(0x07202D01), UINT32_C(0x08706FD9), UINT32_C(0x003A8DA7), + UINT32_C(0x02BC4807), UINT32_C(0x0108B8E2), UINT32_C(0x03DCB4C3), + UINT32_C(0x00E5D109), UINT32_C(0x0133EBE8), UINT32_C(0x0DBC9FDB), + UINT32_C(0x037A84B4), UINT32_C(0x000D902A), UINT32_C(0x0B159D44), + UINT32_C(0x0385B949), UINT32_C(0x0BB24FD6), UINT32_C(0x05FFC44B), + UINT32_C(0x0402B0EA) }, + { UINT32_C(0x0AFA8C2B), UINT32_C(0x03A224AC), UINT32_C(0x08FD7C67), + UINT32_C(0x072E1371), UINT32_C(0x01FA5FB1), UINT32_C(0x060D59B5), + UINT32_C(0x004D1058), UINT32_C(0x0193E727), UINT32_C(0x0093B083), + UINT32_C(0x0ABA0999), UINT32_C(0x07F25ECC), UINT32_C(0x0E8D4648), + UINT32_C(0x045B908B), UINT32_C(0x02C916E0), UINT32_C(0x052F14F8), + UINT32_C(0x00430404), UINT32_C(0x0B8E9A2B), UINT32_C(0x00F4BF45), + UINT32_C(0x03F0A1D1) } }, + { { UINT32_C(0x0CEE5802), UINT32_C(0x00880798), UINT32_C(0x01C63FFC), + UINT32_C(0x071B8526), UINT32_C(0x0C1068FB), UINT32_C(0x052F9DB3), + UINT32_C(0x01DDC849), UINT32_C(0x0E84AF14), UINT32_C(0x06CD446D), + UINT32_C(0x0A9F92C6), UINT32_C(0x01676037), UINT32_C(0x02A0264C), + UINT32_C(0x0467C53C), UINT32_C(0x051C4EE1), UINT32_C(0x01F47FF0), + UINT32_C(0x022246B4), UINT32_C(0x07D42402), UINT32_C(0x0287119F), + UINT32_C(0x04434D4E) }, + { UINT32_C(0x018DA0C0), UINT32_C(0x042E86EE), UINT32_C(0x08509770), + UINT32_C(0x04EDAEB9), UINT32_C(0x0A4009B5), UINT32_C(0x0335CB55), + UINT32_C(0x064D21EC), UINT32_C(0x0647F463), UINT32_C(0x07A167F4), + UINT32_C(0x023FB0E4), UINT32_C(0x062A970D), UINT32_C(0x00205267), + UINT32_C(0x036D3513), UINT32_C(0x07ABD182), UINT32_C(0x0B51FDBA), + UINT32_C(0x077B5CD0), UINT32_C(0x0896BFE4), UINT32_C(0x0300338E), + UINT32_C(0x06FF9581) } }, + { { UINT32_C(0x054184BF), UINT32_C(0x02DCF217), UINT32_C(0x0880D0D9), + UINT32_C(0x019760C7), UINT32_C(0x0662BD25), UINT32_C(0x06A962DD), + UINT32_C(0x04C69173), UINT32_C(0x019D4A19), UINT32_C(0x05AD5A5F), + UINT32_C(0x0E23BF0B), UINT32_C(0x07D3C575), UINT32_C(0x0BCDA9CF), + UINT32_C(0x019497F7), UINT32_C(0x01914517), UINT32_C(0x027F0C56), + UINT32_C(0x048ED5F5), UINT32_C(0x078B0933), UINT32_C(0x01A7EB30), + UINT32_C(0x066D17B3) }, + { UINT32_C(0x00A95EDC), UINT32_C(0x0386D25E), UINT32_C(0x039DE915), + UINT32_C(0x076A16CE), UINT32_C(0x05DCE4A7), UINT32_C(0x07C40607), + UINT32_C(0x06F1B7C2), UINT32_C(0x0A817858), UINT32_C(0x0147CB22), + UINT32_C(0x0D109609), UINT32_C(0x0454D2C5), UINT32_C(0x0D788CF4), + UINT32_C(0x03DCA054), UINT32_C(0x02A7B716), UINT32_C(0x05C66166), + UINT32_C(0x01AC2B32), UINT32_C(0x0D0C246B), UINT32_C(0x02E38AD2), + UINT32_C(0x039CDC10) } }, + } +}; + +/*- + * Q := 2P, both projective, Q and P same pointers OK + * Autogenerated: op3/dbl_proj.op3 + * https://eprint.iacr.org/2015/1060 Alg 6 + * ASSERT: a = -3 + */ +static void +point_double(pt_prj_t *Q, const pt_prj_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X = P->X; + const limb_t *Y = P->Y; + const limb_t *Z = P->Z; + limb_t *X3 = Q->X; + limb_t *Y3 = Q->Y; + limb_t *Z3 = Q->Z; + + /* the curve arith formula */ + fiat_secp521r1_carry_square(t0, X); + fiat_secp521r1_carry_square(t1, Y); + fiat_secp521r1_carry_square(t2, Z); + fiat_secp521r1_carry_mul(t3, X, Y); + fiat_secp521r1_carry_add(t3, t3, t3); + fiat_secp521r1_carry_mul(t4, Y, Z); + fiat_secp521r1_carry_mul(Z3, X, Z); + fiat_secp521r1_carry_add(Z3, Z3, Z3); + fiat_secp521r1_carry_mul(Y3, b, t2); + fiat_secp521r1_carry_sub(Y3, Y3, Z3); + fiat_secp521r1_carry_add(X3, Y3, Y3); + fiat_secp521r1_carry_add(Y3, X3, Y3); + fiat_secp521r1_carry_sub(X3, t1, Y3); + fiat_secp521r1_carry_add(Y3, t1, Y3); + fiat_secp521r1_carry_mul(Y3, X3, Y3); + fiat_secp521r1_carry_mul(X3, X3, t3); + fiat_secp521r1_carry_add(t3, t2, t2); + fiat_secp521r1_carry_add(t2, t2, t3); + fiat_secp521r1_carry_mul(Z3, b, Z3); + fiat_secp521r1_carry_sub(Z3, Z3, t2); + fiat_secp521r1_carry_sub(Z3, Z3, t0); + fiat_secp521r1_carry_add(t3, Z3, Z3); + fiat_secp521r1_carry_add(Z3, Z3, t3); + fiat_secp521r1_carry_add(t3, t0, t0); + fiat_secp521r1_carry_add(t0, t3, t0); + fiat_secp521r1_carry_sub(t0, t0, t2); + fiat_secp521r1_carry_mul(t0, t0, Z3); + fiat_secp521r1_carry_add(Y3, Y3, t0); + fiat_secp521r1_carry_add(t0, t4, t4); + fiat_secp521r1_carry_mul(Z3, t0, Z3); + fiat_secp521r1_carry_sub(X3, X3, Z3); + fiat_secp521r1_carry_mul(Z3, t0, t1); + fiat_secp521r1_carry_add(Z3, Z3, Z3); + fiat_secp521r1_carry_add(Z3, Z3, Z3); +} + +/*- + * out1 = (arg1 == 0) ? 0 : nz + * NB: this is not a "mod p equiv" 0, but literal 0 + * NB: this is not a real Fiat function, just named that way for consistency. + */ +static void +fiat_secp521r1_nonzero(limb_t *out1, const fe_t arg1) +{ + limb_t x1 = 0; + int i; + + for (i = 0; i < LIMB_CNT; i++) + x1 |= arg1[i]; + *out1 = x1; +} + +/*- + * R := Q + P where R and Q are projective, P affine. + * R and Q same pointers OK + * R and P same pointers not OK + * Autogenerated: op3/add_mixed.op3 + * https://eprint.iacr.org/2015/1060 Alg 5 + * ASSERT: a = -3 + */ +static void +point_add_mixed(pt_prj_t *R, const pt_prj_t *Q, const pt_aff_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X1 = Q->X; + const limb_t *Y1 = Q->Y; + const limb_t *Z1 = Q->Z; + const limb_t *X2 = P->X; + const limb_t *Y2 = P->Y; + fe_t X3; + fe_t Y3; + fe_t Z3; + limb_t nz; + + /* check P for affine inf */ + fiat_secp521r1_nonzero(&nz, P->Y); + + /* the curve arith formula */ + fiat_secp521r1_carry_mul(t0, X1, X2); + fiat_secp521r1_carry_mul(t1, Y1, Y2); + fiat_secp521r1_carry_add(t3, X2, Y2); + fiat_secp521r1_carry_add(t4, X1, Y1); + fiat_secp521r1_carry_mul(t3, t3, t4); + fiat_secp521r1_carry_add(t4, t0, t1); + fiat_secp521r1_carry_sub(t3, t3, t4); + fiat_secp521r1_carry_mul(t4, Y2, Z1); + fiat_secp521r1_carry_add(t4, t4, Y1); + fiat_secp521r1_carry_mul(Y3, X2, Z1); + fiat_secp521r1_carry_add(Y3, Y3, X1); + fiat_secp521r1_carry_mul(Z3, b, Z1); + fiat_secp521r1_carry_sub(X3, Y3, Z3); + fiat_secp521r1_carry_add(Z3, X3, X3); + fiat_secp521r1_carry_add(X3, X3, Z3); + fiat_secp521r1_carry_sub(Z3, t1, X3); + fiat_secp521r1_carry_add(X3, t1, X3); + fiat_secp521r1_carry_mul(Y3, b, Y3); + fiat_secp521r1_carry_add(t1, Z1, Z1); + fiat_secp521r1_carry_add(t2, t1, Z1); + fiat_secp521r1_carry_sub(Y3, Y3, t2); + fiat_secp521r1_carry_sub(Y3, Y3, t0); + fiat_secp521r1_carry_add(t1, Y3, Y3); + fiat_secp521r1_carry_add(Y3, t1, Y3); + fiat_secp521r1_carry_add(t1, t0, t0); + fiat_secp521r1_carry_add(t0, t1, t0); + fiat_secp521r1_carry_sub(t0, t0, t2); + fiat_secp521r1_carry_mul(t1, t4, Y3); + fiat_secp521r1_carry_mul(t2, t0, Y3); + fiat_secp521r1_carry_mul(Y3, X3, Z3); + fiat_secp521r1_carry_add(Y3, Y3, t2); + fiat_secp521r1_carry_mul(X3, t3, X3); + fiat_secp521r1_carry_sub(X3, X3, t1); + fiat_secp521r1_carry_mul(Z3, t4, Z3); + fiat_secp521r1_carry_mul(t1, t3, t0); + fiat_secp521r1_carry_add(Z3, Z3, t1); + + /* if P is inf, throw all that away and take Q */ + fiat_secp521r1_selectznz(R->X, nz, Q->X, X3); + fiat_secp521r1_selectznz(R->Y, nz, Q->Y, Y3); + fiat_secp521r1_selectznz(R->Z, nz, Q->Z, Z3); +} + +/*- + * R := Q + P all projective. + * R and Q same pointers OK + * R and P same pointers not OK + * Autogenerated: op3/add_proj.op3 + * https://eprint.iacr.org/2015/1060 Alg 4 + * ASSERT: a = -3 + */ +static void +point_add_proj(pt_prj_t *R, const pt_prj_t *Q, const pt_prj_t *P) +{ + /* temporary variables */ + fe_t t0, t1, t2, t3, t4, t5; + /* constants */ + const limb_t *b = const_b; + /* set pointers for legacy curve arith */ + const limb_t *X1 = Q->X; + const limb_t *Y1 = Q->Y; + const limb_t *Z1 = Q->Z; + const limb_t *X2 = P->X; + const limb_t *Y2 = P->Y; + const limb_t *Z2 = P->Z; + limb_t *X3 = R->X; + limb_t *Y3 = R->Y; + limb_t *Z3 = R->Z; + + /* the curve arith formula */ + fiat_secp521r1_carry_mul(t0, X1, X2); + fiat_secp521r1_carry_mul(t1, Y1, Y2); + fiat_secp521r1_carry_mul(t2, Z1, Z2); + fiat_secp521r1_carry_add(t3, X1, Y1); + fiat_secp521r1_carry_add(t4, X2, Y2); + fiat_secp521r1_carry_mul(t3, t3, t4); + fiat_secp521r1_carry_add(t4, t0, t1); + fiat_secp521r1_carry_sub(t3, t3, t4); + fiat_secp521r1_carry_add(t4, Y1, Z1); + fiat_secp521r1_carry_add(t5, Y2, Z2); + fiat_secp521r1_carry_mul(t4, t4, t5); + fiat_secp521r1_carry_add(t5, t1, t2); + fiat_secp521r1_carry_sub(t4, t4, t5); + fiat_secp521r1_carry_add(X3, X1, Z1); + fiat_secp521r1_carry_add(Y3, X2, Z2); + fiat_secp521r1_carry_mul(X3, X3, Y3); + fiat_secp521r1_carry_add(Y3, t0, t2); + fiat_secp521r1_carry_sub(Y3, X3, Y3); + fiat_secp521r1_carry_mul(Z3, b, t2); + fiat_secp521r1_carry_sub(X3, Y3, Z3); + fiat_secp521r1_carry_add(Z3, X3, X3); + fiat_secp521r1_carry_add(X3, X3, Z3); + fiat_secp521r1_carry_sub(Z3, t1, X3); + fiat_secp521r1_carry_add(X3, t1, X3); + fiat_secp521r1_carry_mul(Y3, b, Y3); + fiat_secp521r1_carry_add(t1, t2, t2); + fiat_secp521r1_carry_add(t2, t1, t2); + fiat_secp521r1_carry_sub(Y3, Y3, t2); + fiat_secp521r1_carry_sub(Y3, Y3, t0); + fiat_secp521r1_carry_add(t1, Y3, Y3); + fiat_secp521r1_carry_add(Y3, t1, Y3); + fiat_secp521r1_carry_add(t1, t0, t0); + fiat_secp521r1_carry_add(t0, t1, t0); + fiat_secp521r1_carry_sub(t0, t0, t2); + fiat_secp521r1_carry_mul(t1, t4, Y3); + fiat_secp521r1_carry_mul(t2, t0, Y3); + fiat_secp521r1_carry_mul(Y3, X3, Z3); + fiat_secp521r1_carry_add(Y3, Y3, t2); + fiat_secp521r1_carry_mul(X3, t3, X3); + fiat_secp521r1_carry_sub(X3, X3, t1); + fiat_secp521r1_carry_mul(Z3, t4, Z3); + fiat_secp521r1_carry_mul(t1, t3, t0); + fiat_secp521r1_carry_add(Z3, Z3, t1); +} + +/* constants */ +#define RADIX 5 +#define DRADIX (1 << RADIX) +#define DRADIX_WNAF ((DRADIX) << 1) + +/*- + * precomp for wnaf scalar multiplication: + * precomp[0] = 1P + * precomp[1] = 3P + * precomp[2] = 5P + * precomp[3] = 7P + * precomp[4] = 9P + * ... + */ +static void +precomp_wnaf(pt_prj_t precomp[DRADIX / 2], const pt_aff_t *P) +{ + int i; + + fe_copy(precomp[0].X, P->X); + fe_copy(precomp[0].Y, P->Y); + fe_copy(precomp[0].Z, const_one); + point_double(&precomp[DRADIX / 2 - 1], &precomp[0]); + + for (i = 1; i < DRADIX / 2; i++) + point_add_proj(&precomp[i], &precomp[DRADIX / 2 - 1], &precomp[i - 1]); +} + +/* fetch a scalar bit */ +static int +scalar_get_bit(const unsigned char in[66], int idx) +{ + int widx, rshift; + + widx = idx >> 3; + rshift = idx & 0x7; + + if (idx < 0 || widx >= 66) + return 0; + + return (in[widx] >> rshift) & 0x1; +} + +/*- + * Compute "regular" wnaf representation of a scalar. + * See "Exponent Recoding and Regular Exponentiation Algorithms", + * Tunstall et al., AfricaCrypt 2009, Alg 6. + * It forces an odd scalar and outputs digits in + * {\pm 1, \pm 3, \pm 5, \pm 7, \pm 9, ...} + * i.e. signed odd digits with _no zeroes_ -- that makes it "regular". + */ +static void +scalar_rwnaf(int8_t out[106], const unsigned char in[66]) +{ + int i; + int8_t window, d; + + window = (in[0] & (DRADIX_WNAF - 1)) | 1; + for (i = 0; i < 105; i++) { + d = (window & (DRADIX_WNAF - 1)) - DRADIX; + out[i] = d; + window = (window - d) >> RADIX; + window += scalar_get_bit(in, (i + 1) * RADIX + 1) << 1; + window += scalar_get_bit(in, (i + 1) * RADIX + 2) << 2; + window += scalar_get_bit(in, (i + 1) * RADIX + 3) << 3; + window += scalar_get_bit(in, (i + 1) * RADIX + 4) << 4; + window += scalar_get_bit(in, (i + 1) * RADIX + 5) << 5; + } + out[i] = window; +} + +/*- + * Compute "textbook" wnaf representation of a scalar. + * NB: not constant time + */ +static void +scalar_wnaf(int8_t out[529], const unsigned char in[66]) +{ + int i; + int8_t window, d; + + window = in[0] & (DRADIX_WNAF - 1); + for (i = 0; i < 529; i++) { + d = 0; + if ((window & 1) && ((d = window & (DRADIX_WNAF - 1)) & DRADIX)) + d -= DRADIX_WNAF; + out[i] = d; + window = (window - d) >> 1; + window += scalar_get_bit(in, i + 1 + RADIX) << RADIX; + } +} + +/*- + * Simulateous scalar multiplication: interleaved "textbook" wnaf. + * NB: not constant time + */ +static void +var_smul_wnaf_two(pt_aff_t *out, const unsigned char a[66], + const unsigned char b[66], const pt_aff_t *P) +{ + int i, d, is_neg, is_inf = 1, flipped = 0; + int8_t anaf[529] = { 0 }; + int8_t bnaf[529] = { 0 }; + pt_prj_t Q; + pt_prj_t precomp[DRADIX / 2]; + + precomp_wnaf(precomp, P); + scalar_wnaf(anaf, a); + scalar_wnaf(bnaf, b); + + for (i = 528; i >= 0; i--) { + if (!is_inf) + point_double(&Q, &Q); + if ((d = bnaf[i])) { + if ((is_neg = d < 0) != flipped) { + fiat_secp521r1_opp(Q.Y, Q.Y); + flipped ^= 1; + } + d = (is_neg) ? (-d - 1) >> 1 : (d - 1) >> 1; + if (is_inf) { + /* initialize accumulator */ + fe_copy(Q.X, &precomp[d].X); + fe_copy(Q.Y, &precomp[d].Y); + fe_copy(Q.Z, &precomp[d].Z); + is_inf = 0; + } else + point_add_proj(&Q, &Q, &precomp[d]); + } + if ((d = anaf[i])) { + if ((is_neg = d < 0) != flipped) { + fiat_secp521r1_opp(Q.Y, Q.Y); + flipped ^= 1; + } + d = (is_neg) ? (-d - 1) >> 1 : (d - 1) >> 1; + if (is_inf) { + /* initialize accumulator */ + fe_copy(Q.X, &lut_cmb[0][d].X); + fe_copy(Q.Y, &lut_cmb[0][d].Y); + fe_copy(Q.Z, const_one); + is_inf = 0; + } else + point_add_mixed(&Q, &Q, &lut_cmb[0][d]); + } + } + + if (is_inf) { + /* initialize accumulator to inf: all-zero scalars */ + fe_set_zero(Q.X); + fe_copy(Q.Y, const_one); + fe_set_zero(Q.Z); + } + + if (flipped) { + /* correct sign */ + fiat_secp521r1_opp(Q.Y, Q.Y); + } + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp521r1_inv(Q.Z, Q.Z); + fiat_secp521r1_carry_mul(out->X, Q.X, Q.Z); + fiat_secp521r1_carry_mul(out->Y, Q.Y, Q.Z); +} + +/*- + * Variable point scalar multiplication with "regular" wnaf. + */ +static void +var_smul_rwnaf(pt_aff_t *out, const unsigned char scalar[66], + const pt_aff_t *P) +{ + int i, j, d, diff, is_neg; + int8_t rnaf[106] = { 0 }; + pt_prj_t Q, lut; + pt_prj_t precomp[DRADIX / 2]; + + precomp_wnaf(precomp, P); + scalar_rwnaf(rnaf, scalar); + +#if defined(_MSC_VER) +/* result still unsigned: yes we know */ +#pragma warning(push) +#pragma warning(disable : 4146) +#endif + + /* initialize accumulator to high digit */ + d = (rnaf[105] - 1) >> 1; + for (j = 0; j < DRADIX / 2; j++) { + diff = (1 - (-(d ^ j) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp521r1_selectznz(Q.X, diff, Q.X, precomp[j].X); + fiat_secp521r1_selectznz(Q.Y, diff, Q.Y, precomp[j].Y); + fiat_secp521r1_selectznz(Q.Z, diff, Q.Z, precomp[j].Z); + } + + for (i = 104; i >= 0; i--) { + for (j = 0; j < RADIX; j++) + point_double(&Q, &Q); + d = rnaf[i]; + /* is_neg = (d < 0) ? 1 : 0 */ + is_neg = (d >> (8 * sizeof(int) - 1)) & 1; + /* d = abs(d) */ + d = (d ^ -is_neg) + is_neg; + d = (d - 1) >> 1; + for (j = 0; j < DRADIX / 2; j++) { + diff = (1 - (-(d ^ j) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp521r1_selectznz(lut.X, diff, lut.X, precomp[j].X); + fiat_secp521r1_selectznz(lut.Y, diff, lut.Y, precomp[j].Y); + fiat_secp521r1_selectznz(lut.Z, diff, lut.Z, precomp[j].Z); + } + /* negate lut point if digit is negative */ + fiat_secp521r1_opp(out->Y, lut.Y); + fiat_secp521r1_selectznz(lut.Y, is_neg, lut.Y, out->Y); + point_add_proj(&Q, &Q, &lut); + } + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + + /* conditionally subtract P if the scalar was even */ + fe_copy(lut.X, precomp[0].X); + fiat_secp521r1_opp(lut.Y, precomp[0].Y); + fe_copy(lut.Z, precomp[0].Z); + point_add_proj(&lut, &lut, &Q); + fiat_secp521r1_selectznz(Q.X, scalar[0] & 1, lut.X, Q.X); + fiat_secp521r1_selectznz(Q.Y, scalar[0] & 1, lut.Y, Q.Y); + fiat_secp521r1_selectznz(Q.Z, scalar[0] & 1, lut.Z, Q.Z); + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp521r1_inv(Q.Z, Q.Z); + fiat_secp521r1_carry_mul(out->X, Q.X, Q.Z); + fiat_secp521r1_carry_mul(out->Y, Q.Y, Q.Z); +} + +/*- + * Fixed scalar multiplication: comb with interleaving. + */ +static void +fixed_smul_cmb(pt_aff_t *out, const unsigned char scalar[66]) +{ + int i, j, k, d, diff, is_neg = 0; + int8_t rnaf[106] = { 0 }; + pt_prj_t Q, R; + pt_aff_t lut; + + scalar_rwnaf(rnaf, scalar); + + /* initalize accumulator to inf */ + fe_set_zero(Q.X); + fe_copy(Q.Y, const_one); + fe_set_zero(Q.Z); + +#if defined(_MSC_VER) +/* result still unsigned: yes we know */ +#pragma warning(push) +#pragma warning(disable : 4146) +#endif + + for (i = 8; i >= 0; i--) { + for (j = 0; i != 8 && j < RADIX; j++) + point_double(&Q, &Q); + for (j = 0; j < 13; j++) { + if (j * 9 + i > 105) + continue; + d = rnaf[j * 9 + i]; + /* is_neg = (d < 0) ? 1 : 0 */ + is_neg = (d >> (8 * sizeof(int) - 1)) & 1; + /* d = abs(d) */ + d = (d ^ -is_neg) + is_neg; + d = (d - 1) >> 1; + for (k = 0; k < DRADIX / 2; k++) { + diff = (1 - (-(d ^ k) >> (8 * sizeof(int) - 1))) & 1; + fiat_secp521r1_selectznz(lut.X, diff, lut.X, lut_cmb[j][k].X); + fiat_secp521r1_selectznz(lut.Y, diff, lut.Y, lut_cmb[j][k].Y); + } + /* negate lut point if digit is negative */ + fiat_secp521r1_opp(out->Y, lut.Y); + fiat_secp521r1_selectznz(lut.Y, is_neg, lut.Y, out->Y); + point_add_mixed(&Q, &Q, &lut); + } + } + +#if defined(_MSC_VER) +#pragma warning(pop) +#endif + + /* conditionally subtract P if the scalar was even */ + fe_copy(lut.X, lut_cmb[0][0].X); + fiat_secp521r1_opp(lut.Y, lut_cmb[0][0].Y); + point_add_mixed(&R, &Q, &lut); + fiat_secp521r1_selectznz(Q.X, scalar[0] & 1, R.X, Q.X); + fiat_secp521r1_selectznz(Q.Y, scalar[0] & 1, R.Y, Q.Y); + fiat_secp521r1_selectznz(Q.Z, scalar[0] & 1, R.Z, Q.Z); + + /* convert to affine -- NB depends on coordinate system */ + fiat_secp521r1_inv(Q.Z, Q.Z); + fiat_secp521r1_carry_mul(out->X, Q.X, Q.Z); + fiat_secp521r1_carry_mul(out->Y, Q.Y, Q.Z); +} + +static void +point_mul_two(unsigned char outx[66], unsigned char outy[66], + const unsigned char a[66], const unsigned char b[66], + const unsigned char inx[66], + const unsigned char iny[66]) +{ + pt_aff_t P; + + fiat_secp521r1_from_bytes(P.X, inx); + fiat_secp521r1_from_bytes(P.Y, iny); + /* simultaneous scalar multiplication */ + var_smul_wnaf_two(&P, a, b, &P); + + fiat_secp521r1_to_bytes(outx, P.X); + fiat_secp521r1_to_bytes(outy, P.Y); +} + +static void +point_mul_g(unsigned char outx[66], unsigned char outy[66], + const unsigned char scalar[66]) +{ + pt_aff_t P; + + /* fixed scmul function */ + fixed_smul_cmb(&P, scalar); + fiat_secp521r1_to_bytes(outx, P.X); + fiat_secp521r1_to_bytes(outy, P.Y); +} + +static void +point_mul(unsigned char outx[66], unsigned char outy[66], + const unsigned char scalar[66], + const unsigned char inx[66], + const unsigned char iny[66]) +{ + pt_aff_t P; + + fiat_secp521r1_from_bytes(P.X, inx); + fiat_secp521r1_from_bytes(P.Y, iny); + /* var scmul function */ + var_smul_rwnaf(&P, scalar, &P); + fiat_secp521r1_to_bytes(outx, P.X); + fiat_secp521r1_to_bytes(outy, P.Y); +} + +#undef RADIX +#include "ecp.h" +#include "mplogic.h" + +/*- + * reverse bytes -- total hack + */ +#define MP_BE2LE(a) \ + do { \ + unsigned char z_bswap; \ + z_bswap = a[0]; \ + a[0] = a[65]; \ + a[65] = z_bswap; \ + z_bswap = a[1]; \ + a[1] = a[64]; \ + a[64] = z_bswap; \ + z_bswap = a[2]; \ + a[2] = a[63]; \ + a[63] = z_bswap; \ + z_bswap = a[3]; \ + a[3] = a[62]; \ + a[62] = z_bswap; \ + z_bswap = a[4]; \ + a[4] = a[61]; \ + a[61] = z_bswap; \ + z_bswap = a[5]; \ + a[5] = a[60]; \ + a[60] = z_bswap; \ + z_bswap = a[6]; \ + a[6] = a[59]; \ + a[59] = z_bswap; \ + z_bswap = a[7]; \ + a[7] = a[58]; \ + a[58] = z_bswap; \ + z_bswap = a[8]; \ + a[8] = a[57]; \ + a[57] = z_bswap; \ + z_bswap = a[9]; \ + a[9] = a[56]; \ + a[56] = z_bswap; \ + z_bswap = a[10]; \ + a[10] = a[55]; \ + a[55] = z_bswap; \ + z_bswap = a[11]; \ + a[11] = a[54]; \ + a[54] = z_bswap; \ + z_bswap = a[12]; \ + a[12] = a[53]; \ + a[53] = z_bswap; \ + z_bswap = a[13]; \ + a[13] = a[52]; \ + a[52] = z_bswap; \ + z_bswap = a[14]; \ + a[14] = a[51]; \ + a[51] = z_bswap; \ + z_bswap = a[15]; \ + a[15] = a[50]; \ + a[50] = z_bswap; \ + z_bswap = a[16]; \ + a[16] = a[49]; \ + a[49] = z_bswap; \ + z_bswap = a[17]; \ + a[17] = a[48]; \ + a[48] = z_bswap; \ + z_bswap = a[18]; \ + a[18] = a[47]; \ + a[47] = z_bswap; \ + z_bswap = a[19]; \ + a[19] = a[46]; \ + a[46] = z_bswap; \ + z_bswap = a[20]; \ + a[20] = a[45]; \ + a[45] = z_bswap; \ + z_bswap = a[21]; \ + a[21] = a[44]; \ + a[44] = z_bswap; \ + z_bswap = a[22]; \ + a[22] = a[43]; \ + a[43] = z_bswap; \ + z_bswap = a[23]; \ + a[23] = a[42]; \ + a[42] = z_bswap; \ + z_bswap = a[24]; \ + a[24] = a[41]; \ + a[41] = z_bswap; \ + z_bswap = a[25]; \ + a[25] = a[40]; \ + a[40] = z_bswap; \ + z_bswap = a[26]; \ + a[26] = a[39]; \ + a[39] = z_bswap; \ + z_bswap = a[27]; \ + a[27] = a[38]; \ + a[38] = z_bswap; \ + z_bswap = a[28]; \ + a[28] = a[37]; \ + a[37] = z_bswap; \ + z_bswap = a[29]; \ + a[29] = a[36]; \ + a[36] = z_bswap; \ + z_bswap = a[30]; \ + a[30] = a[35]; \ + a[35] = z_bswap; \ + z_bswap = a[31]; \ + a[31] = a[34]; \ + a[34] = z_bswap; \ + z_bswap = a[32]; \ + a[32] = a[33]; \ + a[33] = z_bswap; \ + } while (0) + +static mp_err +point_mul_g_secp521r1(const mp_int *n, mp_int *out_x, + mp_int *out_y, const ECGroup *group) +{ + unsigned char b_x[66]; + unsigned char b_y[66]; + unsigned char b_n[66]; + mp_err res; + + ARGCHK(n != NULL && out_x != NULL && out_y != NULL, MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n) > 521 || mp_cmp_z(n) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n, b_n, 66)); + MP_BE2LE(b_n); + point_mul_g(b_x, b_y, b_n); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 66)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 66)); + +CLEANUP: + return res; +} + +static mp_err +point_mul_secp521r1(const mp_int *n, const mp_int *in_x, + const mp_int *in_y, mp_int *out_x, + mp_int *out_y, const ECGroup *group) +{ + unsigned char b_x[66]; + unsigned char b_y[66]; + unsigned char b_n[66]; + mp_err res; + + ARGCHK(n != NULL && in_x != NULL && in_y != NULL && out_x != NULL && + out_y != NULL, + MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n) > 521 || mp_cmp_z(n) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n, b_n, 66)); + MP_CHECKOK(mp_to_fixlen_octets(in_x, b_x, 66)); + MP_CHECKOK(mp_to_fixlen_octets(in_y, b_y, 66)); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_BE2LE(b_n); + point_mul(b_x, b_y, b_n, b_x, b_y); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 66)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 66)); + +CLEANUP: + return res; +} + +static mp_err +point_mul_two_secp521r1(const mp_int *n1, const mp_int *n2, + const mp_int *in_x, const mp_int *in_y, + mp_int *out_x, mp_int *out_y, + const ECGroup *group) +{ + unsigned char b_x[66]; + unsigned char b_y[66]; + unsigned char b_n1[66]; + unsigned char b_n2[66]; + mp_err res; + + /* If n2 == NULL, this is just a base-point multiplication. */ + if (n2 == NULL) + return point_mul_g_secp521r1(n1, out_x, out_y, group); + + /* If n1 == NULL, this is just an arbitary-point multiplication. */ + if (n1 == NULL) + return point_mul_secp521r1(n2, in_x, in_y, out_x, out_y, group); + + ARGCHK(in_x != NULL && in_y != NULL && out_x != NULL && out_y != NULL, + MP_BADARG); + + /* fail on out of range scalars */ + if (mpl_significant_bits(n1) > 521 || mp_cmp_z(n1) != 1 || + mpl_significant_bits(n2) > 521 || mp_cmp_z(n2) != 1) + return MP_RANGE; + + MP_CHECKOK(mp_to_fixlen_octets(n1, b_n1, 66)); + MP_CHECKOK(mp_to_fixlen_octets(n2, b_n2, 66)); + MP_CHECKOK(mp_to_fixlen_octets(in_x, b_x, 66)); + MP_CHECKOK(mp_to_fixlen_octets(in_y, b_y, 66)); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_BE2LE(b_n1); + MP_BE2LE(b_n2); + point_mul_two(b_x, b_y, b_n1, b_n2, b_x, b_y); + MP_BE2LE(b_x); + MP_BE2LE(b_y); + MP_CHECKOK(mp_read_unsigned_octets(out_x, b_x, 66)); + MP_CHECKOK(mp_read_unsigned_octets(out_y, b_y, 66)); + +CLEANUP: + return res; +} + +mp_err +ec_group_set_secp521r1(ECGroup *group, ECCurveName name) +{ + if (name == ECCurve_NIST_P521) { + group->base_point_mul = &point_mul_g_secp521r1; + group->point_mul = &point_mul_secp521r1; + group->points_mul = &point_mul_two_secp521r1; + } + return MP_OKAY; +} + +#endif /* __SIZEOF_INT128__ */ diff --git a/libs/nss/src/lib/freebl/fipsfreebl.c b/libs/nss/src/lib/freebl/fipsfreebl.c index b0c2debd0..23f665a1b 100644 --- a/libs/nss/src/lib/freebl/fipsfreebl.c +++ b/libs/nss/src/lib/freebl/fipsfreebl.c @@ -17,6 +17,7 @@ #include "prtypes.h" #include "secitem.h" #include "pkcs11t.h" +#include "cmac.h" #include "ec.h" /* Required for EC */ @@ -99,6 +100,7 @@ BOOL WINAPI DllMain( #define FIPS_AES_BLOCK_SIZE 16 /* 128-bits */ #define FIPS_AES_ENCRYPT_LENGTH 16 /* 128-bits */ #define FIPS_AES_DECRYPT_LENGTH 16 /* 128-bits */ +#define FIPS_AES_CMAC_LENGTH 16 /* 128-bits */ #define FIPS_AES_128_KEY_SIZE 16 /* 128-bits */ #define FIPS_AES_192_KEY_SIZE 24 /* 192-bits */ #define FIPS_AES_256_KEY_SIZE 32 /* 256-bits */ @@ -310,6 +312,11 @@ freebl_fips_AES_PowerUpSelfTest(int aes_key_size) 0x8b, 0xde, 0xbf, 0x16, 0x5e, 0x57, 0x6b, 0x4f }; + static const PRUint8 aes_cmac128_known_ciphertext[] = { + 0x54, 0x11, 0xe2, 0x57, 0xbd, 0x2a, 0xdf, 0x9d, + 0x1a, 0x89, 0x72, 0x80, 0x84, 0x4c, 0x7e, 0x93 + }; + /* AES Known Ciphertext (192-bit key). */ static const PRUint8 aes_ecb192_known_ciphertext[] = { 0xa0, 0x18, 0x62, 0xed, 0x88, 0x19, 0xcb, 0x62, @@ -328,6 +335,11 @@ freebl_fips_AES_PowerUpSelfTest(int aes_key_size) 0x90, 0x2e, 0x44, 0xbb, 0x52, 0x03, 0xe9, 0x07 }; + static const PRUint8 aes_cmac192_known_ciphertext[] = { + 0x0e, 0x07, 0x99, 0x1e, 0xf6, 0xee, 0xfa, 0x2c, + 0x1b, 0xfc, 0xce, 0x94, 0x92, 0x2d, 0xf1, 0xab + }; + /* AES Known Ciphertext (256-bit key). */ static const PRUint8 aes_ecb256_known_ciphertext[] = { 0xdb, 0xa6, 0x52, 0x01, 0x8a, 0x70, 0xae, 0x66, @@ -346,6 +358,12 @@ freebl_fips_AES_PowerUpSelfTest(int aes_key_size) 0xf4, 0xb0, 0xc1, 0x8c, 0x86, 0x51, 0xf5, 0xa1 }; + static const PRUint8 aes_cmac256_known_ciphertext[] = { + 0xc1, 0x26, 0x69, 0x32, 0x51, 0x13, 0x65, 0xac, + 0x71, 0x23, 0xe4, 0xe7, 0xb9, 0x0c, 0x88, 0x9f + + }; + const PRUint8 *aes_ecb_known_ciphertext = (aes_key_size == FIPS_AES_128_KEY_SIZE) ? aes_ecb128_known_ciphertext : (aes_key_size == FIPS_AES_192_KEY_SIZE) ? aes_ecb192_known_ciphertext : aes_ecb256_known_ciphertext; @@ -355,10 +373,14 @@ freebl_fips_AES_PowerUpSelfTest(int aes_key_size) const PRUint8 *aes_gcm_known_ciphertext = (aes_key_size == FIPS_AES_128_KEY_SIZE) ? aes_gcm128_known_ciphertext : (aes_key_size == FIPS_AES_192_KEY_SIZE) ? aes_gcm192_known_ciphertext : aes_gcm256_known_ciphertext; + const PRUint8 *aes_cmac_known_ciphertext = + (aes_key_size == FIPS_AES_128_KEY_SIZE) ? aes_cmac128_known_ciphertext : (aes_key_size == FIPS_AES_192_KEY_SIZE) ? aes_cmac192_known_ciphertext : aes_cmac256_known_ciphertext; + /* AES variables. */ PRUint8 aes_computed_ciphertext[FIPS_AES_ENCRYPT_LENGTH * 2]; PRUint8 aes_computed_plaintext[FIPS_AES_DECRYPT_LENGTH * 2]; AESContext *aes_context; + CMACContext *cmac_context; unsigned int aes_bytes_encrypted; unsigned int aes_bytes_decrypted; CK_NSS_GCM_PARAMS gcmParams; @@ -547,6 +569,44 @@ freebl_fips_AES_PowerUpSelfTest(int aes_key_size) return (SECFailure); } + /******************************************************/ + /* AES-CMAC Known Answer Encryption Test. */ + /******************************************************/ + cmac_context = CMAC_Create(CMAC_AES, aes_known_key, aes_key_size); + + if (cmac_context == NULL) { + PORT_SetError(SEC_ERROR_NO_MEMORY); + return (SECFailure); + } + + aes_status = CMAC_Begin(cmac_context); + if (aes_status != SECSuccess) { + CMAC_Destroy(cmac_context, PR_TRUE); + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return (SECFailure); + } + + aes_status = CMAC_Update(cmac_context, aes_known_plaintext, + FIPS_AES_DECRYPT_LENGTH); + if (aes_status != SECSuccess) { + CMAC_Destroy(cmac_context, PR_TRUE); + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return (SECFailure); + } + + aes_status = CMAC_Finish(cmac_context, aes_computed_ciphertext, + &aes_bytes_encrypted, FIPS_AES_CMAC_LENGTH); + + CMAC_Destroy(cmac_context, PR_TRUE); + + if ((aes_status != SECSuccess) || + (aes_bytes_encrypted != FIPS_AES_CMAC_LENGTH) || + (PORT_Memcmp(aes_computed_ciphertext, aes_cmac_known_ciphertext, + FIPS_AES_CMAC_LENGTH) != 0)) { + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return (SECFailure); + } + return (SECSuccess); } @@ -743,6 +803,170 @@ freebl_fips_HMAC_PowerUpSelfTest(void) return (SECSuccess); } +SECStatus +freebl_fips_TLS_PowerUpSelfTest(void) +{ + static const PRUint8 TLS_known_secret_key[] = { + "Firefox and ThunderBird are awesome!" + }; + + static const PRUint8 TLS_known_secret_key_length = sizeof TLS_known_secret_key; + + /* known tls prf with sha1/md5 */ + static const PRUint8 known_TLS_PRF[] = { + 0x87, 0x4c, 0xc0, 0xc5, 0x15, 0x14, 0x2b, 0xdc, + 0x73, 0x48, 0x9e, 0x88, 0x9d, 0xf5, 0x83, 0x2f, + 0x2d, 0x66, 0x1e, 0x78, 0x6c, 0x54, 0x78, 0x29, + 0xb9, 0xa4, 0x4c, 0x90, 0x5e, 0xa2, 0xe6, 0x5c, + 0xf1, 0x4f, 0xb5, 0x95, 0xa5, 0x54, 0xc0, 0x9f, + 0x84, 0x47, 0xb4, 0x4c, 0xda, 0xae, 0x19, 0x29, + 0x2b, 0x91, 0x2a, 0x81, 0x9d, 0x3a, 0x30, 0x40, + 0xc5, 0xdf, 0xbb, 0xfa, 0xd8, 0x4c, 0xbc, 0x18 + }; + + /* known SHA256 tls mac */ + static const PRUint8 known_TLS_SHA256[] = { + 0x66, 0xd6, 0x94, 0xd4, 0x0d, 0x32, 0x61, 0x38, + 0x26, 0xf6, 0x8b, 0xfe, 0x9e, 0xac, 0xa2, 0xf5, + 0x40, 0x52, 0x74, 0x3f, 0xbe, 0xb8, 0xca, 0x94, + 0xc3, 0x64, 0xd6, 0x02, 0xf5, 0x88, 0x98, 0x35, + 0x73, 0x9f, 0xce, 0xaa, 0x68, 0xe3, 0x7c, 0x93, + 0x30, 0x21, 0x45, 0xec, 0xe9, 0x8f, 0x1c, 0x7e, + 0xd1, 0x54, 0xf5, 0xbe, 0xff, 0xc8, 0xd7, 0x72, + 0x7f, 0x9c, 0x0c, 0x7f, 0xa9, 0xd3, 0x4a, 0xd2 + }; + +#ifdef NSS_FULL_POST + /* known SHA224 tls mac */ + static const PRUint8 known_TLS_SHA224[] = { + 0xd8, 0x68, 0x15, 0xff, 0xa1, 0xa2, 0x5e, 0x16, + 0xce, 0xb1, 0xfd, 0xbd, 0xda, 0x39, 0xbc, 0xa7, + 0x27, 0x32, 0x78, 0x94, 0x66, 0xf0, 0x84, 0xcf, + 0x46, 0xc0, 0x22, 0x76, 0xdc, 0x6b, 0x2e, 0xed, + 0x1d, 0x2d, 0xd2, 0x93, 0xfd, 0xae, 0xca, 0xf9, + 0xe0, 0x4c, 0x17, 0x23, 0x22, 0x5a, 0x73, 0x93, + 0x20, 0x0a, 0xbd, 0xa0, 0x72, 0xf8, 0x8b, 0x74, + 0xfb, 0xf1, 0xab, 0xb7, 0xe0, 0xec, 0x34, 0xc9 + }; + + /* known SHA384 tls mac */ + static const PRUint8 known_TLS_SHA384[] = { + 0xb2, 0xac, 0x06, 0x10, 0xad, 0x50, 0xd5, 0xdc, + 0xdb, 0x01, 0xea, 0xa6, 0x2d, 0x8a, 0x34, 0xb6, + 0xeb, 0x84, 0xbc, 0x37, 0xc9, 0x9f, 0xa1, 0x9c, + 0xd5, 0xbd, 0x4e, 0x66, 0x16, 0x24, 0xe5, 0x3d, + 0xce, 0x74, 0xe0, 0x30, 0x41, 0x5c, 0xdb, 0xb7, + 0x52, 0x1d, 0x2d, 0x4d, 0x9b, 0xbe, 0x6b, 0x86, + 0xda, 0x8a, 0xca, 0x73, 0x39, 0xb4, 0xc7, 0x8f, + 0x03, 0xb1, 0xf9, 0x7e, 0x65, 0xae, 0x17, 0x10 + }; + + /* known SHA512 tls mac */ + static const PRUint8 known_TLS_SHA512[] = { + 0x73, 0x21, 0x4f, 0x40, 0x81, 0x1e, 0x90, 0xa1, + 0x16, 0x40, 0x1e, 0x33, 0x69, 0xc5, 0x00, 0xc7, + 0xc4, 0x81, 0xa3, 0x4f, 0xa7, 0xcc, 0x4a, 0xeb, + 0x1a, 0x66, 0x00, 0x82, 0x52, 0xe2, 0x2f, 0x69, + 0x14, 0x59, 0x05, 0x7c, 0xb0, 0x32, 0xce, 0xcc, + 0xb7, 0xc9, 0xab, 0x0f, 0x73, 0x00, 0xe5, 0x52, + 0x9d, 0x6b, 0x0e, 0x66, 0x4b, 0xb3, 0x0b, 0x0d, + 0x34, 0x53, 0x97, 0x13, 0x84, 0x18, 0x31, 0x7a + }; +#endif + + SECStatus status; + PRUint8 tls_computed[HASH_LENGTH_MAX]; + SECItem secret; + SECItem seed; + SECItem result; + const char *tls_label = "fips test label"; + + secret.data = (unsigned char *)TLS_known_secret_key; + secret.len = TLS_known_secret_key_length; + seed.data = (unsigned char *)known_hash_message; + seed.len = FIPS_KNOWN_HASH_MESSAGE_LENGTH; + result.data = tls_computed; + result.len = sizeof(tls_computed); + + /***************************************************/ + /* TLS 1.0 PRF Known Answer Test */ + /***************************************************/ + + status = TLS_PRF(&secret, tls_label, &seed, &result, PR_TRUE); + + if ((status != SECSuccess) || + (result.len != HASH_LENGTH_MAX) || + (PORT_Memcmp(tls_computed, known_TLS_PRF, + HASH_LENGTH_MAX) != 0)) { + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return (SECFailure); + } + + /***************************************************/ + /* TLS 1.2 SHA-256 Known Answer Test. */ + /***************************************************/ + + status = TLS_P_hash(HASH_AlgSHA256, &secret, tls_label, + &seed, &result, PR_TRUE); + + if ((status != SECSuccess) || + (result.len != HASH_LENGTH_MAX) || + (PORT_Memcmp(tls_computed, known_TLS_SHA256, + HASH_LENGTH_MAX) != 0)) { + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return (SECFailure); + } + +#ifdef NSS_FULL_POST + /***************************************************/ + /* TLS 1.2 SHA-224 Known Answer Test. */ + /***************************************************/ + + status = TLS_P_hash(HASH_AlgSHA224, &secret, tls_label, + &seed, &result, PR_TRUE); + + if ((status != SECSuccess) || + (result.len != HASH_LENGTH_MAX) || + (PORT_Memcmp(tls_computed, known_TLS_SHA224, + HASH_LENGTH_MAX) != 0)) { + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return (SECFailure); + } + + /***************************************************/ + /* TLS 1.2 SHA-384 Known Answer Test. */ + /***************************************************/ + + status = TLS_P_hash(HASH_AlgSHA384, &secret, tls_label, + &seed, &result, PR_TRUE); + + if ((status != SECSuccess) || + (result.len != HASH_LENGTH_MAX) || + (PORT_Memcmp(tls_computed, known_TLS_SHA384, + HASH_LENGTH_MAX) != 0)) { + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return (SECFailure); + } + + /***************************************************/ + /* TLS 1.2 SHA-512 Known Answer Test. */ + /***************************************************/ + + status = TLS_P_hash(HASH_AlgSHA512, &secret, tls_label, + &seed, &result, PR_TRUE); + + if ((status != SECSuccess) || + (result.len != HASH_LENGTH_MAX) || + (PORT_Memcmp(tls_computed, known_TLS_SHA512, + HASH_LENGTH_MAX) != 0)) { + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return (SECFailure); + } +#endif + + return (SECSuccess); +} + static SECStatus freebl_fips_SHA_PowerUpSelfTest(void) { @@ -1799,12 +2023,6 @@ freebl_fipsPowerUpSelfTest(unsigned int tests) if (rv != SECSuccess) return rv; - - /* RNG Power-Up SelfTest(s). */ - rv = freebl_fips_RNG_PowerUpSelfTest(); - - if (rv != SECSuccess) - return rv; } /* @@ -1812,6 +2030,12 @@ freebl_fipsPowerUpSelfTest(unsigned int tests) * standalone */ if (tests & DO_REST) { + /* RNG Power-Up SelfTest(s). */ + rv = freebl_fips_RNG_PowerUpSelfTest(); + + if (rv != SECSuccess) + return rv; + /* DES3 Power-Up SelfTest(s). */ rv = freebl_fips_DES3_PowerUpSelfTest(); @@ -1842,6 +2066,12 @@ freebl_fipsPowerUpSelfTest(unsigned int tests) if (rv != SECSuccess) return rv; + /* TLS PRF Power-Up SelfTest(s). */ + rv = freebl_fips_TLS_PowerUpSelfTest(); + + if (rv != SECSuccess) + return rv; + /* NOTE: RSA can only be tested in full freebl. It requires access to * the locking primitives */ /* RSA Power-Up SelfTest(s). */ diff --git a/libs/nss/src/lib/freebl/freebl.gyp b/libs/nss/src/lib/freebl/freebl.gyp index a5f5c8d0e..6578fac6a 100644 --- a/libs/nss/src/lib/freebl/freebl.gyp +++ b/libs/nss/src/lib/freebl/freebl.gyp @@ -129,7 +129,7 @@ '<(DEPTH)/exports.gyp:nss_exports' ], 'conditions': [ - [ 'target_arch=="x64" and disable_avx2==0', { + [ 'target_arch=="x64"', { 'cflags': [ '-mssse3', '-msse4.1', @@ -179,7 +179,7 @@ '-mfpu=neon' ], }], - [ 'target_arch=="x64" and disable_avx2==0', { + [ 'target_arch=="x64"', { 'sources': [ 'verified/Hacl_Poly1305_256.c', 'verified/Hacl_Chacha20_Vec256.c', @@ -329,6 +329,8 @@ 'type': 'static_library', 'sources': [ 'aes-armv8.c', + 'sha1-armv8.c', + 'sha256-armv8.c', ], 'dependencies': [ '<(DEPTH)/exports.gyp:nss_exports' @@ -384,7 +386,7 @@ 'dependencies': [ 'gcm-aes-x86_c_lib', ], - }, 'disable_arm_hw_aes==0 and (target_arch=="arm" or target_arch=="arm64" or target_arch=="aarch64")', { + }, '(disable_arm_hw_aes==0 or disable_arm_hw_sha1==0 or disable_arm_hw_sha2==0) and (target_arch=="arm" or target_arch=="arm64" or target_arch=="aarch64")', { 'dependencies': [ 'armv8_c_lib' ], @@ -593,6 +595,7 @@ 'verified', 'verified/kremlin/include', 'verified/kremlin/kremlib/dist/minimal', + 'deprecated', ], 'defines': [ 'SHLIB_SUFFIX=\"<(dll_suffix)\"', @@ -636,18 +639,30 @@ }, }, }], - [ 'OS=="win" and (target_arch=="arm64" or target_arch=="aarch64") and disable_arm_hw_aes==0', { + [ '(OS=="win" or OS=="mac" or OS=="ios") and (target_arch=="arm64" or target_arch=="aarch64") and disable_arm_hw_aes==0', { 'defines': [ 'USE_HW_AES', ], }], + [ '(OS=="win" or OS=="mac" or OS=="ios") and (target_arch=="arm64" or target_arch=="aarch64") and disable_arm_hw_sha1==0', { + 'defines': [ + 'USE_HW_SHA1', + ], + }], + [ '(OS=="win" or OS=="mac" or OS=="ios") and (target_arch=="arm64" or target_arch=="aarch64") and disable_arm_hw_sha2==0', { + 'defines': [ + 'USE_HW_SHA2', + ], + }], [ 'cc_use_gnu_ld==1 and OS=="win" and target_arch=="x64"', { # mingw x64 'defines': [ 'MP_IS_LITTLE_ENDIAN', ], }], - [ 'have_int128_support==1', { + # MSVC has no __int128 type. Use emulated int128 and leave + # have_int128_support as-is for Curve25519 impl. selection. + [ 'have_int128_support==1 and (OS!="win" or cc_is_clang==1 or cc_is_gcc==1)', { 'defines': [ # The Makefile does version-tests on GCC, but we're not doing that here. 'HAVE_INT128_SUPPORT', @@ -703,6 +718,16 @@ 'USE_HW_AES', ], }], + [ 'disable_arm_hw_sha1==0 and (target_arch=="arm" or target_arch=="arm64" or target_arch=="aarch64")', { + 'defines': [ + 'USE_HW_SHA1', + ], + }], + [ 'disable_arm_hw_sha2==0 and (target_arch=="arm" or target_arch=="arm64" or target_arch=="aarch64")', { + 'defines': [ + 'USE_HW_SHA2', + ], + }], ], }], ], @@ -710,14 +735,8 @@ 'variables': { 'module': 'nss', 'conditions': [ - [ 'OS!="win"', { - 'conditions': [ - [ 'target_arch=="x64" or target_arch=="arm64" or target_arch=="aarch64"', { - 'have_int128_support%': 1, - }, { - 'have_int128_support%': 0, - }], - ], + [ 'target_arch=="x64" or target_arch=="arm64" or target_arch=="aarch64"', { + 'have_int128_support%': 1, }, { 'have_int128_support%': 0, }], diff --git a/libs/nss/src/lib/freebl/freebl_base.gypi b/libs/nss/src/lib/freebl/freebl_base.gypi index 43a4c2671..39ec14982 100644 --- a/libs/nss/src/lib/freebl/freebl_base.gypi +++ b/libs/nss/src/lib/freebl/freebl_base.gypi @@ -4,7 +4,6 @@ { 'sources': [ 'aeskeywrap.c', - 'alg2268.c', 'cmac.c', 'alghmac.c', 'arcfive.c', @@ -35,6 +34,8 @@ 'ecl/ecp_jac.c', 'ecl/ecp_jm.c', 'ecl/ecp_mont.c', + 'ecl/ecp_secp384r1.c', + 'ecl/ecp_secp521r1.c', 'fipsfreebl.c', 'blinit.c', 'freeblver.c', @@ -55,7 +56,6 @@ 'rijndael.c', 'rsa.c', 'rsapkcs.c', - 'seed.c', 'sha_fast.c', 'shvfy.c', 'sysrand.c', @@ -68,7 +68,7 @@ 'sources': [ 'arcfour-amd64-gas.s', 'mpi/mpi_amd64.c', - 'mpi/mpi_amd64_gas.s', + 'mpi/mpi_amd64_common.S', 'mpi/mp_comba.c', ], 'conditions': [ @@ -132,8 +132,7 @@ }], ], }], - ['have_int128_support==1 and \ - (target_arch=="x64" or target_arch=="arm64" or target_arch=="aarch64")', { + ['have_int128_support==1', { 'sources': [ # All intel x64 and 64-bit ARM architectures get the 64 bit version. 'ecl/curve25519_64.c', @@ -162,6 +161,16 @@ 'verified/Hacl_Poly1305_32.c', ], }], + [ 'disable_deprecated_seed==0', { + 'sources': [ + 'deprecated/seed.c', + ], + }], + [ 'disable_deprecated_rc2==0', { + 'sources': [ + 'deprecated/alg2268.c', + ], + }], [ 'fuzz==1', { 'sources!': [ 'drbg.c' ], 'sources': [ 'det_rng.c' ], @@ -193,6 +202,18 @@ 'MP_ASSEMBLY_SQUARE', 'MP_ASSEMBLY_DIV_2DX1D', ], + }, 'target_arch=="x64"', { + 'sources': [ + 'mpi/mpi_amd64.c', + 'mpi/mpi_amd64_common.S', + 'mpi/mp_comba.c', + ], + 'defines': [ + 'MP_IS_LITTLE_ENDIAN', + 'MPI_AMD64', + 'MP_ASSEMBLY_MULTIPLY', + 'NSS_USE_COMBA', + ], }], ], }], diff --git a/libs/nss/src/lib/freebl/ldvector.c b/libs/nss/src/lib/freebl/ldvector.c index 4a84529c3..f14425f21 100644 --- a/libs/nss/src/lib/freebl/ldvector.c +++ b/libs/nss/src/lib/freebl/ldvector.c @@ -6,6 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifdef FREEBL_NO_DEPEND +#include "stubs.h" extern int FREEBL_InitStubs(void); #endif @@ -14,6 +15,15 @@ extern int FREEBL_InitStubs(void); #include "alghmac.h" #include "hmacct.h" #include "blapii.h" +#include "secerr.h" + +SECStatus +FREEBL_Deprecated(void) +{ + + PORT_SetError(SEC_ERROR_UNSUPPORTED_KEYALG); + return SECFailure; +} static const struct FREEBLVectorStr vector = { @@ -38,10 +48,17 @@ static const struct FREEBLVectorStr vector = RC4_DestroyContext, RC4_Encrypt, RC4_Decrypt, +#ifndef NSS_DISABLE_DEPRECATED_RC2 RC2_CreateContext, RC2_DestroyContext, RC2_Encrypt, RC2_Decrypt, +#else + (F_RC2_CreateContext)FREEBL_Deprecated, + (F_RC2_DestroyContext)FREEBL_Deprecated, + (F_RC2_Encrypt)FREEBL_Deprecated, + (F_RC2_Decrypt)FREEBL_Deprecated, +#endif RC5_CreateContext, RC5_DestroyContext, RC5_Encrypt, @@ -165,13 +182,21 @@ static const struct FREEBLVectorStr vector = AES_InitContext, AESKeyWrap_InitContext, DES_InitContext, +#ifndef NSS_DISABLE_DEPRECATED_RC2 RC2_InitContext, +#else + (F_RC2_InitContext)FREEBL_Deprecated, +#endif RC4_InitContext, AES_AllocateContext, AESKeyWrap_AllocateContext, DES_AllocateContext, +#ifndef NSS_DISABLE_DEPRECATED_RC2 RC2_AllocateContext, +#else + (F_RC2_AllocateContext)FREEBL_Deprecated, +#endif RC4_AllocateContext, MD2_Clone, @@ -210,14 +235,23 @@ static const struct FREEBLVectorStr vector = PQG_DestroyParams, PQG_DestroyVerify, - /* End of Version 3.010. */ +/* End of Version 3.010. */ +#ifndef NSS_DISABLE_DEPRECATED_SEED SEED_InitContext, SEED_AllocateContext, SEED_CreateContext, SEED_DestroyContext, SEED_Encrypt, SEED_Decrypt, +#else + (F_SEED_InitContext)FREEBL_Deprecated, + (F_SEED_AllocateContext)FREEBL_Deprecated, + (F_SEED_CreateContext)FREEBL_Deprecated, + (F_SEED_DestroyContext)FREEBL_Deprecated, + (F_SEED_Encrypt)FREEBL_Deprecated, + (F_SEED_Decrypt)FREEBL_Deprecated, +#endif /* NSS_DISABLE_DEPRECATED_SEED */ BL_Init, BL_SetForkState, @@ -334,9 +368,12 @@ static const struct FREEBLVectorStr vector = ChaCha20Poly1305_Decrypt, AES_AEAD, AESKeyWrap_EncryptKWP, - AESKeyWrap_DecryptKWP + AESKeyWrap_DecryptKWP, /* End of version 3.023 */ + KEA_PrimeCheck + + /* End of version 3.024 */ }; const FREEBLVector* diff --git a/libs/nss/src/lib/freebl/loader.c b/libs/nss/src/lib/freebl/loader.c index 7f231fbbf..891516fa5 100644 --- a/libs/nss/src/lib/freebl/loader.c +++ b/libs/nss/src/lib/freebl/loader.c @@ -236,6 +236,14 @@ KEA_Verify(SECItem *Y, SECItem *prime, SECItem *subPrime) return (vector->p_KEA_Verify)(Y, prime, subPrime); } +PRBool +KEA_PrimeCheck(SECItem *prime) +{ + if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) + return PR_FALSE; + return (vector->p_KEA_PrimeCheck)(prime); +} + RC4Context * RC4_CreateContext(const unsigned char *key, int len) { @@ -280,7 +288,11 @@ RC2_CreateContext(const unsigned char *key, unsigned int len, { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return NULL; +#ifndef NSS_DISABLE_DEPRECATED_RC2 return (vector->p_RC2_CreateContext)(key, len, iv, mode, effectiveKeyLen); +#else + return NULL; +#endif } void @@ -288,7 +300,11 @@ RC2_DestroyContext(RC2Context *cx, PRBool freeit) { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return; +#ifndef NSS_DISABLE_DEPRECATED_RC2 (vector->p_RC2_DestroyContext)(cx, freeit); +#else + return; +#endif } SECStatus @@ -298,8 +314,12 @@ RC2_Encrypt(RC2Context *cx, unsigned char *output, unsigned int *outputLen, { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return SECFailure; +#ifndef NSS_DISABLE_DEPRECATED_RC2 return (vector->p_RC2_Encrypt)(cx, output, outputLen, maxOutputLen, input, inputLen); +#else + return SECFailure; +#endif } SECStatus @@ -309,8 +329,12 @@ RC2_Decrypt(RC2Context *cx, unsigned char *output, unsigned int *outputLen, { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return SECFailure; +#ifndef NSS_DISABLE_DEPRECATED_RC2 return (vector->p_RC2_Decrypt)(cx, output, outputLen, maxOutputLen, input, inputLen); +#else + return SECFailure; +#endif } RC5Context * @@ -396,7 +420,11 @@ SEED_CreateContext(const unsigned char *key, const unsigned char *iv, { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return NULL; +#ifndef NSS_DISABLE_DEPRECATED_SEED return (vector->p_SEED_CreateContext)(key, iv, mode, encrypt); +#else + return NULL; +#endif } void @@ -404,7 +432,11 @@ SEED_DestroyContext(SEEDContext *cx, PRBool freeit) { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return; +#ifndef NSS_DISABLE_DEPRECATED_SEED (vector->p_SEED_DestroyContext)(cx, freeit); +#else + return; +#endif } SECStatus @@ -414,8 +446,12 @@ SEED_Encrypt(SEEDContext *cx, unsigned char *output, unsigned int *outputLen, { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return SECFailure; +#ifndef NSS_DISABLE_DEPRECATED_SEED return (vector->p_SEED_Encrypt)(cx, output, outputLen, maxOutputLen, input, inputLen); +#else + return SECFailure; +#endif } SECStatus @@ -425,8 +461,12 @@ SEED_Decrypt(SEEDContext *cx, unsigned char *output, unsigned int *outputLen, { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return SECFailure; +#ifndef NSS_DISABLE_DEPRECATED_SEED return (vector->p_SEED_Decrypt)(cx, output, outputLen, maxOutputLen, input, inputLen); +#else + return SECFailure; +#endif } AESContext * @@ -1291,7 +1331,11 @@ RC2_AllocateContext(void) { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return NULL; +#ifndef NSS_DISABLE_DEPRECATED_RC2 return (vector->p_RC2_AllocateContext)(); +#else + return NULL; +#endif } RC4Context * @@ -1341,7 +1385,11 @@ SEED_InitContext(SEEDContext *cx, const unsigned char *key, { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return SECFailure; +#ifndef NSS_DISABLE_DEPRECATED_SEED return (vector->p_SEED_InitContext)(cx, key, keylen, iv, mode, encrypt, xtra); +#else + return SECFailure; +#endif } SECStatus @@ -1351,8 +1399,12 @@ RC2_InitContext(RC2Context *cx, const unsigned char *key, { if (!vector && PR_SUCCESS != freebl_RunLoaderOnce()) return SECFailure; +#ifndef NSS_DISABLE_DEPRECATED_RC2 return (vector->p_RC2_InitContext)(cx, key, keylen, iv, mode, effectiveKeyLen, xtra); +#else + return SECFailure; +#endif } SECStatus diff --git a/libs/nss/src/lib/freebl/loader.h b/libs/nss/src/lib/freebl/loader.h index d3199f068..0b5ee5ef0 100644 --- a/libs/nss/src/lib/freebl/loader.h +++ b/libs/nss/src/lib/freebl/loader.h @@ -10,7 +10,7 @@ #include "blapi.h" -#define FREEBL_VERSION 0x0323 +#define FREEBL_VERSION 0x0324 struct FREEBLVectorStr { @@ -812,6 +812,9 @@ struct FREEBLVectorStr { /* Version 3.023 came to here */ + PRBool (*p_KEA_PrimeCheck)(SECItem *prime); + /* Version 3.024 came to here */ + /* Add new function pointers at the end of this struct and bump * FREEBL_VERSION at the beginning of this file. */ }; @@ -862,3 +865,55 @@ extern FREEBLGetVectorFn FREEBL_GetVector; SEC_END_PROTOS #endif + +#ifdef NSS_DISABLE_DEPRECATED_SEED +typedef SECStatus (*F_SEED_InitContext)(SEEDContext *cx, + const unsigned char *key, + unsigned int keylen, + const unsigned char *iv, + int mode, + unsigned int encrypt, + unsigned int); + +typedef SEEDContext *(*F_SEED_AllocateContext)(void); + +typedef SEEDContext *(*F_SEED_CreateContext)(const unsigned char *key, + const unsigned char *iv, + int mode, PRBool encrypt); + +typedef void (*F_SEED_DestroyContext)(SEEDContext *cx, PRBool freeit); + +typedef SECStatus (*F_SEED_Encrypt)(SEEDContext *cx, unsigned char *output, + unsigned int *outputLen, unsigned int maxOutputLen, + const unsigned char *input, unsigned int inputLen); + +typedef SECStatus (*F_SEED_Decrypt)(SEEDContext *cx, unsigned char *output, + unsigned int *outputLen, unsigned int maxOutputLen, + const unsigned char *input, unsigned int inputLen); +#endif + +#ifdef NSS_DISABLE_DEPRECATED_RC2 +typedef RC2Context *(*F_RC2_CreateContext)(const unsigned char *key, + unsigned int len, const unsigned char *iv, + int mode, unsigned effectiveKeyLen); + +typedef void (*F_RC2_DestroyContext)(RC2Context *cx, PRBool freeit); + +typedef SECStatus (*F_RC2_Encrypt)(RC2Context *cx, unsigned char *output, + unsigned int *outputLen, unsigned int maxOutputLen, + const unsigned char *input, unsigned int inputLen); + +typedef SECStatus (*F_RC2_Decrypt)(RC2Context *cx, unsigned char *output, + unsigned int *outputLen, unsigned int maxOutputLen, + const unsigned char *input, unsigned int inputLen); + +typedef SECStatus (*F_RC2_InitContext)(RC2Context *cx, + const unsigned char *key, + unsigned int keylen, + const unsigned char *iv, + int mode, + unsigned int effectiveKeyLen, + unsigned int); + +typedef RC2Context *(*F_RC2_AllocateContext)(void); +#endif diff --git a/libs/nss/src/lib/freebl/manifest.mn b/libs/nss/src/lib/freebl/manifest.mn index 8915ac474..9dac2106f 100644 --- a/libs/nss/src/lib/freebl/manifest.mn +++ b/libs/nss/src/lib/freebl/manifest.mn @@ -107,7 +107,7 @@ ECL_HDRS = ecl-exp.h ecl.h ecp.h ecl-priv.h ECL_SRCS = ecl.c ecl_mult.c ecl_gf.c \ ecp_aff.c ecp_jac.c ecp_mont.c \ ec_naf.c ecp_jm.c ecp_256.c ecp_384.c ecp_521.c \ - ecp_256_32.c ecp_25519.c + ecp_256_32.c ecp_25519.c ecp_secp384r1.c ecp_secp521r1.c SHA_SRCS = sha_fast.c MPCPU_SRCS = mpcpucache.c VERIFIED_SRCS = $(NULL) @@ -123,10 +123,9 @@ CSRCS = \ cmac.c \ alghmac.c \ rawhash.c \ - alg2268.c \ arcfour.c \ arcfive.c \ - crypto_primitives.c \ + crypto_primitives.c \ blake2b.c \ desblapi.c \ des.c \ @@ -150,7 +149,6 @@ CSRCS = \ rsapkcs.c \ shvfy.c \ tlsprfalg.c \ - seed.c \ jpake.c \ $(MPI_SRCS) \ $(MPCPU_SRCS) \ @@ -161,6 +159,14 @@ CSRCS = \ $(EXTRA_SRCS) \ $(NULL) +ifndef NSS_DISABLE_DEPRECATED_SEED + CSRCS += deprecated/seed.c +endif + +ifndef NSS_DISABLE_DEPRECATED_RC2 + CSRCS += deprecated/alg2268.c +endif + ALL_CSRCS := $(CSRCS) ALL_HDRS = \ diff --git a/libs/nss/src/lib/freebl/mpi/mpi.c b/libs/nss/src/lib/freebl/mpi/mpi.c index 1b7b171e7..1d306696f 100644 --- a/libs/nss/src/lib/freebl/mpi/mpi.c +++ b/libs/nss/src/lib/freebl/mpi/mpi.c @@ -2693,7 +2693,7 @@ mp_radix_size(mp_int *mp, int radix) bits = USED(mp) * DIGIT_BIT - 1; - return s_mp_outlen(bits, radix); + return SIGN(mp) + s_mp_outlen(bits, radix); } /* end mp_radix_size() */ diff --git a/libs/nss/src/lib/freebl/mpi/mpi_amd64_gas.s b/libs/nss/src/lib/freebl/mpi/mpi_amd64_common.S index ad6e2b9d7..4000f2066 100644 --- a/libs/nss/src/lib/freebl/mpi/mpi_amd64_gas.s +++ b/libs/nss/src/lib/freebl/mpi/mpi_amd64_common.S @@ -18,7 +18,15 @@ # s_mpv_mul_set_vec64(uint64_t *r, uint64_t *a, int len, uint64_t digit) # -.text; .align 16; .globl s_mpv_mul_set_vec64; .type s_mpv_mul_set_vec64, @function; s_mpv_mul_set_vec64: +.text; .align 16; .globl s_mpv_mul_set_vec64; + +#ifdef DARWIN +#define s_mpv_mul_set_vec64 _s_mpv_mul_set_vec64 +.private_extern s_mpv_mul_set_vec64 +s_mpv_mul_set_vec64: +#else +.type s_mpv_mul_set_vec64, @function; s_mpv_mul_set_vec64: +#endif xorq %rax, %rax # if (len == 0) return (0) testq %rdx, %rdx @@ -169,7 +177,9 @@ movq %r9, %rax ret +#ifndef DARWIN .size s_mpv_mul_set_vec64, .-s_mpv_mul_set_vec64 +#endif # ------------------------------------------------------------------------ # @@ -186,7 +196,15 @@ # s_mpv_mul_add_vec64(uint64_t *r, uint64_t *a, int len, uint64_t digit) # -.text; .align 16; .globl s_mpv_mul_add_vec64; .type s_mpv_mul_add_vec64, @function; s_mpv_mul_add_vec64: +.text; .align 16; .globl s_mpv_mul_add_vec64; + +#ifdef DARWIN +#define s_mpv_mul_add_vec64 _s_mpv_mul_add_vec64 +.private_extern s_mpv_mul_add_vec64 +s_mpv_mul_add_vec64: +#else +.type s_mpv_mul_add_vec64, @function; s_mpv_mul_add_vec64: +#endif xorq %rax, %rax # if (len == 0) return (0) testq %rdx, %rdx @@ -381,9 +399,11 @@ .L27: movq %r9, %rax ret - + +#ifndef DARWIN .size s_mpv_mul_add_vec64, .-s_mpv_mul_add_vec64 # Magic indicating no need for an executable stack .section .note.GNU-stack, "", @progbits .previous +#endif diff --git a/libs/nss/src/lib/freebl/mpi/mplogic.c b/libs/nss/src/lib/freebl/mpi/mplogic.c index 23ddfec1a..db19cff13 100644 --- a/libs/nss/src/lib/freebl/mpi/mplogic.c +++ b/libs/nss/src/lib/freebl/mpi/mplogic.c @@ -222,10 +222,9 @@ mpl_lsh(const mp_int *a, mp_int *b, mp_digit d) /* {{{ mpl_num_set(a, num) */ mp_err -mpl_num_set(mp_int *a, int *num) +mpl_num_set(mp_int *a, unsigned int *num) { - unsigned int ix; - int db, nset = 0; + unsigned int ix, db, nset = 0; mp_digit cur; unsigned char reg; @@ -253,10 +252,9 @@ mpl_num_set(mp_int *a, int *num) /* {{{ mpl_num_clear(a, num) */ mp_err -mpl_num_clear(mp_int *a, int *num) +mpl_num_clear(mp_int *a, unsigned int *num) { - unsigned int ix; - int db, nset = 0; + unsigned int ix, db, nset = 0; mp_digit cur; unsigned char reg; diff --git a/libs/nss/src/lib/freebl/mpi/mplogic.h b/libs/nss/src/lib/freebl/mpi/mplogic.h index 6a0f67c50..71b755139 100644 --- a/libs/nss/src/lib/freebl/mpi/mplogic.h +++ b/libs/nss/src/lib/freebl/mpi/mplogic.h @@ -39,9 +39,9 @@ mp_err mpl_lsh(const mp_int *a, mp_int *b, mp_digit d); /* left shift */ /* Bit count and parity */ -mp_err mpl_num_set(mp_int *a, int *num); /* count set bits */ -mp_err mpl_num_clear(mp_int *a, int *num); /* count clear bits */ -mp_err mpl_parity(mp_int *a); /* determine parity */ +mp_err mpl_num_set(mp_int *a, unsigned int *num); /* count set bits */ +mp_err mpl_num_clear(mp_int *a, unsigned int *num); /* count clear bits */ +mp_err mpl_parity(mp_int *a); /* determine parity */ /* Get & Set the value of a bit */ diff --git a/libs/nss/src/lib/freebl/ppc-crypto.h b/libs/nss/src/lib/freebl/ppc-crypto.h index 518f8968d..4d283895f 100644 --- a/libs/nss/src/lib/freebl/ppc-crypto.h +++ b/libs/nss/src/lib/freebl/ppc-crypto.h @@ -5,7 +5,8 @@ #ifndef PPC_CRYPTO_H #define PPC_CRYPTO_H 1 -#if defined(__powerpc64__) && !defined(NSS_DISABLE_ALTIVEC) +#if defined(__powerpc64__) && defined(__ALTIVEC__) && \ + !defined(NSS_DISABLE_ALTIVEC) #include "altivec-types.h" /* The ghash freebl test tries to use this in C++, and gcc defines conflict. */ @@ -21,10 +22,10 @@ * please send a patch. */ #if (defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 8)) && \ - defined(IS_LITTLE_ENDIAN) + defined(IS_LITTLE_ENDIAN) && defined(__VSX__) #define USE_PPC_CRYPTO #endif -#endif /* defined(__powerpc64__) && !defined(NSS_DISABLE_ALTIVEC) */ +#endif /* defined(__powerpc64__) && !defined(NSS_DISABLE_ALTIVEC) && defined(__ALTIVEC__) */ #endif diff --git a/libs/nss/src/lib/freebl/rsapkcs.c b/libs/nss/src/lib/freebl/rsapkcs.c index f26cd2954..73d40909d 100644 --- a/libs/nss/src/lib/freebl/rsapkcs.c +++ b/libs/nss/src/lib/freebl/rsapkcs.c @@ -116,7 +116,7 @@ rsa_FormatOneBlock(unsigned modulusLen, unsigned char *block; unsigned char *bp; unsigned int padLen; - int i, j; + unsigned int i, j; SECStatus rv; block = (unsigned char *)PORT_Alloc(modulusLen); @@ -1409,6 +1409,7 @@ RSA_CheckSignRecover(RSAPublicKey *key, unsigned int modulusLen = rsa_modulusLen(&key->modulus); unsigned int i; unsigned char *buffer = NULL; + unsigned int padLen; if (sigLen != modulusLen) { PORT_SetError(SEC_ERROR_BAD_SIGNATURE); @@ -1446,6 +1447,11 @@ RSA_CheckSignRecover(RSAPublicKey *key, goto done; } } + padLen = i - 2; + if (padLen < RSA_BLOCK_MIN_PAD_LEN) { + PORT_SetError(SEC_ERROR_BAD_SIGNATURE); + goto done; + } if (*outputLen == 0) { PORT_SetError(SEC_ERROR_BAD_SIGNATURE); goto done; diff --git a/libs/nss/src/lib/freebl/sha1-armv8.c b/libs/nss/src/lib/freebl/sha1-armv8.c new file mode 100644 index 000000000..63e4dad33 --- /dev/null +++ b/libs/nss/src/lib/freebl/sha1-armv8.c @@ -0,0 +1,264 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifdef USE_HW_SHA1 + +#ifndef __ARM_FEATURE_CRYPTO +#error "Compiler option is invalid" +#endif + +#ifdef FREEBL_NO_DEPEND +#include "stubs.h" +#endif + +#include <arm_neon.h> +#include <memory.h> +#include "blapi.h" +#include "sha_fast.h" + +#if !defined(SHA_PUT_W_IN_STACK) +#define H2X 11 +#else +#define H2X 0 +#endif + +static void shaCompress(SHA_HW_t *X, const PRUint32 *datain); + +void +SHA1_Compress_Native(SHA1Context *ctx) +{ + shaCompress(&ctx->H[H2X], ctx->u.w); +} + +/* + * SHA: Add data to context. + */ +void +SHA1_Update_Native(SHA1Context *ctx, const unsigned char *dataIn, unsigned int len) +{ + unsigned int lenB; + unsigned int togo; + + if (!len) { + return; + } + + /* accumulate the byte count. */ + lenB = (unsigned int)(ctx->size) & 63U; + + ctx->size += len; + + /* + * Read the data into W and process blocks as they get full + */ + if (lenB > 0) { + togo = 64U - lenB; + if (len < togo) { + togo = len; + } + memcpy(ctx->u.b + lenB, dataIn, togo); + len -= togo; + dataIn += togo; + lenB = (lenB + togo) & 63U; + if (!lenB) { + shaCompress(&ctx->H[H2X], ctx->u.w); + } + } + + while (len >= 64U) { + len -= 64U; + shaCompress(&ctx->H[H2X], (PRUint32 *)dataIn); + dataIn += 64U; + } + + if (len) { + memcpy(ctx->u.b, dataIn, len); + } +} + +/* + * SHA: Compression function, unrolled. + */ +static void +shaCompress(SHA_HW_t *X, const PRUint32 *inbuf) +{ +#define XH(n) X[n - H2X] + + const uint32x4_t K0 = vdupq_n_u32(0x5a827999); + const uint32x4_t K1 = vdupq_n_u32(0x6ed9eba1); + const uint32x4_t K2 = vdupq_n_u32(0x8f1bbcdc); + const uint32x4_t K3 = vdupq_n_u32(0xca62c1d6); + + uint32x4_t abcd = vld1q_u32(&XH(0)); + PRUint32 e = XH(4); + + const uint32x4_t origABCD = abcd; + const PRUint32 origE = e; + + uint32x4_t w0 = vld1q_u32(inbuf); + uint32x4_t w1 = vld1q_u32(inbuf + 4); + uint32x4_t w2 = vld1q_u32(inbuf + 8); + uint32x4_t w3 = vld1q_u32(inbuf + 12); + + w0 = vreinterpretq_u32_u8(vrev32q_u8(vreinterpretq_u8_u32(w0))); + w1 = vreinterpretq_u32_u8(vrev32q_u8(vreinterpretq_u8_u32(w1))); + w2 = vreinterpretq_u32_u8(vrev32q_u8(vreinterpretq_u8_u32(w2))); + w3 = vreinterpretq_u32_u8(vrev32q_u8(vreinterpretq_u8_u32(w3))); + + uint32x4_t t0 = vaddq_u32(w0, K0); + uint32x4_t t1 = vaddq_u32(w1, K0); + + PRUint32 tmpE; + + /* + * Using the following ARM instructions to accelerate SHA1 + * + * sha1c for round 0 - 20 + * sha1p for round 20 - 40 + * sha1m for round 40 - 60 + * sha1p for round 60 - 80 + * sha1su0 and shasu1 for message schedule + * sha1h for rotate left 30 + */ + + /* Round 0-3 */ + tmpE = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1cq_u32(abcd, e, t0); + t0 = vaddq_u32(w2, K0); + w0 = vsha1su0q_u32(w0, w1, w2); + + /* Round 4-7 */ + e = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1cq_u32(abcd, tmpE, t1); + t1 = vaddq_u32(w3, K0); + w0 = vsha1su1q_u32(w0, w3); + w1 = vsha1su0q_u32(w1, w2, w3); + + /* Round 8-11 */ + tmpE = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1cq_u32(abcd, e, t0); + t0 = vaddq_u32(w0, K0); + w1 = vsha1su1q_u32(w1, w0); + w2 = vsha1su0q_u32(w2, w3, w0); + + /* Round 12-15 */ + e = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1cq_u32(abcd, tmpE, t1); + t1 = vaddq_u32(w1, K1); + w2 = vsha1su1q_u32(w2, w1); + w3 = vsha1su0q_u32(w3, w0, w1); + + /* Round 16-19 */ + tmpE = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1cq_u32(abcd, e, t0); + t0 = vaddq_u32(w2, K1); + w3 = vsha1su1q_u32(w3, w2); + w0 = vsha1su0q_u32(w0, w1, w2); + + /* Round 20-23 */ + e = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1pq_u32(abcd, tmpE, t1); + t1 = vaddq_u32(w3, K1); + w0 = vsha1su1q_u32(w0, w3); + w1 = vsha1su0q_u32(w1, w2, w3); + + /* Round 24-27 */ + tmpE = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1pq_u32(abcd, e, t0); + t0 = vaddq_u32(w0, K1); + w1 = vsha1su1q_u32(w1, w0); + w2 = vsha1su0q_u32(w2, w3, w0); + + /* Round 28-31 */ + e = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1pq_u32(abcd, tmpE, t1); + t1 = vaddq_u32(w1, K1); + w2 = vsha1su1q_u32(w2, w1); + w3 = vsha1su0q_u32(w3, w0, w1); + + /* Round 32-35 */ + tmpE = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1pq_u32(abcd, e, t0); + t0 = vaddq_u32(w2, K2); + w3 = vsha1su1q_u32(w3, w2); + w0 = vsha1su0q_u32(w0, w1, w2); + + /* Round 36-39 */ + e = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1pq_u32(abcd, tmpE, t1); + t1 = vaddq_u32(w3, K2); + w0 = vsha1su1q_u32(w0, w3); + w1 = vsha1su0q_u32(w1, w2, w3); + + /* Round 40-43 */ + tmpE = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1mq_u32(abcd, e, t0); + t0 = vaddq_u32(w0, K2); + w1 = vsha1su1q_u32(w1, w0); + w2 = vsha1su0q_u32(w2, w3, w0); + + /* Round 44-47 */ + e = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1mq_u32(abcd, tmpE, t1); + t1 = vaddq_u32(w1, K2); + w2 = vsha1su1q_u32(w2, w1); + w3 = vsha1su0q_u32(w3, w0, w1); + + /* Round 48-51 */ + tmpE = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1mq_u32(abcd, e, t0); + t0 = vaddq_u32(w2, K2); + w3 = vsha1su1q_u32(w3, w2); + w0 = vsha1su0q_u32(w0, w1, w2); + + /* Round 52-55 */ + e = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1mq_u32(abcd, tmpE, t1); + t1 = vaddq_u32(w3, K3); + w0 = vsha1su1q_u32(w0, w3); + w1 = vsha1su0q_u32(w1, w2, w3); + + /* Round 56-59 */ + tmpE = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1mq_u32(abcd, e, t0); + t0 = vaddq_u32(w0, K3); + w1 = vsha1su1q_u32(w1, w0); + w2 = vsha1su0q_u32(w2, w3, w0); + + /* Round 60-63 */ + e = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1pq_u32(abcd, tmpE, t1); + t1 = vaddq_u32(w1, K3); + w2 = vsha1su1q_u32(w2, w1); + w3 = vsha1su0q_u32(w3, w0, w1); + + /* Round 64-67 */ + tmpE = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1pq_u32(abcd, e, t0); + t0 = vaddq_u32(w2, K3); + w3 = vsha1su1q_u32(w3, w2); + w0 = vsha1su0q_u32(w0, w1, w2); + + /* Round 68-71 */ + e = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1pq_u32(abcd, tmpE, t1); + t1 = vaddq_u32(w3, K3); + w0 = vsha1su1q_u32(w0, w3); + + /* Round 72-75 */ + tmpE = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1pq_u32(abcd, e, t0); + + /* Round 76-79 */ + e = vsha1h_u32(vgetq_lane_u32(abcd, 0)); + abcd = vsha1pq_u32(abcd, tmpE, t1); + + e += origE; + abcd = vaddq_u32(origABCD, abcd); + + vst1q_u32(&XH(0), abcd); + XH(4) = e; +} + +#endif /* USE_HW_SHA1 */ diff --git a/libs/nss/src/lib/freebl/sha256-armv8.c b/libs/nss/src/lib/freebl/sha256-armv8.c new file mode 100644 index 000000000..17fe126c4 --- /dev/null +++ b/libs/nss/src/lib/freebl/sha256-armv8.c @@ -0,0 +1,203 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifdef USE_HW_SHA2 + +#ifndef __ARM_FEATURE_CRYPTO +#error "Compiler option is invalid" +#endif + +#ifdef FREEBL_NO_DEPEND +#include "stubs.h" +#endif + +#include "prcpucfg.h" +#include "prtypes.h" /* for PRUintXX */ +#include "prlong.h" +#include "blapi.h" +#include "sha256.h" + +#include <arm_neon.h> + +/* SHA-256 constants, K256. */ +static const PRUint32 __attribute__((aligned(16))) K256[64] = { + 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, + 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, + 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, + 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, + 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, + 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, + 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, + 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, + 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, + 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, + 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, + 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, + 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, + 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, + 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, + 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 +}; + +#define ROUND(n, a, b, c, d) \ + { \ + uint32x4_t t = vaddq_u32(a, k##n); \ + uint32x4_t wt = w0; \ + w0 = vsha256hq_u32(w0, w1, t); \ + w1 = vsha256h2q_u32(w1, wt, t); \ + if (n < 12) { \ + a = vsha256su0q_u32(a, b); \ + a = vsha256su1q_u32(a, c, d); \ + } \ + } + +void +SHA256_Compress_Native(SHA256Context *ctx) +{ + const uint32x4_t k0 = vld1q_u32(K256); + const uint32x4_t k1 = vld1q_u32(K256 + 4); + const uint32x4_t k2 = vld1q_u32(K256 + 8); + const uint32x4_t k3 = vld1q_u32(K256 + 12); + const uint32x4_t k4 = vld1q_u32(K256 + 16); + const uint32x4_t k5 = vld1q_u32(K256 + 20); + const uint32x4_t k6 = vld1q_u32(K256 + 24); + const uint32x4_t k7 = vld1q_u32(K256 + 28); + const uint32x4_t k8 = vld1q_u32(K256 + 32); + const uint32x4_t k9 = vld1q_u32(K256 + 36); + const uint32x4_t k10 = vld1q_u32(K256 + 40); + const uint32x4_t k11 = vld1q_u32(K256 + 44); + const uint32x4_t k12 = vld1q_u32(K256 + 48); + const uint32x4_t k13 = vld1q_u32(K256 + 52); + const uint32x4_t k14 = vld1q_u32(K256 + 56); + const uint32x4_t k15 = vld1q_u32(K256 + 60); + + uint32x4_t h0 = vld1q_u32(ctx->h); + uint32x4_t h1 = vld1q_u32(ctx->h + 4); + + unsigned char *input = ctx->u.b; + + uint32x4_t a = vreinterpretq_u32_u8(vrev32q_u8(vld1q_u8(input))); + uint32x4_t b = vreinterpretq_u32_u8(vrev32q_u8(vld1q_u8(input + 16))); + uint32x4_t c = vreinterpretq_u32_u8(vrev32q_u8(vld1q_u8(input + 32))); + uint32x4_t d = vreinterpretq_u32_u8(vrev32q_u8(vld1q_u8(input + 48))); + + uint32x4_t w0 = h0; + uint32x4_t w1 = h1; + + ROUND(0, a, b, c, d) + ROUND(1, b, c, d, a) + ROUND(2, c, d, a, b) + ROUND(3, d, a, b, c) + ROUND(4, a, b, c, d) + ROUND(5, b, c, d, a) + ROUND(6, c, d, a, b) + ROUND(7, d, a, b, c) + ROUND(8, a, b, c, d) + ROUND(9, b, c, d, a) + ROUND(10, c, d, a, b) + ROUND(11, d, a, b, c) + ROUND(12, a, b, c, d) + ROUND(13, b, c, d, a) + ROUND(14, c, d, a, b) + ROUND(15, d, a, b, c) + + h0 = vaddq_u32(h0, w0); + h1 = vaddq_u32(h1, w1); + + vst1q_u32(ctx->h, h0); + vst1q_u32(ctx->h + 4, h1); +} + +void +SHA256_Update_Native(SHA256Context *ctx, const unsigned char *input, + unsigned int inputLen) +{ + const uint32x4_t k0 = vld1q_u32(K256); + const uint32x4_t k1 = vld1q_u32(K256 + 4); + const uint32x4_t k2 = vld1q_u32(K256 + 8); + const uint32x4_t k3 = vld1q_u32(K256 + 12); + const uint32x4_t k4 = vld1q_u32(K256 + 16); + const uint32x4_t k5 = vld1q_u32(K256 + 20); + const uint32x4_t k6 = vld1q_u32(K256 + 24); + const uint32x4_t k7 = vld1q_u32(K256 + 28); + const uint32x4_t k8 = vld1q_u32(K256 + 32); + const uint32x4_t k9 = vld1q_u32(K256 + 36); + const uint32x4_t k10 = vld1q_u32(K256 + 40); + const uint32x4_t k11 = vld1q_u32(K256 + 44); + const uint32x4_t k12 = vld1q_u32(K256 + 48); + const uint32x4_t k13 = vld1q_u32(K256 + 52); + const uint32x4_t k14 = vld1q_u32(K256 + 56); + const uint32x4_t k15 = vld1q_u32(K256 + 60); + + unsigned int inBuf = ctx->sizeLo & 0x3f; + if (!inputLen) { + return; + } + + /* Add inputLen into the count of bytes processed, before processing */ + if ((ctx->sizeLo += inputLen) < inputLen) { + ctx->sizeHi++; + } + + /* if data already in buffer, attemp to fill rest of buffer */ + if (inBuf) { + unsigned int todo = SHA256_BLOCK_LENGTH - inBuf; + if (inputLen < todo) { + todo = inputLen; + } + memcpy(ctx->u.b + inBuf, input, todo); + input += todo; + inputLen -= todo; + if (inBuf + todo == SHA256_BLOCK_LENGTH) { + SHA256_Compress_Native(ctx); + } + } + + uint32x4_t h0 = vld1q_u32(ctx->h); + uint32x4_t h1 = vld1q_u32(ctx->h + 4); + + /* if enough data to fill one or more whole buffers, process them. */ + while (inputLen >= SHA256_BLOCK_LENGTH) { + uint32x4_t a, b, c, d; + a = vreinterpretq_u32_u8(vrev32q_u8(vld1q_u8(input))); + b = vreinterpretq_u32_u8(vrev32q_u8(vld1q_u8(input + 16))); + c = vreinterpretq_u32_u8(vrev32q_u8(vld1q_u8(input + 32))); + d = vreinterpretq_u32_u8(vrev32q_u8(vld1q_u8(input + 48))); + input += SHA256_BLOCK_LENGTH; + inputLen -= SHA256_BLOCK_LENGTH; + + uint32x4_t w0 = h0; + uint32x4_t w1 = h1; + + ROUND(0, a, b, c, d) + ROUND(1, b, c, d, a) + ROUND(2, c, d, a, b) + ROUND(3, d, a, b, c) + ROUND(4, a, b, c, d) + ROUND(5, b, c, d, a) + ROUND(6, c, d, a, b) + ROUND(7, d, a, b, c) + ROUND(8, a, b, c, d) + ROUND(9, b, c, d, a) + ROUND(10, c, d, a, b) + ROUND(11, d, a, b, c) + ROUND(12, a, b, c, d) + ROUND(13, b, c, d, a) + ROUND(14, c, d, a, b) + ROUND(15, d, a, b, c) + + h0 = vaddq_u32(h0, w0); + h1 = vaddq_u32(h1, w1); + } + + vst1q_u32(ctx->h, h0); + vst1q_u32(ctx->h + 4, h1); + + /* if data left over, fill it into buffer */ + if (inputLen) { + memcpy(ctx->u.b, input, inputLen); + } +} + +#endif /* USE_HW_SHA2 */ diff --git a/libs/nss/src/lib/freebl/sha256.h b/libs/nss/src/lib/freebl/sha256.h index c65ca152d..645118b07 100644 --- a/libs/nss/src/lib/freebl/sha256.h +++ b/libs/nss/src/lib/freebl/sha256.h @@ -7,6 +7,12 @@ #include "prtypes.h" +struct SHA256ContextStr; + +typedef void (*sha256_compress_t)(struct SHA256ContextStr *); +typedef void (*sha256_update_t)(struct SHA256ContextStr *, const unsigned char *, + unsigned int); + struct SHA256ContextStr { union { PRUint32 w[64]; /* message schedule, input buffer, plus 48 words */ @@ -14,6 +20,8 @@ struct SHA256ContextStr { } u; PRUint32 h[8]; /* 8 state variables */ PRUint32 sizeHi, sizeLo; /* 64-bit count of hashed bytes. */ + sha256_compress_t compress; + sha256_update_t update; }; #endif /* _SHA_256_H_ */ diff --git a/libs/nss/src/lib/freebl/sha512.c b/libs/nss/src/lib/freebl/sha512.c index f2a1a33ca..dc0ed776b 100644 --- a/libs/nss/src/lib/freebl/sha512.c +++ b/libs/nss/src/lib/freebl/sha512.c @@ -19,6 +19,7 @@ #include "secport.h" /* for PORT_XXX */ #include "blapi.h" #include "blapii.h" +#include "secerr.h" #include "sha256.h" /* for struct SHA256ContextStr */ #include "crypto_primitives.h" #include "ppc-crypto.h" /* for USE_PPC_CRYPTO */ @@ -156,6 +157,30 @@ swap4b(PRUint32 value) #define s0(x) (ROTR32(x, 7) ^ ROTR32(x, 18) ^ SHR(x, 3)) #define s1(x) (ROTR32(x, 17) ^ ROTR32(x, 19) ^ SHR(x, 10)) +void SHA256_Compress_Native(SHA256Context *ctx); +void SHA256_Update_Native(SHA256Context *ctx, const unsigned char *input, unsigned int inputLen); + +static void SHA256_Compress_Generic(SHA256Context *ctx); +static void SHA256_Update_Generic(SHA256Context *ctx, const unsigned char *input, + unsigned int inputLen); + +#ifndef USE_HW_SHA2 +void +SHA256_Compress_Native(SHA256Context *ctx) +{ + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + PORT_Assert(0); +} + +void +SHA256_Update_Native(SHA256Context *ctx, const unsigned char *input, + unsigned int inputLen) +{ + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + PORT_Assert(0); +} +#endif + SHA256Context * SHA256_NewContext(void) { @@ -177,6 +202,17 @@ SHA256_Begin(SHA256Context *ctx) { memset(ctx, 0, sizeof *ctx); memcpy(H, H256, sizeof H256); +#if defined(USE_HW_SHA2) && defined(IS_LITTLE_ENDIAN) + /* arm's implementation is tested on little endian only */ + if (arm_sha2_support()) { + ctx->compress = SHA256_Compress_Native; + ctx->update = SHA256_Update_Native; + } else +#endif + { + ctx->compress = SHA256_Compress_Generic; + ctx->update = SHA256_Update_Generic; + } } #if defined(USE_PPC_CRYPTO) @@ -273,7 +309,7 @@ SHA256_Begin(SHA256Context *ctx) ROUND(63, b, c, d, e, f, g, h, a) static void -SHA256_Compress(SHA256Context *ctx) +SHA256_Compress_Generic(SHA256Context *ctx) { #if defined(USE_PPC_CRYPTO) vec_u32 w[16], s0, s1; @@ -475,6 +511,13 @@ void SHA256_Update(SHA256Context *ctx, const unsigned char *input, unsigned int inputLen) { + ctx->update(ctx, input, inputLen); +} + +static void +SHA256_Update_Generic(SHA256Context *ctx, const unsigned char *input, + unsigned int inputLen) +{ unsigned int inBuf = ctx->sizeLo & 0x3f; if (!inputLen) return; @@ -492,7 +535,7 @@ SHA256_Update(SHA256Context *ctx, const unsigned char *input, input += todo; inputLen -= todo; if (inBuf + todo == SHA256_BLOCK_LENGTH) - SHA256_Compress(ctx); + SHA256_Compress_Generic(ctx); } /* if enough data to fill one or more whole buffers, process them. */ @@ -500,7 +543,7 @@ SHA256_Update(SHA256Context *ctx, const unsigned char *input, memcpy(B, input, SHA256_BLOCK_LENGTH); input += SHA256_BLOCK_LENGTH; inputLen -= SHA256_BLOCK_LENGTH; - SHA256_Compress(ctx); + SHA256_Compress_Generic(ctx); } /* if data left over, fill it into buffer */ if (inputLen) @@ -518,7 +561,7 @@ SHA256_End(SHA256Context *ctx, unsigned char *digest, hi = (ctx->sizeHi << 3) | (ctx->sizeLo >> 29); lo = (ctx->sizeLo << 3); - SHA256_Update(ctx, pad, padLen); + ctx->update(ctx, pad, padLen); #if defined(IS_LITTLE_ENDIAN) W[14] = SHA_HTONL(hi); @@ -527,7 +570,7 @@ SHA256_End(SHA256Context *ctx, unsigned char *digest, W[14] = hi; W[15] = lo; #endif - SHA256_Compress(ctx); + ctx->compress(ctx); /* now output the answer */ #if defined(IS_LITTLE_ENDIAN) @@ -651,13 +694,24 @@ SHA224_Begin(SHA224Context *ctx) { memset(ctx, 0, sizeof *ctx); memcpy(H, H224, sizeof H224); +#if defined(USE_HW_SHA2) && defined(IS_LITTLE_ENDIAN) + /* arm's implementation is tested on little endian only */ + if (arm_sha2_support()) { + ctx->compress = SHA256_Compress_Native; + ctx->update = SHA256_Update_Native; + } else +#endif + { + ctx->compress = SHA256_Compress_Generic; + ctx->update = SHA256_Update_Generic; + } } void SHA224_Update(SHA224Context *ctx, const unsigned char *input, unsigned int inputLen) { - SHA256_Update(ctx, input, inputLen); + ctx->update(ctx, input, inputLen); } void diff --git a/libs/nss/src/lib/freebl/sha_fast.c b/libs/nss/src/lib/freebl/sha_fast.c index 52071f0c9..2a8ac576c 100644 --- a/libs/nss/src/lib/freebl/sha_fast.c +++ b/libs/nss/src/lib/freebl/sha_fast.c @@ -10,6 +10,7 @@ #include "blapi.h" #include "sha_fast.h" #include "prerror.h" +#include "secerr.h" #ifdef TRACING_SSL #include "ssl.h" @@ -28,6 +29,28 @@ static void shaCompress(volatile SHA_HW_t *X, const PRUint32 *datain); #define SHA_MIX(n, a, b, c) XW(n) = SHA_ROTL(XW(a) ^ XW(b) ^ XW(c) ^ XW(n), 1) +void SHA1_Compress_Native(SHA1Context *ctx); +void SHA1_Update_Native(SHA1Context *ctx, const unsigned char *dataIn, unsigned int len); + +static void SHA1_Compress_Generic(SHA1Context *ctx); +static void SHA1_Update_Generic(SHA1Context *ctx, const unsigned char *dataIn, unsigned int len); + +#ifndef USE_HW_SHA1 +void +SHA1_Compress_Native(SHA1Context *ctx) +{ + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + PORT_Assert(0); +} + +void +SHA1_Update_Native(SHA1Context *ctx, const unsigned char *dataIn, unsigned int len) +{ + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + PORT_Assert(0); +} +#endif + /* * SHA: initialize context */ @@ -43,6 +66,18 @@ SHA1_Begin(SHA1Context *ctx) ctx->H[2] = 0x98badcfeL; ctx->H[3] = 0x10325476L; ctx->H[4] = 0xc3d2e1f0L; + +#if defined(USE_HW_SHA1) && defined(IS_LITTLE_ENDIAN) + /* arm's implementation is tested on little endian only */ + if (arm_sha1_support()) { + ctx->compress = SHA1_Compress_Native; + ctx->update = SHA1_Update_Native; + } else +#endif + { + ctx->compress = SHA1_Compress_Generic; + ctx->update = SHA1_Update_Generic; + } } /* Explanation of H array and index values: @@ -89,6 +124,12 @@ SHA1_Begin(SHA1Context *ctx) void SHA1_Update(SHA1Context *ctx, const unsigned char *dataIn, unsigned int len) { + ctx->update(ctx, dataIn, len); +} + +static void +SHA1_Update_Generic(SHA1Context *ctx, const unsigned char *dataIn, unsigned int len) +{ register unsigned int lenB; register unsigned int togo; @@ -166,7 +207,7 @@ SHA1_End(SHA1Context *ctx, unsigned char *hashout, size <<= 3; ctx->W[14] = SHA_HTONL((PRUint32)(size >> 32)); ctx->W[15] = SHA_HTONL((PRUint32)size); - shaCompress(&ctx->H[H2X], ctx->W); + ctx->compress(ctx); /* * Output hash @@ -460,6 +501,12 @@ shaCompress(volatile SHA_HW_t *X, const PRUint32 *inbuf) XH(4) += E; } +static void +SHA1_Compress_Generic(SHA1Context *ctx) +{ + shaCompress(&ctx->H[H2X], ctx->u.w); +} + /************************************************************************* ** Code below this line added to make SHA code support BLAPI interface */ @@ -491,7 +538,7 @@ SHA1_HashBuf(unsigned char *dest, const unsigned char *src, PRUint32 src_length) unsigned int outLen; SHA1_Begin(&ctx); - SHA1_Update(&ctx, src, src_length); + ctx.update(&ctx, src, src_length); SHA1_End(&ctx, dest, &outLen, SHA1_LENGTH); memset(&ctx, 0, sizeof ctx); return SECSuccess; diff --git a/libs/nss/src/lib/freebl/sha_fast.h b/libs/nss/src/lib/freebl/sha_fast.h index 1780ca8f4..c03c0637a 100644 --- a/libs/nss/src/lib/freebl/sha_fast.h +++ b/libs/nss/src/lib/freebl/sha_fast.h @@ -10,13 +10,19 @@ #define SHA1_INPUT_LEN 64 -#if defined(IS_64) && !defined(__sparc) +#if defined(IS_64) && !defined(__sparc) && !defined(__aarch64__) typedef PRUint64 SHA_HW_t; #define SHA1_USING_64_BIT 1 #else typedef PRUint32 SHA_HW_t; #endif +struct SHA1ContextStr; + +typedef void (*sha1_compress_t)(struct SHA1ContextStr *); +typedef void (*sha1_update_t)(struct SHA1ContextStr *, const unsigned char *, + unsigned int); + struct SHA1ContextStr { union { PRUint32 w[16]; /* input buffer */ @@ -24,6 +30,8 @@ struct SHA1ContextStr { } u; PRUint64 size; /* count of hashed bytes. */ SHA_HW_t H[22]; /* 5 state variables, 16 tmp values, 1 extra */ + sha1_compress_t compress; + sha1_update_t update; }; #if defined(_MSC_VER) @@ -135,7 +143,7 @@ swap4b(PRUint32 value) #define SHA_BYTESWAP(x) x = SHA_HTONL(x) -#define SHA_STORE(n) ((PRUint32*)hashout)[n] = SHA_HTONL(ctx->H[n]) +#define SHA_STORE(n) ((PRUint32 *)hashout)[n] = SHA_HTONL(ctx->H[n]) #if defined(HAVE_UNALIGNED_ACCESS) #define SHA_STORE_RESULT \ SHA_STORE(0); \ diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20.c b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20.c index a78417253..2e552472b 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20.c +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20.c @@ -23,7 +23,7 @@ #include "Hacl_Chacha20.h" -uint32_t +const uint32_t Hacl_Impl_Chacha20_Vec_chacha20_constants[4U] = { (uint32_t)0x61707865U, (uint32_t)0x3320646eU, (uint32_t)0x79622d32U, (uint32_t)0x6b206574U }; @@ -107,12 +107,12 @@ chacha20_core(uint32_t *k, uint32_t *ctx, uint32_t ctr) k[12U] = k[12U] + ctr_u32; } -static uint32_t +static const uint32_t chacha20_constants[4U] = { (uint32_t)0x61707865U, (uint32_t)0x3320646eU, (uint32_t)0x79622d32U, (uint32_t)0x6b206574U }; static inline void -chacha20_init(uint32_t *ctx, uint8_t *k, uint8_t *n1, uint32_t ctr) +chacha20_init(uint32_t *ctx, uint8_t *k, uint8_t *n, uint32_t ctr) { uint32_t *uu____0 = ctx; for (uint32_t i = (uint32_t)0U; i < (uint32_t)4U; i++) { @@ -133,7 +133,7 @@ chacha20_init(uint32_t *ctx, uint8_t *k, uint8_t *n1, uint32_t ctr) uint32_t *uu____2 = ctx + (uint32_t)13U; for (uint32_t i = (uint32_t)0U; i < (uint32_t)3U; i++) { uint32_t *os = uu____2; - uint8_t *bj = n1 + i * (uint32_t)4U; + uint8_t *bj = n + i * (uint32_t)4U; uint32_t u = load32_le(bj); uint32_t r = u; uint32_t x = r; @@ -142,10 +142,10 @@ chacha20_init(uint32_t *ctx, uint8_t *k, uint8_t *n1, uint32_t ctr) } static inline void -chacha20_encrypt_block(uint32_t *ctx, uint8_t *out, uint32_t incr1, uint8_t *text) +chacha20_encrypt_block(uint32_t *ctx, uint8_t *out, uint32_t incr, uint8_t *text) { uint32_t k[16U] = { 0U }; - chacha20_core(k, ctx, incr1); + chacha20_core(k, ctx, incr); uint32_t bl[16U] = { 0U }; for (uint32_t i = (uint32_t)0U; i < (uint32_t)16U; i++) { uint32_t *os = bl; @@ -166,25 +166,25 @@ chacha20_encrypt_block(uint32_t *ctx, uint8_t *out, uint32_t incr1, uint8_t *tex } static inline void -chacha20_encrypt_last(uint32_t *ctx, uint32_t len, uint8_t *out, uint32_t incr1, uint8_t *text) +chacha20_encrypt_last(uint32_t *ctx, uint32_t len, uint8_t *out, uint32_t incr, uint8_t *text) { uint8_t plain[64U] = { 0U }; memcpy(plain, text, len * sizeof(text[0U])); - chacha20_encrypt_block(ctx, plain, incr1, plain); + chacha20_encrypt_block(ctx, plain, incr, plain); memcpy(out, plain, len * sizeof(plain[0U])); } static inline void chacha20_update(uint32_t *ctx, uint32_t len, uint8_t *out, uint8_t *text) { - uint32_t rem1 = len % (uint32_t)64U; + uint32_t rem = len % (uint32_t)64U; uint32_t nb = len / (uint32_t)64U; - uint32_t rem2 = len % (uint32_t)64U; + uint32_t rem1 = len % (uint32_t)64U; for (uint32_t i = (uint32_t)0U; i < nb; i++) { chacha20_encrypt_block(ctx, out + i * (uint32_t)64U, i, text + i * (uint32_t)64U); } - if (rem2 > (uint32_t)0U) { - chacha20_encrypt_last(ctx, rem1, out + nb * (uint32_t)64U, nb, text + nb * (uint32_t)64U); + if (rem1 > (uint32_t)0U) { + chacha20_encrypt_last(ctx, rem, out + nb * (uint32_t)64U, nb, text + nb * (uint32_t)64U); } } @@ -194,11 +194,11 @@ Hacl_Chacha20_chacha20_encrypt( uint8_t *out, uint8_t *text, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr) { uint32_t ctx[16U] = { 0U }; - chacha20_init(ctx, key, n1, ctr); + chacha20_init(ctx, key, n, ctr); chacha20_update(ctx, len, out, text); } @@ -208,10 +208,10 @@ Hacl_Chacha20_chacha20_decrypt( uint8_t *out, uint8_t *cipher, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr) { uint32_t ctx[16U] = { 0U }; - chacha20_init(ctx, key, n1, ctr); + chacha20_init(ctx, key, n, ctr); chacha20_update(ctx, len, out, cipher); } diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20.h b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20.h index 6a5841804..bd54a315e 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20.h +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20.h @@ -31,7 +31,7 @@ #include "Hacl_Kremlib.h" -extern uint32_t Hacl_Impl_Chacha20_Vec_chacha20_constants[4U]; +extern const uint32_t Hacl_Impl_Chacha20_Vec_chacha20_constants[4U]; void Hacl_Chacha20_chacha20_encrypt( @@ -39,7 +39,7 @@ Hacl_Chacha20_chacha20_encrypt( uint8_t *out, uint8_t *text, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr); void @@ -48,7 +48,7 @@ Hacl_Chacha20_chacha20_decrypt( uint8_t *out, uint8_t *cipher, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr); #define __Hacl_Chacha20_H_DEFINED diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_128.c b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_128.c index da5612959..1b98e18af 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_128.c +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_128.c @@ -26,14 +26,14 @@ static inline void poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t *text) { - uint32_t n1 = len / (uint32_t)16U; + uint32_t n = len / (uint32_t)16U; uint32_t r = len % (uint32_t)16U; uint8_t *blocks = text; - uint8_t *rem1 = text + n1 * (uint32_t)16U; + uint8_t *rem = text + n * (uint32_t)16U; Lib_IntVector_Intrinsics_vec128 *pre0 = ctx + (uint32_t)5U; Lib_IntVector_Intrinsics_vec128 *acc0 = ctx; uint32_t sz_block = (uint32_t)32U; - uint32_t len0 = n1 * (uint32_t)16U / sz_block * sz_block; + uint32_t len0 = n * (uint32_t)16U / sz_block * sz_block; uint8_t *t00 = blocks; if (len0 > (uint32_t)0U) { uint32_t bs = (uint32_t)32U; @@ -197,13 +197,13 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec128 t3 = a34; Lib_IntVector_Intrinsics_vec128 t4 = a44; Lib_IntVector_Intrinsics_vec128 - mask261 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec128 z0 = Lib_IntVector_Intrinsics_vec128_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z1 = Lib_IntVector_Intrinsics_vec128_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask261); - Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask261); + Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask26); + Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask26); Lib_IntVector_Intrinsics_vec128 x1 = Lib_IntVector_Intrinsics_vec128_add64(t1, z0); Lib_IntVector_Intrinsics_vec128 x4 = Lib_IntVector_Intrinsics_vec128_add64(t4, z1); Lib_IntVector_Intrinsics_vec128 @@ -213,21 +213,21 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec128 t = Lib_IntVector_Intrinsics_vec128_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec128 z12 = Lib_IntVector_Intrinsics_vec128_add64(z11, t); - Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask261); - Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask261); + Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask26); + Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask26); Lib_IntVector_Intrinsics_vec128 x2 = Lib_IntVector_Intrinsics_vec128_add64(t2, z01); Lib_IntVector_Intrinsics_vec128 x01 = Lib_IntVector_Intrinsics_vec128_add64(x0, z12); Lib_IntVector_Intrinsics_vec128 z02 = Lib_IntVector_Intrinsics_vec128_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z13 = Lib_IntVector_Intrinsics_vec128_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask261); - Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask261); + Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask26); + Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask26); Lib_IntVector_Intrinsics_vec128 x31 = Lib_IntVector_Intrinsics_vec128_add64(x3, z02); Lib_IntVector_Intrinsics_vec128 x12 = Lib_IntVector_Intrinsics_vec128_add64(x11, z13); Lib_IntVector_Intrinsics_vec128 z03 = Lib_IntVector_Intrinsics_vec128_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask261); + Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask26); Lib_IntVector_Intrinsics_vec128 x42 = Lib_IntVector_Intrinsics_vec128_add64(x41, z03); Lib_IntVector_Intrinsics_vec128 o00 = x02; Lib_IntVector_Intrinsics_vec128 o10 = x12; @@ -262,10 +262,10 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t } Hacl_Impl_Poly1305_Field32xN_128_fmul_r2_normalize(acc0, pre0); } - uint32_t len1 = n1 * (uint32_t)16U - len0; + uint32_t len1 = n * (uint32_t)16U - len0; uint8_t *t10 = blocks + len0; uint32_t nb = len1 / (uint32_t)16U; - uint32_t rem2 = len1 % (uint32_t)16U; + uint32_t rem1 = len1 % (uint32_t)16U; for (uint32_t i = (uint32_t)0U; i < nb; i++) { uint8_t *block = t10 + i * (uint32_t)16U; Lib_IntVector_Intrinsics_vec128 e[5U]; @@ -431,13 +431,13 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec128 t3 = a36; Lib_IntVector_Intrinsics_vec128 t4 = a46; Lib_IntVector_Intrinsics_vec128 - mask261 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec128 z0 = Lib_IntVector_Intrinsics_vec128_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z1 = Lib_IntVector_Intrinsics_vec128_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask261); - Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask261); + Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask26); + Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask26); Lib_IntVector_Intrinsics_vec128 x1 = Lib_IntVector_Intrinsics_vec128_add64(t11, z0); Lib_IntVector_Intrinsics_vec128 x4 = Lib_IntVector_Intrinsics_vec128_add64(t4, z1); Lib_IntVector_Intrinsics_vec128 @@ -447,21 +447,21 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec128 t = Lib_IntVector_Intrinsics_vec128_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec128 z12 = Lib_IntVector_Intrinsics_vec128_add64(z11, t); - Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask261); - Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask261); + Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask26); + Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask26); Lib_IntVector_Intrinsics_vec128 x2 = Lib_IntVector_Intrinsics_vec128_add64(t2, z01); Lib_IntVector_Intrinsics_vec128 x01 = Lib_IntVector_Intrinsics_vec128_add64(x0, z12); Lib_IntVector_Intrinsics_vec128 z02 = Lib_IntVector_Intrinsics_vec128_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z13 = Lib_IntVector_Intrinsics_vec128_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask261); - Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask261); + Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask26); + Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask26); Lib_IntVector_Intrinsics_vec128 x31 = Lib_IntVector_Intrinsics_vec128_add64(x3, z02); Lib_IntVector_Intrinsics_vec128 x12 = Lib_IntVector_Intrinsics_vec128_add64(x11, z13); Lib_IntVector_Intrinsics_vec128 z03 = Lib_IntVector_Intrinsics_vec128_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask261); + Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask26); Lib_IntVector_Intrinsics_vec128 x42 = Lib_IntVector_Intrinsics_vec128_add64(x41, z03); Lib_IntVector_Intrinsics_vec128 o0 = x02; Lib_IntVector_Intrinsics_vec128 o1 = x12; @@ -474,13 +474,13 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t acc0[3U] = o3; acc0[4U] = o4; } - if (rem2 > (uint32_t)0U) { - uint8_t *last1 = t10 + nb * (uint32_t)16U; + if (rem1 > (uint32_t)0U) { + uint8_t *last = t10 + nb * (uint32_t)16U; Lib_IntVector_Intrinsics_vec128 e[5U]; for (uint32_t _i = 0U; _i < (uint32_t)5U; ++_i) e[_i] = Lib_IntVector_Intrinsics_vec128_zero; uint8_t tmp[16U] = { 0U }; - memcpy(tmp, last1, rem2 * sizeof(last1[0U])); + memcpy(tmp, last, rem1 * sizeof(last[0U])); uint64_t u0 = load64_le(tmp); uint64_t lo = u0; uint64_t u = load64_le(tmp + (uint32_t)8U); @@ -520,10 +520,10 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t e[2U] = f2; e[3U] = f3; e[4U] = f4; - uint64_t b = (uint64_t)1U << rem2 * (uint32_t)8U % (uint32_t)26U; + uint64_t b = (uint64_t)1U << rem1 * (uint32_t)8U % (uint32_t)26U; Lib_IntVector_Intrinsics_vec128 mask = Lib_IntVector_Intrinsics_vec128_load64(b); - Lib_IntVector_Intrinsics_vec128 fi = e[rem2 * (uint32_t)8U / (uint32_t)26U]; - e[rem2 * (uint32_t)8U / (uint32_t)26U] = Lib_IntVector_Intrinsics_vec128_or(fi, mask); + Lib_IntVector_Intrinsics_vec128 fi = e[rem1 * (uint32_t)8U / (uint32_t)26U]; + e[rem1 * (uint32_t)8U / (uint32_t)26U] = Lib_IntVector_Intrinsics_vec128_or(fi, mask); Lib_IntVector_Intrinsics_vec128 *r1 = pre0; Lib_IntVector_Intrinsics_vec128 *r5 = pre0 + (uint32_t)5U; Lib_IntVector_Intrinsics_vec128 r0 = r1[0U]; @@ -641,13 +641,13 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec128 t3 = a36; Lib_IntVector_Intrinsics_vec128 t4 = a46; Lib_IntVector_Intrinsics_vec128 - mask261 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec128 z0 = Lib_IntVector_Intrinsics_vec128_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z1 = Lib_IntVector_Intrinsics_vec128_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask261); - Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask261); + Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask26); + Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask26); Lib_IntVector_Intrinsics_vec128 x1 = Lib_IntVector_Intrinsics_vec128_add64(t11, z0); Lib_IntVector_Intrinsics_vec128 x4 = Lib_IntVector_Intrinsics_vec128_add64(t4, z1); Lib_IntVector_Intrinsics_vec128 @@ -657,21 +657,21 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec128 t = Lib_IntVector_Intrinsics_vec128_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec128 z12 = Lib_IntVector_Intrinsics_vec128_add64(z11, t); - Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask261); - Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask261); + Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask26); + Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask26); Lib_IntVector_Intrinsics_vec128 x2 = Lib_IntVector_Intrinsics_vec128_add64(t2, z01); Lib_IntVector_Intrinsics_vec128 x01 = Lib_IntVector_Intrinsics_vec128_add64(x0, z12); Lib_IntVector_Intrinsics_vec128 z02 = Lib_IntVector_Intrinsics_vec128_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z13 = Lib_IntVector_Intrinsics_vec128_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask261); - Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask261); + Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask26); + Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask26); Lib_IntVector_Intrinsics_vec128 x31 = Lib_IntVector_Intrinsics_vec128_add64(x3, z02); Lib_IntVector_Intrinsics_vec128 x12 = Lib_IntVector_Intrinsics_vec128_add64(x11, z13); Lib_IntVector_Intrinsics_vec128 z03 = Lib_IntVector_Intrinsics_vec128_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask261); + Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask26); Lib_IntVector_Intrinsics_vec128 x42 = Lib_IntVector_Intrinsics_vec128_add64(x41, z03); Lib_IntVector_Intrinsics_vec128 o0 = x02; Lib_IntVector_Intrinsics_vec128 o1 = x12; @@ -685,7 +685,7 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t acc0[4U] = o4; } uint8_t tmp[16U] = { 0U }; - memcpy(tmp, rem1, r * sizeof(rem1[0U])); + memcpy(tmp, rem, r * sizeof(rem[0U])); if (r > (uint32_t)0U) { Lib_IntVector_Intrinsics_vec128 *pre = ctx + (uint32_t)5U; Lib_IntVector_Intrinsics_vec128 *acc = ctx; @@ -852,13 +852,13 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec128 t3 = a36; Lib_IntVector_Intrinsics_vec128 t4 = a46; Lib_IntVector_Intrinsics_vec128 - mask261 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec128 z0 = Lib_IntVector_Intrinsics_vec128_shift_right64(t0, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z1 = Lib_IntVector_Intrinsics_vec128_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t0, mask261); - Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask261); + Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t0, mask26); + Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask26); Lib_IntVector_Intrinsics_vec128 x1 = Lib_IntVector_Intrinsics_vec128_add64(t1, z0); Lib_IntVector_Intrinsics_vec128 x4 = Lib_IntVector_Intrinsics_vec128_add64(t4, z1); Lib_IntVector_Intrinsics_vec128 @@ -868,21 +868,21 @@ poly1305_padded_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec128 t = Lib_IntVector_Intrinsics_vec128_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec128 z12 = Lib_IntVector_Intrinsics_vec128_add64(z11, t); - Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask261); - Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask261); + Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask26); + Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask26); Lib_IntVector_Intrinsics_vec128 x2 = Lib_IntVector_Intrinsics_vec128_add64(t2, z01); Lib_IntVector_Intrinsics_vec128 x01 = Lib_IntVector_Intrinsics_vec128_add64(x0, z12); Lib_IntVector_Intrinsics_vec128 z02 = Lib_IntVector_Intrinsics_vec128_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z13 = Lib_IntVector_Intrinsics_vec128_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask261); - Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask261); + Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask26); + Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask26); Lib_IntVector_Intrinsics_vec128 x31 = Lib_IntVector_Intrinsics_vec128_add64(x3, z02); Lib_IntVector_Intrinsics_vec128 x12 = Lib_IntVector_Intrinsics_vec128_add64(x11, z13); Lib_IntVector_Intrinsics_vec128 z03 = Lib_IntVector_Intrinsics_vec128_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask261); + Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask26); Lib_IntVector_Intrinsics_vec128 x42 = Lib_IntVector_Intrinsics_vec128_add64(x41, z03); Lib_IntVector_Intrinsics_vec128 o0 = x02; Lib_IntVector_Intrinsics_vec128 o1 = x12; @@ -1081,13 +1081,13 @@ poly1305_do_128( Lib_IntVector_Intrinsics_vec128 t3 = a36; Lib_IntVector_Intrinsics_vec128 t4 = a46; Lib_IntVector_Intrinsics_vec128 - mask261 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec128 z0 = Lib_IntVector_Intrinsics_vec128_shift_right64(t0, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z1 = Lib_IntVector_Intrinsics_vec128_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t0, mask261); - Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask261); + Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t0, mask26); + Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask26); Lib_IntVector_Intrinsics_vec128 x1 = Lib_IntVector_Intrinsics_vec128_add64(t1, z0); Lib_IntVector_Intrinsics_vec128 x4 = Lib_IntVector_Intrinsics_vec128_add64(t4, z1); Lib_IntVector_Intrinsics_vec128 @@ -1097,21 +1097,21 @@ poly1305_do_128( Lib_IntVector_Intrinsics_vec128 t = Lib_IntVector_Intrinsics_vec128_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec128 z12 = Lib_IntVector_Intrinsics_vec128_add64(z11, t); - Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask261); - Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask261); + Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask26); + Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask26); Lib_IntVector_Intrinsics_vec128 x2 = Lib_IntVector_Intrinsics_vec128_add64(t2, z01); Lib_IntVector_Intrinsics_vec128 x01 = Lib_IntVector_Intrinsics_vec128_add64(x0, z12); Lib_IntVector_Intrinsics_vec128 z02 = Lib_IntVector_Intrinsics_vec128_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z13 = Lib_IntVector_Intrinsics_vec128_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask261); - Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask261); + Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask26); + Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask26); Lib_IntVector_Intrinsics_vec128 x31 = Lib_IntVector_Intrinsics_vec128_add64(x3, z02); Lib_IntVector_Intrinsics_vec128 x12 = Lib_IntVector_Intrinsics_vec128_add64(x11, z13); Lib_IntVector_Intrinsics_vec128 z03 = Lib_IntVector_Intrinsics_vec128_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask261); + Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask26); Lib_IntVector_Intrinsics_vec128 x42 = Lib_IntVector_Intrinsics_vec128_add64(x41, z03); Lib_IntVector_Intrinsics_vec128 o0 = x02; Lib_IntVector_Intrinsics_vec128 o1 = x12; @@ -1129,7 +1129,7 @@ poly1305_do_128( void Hacl_Chacha20Poly1305_128_aead_encrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, @@ -1137,9 +1137,9 @@ Hacl_Chacha20Poly1305_128_aead_encrypt( uint8_t *cipher, uint8_t *mac) { - Hacl_Chacha20_Vec128_chacha20_encrypt_128(mlen, cipher, m, k, n1, (uint32_t)1U); + Hacl_Chacha20_Vec128_chacha20_encrypt_128(mlen, cipher, m, k, n, (uint32_t)1U); uint8_t tmp[64U] = { 0U }; - Hacl_Chacha20_Vec128_chacha20_encrypt_128((uint32_t)64U, tmp, tmp, k, n1, (uint32_t)0U); + Hacl_Chacha20_Vec128_chacha20_encrypt_128((uint32_t)64U, tmp, tmp, k, n, (uint32_t)0U); uint8_t *key = tmp; poly1305_do_128(key, aadlen, aad, mlen, cipher, mac); } @@ -1147,7 +1147,7 @@ Hacl_Chacha20Poly1305_128_aead_encrypt( uint32_t Hacl_Chacha20Poly1305_128_aead_decrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, @@ -1157,7 +1157,7 @@ Hacl_Chacha20Poly1305_128_aead_decrypt( { uint8_t computed_mac[16U] = { 0U }; uint8_t tmp[64U] = { 0U }; - Hacl_Chacha20_Vec128_chacha20_encrypt_128((uint32_t)64U, tmp, tmp, k, n1, (uint32_t)0U); + Hacl_Chacha20_Vec128_chacha20_encrypt_128((uint32_t)64U, tmp, tmp, k, n, (uint32_t)0U); uint8_t *key = tmp; poly1305_do_128(key, aadlen, aad, mlen, cipher, computed_mac); uint8_t res = (uint8_t)255U; @@ -1167,7 +1167,7 @@ Hacl_Chacha20Poly1305_128_aead_decrypt( } uint8_t z = res; if (z == (uint8_t)255U) { - Hacl_Chacha20_Vec128_chacha20_encrypt_128(mlen, m, cipher, k, n1, (uint32_t)1U); + Hacl_Chacha20_Vec128_chacha20_encrypt_128(mlen, m, cipher, k, n, (uint32_t)1U); return (uint32_t)0U; } return (uint32_t)1U; diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_128.h b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_128.h index a88af0201..2c4d46bce 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_128.h +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_128.h @@ -37,7 +37,7 @@ void Hacl_Chacha20Poly1305_128_aead_encrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, @@ -48,7 +48,7 @@ Hacl_Chacha20Poly1305_128_aead_encrypt( uint32_t Hacl_Chacha20Poly1305_128_aead_decrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_256.c b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_256.c index dd774816c..efbccbfdd 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_256.c +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_256.c @@ -26,14 +26,14 @@ static inline void poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t *text) { - uint32_t n1 = len / (uint32_t)16U; + uint32_t n = len / (uint32_t)16U; uint32_t r = len % (uint32_t)16U; uint8_t *blocks = text; - uint8_t *rem1 = text + n1 * (uint32_t)16U; + uint8_t *rem = text + n * (uint32_t)16U; Lib_IntVector_Intrinsics_vec256 *pre0 = ctx + (uint32_t)5U; Lib_IntVector_Intrinsics_vec256 *acc0 = ctx; uint32_t sz_block = (uint32_t)64U; - uint32_t len0 = n1 * (uint32_t)16U / sz_block * sz_block; + uint32_t len0 = n * (uint32_t)16U / sz_block * sz_block; uint8_t *t00 = blocks; if (len0 > (uint32_t)0U) { uint32_t bs = (uint32_t)64U; @@ -51,7 +51,7 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec256 hi = Lib_IntVector_Intrinsics_vec256_load_le(block + (uint32_t)32U); Lib_IntVector_Intrinsics_vec256 - mask2610 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask260 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 m0 = Lib_IntVector_Intrinsics_vec256_interleave_low128(lo, hi); Lib_IntVector_Intrinsics_vec256 @@ -68,14 +68,14 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t t30 = Lib_IntVector_Intrinsics_vec256_interleave_low64(m2, m3); Lib_IntVector_Intrinsics_vec256 t20 = Lib_IntVector_Intrinsics_vec256_shift_right64(t30, (uint32_t)4U); - Lib_IntVector_Intrinsics_vec256 o20 = Lib_IntVector_Intrinsics_vec256_and(t20, mask2610); + Lib_IntVector_Intrinsics_vec256 o20 = Lib_IntVector_Intrinsics_vec256_and(t20, mask260); Lib_IntVector_Intrinsics_vec256 t10 = Lib_IntVector_Intrinsics_vec256_shift_right64(t010, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 o10 = Lib_IntVector_Intrinsics_vec256_and(t10, mask2610); - Lib_IntVector_Intrinsics_vec256 o5 = Lib_IntVector_Intrinsics_vec256_and(t010, mask2610); + Lib_IntVector_Intrinsics_vec256 o10 = Lib_IntVector_Intrinsics_vec256_and(t10, mask260); + Lib_IntVector_Intrinsics_vec256 o5 = Lib_IntVector_Intrinsics_vec256_and(t010, mask260); Lib_IntVector_Intrinsics_vec256 t31 = Lib_IntVector_Intrinsics_vec256_shift_right64(t30, (uint32_t)30U); - Lib_IntVector_Intrinsics_vec256 o30 = Lib_IntVector_Intrinsics_vec256_and(t31, mask2610); + Lib_IntVector_Intrinsics_vec256 o30 = Lib_IntVector_Intrinsics_vec256_and(t31, mask260); Lib_IntVector_Intrinsics_vec256 o40 = Lib_IntVector_Intrinsics_vec256_shift_right64(m4, (uint32_t)40U); Lib_IntVector_Intrinsics_vec256 o00 = o5; @@ -199,13 +199,13 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec256 t3 = a34; Lib_IntVector_Intrinsics_vec256 t4 = a44; Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z0 = Lib_IntVector_Intrinsics_vec256_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask261); - Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask261); + Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask26); + Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask26); Lib_IntVector_Intrinsics_vec256 x1 = Lib_IntVector_Intrinsics_vec256_add64(t1, z0); Lib_IntVector_Intrinsics_vec256 x4 = Lib_IntVector_Intrinsics_vec256_add64(t4, z1); Lib_IntVector_Intrinsics_vec256 @@ -215,21 +215,21 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec256 t = Lib_IntVector_Intrinsics_vec256_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z12 = Lib_IntVector_Intrinsics_vec256_add64(z11, t); - Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask261); - Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask261); + Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask26); + Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask26); Lib_IntVector_Intrinsics_vec256 x2 = Lib_IntVector_Intrinsics_vec256_add64(t2, z01); Lib_IntVector_Intrinsics_vec256 x01 = Lib_IntVector_Intrinsics_vec256_add64(x0, z12); Lib_IntVector_Intrinsics_vec256 z02 = Lib_IntVector_Intrinsics_vec256_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z13 = Lib_IntVector_Intrinsics_vec256_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask261); - Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask261); + Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask26); + Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask26); Lib_IntVector_Intrinsics_vec256 x31 = Lib_IntVector_Intrinsics_vec256_add64(x3, z02); Lib_IntVector_Intrinsics_vec256 x12 = Lib_IntVector_Intrinsics_vec256_add64(x11, z13); Lib_IntVector_Intrinsics_vec256 z03 = Lib_IntVector_Intrinsics_vec256_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask261); + Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask26); Lib_IntVector_Intrinsics_vec256 x42 = Lib_IntVector_Intrinsics_vec256_add64(x41, z03); Lib_IntVector_Intrinsics_vec256 o01 = x02; Lib_IntVector_Intrinsics_vec256 o12 = x12; @@ -264,10 +264,10 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t } Hacl_Impl_Poly1305_Field32xN_256_fmul_r4_normalize(acc0, pre0); } - uint32_t len1 = n1 * (uint32_t)16U - len0; + uint32_t len1 = n * (uint32_t)16U - len0; uint8_t *t10 = blocks + len0; uint32_t nb = len1 / (uint32_t)16U; - uint32_t rem2 = len1 % (uint32_t)16U; + uint32_t rem1 = len1 % (uint32_t)16U; for (uint32_t i = (uint32_t)0U; i < nb; i++) { uint8_t *block = t10 + i * (uint32_t)16U; Lib_IntVector_Intrinsics_vec256 e[5U]; @@ -433,13 +433,13 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec256 t3 = a36; Lib_IntVector_Intrinsics_vec256 t4 = a46; Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z0 = Lib_IntVector_Intrinsics_vec256_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask261); - Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask261); + Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask26); + Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask26); Lib_IntVector_Intrinsics_vec256 x1 = Lib_IntVector_Intrinsics_vec256_add64(t11, z0); Lib_IntVector_Intrinsics_vec256 x4 = Lib_IntVector_Intrinsics_vec256_add64(t4, z1); Lib_IntVector_Intrinsics_vec256 @@ -449,21 +449,21 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec256 t = Lib_IntVector_Intrinsics_vec256_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z12 = Lib_IntVector_Intrinsics_vec256_add64(z11, t); - Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask261); - Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask261); + Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask26); + Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask26); Lib_IntVector_Intrinsics_vec256 x2 = Lib_IntVector_Intrinsics_vec256_add64(t2, z01); Lib_IntVector_Intrinsics_vec256 x01 = Lib_IntVector_Intrinsics_vec256_add64(x0, z12); Lib_IntVector_Intrinsics_vec256 z02 = Lib_IntVector_Intrinsics_vec256_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z13 = Lib_IntVector_Intrinsics_vec256_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask261); - Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask261); + Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask26); + Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask26); Lib_IntVector_Intrinsics_vec256 x31 = Lib_IntVector_Intrinsics_vec256_add64(x3, z02); Lib_IntVector_Intrinsics_vec256 x12 = Lib_IntVector_Intrinsics_vec256_add64(x11, z13); Lib_IntVector_Intrinsics_vec256 z03 = Lib_IntVector_Intrinsics_vec256_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask261); + Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask26); Lib_IntVector_Intrinsics_vec256 x42 = Lib_IntVector_Intrinsics_vec256_add64(x41, z03); Lib_IntVector_Intrinsics_vec256 o0 = x02; Lib_IntVector_Intrinsics_vec256 o1 = x12; @@ -476,13 +476,13 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t acc0[3U] = o3; acc0[4U] = o4; } - if (rem2 > (uint32_t)0U) { - uint8_t *last1 = t10 + nb * (uint32_t)16U; + if (rem1 > (uint32_t)0U) { + uint8_t *last = t10 + nb * (uint32_t)16U; Lib_IntVector_Intrinsics_vec256 e[5U]; for (uint32_t _i = 0U; _i < (uint32_t)5U; ++_i) e[_i] = Lib_IntVector_Intrinsics_vec256_zero; uint8_t tmp[16U] = { 0U }; - memcpy(tmp, last1, rem2 * sizeof(last1[0U])); + memcpy(tmp, last, rem1 * sizeof(last[0U])); uint64_t u0 = load64_le(tmp); uint64_t lo = u0; uint64_t u = load64_le(tmp + (uint32_t)8U); @@ -522,10 +522,10 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t e[2U] = f2; e[3U] = f3; e[4U] = f4; - uint64_t b = (uint64_t)1U << rem2 * (uint32_t)8U % (uint32_t)26U; + uint64_t b = (uint64_t)1U << rem1 * (uint32_t)8U % (uint32_t)26U; Lib_IntVector_Intrinsics_vec256 mask = Lib_IntVector_Intrinsics_vec256_load64(b); - Lib_IntVector_Intrinsics_vec256 fi = e[rem2 * (uint32_t)8U / (uint32_t)26U]; - e[rem2 * (uint32_t)8U / (uint32_t)26U] = Lib_IntVector_Intrinsics_vec256_or(fi, mask); + Lib_IntVector_Intrinsics_vec256 fi = e[rem1 * (uint32_t)8U / (uint32_t)26U]; + e[rem1 * (uint32_t)8U / (uint32_t)26U] = Lib_IntVector_Intrinsics_vec256_or(fi, mask); Lib_IntVector_Intrinsics_vec256 *r1 = pre0; Lib_IntVector_Intrinsics_vec256 *r5 = pre0 + (uint32_t)5U; Lib_IntVector_Intrinsics_vec256 r0 = r1[0U]; @@ -643,13 +643,13 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec256 t3 = a36; Lib_IntVector_Intrinsics_vec256 t4 = a46; Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z0 = Lib_IntVector_Intrinsics_vec256_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask261); - Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask261); + Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask26); + Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask26); Lib_IntVector_Intrinsics_vec256 x1 = Lib_IntVector_Intrinsics_vec256_add64(t11, z0); Lib_IntVector_Intrinsics_vec256 x4 = Lib_IntVector_Intrinsics_vec256_add64(t4, z1); Lib_IntVector_Intrinsics_vec256 @@ -659,21 +659,21 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec256 t = Lib_IntVector_Intrinsics_vec256_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z12 = Lib_IntVector_Intrinsics_vec256_add64(z11, t); - Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask261); - Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask261); + Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask26); + Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask26); Lib_IntVector_Intrinsics_vec256 x2 = Lib_IntVector_Intrinsics_vec256_add64(t2, z01); Lib_IntVector_Intrinsics_vec256 x01 = Lib_IntVector_Intrinsics_vec256_add64(x0, z12); Lib_IntVector_Intrinsics_vec256 z02 = Lib_IntVector_Intrinsics_vec256_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z13 = Lib_IntVector_Intrinsics_vec256_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask261); - Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask261); + Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask26); + Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask26); Lib_IntVector_Intrinsics_vec256 x31 = Lib_IntVector_Intrinsics_vec256_add64(x3, z02); Lib_IntVector_Intrinsics_vec256 x12 = Lib_IntVector_Intrinsics_vec256_add64(x11, z13); Lib_IntVector_Intrinsics_vec256 z03 = Lib_IntVector_Intrinsics_vec256_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask261); + Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask26); Lib_IntVector_Intrinsics_vec256 x42 = Lib_IntVector_Intrinsics_vec256_add64(x41, z03); Lib_IntVector_Intrinsics_vec256 o0 = x02; Lib_IntVector_Intrinsics_vec256 o1 = x12; @@ -687,7 +687,7 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t acc0[4U] = o4; } uint8_t tmp[16U] = { 0U }; - memcpy(tmp, rem1, r * sizeof(rem1[0U])); + memcpy(tmp, rem, r * sizeof(rem[0U])); if (r > (uint32_t)0U) { Lib_IntVector_Intrinsics_vec256 *pre = ctx + (uint32_t)5U; Lib_IntVector_Intrinsics_vec256 *acc = ctx; @@ -854,13 +854,13 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec256 t3 = a36; Lib_IntVector_Intrinsics_vec256 t4 = a46; Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z0 = Lib_IntVector_Intrinsics_vec256_shift_right64(t0, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t0, mask261); - Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask261); + Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t0, mask26); + Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask26); Lib_IntVector_Intrinsics_vec256 x1 = Lib_IntVector_Intrinsics_vec256_add64(t1, z0); Lib_IntVector_Intrinsics_vec256 x4 = Lib_IntVector_Intrinsics_vec256_add64(t4, z1); Lib_IntVector_Intrinsics_vec256 @@ -870,21 +870,21 @@ poly1305_padded_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint32_t len, uint8_t Lib_IntVector_Intrinsics_vec256 t = Lib_IntVector_Intrinsics_vec256_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z12 = Lib_IntVector_Intrinsics_vec256_add64(z11, t); - Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask261); - Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask261); + Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask26); + Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask26); Lib_IntVector_Intrinsics_vec256 x2 = Lib_IntVector_Intrinsics_vec256_add64(t2, z01); Lib_IntVector_Intrinsics_vec256 x01 = Lib_IntVector_Intrinsics_vec256_add64(x0, z12); Lib_IntVector_Intrinsics_vec256 z02 = Lib_IntVector_Intrinsics_vec256_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z13 = Lib_IntVector_Intrinsics_vec256_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask261); - Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask261); + Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask26); + Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask26); Lib_IntVector_Intrinsics_vec256 x31 = Lib_IntVector_Intrinsics_vec256_add64(x3, z02); Lib_IntVector_Intrinsics_vec256 x12 = Lib_IntVector_Intrinsics_vec256_add64(x11, z13); Lib_IntVector_Intrinsics_vec256 z03 = Lib_IntVector_Intrinsics_vec256_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask261); + Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask26); Lib_IntVector_Intrinsics_vec256 x42 = Lib_IntVector_Intrinsics_vec256_add64(x41, z03); Lib_IntVector_Intrinsics_vec256 o0 = x02; Lib_IntVector_Intrinsics_vec256 o1 = x12; @@ -1083,13 +1083,13 @@ poly1305_do_256( Lib_IntVector_Intrinsics_vec256 t3 = a36; Lib_IntVector_Intrinsics_vec256 t4 = a46; Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z0 = Lib_IntVector_Intrinsics_vec256_shift_right64(t0, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t0, mask261); - Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask261); + Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t0, mask26); + Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask26); Lib_IntVector_Intrinsics_vec256 x1 = Lib_IntVector_Intrinsics_vec256_add64(t1, z0); Lib_IntVector_Intrinsics_vec256 x4 = Lib_IntVector_Intrinsics_vec256_add64(t4, z1); Lib_IntVector_Intrinsics_vec256 @@ -1099,21 +1099,21 @@ poly1305_do_256( Lib_IntVector_Intrinsics_vec256 t = Lib_IntVector_Intrinsics_vec256_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z12 = Lib_IntVector_Intrinsics_vec256_add64(z11, t); - Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask261); - Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask261); + Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask26); + Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask26); Lib_IntVector_Intrinsics_vec256 x2 = Lib_IntVector_Intrinsics_vec256_add64(t2, z01); Lib_IntVector_Intrinsics_vec256 x01 = Lib_IntVector_Intrinsics_vec256_add64(x0, z12); Lib_IntVector_Intrinsics_vec256 z02 = Lib_IntVector_Intrinsics_vec256_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z13 = Lib_IntVector_Intrinsics_vec256_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask261); - Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask261); + Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask26); + Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask26); Lib_IntVector_Intrinsics_vec256 x31 = Lib_IntVector_Intrinsics_vec256_add64(x3, z02); Lib_IntVector_Intrinsics_vec256 x12 = Lib_IntVector_Intrinsics_vec256_add64(x11, z13); Lib_IntVector_Intrinsics_vec256 z03 = Lib_IntVector_Intrinsics_vec256_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask261); + Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask26); Lib_IntVector_Intrinsics_vec256 x42 = Lib_IntVector_Intrinsics_vec256_add64(x41, z03); Lib_IntVector_Intrinsics_vec256 o0 = x02; Lib_IntVector_Intrinsics_vec256 o1 = x12; @@ -1131,7 +1131,7 @@ poly1305_do_256( void Hacl_Chacha20Poly1305_256_aead_encrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, @@ -1139,9 +1139,9 @@ Hacl_Chacha20Poly1305_256_aead_encrypt( uint8_t *cipher, uint8_t *mac) { - Hacl_Chacha20_Vec256_chacha20_encrypt_256(mlen, cipher, m, k, n1, (uint32_t)1U); + Hacl_Chacha20_Vec256_chacha20_encrypt_256(mlen, cipher, m, k, n, (uint32_t)1U); uint8_t tmp[64U] = { 0U }; - Hacl_Chacha20_Vec256_chacha20_encrypt_256((uint32_t)64U, tmp, tmp, k, n1, (uint32_t)0U); + Hacl_Chacha20_Vec256_chacha20_encrypt_256((uint32_t)64U, tmp, tmp, k, n, (uint32_t)0U); uint8_t *key = tmp; poly1305_do_256(key, aadlen, aad, mlen, cipher, mac); } @@ -1149,7 +1149,7 @@ Hacl_Chacha20Poly1305_256_aead_encrypt( uint32_t Hacl_Chacha20Poly1305_256_aead_decrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, @@ -1159,7 +1159,7 @@ Hacl_Chacha20Poly1305_256_aead_decrypt( { uint8_t computed_mac[16U] = { 0U }; uint8_t tmp[64U] = { 0U }; - Hacl_Chacha20_Vec256_chacha20_encrypt_256((uint32_t)64U, tmp, tmp, k, n1, (uint32_t)0U); + Hacl_Chacha20_Vec256_chacha20_encrypt_256((uint32_t)64U, tmp, tmp, k, n, (uint32_t)0U); uint8_t *key = tmp; poly1305_do_256(key, aadlen, aad, mlen, cipher, computed_mac); uint8_t res = (uint8_t)255U; @@ -1169,7 +1169,7 @@ Hacl_Chacha20Poly1305_256_aead_decrypt( } uint8_t z = res; if (z == (uint8_t)255U) { - Hacl_Chacha20_Vec256_chacha20_encrypt_256(mlen, m, cipher, k, n1, (uint32_t)1U); + Hacl_Chacha20_Vec256_chacha20_encrypt_256(mlen, m, cipher, k, n, (uint32_t)1U); return (uint32_t)0U; } return (uint32_t)1U; diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_256.h b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_256.h index a9bb99f4f..550cc0564 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_256.h +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_256.h @@ -37,7 +37,7 @@ void Hacl_Chacha20Poly1305_256_aead_encrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, @@ -48,7 +48,7 @@ Hacl_Chacha20Poly1305_256_aead_encrypt( uint32_t Hacl_Chacha20Poly1305_256_aead_decrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_32.c b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_32.c index a1e48c18e..760e3d548 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_32.c +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_32.c @@ -26,14 +26,14 @@ static inline void poly1305_padded_32(uint64_t *ctx, uint32_t len, uint8_t *text) { - uint32_t n1 = len / (uint32_t)16U; + uint32_t n = len / (uint32_t)16U; uint32_t r = len % (uint32_t)16U; uint8_t *blocks = text; - uint8_t *rem1 = text + n1 * (uint32_t)16U; + uint8_t *rem = text + n * (uint32_t)16U; uint64_t *pre0 = ctx + (uint32_t)5U; uint64_t *acc0 = ctx; - uint32_t nb = n1 * (uint32_t)16U / (uint32_t)16U; - uint32_t rem2 = n1 * (uint32_t)16U % (uint32_t)16U; + uint32_t nb = n * (uint32_t)16U / (uint32_t)16U; + uint32_t rem1 = n * (uint32_t)16U % (uint32_t)16U; for (uint32_t i = (uint32_t)0U; i < nb; i++) { uint8_t *block = blocks + i * (uint32_t)16U; uint64_t e[5U] = { 0U }; @@ -118,29 +118,29 @@ poly1305_padded_32(uint64_t *ctx, uint32_t len, uint8_t *text) uint64_t t2 = a26; uint64_t t3 = a36; uint64_t t4 = a46; - uint64_t mask261 = (uint64_t)0x3ffffffU; + uint64_t mask26 = (uint64_t)0x3ffffffU; uint64_t z0 = t0 >> (uint32_t)26U; uint64_t z1 = t3 >> (uint32_t)26U; - uint64_t x0 = t0 & mask261; - uint64_t x3 = t3 & mask261; + uint64_t x0 = t0 & mask26; + uint64_t x3 = t3 & mask26; uint64_t x1 = t1 + z0; uint64_t x4 = t4 + z1; uint64_t z01 = x1 >> (uint32_t)26U; uint64_t z11 = x4 >> (uint32_t)26U; uint64_t t = z11 << (uint32_t)2U; uint64_t z12 = z11 + t; - uint64_t x11 = x1 & mask261; - uint64_t x41 = x4 & mask261; + uint64_t x11 = x1 & mask26; + uint64_t x41 = x4 & mask26; uint64_t x2 = t2 + z01; uint64_t x01 = x0 + z12; uint64_t z02 = x2 >> (uint32_t)26U; uint64_t z13 = x01 >> (uint32_t)26U; - uint64_t x21 = x2 & mask261; - uint64_t x02 = x01 & mask261; + uint64_t x21 = x2 & mask26; + uint64_t x02 = x01 & mask26; uint64_t x31 = x3 + z02; uint64_t x12 = x11 + z13; uint64_t z03 = x31 >> (uint32_t)26U; - uint64_t x32 = x31 & mask261; + uint64_t x32 = x31 & mask26; uint64_t x42 = x41 + z03; uint64_t o0 = x02; uint64_t o1 = x12; @@ -153,11 +153,11 @@ poly1305_padded_32(uint64_t *ctx, uint32_t len, uint8_t *text) acc0[3U] = o3; acc0[4U] = o4; } - if (rem2 > (uint32_t)0U) { - uint8_t *last1 = blocks + nb * (uint32_t)16U; + if (rem1 > (uint32_t)0U) { + uint8_t *last = blocks + nb * (uint32_t)16U; uint64_t e[5U] = { 0U }; uint8_t tmp[16U] = { 0U }; - memcpy(tmp, last1, rem2 * sizeof(last1[0U])); + memcpy(tmp, last, rem1 * sizeof(last[0U])); uint64_t u0 = load64_le(tmp); uint64_t lo = u0; uint64_t u = load64_le(tmp + (uint32_t)8U); @@ -179,10 +179,10 @@ poly1305_padded_32(uint64_t *ctx, uint32_t len, uint8_t *text) e[2U] = f2; e[3U] = f3; e[4U] = f4; - uint64_t b = (uint64_t)1U << rem2 * (uint32_t)8U % (uint32_t)26U; + uint64_t b = (uint64_t)1U << rem1 * (uint32_t)8U % (uint32_t)26U; uint64_t mask = b; - uint64_t fi = e[rem2 * (uint32_t)8U / (uint32_t)26U]; - e[rem2 * (uint32_t)8U / (uint32_t)26U] = fi | mask; + uint64_t fi = e[rem1 * (uint32_t)8U / (uint32_t)26U]; + e[rem1 * (uint32_t)8U / (uint32_t)26U] = fi | mask; uint64_t *r1 = pre0; uint64_t *r5 = pre0 + (uint32_t)5U; uint64_t r0 = r1[0U]; @@ -239,29 +239,29 @@ poly1305_padded_32(uint64_t *ctx, uint32_t len, uint8_t *text) uint64_t t2 = a26; uint64_t t3 = a36; uint64_t t4 = a46; - uint64_t mask261 = (uint64_t)0x3ffffffU; + uint64_t mask26 = (uint64_t)0x3ffffffU; uint64_t z0 = t0 >> (uint32_t)26U; uint64_t z1 = t3 >> (uint32_t)26U; - uint64_t x0 = t0 & mask261; - uint64_t x3 = t3 & mask261; + uint64_t x0 = t0 & mask26; + uint64_t x3 = t3 & mask26; uint64_t x1 = t1 + z0; uint64_t x4 = t4 + z1; uint64_t z01 = x1 >> (uint32_t)26U; uint64_t z11 = x4 >> (uint32_t)26U; uint64_t t = z11 << (uint32_t)2U; uint64_t z12 = z11 + t; - uint64_t x11 = x1 & mask261; - uint64_t x41 = x4 & mask261; + uint64_t x11 = x1 & mask26; + uint64_t x41 = x4 & mask26; uint64_t x2 = t2 + z01; uint64_t x01 = x0 + z12; uint64_t z02 = x2 >> (uint32_t)26U; uint64_t z13 = x01 >> (uint32_t)26U; - uint64_t x21 = x2 & mask261; - uint64_t x02 = x01 & mask261; + uint64_t x21 = x2 & mask26; + uint64_t x02 = x01 & mask26; uint64_t x31 = x3 + z02; uint64_t x12 = x11 + z13; uint64_t z03 = x31 >> (uint32_t)26U; - uint64_t x32 = x31 & mask261; + uint64_t x32 = x31 & mask26; uint64_t x42 = x41 + z03; uint64_t o0 = x02; uint64_t o1 = x12; @@ -275,7 +275,7 @@ poly1305_padded_32(uint64_t *ctx, uint32_t len, uint8_t *text) acc0[4U] = o4; } uint8_t tmp[16U] = { 0U }; - memcpy(tmp, rem1, r * sizeof(rem1[0U])); + memcpy(tmp, rem, r * sizeof(rem[0U])); if (r > (uint32_t)0U) { uint64_t *pre = ctx + (uint32_t)5U; uint64_t *acc = ctx; @@ -361,29 +361,29 @@ poly1305_padded_32(uint64_t *ctx, uint32_t len, uint8_t *text) uint64_t t2 = a26; uint64_t t3 = a36; uint64_t t4 = a46; - uint64_t mask261 = (uint64_t)0x3ffffffU; + uint64_t mask26 = (uint64_t)0x3ffffffU; uint64_t z0 = t0 >> (uint32_t)26U; uint64_t z1 = t3 >> (uint32_t)26U; - uint64_t x0 = t0 & mask261; - uint64_t x3 = t3 & mask261; + uint64_t x0 = t0 & mask26; + uint64_t x3 = t3 & mask26; uint64_t x1 = t1 + z0; uint64_t x4 = t4 + z1; uint64_t z01 = x1 >> (uint32_t)26U; uint64_t z11 = x4 >> (uint32_t)26U; uint64_t t = z11 << (uint32_t)2U; uint64_t z12 = z11 + t; - uint64_t x11 = x1 & mask261; - uint64_t x41 = x4 & mask261; + uint64_t x11 = x1 & mask26; + uint64_t x41 = x4 & mask26; uint64_t x2 = t2 + z01; uint64_t x01 = x0 + z12; uint64_t z02 = x2 >> (uint32_t)26U; uint64_t z13 = x01 >> (uint32_t)26U; - uint64_t x21 = x2 & mask261; - uint64_t x02 = x01 & mask261; + uint64_t x21 = x2 & mask26; + uint64_t x02 = x01 & mask26; uint64_t x31 = x3 + z02; uint64_t x12 = x11 + z13; uint64_t z03 = x31 >> (uint32_t)26U; - uint64_t x32 = x31 & mask261; + uint64_t x32 = x31 & mask26; uint64_t x42 = x41 + z03; uint64_t o0 = x02; uint64_t o1 = x12; @@ -499,29 +499,29 @@ poly1305_do_32( uint64_t t2 = a26; uint64_t t3 = a36; uint64_t t4 = a46; - uint64_t mask261 = (uint64_t)0x3ffffffU; + uint64_t mask26 = (uint64_t)0x3ffffffU; uint64_t z0 = t0 >> (uint32_t)26U; uint64_t z1 = t3 >> (uint32_t)26U; - uint64_t x0 = t0 & mask261; - uint64_t x3 = t3 & mask261; + uint64_t x0 = t0 & mask26; + uint64_t x3 = t3 & mask26; uint64_t x1 = t1 + z0; uint64_t x4 = t4 + z1; uint64_t z01 = x1 >> (uint32_t)26U; uint64_t z11 = x4 >> (uint32_t)26U; uint64_t t = z11 << (uint32_t)2U; uint64_t z12 = z11 + t; - uint64_t x11 = x1 & mask261; - uint64_t x41 = x4 & mask261; + uint64_t x11 = x1 & mask26; + uint64_t x41 = x4 & mask26; uint64_t x2 = t2 + z01; uint64_t x01 = x0 + z12; uint64_t z02 = x2 >> (uint32_t)26U; uint64_t z13 = x01 >> (uint32_t)26U; - uint64_t x21 = x2 & mask261; - uint64_t x02 = x01 & mask261; + uint64_t x21 = x2 & mask26; + uint64_t x02 = x01 & mask26; uint64_t x31 = x3 + z02; uint64_t x12 = x11 + z13; uint64_t z03 = x31 >> (uint32_t)26U; - uint64_t x32 = x31 & mask261; + uint64_t x32 = x31 & mask26; uint64_t x42 = x41 + z03; uint64_t o0 = x02; uint64_t o1 = x12; @@ -539,7 +539,7 @@ poly1305_do_32( void Hacl_Chacha20Poly1305_32_aead_encrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, @@ -547,9 +547,9 @@ Hacl_Chacha20Poly1305_32_aead_encrypt( uint8_t *cipher, uint8_t *mac) { - Hacl_Chacha20_chacha20_encrypt(mlen, cipher, m, k, n1, (uint32_t)1U); + Hacl_Chacha20_chacha20_encrypt(mlen, cipher, m, k, n, (uint32_t)1U); uint8_t tmp[64U] = { 0U }; - Hacl_Chacha20_chacha20_encrypt((uint32_t)64U, tmp, tmp, k, n1, (uint32_t)0U); + Hacl_Chacha20_chacha20_encrypt((uint32_t)64U, tmp, tmp, k, n, (uint32_t)0U); uint8_t *key = tmp; poly1305_do_32(key, aadlen, aad, mlen, cipher, mac); } @@ -557,7 +557,7 @@ Hacl_Chacha20Poly1305_32_aead_encrypt( uint32_t Hacl_Chacha20Poly1305_32_aead_decrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, @@ -567,7 +567,7 @@ Hacl_Chacha20Poly1305_32_aead_decrypt( { uint8_t computed_mac[16U] = { 0U }; uint8_t tmp[64U] = { 0U }; - Hacl_Chacha20_chacha20_encrypt((uint32_t)64U, tmp, tmp, k, n1, (uint32_t)0U); + Hacl_Chacha20_chacha20_encrypt((uint32_t)64U, tmp, tmp, k, n, (uint32_t)0U); uint8_t *key = tmp; poly1305_do_32(key, aadlen, aad, mlen, cipher, computed_mac); uint8_t res = (uint8_t)255U; @@ -577,7 +577,7 @@ Hacl_Chacha20Poly1305_32_aead_decrypt( } uint8_t z = res; if (z == (uint8_t)255U) { - Hacl_Chacha20_chacha20_encrypt(mlen, m, cipher, k, n1, (uint32_t)1U); + Hacl_Chacha20_chacha20_encrypt(mlen, m, cipher, k, n, (uint32_t)1U); return (uint32_t)0U; } return (uint32_t)1U; diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_32.h b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_32.h index 05ee9540c..615f3f96d 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_32.h +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20Poly1305_32.h @@ -36,7 +36,7 @@ void Hacl_Chacha20Poly1305_32_aead_encrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, @@ -47,7 +47,7 @@ Hacl_Chacha20Poly1305_32_aead_encrypt( uint32_t Hacl_Chacha20Poly1305_32_aead_decrypt( uint8_t *k, - uint8_t *n1, + uint8_t *n, uint32_t aadlen, uint8_t *aad, uint32_t mlen, diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec128.c b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec128.c index c4c12255d..cf80c431d 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec128.c +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec128.c @@ -153,7 +153,7 @@ chacha20_core_128( } static inline void -chacha20_init_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint8_t *k, uint8_t *n1, uint32_t ctr) +chacha20_init_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint8_t *k, uint8_t *n, uint32_t ctr) { uint32_t ctx1[16U] = { 0U }; uint32_t *uu____0 = ctx1; @@ -175,7 +175,7 @@ chacha20_init_128(Lib_IntVector_Intrinsics_vec128 *ctx, uint8_t *k, uint8_t *n1, uint32_t *uu____2 = ctx1 + (uint32_t)13U; for (uint32_t i = (uint32_t)0U; i < (uint32_t)3U; i++) { uint32_t *os = uu____2; - uint8_t *bj = n1 + i * (uint32_t)4U; + uint8_t *bj = n + i * (uint32_t)4U; uint32_t u = load32_le(bj); uint32_t r = u; uint32_t x = r; @@ -203,16 +203,16 @@ Hacl_Chacha20_Vec128_chacha20_encrypt_128( uint8_t *out, uint8_t *text, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr) { Lib_IntVector_Intrinsics_vec128 ctx[16U]; for (uint32_t _i = 0U; _i < (uint32_t)16U; ++_i) ctx[_i] = Lib_IntVector_Intrinsics_vec128_zero; - chacha20_init_128(ctx, key, n1, ctr); - uint32_t rem1 = len % (uint32_t)256U; + chacha20_init_128(ctx, key, n, ctr); + uint32_t rem = len % (uint32_t)256U; uint32_t nb = len / (uint32_t)256U; - uint32_t rem2 = len % (uint32_t)256U; + uint32_t rem1 = len % (uint32_t)256U; for (uint32_t i = (uint32_t)0U; i < nb; i++) { uint8_t *uu____0 = out + i * (uint32_t)256U; uint8_t *uu____1 = text + i * (uint32_t)256U; @@ -339,11 +339,11 @@ Hacl_Chacha20_Vec128_chacha20_encrypt_128( Lib_IntVector_Intrinsics_vec128_store_le(uu____0 + i0 * (uint32_t)16U, y); } } - if (rem2 > (uint32_t)0U) { + if (rem1 > (uint32_t)0U) { uint8_t *uu____2 = out + nb * (uint32_t)256U; uint8_t *uu____3 = text + nb * (uint32_t)256U; uint8_t plain[256U] = { 0U }; - memcpy(plain, uu____3, rem1 * sizeof(uu____3[0U])); + memcpy(plain, uu____3, rem * sizeof(uu____3[0U])); Lib_IntVector_Intrinsics_vec128 k[16U]; for (uint32_t _i = 0U; _i < (uint32_t)16U; ++_i) k[_i] = Lib_IntVector_Intrinsics_vec128_zero; @@ -466,7 +466,7 @@ Hacl_Chacha20_Vec128_chacha20_encrypt_128( Lib_IntVector_Intrinsics_vec128 y = Lib_IntVector_Intrinsics_vec128_xor(x, k[i]); Lib_IntVector_Intrinsics_vec128_store_le(plain + i * (uint32_t)16U, y); } - memcpy(uu____2, plain, rem1 * sizeof(plain[0U])); + memcpy(uu____2, plain, rem * sizeof(plain[0U])); } } @@ -476,16 +476,16 @@ Hacl_Chacha20_Vec128_chacha20_decrypt_128( uint8_t *out, uint8_t *cipher, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr) { Lib_IntVector_Intrinsics_vec128 ctx[16U]; for (uint32_t _i = 0U; _i < (uint32_t)16U; ++_i) ctx[_i] = Lib_IntVector_Intrinsics_vec128_zero; - chacha20_init_128(ctx, key, n1, ctr); - uint32_t rem1 = len % (uint32_t)256U; + chacha20_init_128(ctx, key, n, ctr); + uint32_t rem = len % (uint32_t)256U; uint32_t nb = len / (uint32_t)256U; - uint32_t rem2 = len % (uint32_t)256U; + uint32_t rem1 = len % (uint32_t)256U; for (uint32_t i = (uint32_t)0U; i < nb; i++) { uint8_t *uu____0 = out + i * (uint32_t)256U; uint8_t *uu____1 = cipher + i * (uint32_t)256U; @@ -612,11 +612,11 @@ Hacl_Chacha20_Vec128_chacha20_decrypt_128( Lib_IntVector_Intrinsics_vec128_store_le(uu____0 + i0 * (uint32_t)16U, y); } } - if (rem2 > (uint32_t)0U) { + if (rem1 > (uint32_t)0U) { uint8_t *uu____2 = out + nb * (uint32_t)256U; uint8_t *uu____3 = cipher + nb * (uint32_t)256U; uint8_t plain[256U] = { 0U }; - memcpy(plain, uu____3, rem1 * sizeof(uu____3[0U])); + memcpy(plain, uu____3, rem * sizeof(uu____3[0U])); Lib_IntVector_Intrinsics_vec128 k[16U]; for (uint32_t _i = 0U; _i < (uint32_t)16U; ++_i) k[_i] = Lib_IntVector_Intrinsics_vec128_zero; @@ -739,6 +739,6 @@ Hacl_Chacha20_Vec128_chacha20_decrypt_128( Lib_IntVector_Intrinsics_vec128 y = Lib_IntVector_Intrinsics_vec128_xor(x, k[i]); Lib_IntVector_Intrinsics_vec128_store_le(plain + i * (uint32_t)16U, y); } - memcpy(uu____2, plain, rem1 * sizeof(plain[0U])); + memcpy(uu____2, plain, rem * sizeof(plain[0U])); } } diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec128.h b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec128.h index a04f30c7b..dc59ba1c7 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec128.h +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec128.h @@ -39,7 +39,7 @@ Hacl_Chacha20_Vec128_chacha20_encrypt_128( uint8_t *out, uint8_t *text, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr); void @@ -48,7 +48,7 @@ Hacl_Chacha20_Vec128_chacha20_decrypt_128( uint8_t *out, uint8_t *cipher, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr); #define __Hacl_Chacha20_Vec128_H_DEFINED diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec256.c b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec256.c index 2e80c351f..49902c130 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec256.c +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec256.c @@ -153,7 +153,7 @@ chacha20_core_256( } static inline void -chacha20_init_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint8_t *k, uint8_t *n1, uint32_t ctr) +chacha20_init_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint8_t *k, uint8_t *n, uint32_t ctr) { uint32_t ctx1[16U] = { 0U }; uint32_t *uu____0 = ctx1; @@ -175,7 +175,7 @@ chacha20_init_256(Lib_IntVector_Intrinsics_vec256 *ctx, uint8_t *k, uint8_t *n1, uint32_t *uu____2 = ctx1 + (uint32_t)13U; for (uint32_t i = (uint32_t)0U; i < (uint32_t)3U; i++) { uint32_t *os = uu____2; - uint8_t *bj = n1 + i * (uint32_t)4U; + uint8_t *bj = n + i * (uint32_t)4U; uint32_t u = load32_le(bj); uint32_t r = u; uint32_t x = r; @@ -207,16 +207,16 @@ Hacl_Chacha20_Vec256_chacha20_encrypt_256( uint8_t *out, uint8_t *text, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr) { Lib_IntVector_Intrinsics_vec256 ctx[16U]; for (uint32_t _i = 0U; _i < (uint32_t)16U; ++_i) ctx[_i] = Lib_IntVector_Intrinsics_vec256_zero; - chacha20_init_256(ctx, key, n1, ctr); - uint32_t rem1 = len % (uint32_t)512U; + chacha20_init_256(ctx, key, n, ctr); + uint32_t rem = len % (uint32_t)512U; uint32_t nb = len / (uint32_t)512U; - uint32_t rem2 = len % (uint32_t)512U; + uint32_t rem1 = len % (uint32_t)512U; for (uint32_t i = (uint32_t)0U; i < nb; i++) { uint8_t *uu____0 = out + i * (uint32_t)512U; uint8_t *uu____1 = text + i * (uint32_t)512U; @@ -375,11 +375,11 @@ Hacl_Chacha20_Vec256_chacha20_encrypt_256( Lib_IntVector_Intrinsics_vec256_store_le(uu____0 + i0 * (uint32_t)32U, y); } } - if (rem2 > (uint32_t)0U) { + if (rem1 > (uint32_t)0U) { uint8_t *uu____2 = out + nb * (uint32_t)512U; uint8_t *uu____3 = text + nb * (uint32_t)512U; uint8_t plain[512U] = { 0U }; - memcpy(plain, uu____3, rem1 * sizeof(uu____3[0U])); + memcpy(plain, uu____3, rem * sizeof(uu____3[0U])); Lib_IntVector_Intrinsics_vec256 k[16U]; for (uint32_t _i = 0U; _i < (uint32_t)16U; ++_i) k[_i] = Lib_IntVector_Intrinsics_vec256_zero; @@ -534,7 +534,7 @@ Hacl_Chacha20_Vec256_chacha20_encrypt_256( Lib_IntVector_Intrinsics_vec256 y = Lib_IntVector_Intrinsics_vec256_xor(x, k[i]); Lib_IntVector_Intrinsics_vec256_store_le(plain + i * (uint32_t)32U, y); } - memcpy(uu____2, plain, rem1 * sizeof(plain[0U])); + memcpy(uu____2, plain, rem * sizeof(plain[0U])); } } @@ -544,16 +544,16 @@ Hacl_Chacha20_Vec256_chacha20_decrypt_256( uint8_t *out, uint8_t *cipher, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr) { Lib_IntVector_Intrinsics_vec256 ctx[16U]; for (uint32_t _i = 0U; _i < (uint32_t)16U; ++_i) ctx[_i] = Lib_IntVector_Intrinsics_vec256_zero; - chacha20_init_256(ctx, key, n1, ctr); - uint32_t rem1 = len % (uint32_t)512U; + chacha20_init_256(ctx, key, n, ctr); + uint32_t rem = len % (uint32_t)512U; uint32_t nb = len / (uint32_t)512U; - uint32_t rem2 = len % (uint32_t)512U; + uint32_t rem1 = len % (uint32_t)512U; for (uint32_t i = (uint32_t)0U; i < nb; i++) { uint8_t *uu____0 = out + i * (uint32_t)512U; uint8_t *uu____1 = cipher + i * (uint32_t)512U; @@ -712,11 +712,11 @@ Hacl_Chacha20_Vec256_chacha20_decrypt_256( Lib_IntVector_Intrinsics_vec256_store_le(uu____0 + i0 * (uint32_t)32U, y); } } - if (rem2 > (uint32_t)0U) { + if (rem1 > (uint32_t)0U) { uint8_t *uu____2 = out + nb * (uint32_t)512U; uint8_t *uu____3 = cipher + nb * (uint32_t)512U; uint8_t plain[512U] = { 0U }; - memcpy(plain, uu____3, rem1 * sizeof(uu____3[0U])); + memcpy(plain, uu____3, rem * sizeof(uu____3[0U])); Lib_IntVector_Intrinsics_vec256 k[16U]; for (uint32_t _i = 0U; _i < (uint32_t)16U; ++_i) k[_i] = Lib_IntVector_Intrinsics_vec256_zero; @@ -871,6 +871,6 @@ Hacl_Chacha20_Vec256_chacha20_decrypt_256( Lib_IntVector_Intrinsics_vec256 y = Lib_IntVector_Intrinsics_vec256_xor(x, k[i]); Lib_IntVector_Intrinsics_vec256_store_le(plain + i * (uint32_t)32U, y); } - memcpy(uu____2, plain, rem1 * sizeof(plain[0U])); + memcpy(uu____2, plain, rem * sizeof(plain[0U])); } } diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec256.h b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec256.h index 59e295e8b..1ae9ea379 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec256.h +++ b/libs/nss/src/lib/freebl/verified/Hacl_Chacha20_Vec256.h @@ -39,7 +39,7 @@ Hacl_Chacha20_Vec256_chacha20_encrypt_256( uint8_t *out, uint8_t *text, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr); void @@ -48,7 +48,7 @@ Hacl_Chacha20_Vec256_chacha20_decrypt_256( uint8_t *out, uint8_t *cipher, uint8_t *key, - uint8_t *n1, + uint8_t *n, uint32_t ctr); #define __Hacl_Chacha20_Vec256_H_DEFINED diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Curve25519_51.c b/libs/nss/src/lib/freebl/verified/Hacl_Curve25519_51.c index 1c5bd7b37..2b76eafe2 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Curve25519_51.c +++ b/libs/nss/src/lib/freebl/verified/Hacl_Curve25519_51.c @@ -648,7 +648,7 @@ cswap20(uint64_t bit, uint64_t *p1, uint64_t *p2) } } -static uint8_t g25519[32U] = { (uint8_t)9U }; +static const uint8_t g25519[32U] = { (uint8_t)9U }; static void point_add_and_double(uint64_t *q, uint64_t *p01_tmp1, FStar_UInt128_uint128 *tmp2) @@ -721,7 +721,7 @@ point_double(uint64_t *nq, uint64_t *tmp1, FStar_UInt128_uint128 *tmp2) } static void -montgomery_ladder(uint64_t *out, uint8_t *key, uint64_t *init1) +montgomery_ladder(uint64_t *out, uint8_t *key, uint64_t *init) { FStar_UInt128_uint128 tmp2[10U]; for (uint32_t _i = 0U; _i < (uint32_t)10U; ++_i) @@ -731,7 +731,7 @@ montgomery_ladder(uint64_t *out, uint8_t *key, uint64_t *init1) uint64_t *p01 = p01_tmp1_swap; uint64_t *p03 = p01; uint64_t *p11 = p01 + (uint32_t)10U; - memcpy(p11, init1, (uint32_t)10U * sizeof(init1[0U])); + memcpy(p11, init, (uint32_t)10U * sizeof(init[0U])); uint64_t *x0 = p03; uint64_t *z0 = p03 + (uint32_t)5U; x0[0U] = (uint64_t)1U; @@ -748,24 +748,24 @@ montgomery_ladder(uint64_t *out, uint8_t *key, uint64_t *init1) uint64_t *p01_tmp11 = p01_tmp1_swap; uint64_t *nq1 = p01_tmp1_swap; uint64_t *nq_p11 = p01_tmp1_swap + (uint32_t)10U; - uint64_t *swap1 = p01_tmp1_swap + (uint32_t)40U; + uint64_t *swap = p01_tmp1_swap + (uint32_t)40U; cswap20((uint64_t)1U, nq1, nq_p11); - point_add_and_double(init1, p01_tmp11, tmp2); - swap1[0U] = (uint64_t)1U; + point_add_and_double(init, p01_tmp11, tmp2); + swap[0U] = (uint64_t)1U; for (uint32_t i = (uint32_t)0U; i < (uint32_t)251U; i++) { uint64_t *p01_tmp12 = p01_tmp1_swap; - uint64_t *swap2 = p01_tmp1_swap + (uint32_t)40U; + uint64_t *swap1 = p01_tmp1_swap + (uint32_t)40U; uint64_t *nq2 = p01_tmp12; uint64_t *nq_p12 = p01_tmp12 + (uint32_t)10U; uint64_t bit = (uint64_t)(key[((uint32_t)253U - i) / (uint32_t)8U] >> ((uint32_t)253U - i) % (uint32_t)8U & (uint8_t)1U); - uint64_t sw = swap2[0U] ^ bit; + uint64_t sw = swap1[0U] ^ bit; cswap20(sw, nq2, nq_p12); - point_add_and_double(init1, p01_tmp12, tmp2); - swap2[0U] = bit; + point_add_and_double(init, p01_tmp12, tmp2); + swap1[0U] = bit; } - uint64_t sw = swap1[0U]; + uint64_t sw = swap[0U]; cswap20(sw, nq1, nq_p11); uint64_t *nq10 = p01_tmp1; uint64_t *tmp1 = p01_tmp1 + (uint32_t)20U; @@ -776,10 +776,10 @@ montgomery_ladder(uint64_t *out, uint8_t *key, uint64_t *init1) } static void -fsquare_times(uint64_t *o, uint64_t *inp, FStar_UInt128_uint128 *tmp, uint32_t n1) +fsquare_times(uint64_t *o, uint64_t *inp, FStar_UInt128_uint128 *tmp, uint32_t n) { fsqr0(o, inp); - for (uint32_t i = (uint32_t)0U; i < n1 - (uint32_t)1U; i++) { + for (uint32_t i = (uint32_t)0U; i < n - (uint32_t)1U; i++) { fsqr0(o, o); } } @@ -840,7 +840,7 @@ encode_point(uint8_t *o, uint64_t *i) void Hacl_Curve25519_51_scalarmult(uint8_t *out, uint8_t *priv, uint8_t *pub) { - uint64_t init1[10U] = { 0U }; + uint64_t init[10U] = { 0U }; uint64_t tmp[4U] = { 0U }; for (uint32_t i = (uint32_t)0U; i < (uint32_t)4U; i++) { uint64_t *os = tmp; @@ -852,8 +852,8 @@ Hacl_Curve25519_51_scalarmult(uint8_t *out, uint8_t *priv, uint8_t *pub) } uint64_t tmp3 = tmp[3U]; tmp[3U] = tmp3 & (uint64_t)0x7fffffffffffffffU; - uint64_t *x = init1; - uint64_t *z = init1 + (uint32_t)5U; + uint64_t *x = init; + uint64_t *z = init + (uint32_t)5U; z[0U] = (uint64_t)1U; z[1U] = (uint64_t)0U; z[2U] = (uint64_t)0U; @@ -872,8 +872,8 @@ Hacl_Curve25519_51_scalarmult(uint8_t *out, uint8_t *priv, uint8_t *pub) x[2U] = f1h | f2l; x[3U] = f2h | f3l; x[4U] = f3h; - montgomery_ladder(init1, priv, init1); - encode_point(out, init1); + montgomery_ladder(init, priv, init); + encode_point(out, init); } void @@ -891,11 +891,11 @@ Hacl_Curve25519_51_secret_to_public(uint8_t *pub, uint8_t *priv) bool Hacl_Curve25519_51_ecdh(uint8_t *out, uint8_t *priv, uint8_t *pub) { - uint8_t zeros1[32U] = { 0U }; + uint8_t zeros[32U] = { 0U }; Hacl_Curve25519_51_scalarmult(out, priv, pub); uint8_t res = (uint8_t)255U; for (uint32_t i = (uint32_t)0U; i < (uint32_t)32U; i++) { - uint8_t uu____0 = FStar_UInt8_eq_mask(out[i], zeros1[i]); + uint8_t uu____0 = FStar_UInt8_eq_mask(out[i], zeros[i]); res = uu____0 & res; } uint8_t z = res; diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_128.c b/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_128.c index 8fea2949e..7fbd7fc4b 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_128.c +++ b/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_128.c @@ -239,13 +239,13 @@ Hacl_Impl_Poly1305_Field32xN_128_fmul_r2_normalize( Lib_IntVector_Intrinsics_vec128 t3 = a35; Lib_IntVector_Intrinsics_vec128 t4 = a45; Lib_IntVector_Intrinsics_vec128 - mask261 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec128 z0 = Lib_IntVector_Intrinsics_vec128_shift_right64(t0, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z1 = Lib_IntVector_Intrinsics_vec128_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t0, mask261); - Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask261); + Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t0, mask26); + Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask26); Lib_IntVector_Intrinsics_vec128 x1 = Lib_IntVector_Intrinsics_vec128_add64(t1, z0); Lib_IntVector_Intrinsics_vec128 x4 = Lib_IntVector_Intrinsics_vec128_add64(t4, z1); Lib_IntVector_Intrinsics_vec128 @@ -255,21 +255,21 @@ Hacl_Impl_Poly1305_Field32xN_128_fmul_r2_normalize( Lib_IntVector_Intrinsics_vec128 t = Lib_IntVector_Intrinsics_vec128_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec128 z12 = Lib_IntVector_Intrinsics_vec128_add64(z11, t); - Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask261); - Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask261); + Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask26); + Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask26); Lib_IntVector_Intrinsics_vec128 x2 = Lib_IntVector_Intrinsics_vec128_add64(t2, z01); Lib_IntVector_Intrinsics_vec128 x01 = Lib_IntVector_Intrinsics_vec128_add64(x0, z12); Lib_IntVector_Intrinsics_vec128 z02 = Lib_IntVector_Intrinsics_vec128_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z13 = Lib_IntVector_Intrinsics_vec128_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask261); - Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask261); + Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask26); + Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask26); Lib_IntVector_Intrinsics_vec128 x31 = Lib_IntVector_Intrinsics_vec128_add64(x3, z02); Lib_IntVector_Intrinsics_vec128 x12 = Lib_IntVector_Intrinsics_vec128_add64(x11, z13); Lib_IntVector_Intrinsics_vec128 z03 = Lib_IntVector_Intrinsics_vec128_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask261); + Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask26); Lib_IntVector_Intrinsics_vec128 x42 = Lib_IntVector_Intrinsics_vec128_add64(x41, z03); Lib_IntVector_Intrinsics_vec128 o0 = x02; Lib_IntVector_Intrinsics_vec128 o10 = x12; @@ -514,13 +514,13 @@ Hacl_Poly1305_128_poly1305_init(Lib_IntVector_Intrinsics_vec128 *ctx, uint8_t *k Lib_IntVector_Intrinsics_vec128 t3 = a34; Lib_IntVector_Intrinsics_vec128 t4 = a44; Lib_IntVector_Intrinsics_vec128 - mask261 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec128 z0 = Lib_IntVector_Intrinsics_vec128_shift_right64(t0, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z1 = Lib_IntVector_Intrinsics_vec128_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t0, mask261); - Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask261); + Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t0, mask26); + Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask26); Lib_IntVector_Intrinsics_vec128 x1 = Lib_IntVector_Intrinsics_vec128_add64(t1, z0); Lib_IntVector_Intrinsics_vec128 x4 = Lib_IntVector_Intrinsics_vec128_add64(t4, z1); Lib_IntVector_Intrinsics_vec128 @@ -530,21 +530,21 @@ Hacl_Poly1305_128_poly1305_init(Lib_IntVector_Intrinsics_vec128 *ctx, uint8_t *k Lib_IntVector_Intrinsics_vec128 t = Lib_IntVector_Intrinsics_vec128_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec128 z12 = Lib_IntVector_Intrinsics_vec128_add64(z11, t); - Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask261); - Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask261); + Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask26); + Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask26); Lib_IntVector_Intrinsics_vec128 x2 = Lib_IntVector_Intrinsics_vec128_add64(t2, z01); Lib_IntVector_Intrinsics_vec128 x01 = Lib_IntVector_Intrinsics_vec128_add64(x0, z12); Lib_IntVector_Intrinsics_vec128 z02 = Lib_IntVector_Intrinsics_vec128_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z13 = Lib_IntVector_Intrinsics_vec128_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask261); - Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask261); + Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask26); + Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask26); Lib_IntVector_Intrinsics_vec128 x31 = Lib_IntVector_Intrinsics_vec128_add64(x3, z02); Lib_IntVector_Intrinsics_vec128 x12 = Lib_IntVector_Intrinsics_vec128_add64(x11, z13); Lib_IntVector_Intrinsics_vec128 z03 = Lib_IntVector_Intrinsics_vec128_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask261); + Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask26); Lib_IntVector_Intrinsics_vec128 x42 = Lib_IntVector_Intrinsics_vec128_add64(x41, z03); Lib_IntVector_Intrinsics_vec128 o0 = x02; Lib_IntVector_Intrinsics_vec128 o1 = x12; @@ -736,13 +736,13 @@ Hacl_Poly1305_128_poly1305_update1(Lib_IntVector_Intrinsics_vec128 *ctx, uint8_t Lib_IntVector_Intrinsics_vec128 t3 = a36; Lib_IntVector_Intrinsics_vec128 t4 = a46; Lib_IntVector_Intrinsics_vec128 - mask261 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec128 z0 = Lib_IntVector_Intrinsics_vec128_shift_right64(t0, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z1 = Lib_IntVector_Intrinsics_vec128_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t0, mask261); - Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask261); + Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t0, mask26); + Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask26); Lib_IntVector_Intrinsics_vec128 x1 = Lib_IntVector_Intrinsics_vec128_add64(t1, z0); Lib_IntVector_Intrinsics_vec128 x4 = Lib_IntVector_Intrinsics_vec128_add64(t4, z1); Lib_IntVector_Intrinsics_vec128 @@ -752,21 +752,21 @@ Hacl_Poly1305_128_poly1305_update1(Lib_IntVector_Intrinsics_vec128 *ctx, uint8_t Lib_IntVector_Intrinsics_vec128 t = Lib_IntVector_Intrinsics_vec128_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec128 z12 = Lib_IntVector_Intrinsics_vec128_add64(z11, t); - Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask261); - Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask261); + Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask26); + Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask26); Lib_IntVector_Intrinsics_vec128 x2 = Lib_IntVector_Intrinsics_vec128_add64(t2, z01); Lib_IntVector_Intrinsics_vec128 x01 = Lib_IntVector_Intrinsics_vec128_add64(x0, z12); Lib_IntVector_Intrinsics_vec128 z02 = Lib_IntVector_Intrinsics_vec128_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z13 = Lib_IntVector_Intrinsics_vec128_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask261); - Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask261); + Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask26); + Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask26); Lib_IntVector_Intrinsics_vec128 x31 = Lib_IntVector_Intrinsics_vec128_add64(x3, z02); Lib_IntVector_Intrinsics_vec128 x12 = Lib_IntVector_Intrinsics_vec128_add64(x11, z13); Lib_IntVector_Intrinsics_vec128 z03 = Lib_IntVector_Intrinsics_vec128_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask261); + Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask26); Lib_IntVector_Intrinsics_vec128 x42 = Lib_IntVector_Intrinsics_vec128_add64(x41, z03); Lib_IntVector_Intrinsics_vec128 o0 = x02; Lib_IntVector_Intrinsics_vec128 o1 = x12; @@ -953,13 +953,13 @@ Hacl_Poly1305_128_poly1305_update( Lib_IntVector_Intrinsics_vec128 t3 = a34; Lib_IntVector_Intrinsics_vec128 t4 = a44; Lib_IntVector_Intrinsics_vec128 - mask261 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec128 z0 = Lib_IntVector_Intrinsics_vec128_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z1 = Lib_IntVector_Intrinsics_vec128_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask261); - Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask261); + Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask26); + Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask26); Lib_IntVector_Intrinsics_vec128 x1 = Lib_IntVector_Intrinsics_vec128_add64(t1, z0); Lib_IntVector_Intrinsics_vec128 x4 = Lib_IntVector_Intrinsics_vec128_add64(t4, z1); Lib_IntVector_Intrinsics_vec128 @@ -969,21 +969,21 @@ Hacl_Poly1305_128_poly1305_update( Lib_IntVector_Intrinsics_vec128 t = Lib_IntVector_Intrinsics_vec128_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec128 z12 = Lib_IntVector_Intrinsics_vec128_add64(z11, t); - Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask261); - Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask261); + Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask26); + Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask26); Lib_IntVector_Intrinsics_vec128 x2 = Lib_IntVector_Intrinsics_vec128_add64(t2, z01); Lib_IntVector_Intrinsics_vec128 x01 = Lib_IntVector_Intrinsics_vec128_add64(x0, z12); Lib_IntVector_Intrinsics_vec128 z02 = Lib_IntVector_Intrinsics_vec128_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z13 = Lib_IntVector_Intrinsics_vec128_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask261); - Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask261); + Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask26); + Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask26); Lib_IntVector_Intrinsics_vec128 x31 = Lib_IntVector_Intrinsics_vec128_add64(x3, z02); Lib_IntVector_Intrinsics_vec128 x12 = Lib_IntVector_Intrinsics_vec128_add64(x11, z13); Lib_IntVector_Intrinsics_vec128 z03 = Lib_IntVector_Intrinsics_vec128_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask261); + Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask26); Lib_IntVector_Intrinsics_vec128 x42 = Lib_IntVector_Intrinsics_vec128_add64(x41, z03); Lib_IntVector_Intrinsics_vec128 o00 = x02; Lib_IntVector_Intrinsics_vec128 o10 = x12; @@ -1021,7 +1021,7 @@ Hacl_Poly1305_128_poly1305_update( uint32_t len1 = len - len0; uint8_t *t1 = text + len0; uint32_t nb = len1 / (uint32_t)16U; - uint32_t rem1 = len1 % (uint32_t)16U; + uint32_t rem = len1 % (uint32_t)16U; for (uint32_t i = (uint32_t)0U; i < nb; i++) { uint8_t *block = t1 + i * (uint32_t)16U; Lib_IntVector_Intrinsics_vec128 e[5U]; @@ -1187,13 +1187,13 @@ Hacl_Poly1305_128_poly1305_update( Lib_IntVector_Intrinsics_vec128 t3 = a36; Lib_IntVector_Intrinsics_vec128 t4 = a46; Lib_IntVector_Intrinsics_vec128 - mask261 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec128 z0 = Lib_IntVector_Intrinsics_vec128_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z1 = Lib_IntVector_Intrinsics_vec128_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask261); - Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask261); + Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask26); + Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask26); Lib_IntVector_Intrinsics_vec128 x1 = Lib_IntVector_Intrinsics_vec128_add64(t11, z0); Lib_IntVector_Intrinsics_vec128 x4 = Lib_IntVector_Intrinsics_vec128_add64(t4, z1); Lib_IntVector_Intrinsics_vec128 @@ -1203,21 +1203,21 @@ Hacl_Poly1305_128_poly1305_update( Lib_IntVector_Intrinsics_vec128 t = Lib_IntVector_Intrinsics_vec128_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec128 z12 = Lib_IntVector_Intrinsics_vec128_add64(z11, t); - Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask261); - Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask261); + Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask26); + Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask26); Lib_IntVector_Intrinsics_vec128 x2 = Lib_IntVector_Intrinsics_vec128_add64(t2, z01); Lib_IntVector_Intrinsics_vec128 x01 = Lib_IntVector_Intrinsics_vec128_add64(x0, z12); Lib_IntVector_Intrinsics_vec128 z02 = Lib_IntVector_Intrinsics_vec128_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z13 = Lib_IntVector_Intrinsics_vec128_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask261); - Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask261); + Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask26); + Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask26); Lib_IntVector_Intrinsics_vec128 x31 = Lib_IntVector_Intrinsics_vec128_add64(x3, z02); Lib_IntVector_Intrinsics_vec128 x12 = Lib_IntVector_Intrinsics_vec128_add64(x11, z13); Lib_IntVector_Intrinsics_vec128 z03 = Lib_IntVector_Intrinsics_vec128_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask261); + Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask26); Lib_IntVector_Intrinsics_vec128 x42 = Lib_IntVector_Intrinsics_vec128_add64(x41, z03); Lib_IntVector_Intrinsics_vec128 o0 = x02; Lib_IntVector_Intrinsics_vec128 o1 = x12; @@ -1230,13 +1230,13 @@ Hacl_Poly1305_128_poly1305_update( acc[3U] = o3; acc[4U] = o4; } - if (rem1 > (uint32_t)0U) { - uint8_t *last1 = t1 + nb * (uint32_t)16U; + if (rem > (uint32_t)0U) { + uint8_t *last = t1 + nb * (uint32_t)16U; Lib_IntVector_Intrinsics_vec128 e[5U]; for (uint32_t _i = 0U; _i < (uint32_t)5U; ++_i) e[_i] = Lib_IntVector_Intrinsics_vec128_zero; uint8_t tmp[16U] = { 0U }; - memcpy(tmp, last1, rem1 * sizeof(last1[0U])); + memcpy(tmp, last, rem * sizeof(last[0U])); uint64_t u0 = load64_le(tmp); uint64_t lo = u0; uint64_t u = load64_le(tmp + (uint32_t)8U); @@ -1276,10 +1276,10 @@ Hacl_Poly1305_128_poly1305_update( e[2U] = f2; e[3U] = f3; e[4U] = f4; - uint64_t b = (uint64_t)1U << rem1 * (uint32_t)8U % (uint32_t)26U; + uint64_t b = (uint64_t)1U << rem * (uint32_t)8U % (uint32_t)26U; Lib_IntVector_Intrinsics_vec128 mask = Lib_IntVector_Intrinsics_vec128_load64(b); - Lib_IntVector_Intrinsics_vec128 fi = e[rem1 * (uint32_t)8U / (uint32_t)26U]; - e[rem1 * (uint32_t)8U / (uint32_t)26U] = Lib_IntVector_Intrinsics_vec128_or(fi, mask); + Lib_IntVector_Intrinsics_vec128 fi = e[rem * (uint32_t)8U / (uint32_t)26U]; + e[rem * (uint32_t)8U / (uint32_t)26U] = Lib_IntVector_Intrinsics_vec128_or(fi, mask); Lib_IntVector_Intrinsics_vec128 *r = pre; Lib_IntVector_Intrinsics_vec128 *r5 = pre + (uint32_t)5U; Lib_IntVector_Intrinsics_vec128 r0 = r[0U]; @@ -1397,13 +1397,13 @@ Hacl_Poly1305_128_poly1305_update( Lib_IntVector_Intrinsics_vec128 t3 = a36; Lib_IntVector_Intrinsics_vec128 t4 = a46; Lib_IntVector_Intrinsics_vec128 - mask261 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec128_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec128 z0 = Lib_IntVector_Intrinsics_vec128_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z1 = Lib_IntVector_Intrinsics_vec128_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask261); - Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask261); + Lib_IntVector_Intrinsics_vec128 x0 = Lib_IntVector_Intrinsics_vec128_and(t01, mask26); + Lib_IntVector_Intrinsics_vec128 x3 = Lib_IntVector_Intrinsics_vec128_and(t3, mask26); Lib_IntVector_Intrinsics_vec128 x1 = Lib_IntVector_Intrinsics_vec128_add64(t11, z0); Lib_IntVector_Intrinsics_vec128 x4 = Lib_IntVector_Intrinsics_vec128_add64(t4, z1); Lib_IntVector_Intrinsics_vec128 @@ -1413,21 +1413,21 @@ Hacl_Poly1305_128_poly1305_update( Lib_IntVector_Intrinsics_vec128 t = Lib_IntVector_Intrinsics_vec128_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec128 z12 = Lib_IntVector_Intrinsics_vec128_add64(z11, t); - Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask261); - Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask261); + Lib_IntVector_Intrinsics_vec128 x11 = Lib_IntVector_Intrinsics_vec128_and(x1, mask26); + Lib_IntVector_Intrinsics_vec128 x41 = Lib_IntVector_Intrinsics_vec128_and(x4, mask26); Lib_IntVector_Intrinsics_vec128 x2 = Lib_IntVector_Intrinsics_vec128_add64(t2, z01); Lib_IntVector_Intrinsics_vec128 x01 = Lib_IntVector_Intrinsics_vec128_add64(x0, z12); Lib_IntVector_Intrinsics_vec128 z02 = Lib_IntVector_Intrinsics_vec128_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec128 z13 = Lib_IntVector_Intrinsics_vec128_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask261); - Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask261); + Lib_IntVector_Intrinsics_vec128 x21 = Lib_IntVector_Intrinsics_vec128_and(x2, mask26); + Lib_IntVector_Intrinsics_vec128 x02 = Lib_IntVector_Intrinsics_vec128_and(x01, mask26); Lib_IntVector_Intrinsics_vec128 x31 = Lib_IntVector_Intrinsics_vec128_add64(x3, z02); Lib_IntVector_Intrinsics_vec128 x12 = Lib_IntVector_Intrinsics_vec128_add64(x11, z13); Lib_IntVector_Intrinsics_vec128 z03 = Lib_IntVector_Intrinsics_vec128_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask261); + Lib_IntVector_Intrinsics_vec128 x32 = Lib_IntVector_Intrinsics_vec128_and(x31, mask26); Lib_IntVector_Intrinsics_vec128 x42 = Lib_IntVector_Intrinsics_vec128_add64(x41, z03); Lib_IntVector_Intrinsics_vec128 o0 = x02; Lib_IntVector_Intrinsics_vec128 o1 = x12; diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_256.c b/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_256.c index 66a927648..6fddf86af 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_256.c +++ b/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_256.c @@ -33,7 +33,7 @@ Hacl_Impl_Poly1305_Field32xN_256_load_acc4(Lib_IntVector_Intrinsics_vec256 *acc, Lib_IntVector_Intrinsics_vec256 hi = Lib_IntVector_Intrinsics_vec256_load_le(b + (uint32_t)32U); Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 m0 = Lib_IntVector_Intrinsics_vec256_interleave_low128(lo, hi); Lib_IntVector_Intrinsics_vec256 m1 = Lib_IntVector_Intrinsics_vec256_interleave_high128(lo, hi); @@ -46,14 +46,14 @@ Hacl_Impl_Poly1305_Field32xN_256_load_acc4(Lib_IntVector_Intrinsics_vec256 *acc, Lib_IntVector_Intrinsics_vec256 t3 = Lib_IntVector_Intrinsics_vec256_interleave_low64(m2, m3); Lib_IntVector_Intrinsics_vec256 t2 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)4U); - Lib_IntVector_Intrinsics_vec256 o20 = Lib_IntVector_Intrinsics_vec256_and(t2, mask261); + Lib_IntVector_Intrinsics_vec256 o20 = Lib_IntVector_Intrinsics_vec256_and(t2, mask26); Lib_IntVector_Intrinsics_vec256 t1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t0, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 o10 = Lib_IntVector_Intrinsics_vec256_and(t1, mask261); - Lib_IntVector_Intrinsics_vec256 o5 = Lib_IntVector_Intrinsics_vec256_and(t0, mask261); + Lib_IntVector_Intrinsics_vec256 o10 = Lib_IntVector_Intrinsics_vec256_and(t1, mask26); + Lib_IntVector_Intrinsics_vec256 o5 = Lib_IntVector_Intrinsics_vec256_and(t0, mask26); Lib_IntVector_Intrinsics_vec256 t31 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)30U); - Lib_IntVector_Intrinsics_vec256 o30 = Lib_IntVector_Intrinsics_vec256_and(t31, mask261); + Lib_IntVector_Intrinsics_vec256 o30 = Lib_IntVector_Intrinsics_vec256_and(t31, mask26); Lib_IntVector_Intrinsics_vec256 o40 = Lib_IntVector_Intrinsics_vec256_shift_right64(m4, (uint32_t)40U); Lib_IntVector_Intrinsics_vec256 o0 = o5; @@ -245,13 +245,13 @@ Hacl_Impl_Poly1305_Field32xN_256_fmul_r4_normalize( Lib_IntVector_Intrinsics_vec256 t30 = a350; Lib_IntVector_Intrinsics_vec256 t40 = a450; Lib_IntVector_Intrinsics_vec256 - mask2610 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask260 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z00 = Lib_IntVector_Intrinsics_vec256_shift_right64(t00, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z10 = Lib_IntVector_Intrinsics_vec256_shift_right64(t30, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x00 = Lib_IntVector_Intrinsics_vec256_and(t00, mask2610); - Lib_IntVector_Intrinsics_vec256 x30 = Lib_IntVector_Intrinsics_vec256_and(t30, mask2610); + Lib_IntVector_Intrinsics_vec256 x00 = Lib_IntVector_Intrinsics_vec256_and(t00, mask260); + Lib_IntVector_Intrinsics_vec256 x30 = Lib_IntVector_Intrinsics_vec256_and(t30, mask260); Lib_IntVector_Intrinsics_vec256 x10 = Lib_IntVector_Intrinsics_vec256_add64(t10, z00); Lib_IntVector_Intrinsics_vec256 x40 = Lib_IntVector_Intrinsics_vec256_add64(t40, z10); Lib_IntVector_Intrinsics_vec256 @@ -261,21 +261,21 @@ Hacl_Impl_Poly1305_Field32xN_256_fmul_r4_normalize( Lib_IntVector_Intrinsics_vec256 t5 = Lib_IntVector_Intrinsics_vec256_shift_left64(z110, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z12 = Lib_IntVector_Intrinsics_vec256_add64(z110, t5); - Lib_IntVector_Intrinsics_vec256 x110 = Lib_IntVector_Intrinsics_vec256_and(x10, mask2610); - Lib_IntVector_Intrinsics_vec256 x410 = Lib_IntVector_Intrinsics_vec256_and(x40, mask2610); + Lib_IntVector_Intrinsics_vec256 x110 = Lib_IntVector_Intrinsics_vec256_and(x10, mask260); + Lib_IntVector_Intrinsics_vec256 x410 = Lib_IntVector_Intrinsics_vec256_and(x40, mask260); Lib_IntVector_Intrinsics_vec256 x20 = Lib_IntVector_Intrinsics_vec256_add64(t20, z010); Lib_IntVector_Intrinsics_vec256 x010 = Lib_IntVector_Intrinsics_vec256_add64(x00, z12); Lib_IntVector_Intrinsics_vec256 z020 = Lib_IntVector_Intrinsics_vec256_shift_right64(x20, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z130 = Lib_IntVector_Intrinsics_vec256_shift_right64(x010, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x210 = Lib_IntVector_Intrinsics_vec256_and(x20, mask2610); - Lib_IntVector_Intrinsics_vec256 x020 = Lib_IntVector_Intrinsics_vec256_and(x010, mask2610); + Lib_IntVector_Intrinsics_vec256 x210 = Lib_IntVector_Intrinsics_vec256_and(x20, mask260); + Lib_IntVector_Intrinsics_vec256 x020 = Lib_IntVector_Intrinsics_vec256_and(x010, mask260); Lib_IntVector_Intrinsics_vec256 x310 = Lib_IntVector_Intrinsics_vec256_add64(x30, z020); Lib_IntVector_Intrinsics_vec256 x120 = Lib_IntVector_Intrinsics_vec256_add64(x110, z130); Lib_IntVector_Intrinsics_vec256 z030 = Lib_IntVector_Intrinsics_vec256_shift_right64(x310, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x320 = Lib_IntVector_Intrinsics_vec256_and(x310, mask2610); + Lib_IntVector_Intrinsics_vec256 x320 = Lib_IntVector_Intrinsics_vec256_and(x310, mask260); Lib_IntVector_Intrinsics_vec256 x420 = Lib_IntVector_Intrinsics_vec256_add64(x410, z030); Lib_IntVector_Intrinsics_vec256 r20 = x020; Lib_IntVector_Intrinsics_vec256 r21 = x120; @@ -373,13 +373,13 @@ Hacl_Impl_Poly1305_Field32xN_256_fmul_r4_normalize( Lib_IntVector_Intrinsics_vec256 t31 = a351; Lib_IntVector_Intrinsics_vec256 t41 = a451; Lib_IntVector_Intrinsics_vec256 - mask2611 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z04 = Lib_IntVector_Intrinsics_vec256_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z14 = Lib_IntVector_Intrinsics_vec256_shift_right64(t31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x03 = Lib_IntVector_Intrinsics_vec256_and(t01, mask2611); - Lib_IntVector_Intrinsics_vec256 x33 = Lib_IntVector_Intrinsics_vec256_and(t31, mask2611); + Lib_IntVector_Intrinsics_vec256 x03 = Lib_IntVector_Intrinsics_vec256_and(t01, mask261); + Lib_IntVector_Intrinsics_vec256 x33 = Lib_IntVector_Intrinsics_vec256_and(t31, mask261); Lib_IntVector_Intrinsics_vec256 x13 = Lib_IntVector_Intrinsics_vec256_add64(t11, z04); Lib_IntVector_Intrinsics_vec256 x43 = Lib_IntVector_Intrinsics_vec256_add64(t41, z14); Lib_IntVector_Intrinsics_vec256 @@ -389,21 +389,21 @@ Hacl_Impl_Poly1305_Field32xN_256_fmul_r4_normalize( Lib_IntVector_Intrinsics_vec256 t6 = Lib_IntVector_Intrinsics_vec256_shift_left64(z111, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z120 = Lib_IntVector_Intrinsics_vec256_add64(z111, t6); - Lib_IntVector_Intrinsics_vec256 x111 = Lib_IntVector_Intrinsics_vec256_and(x13, mask2611); - Lib_IntVector_Intrinsics_vec256 x411 = Lib_IntVector_Intrinsics_vec256_and(x43, mask2611); + Lib_IntVector_Intrinsics_vec256 x111 = Lib_IntVector_Intrinsics_vec256_and(x13, mask261); + Lib_IntVector_Intrinsics_vec256 x411 = Lib_IntVector_Intrinsics_vec256_and(x43, mask261); Lib_IntVector_Intrinsics_vec256 x22 = Lib_IntVector_Intrinsics_vec256_add64(t21, z011); Lib_IntVector_Intrinsics_vec256 x011 = Lib_IntVector_Intrinsics_vec256_add64(x03, z120); Lib_IntVector_Intrinsics_vec256 z021 = Lib_IntVector_Intrinsics_vec256_shift_right64(x22, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z131 = Lib_IntVector_Intrinsics_vec256_shift_right64(x011, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x211 = Lib_IntVector_Intrinsics_vec256_and(x22, mask2611); - Lib_IntVector_Intrinsics_vec256 x021 = Lib_IntVector_Intrinsics_vec256_and(x011, mask2611); + Lib_IntVector_Intrinsics_vec256 x211 = Lib_IntVector_Intrinsics_vec256_and(x22, mask261); + Lib_IntVector_Intrinsics_vec256 x021 = Lib_IntVector_Intrinsics_vec256_and(x011, mask261); Lib_IntVector_Intrinsics_vec256 x311 = Lib_IntVector_Intrinsics_vec256_add64(x33, z021); Lib_IntVector_Intrinsics_vec256 x121 = Lib_IntVector_Intrinsics_vec256_add64(x111, z131); Lib_IntVector_Intrinsics_vec256 z031 = Lib_IntVector_Intrinsics_vec256_shift_right64(x311, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x321 = Lib_IntVector_Intrinsics_vec256_and(x311, mask2611); + Lib_IntVector_Intrinsics_vec256 x321 = Lib_IntVector_Intrinsics_vec256_and(x311, mask261); Lib_IntVector_Intrinsics_vec256 x421 = Lib_IntVector_Intrinsics_vec256_add64(x411, z031); Lib_IntVector_Intrinsics_vec256 r30 = x021; Lib_IntVector_Intrinsics_vec256 r31 = x121; @@ -539,13 +539,13 @@ Hacl_Impl_Poly1305_Field32xN_256_fmul_r4_normalize( Lib_IntVector_Intrinsics_vec256 t3 = a35; Lib_IntVector_Intrinsics_vec256 t4 = a45; Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z0 = Lib_IntVector_Intrinsics_vec256_shift_right64(t0, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t0, mask261); - Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask261); + Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t0, mask26); + Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask26); Lib_IntVector_Intrinsics_vec256 x1 = Lib_IntVector_Intrinsics_vec256_add64(t1, z0); Lib_IntVector_Intrinsics_vec256 x4 = Lib_IntVector_Intrinsics_vec256_add64(t4, z1); Lib_IntVector_Intrinsics_vec256 @@ -555,21 +555,21 @@ Hacl_Impl_Poly1305_Field32xN_256_fmul_r4_normalize( Lib_IntVector_Intrinsics_vec256 t = Lib_IntVector_Intrinsics_vec256_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z121 = Lib_IntVector_Intrinsics_vec256_add64(z11, t); - Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask261); - Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask261); + Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask26); + Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask26); Lib_IntVector_Intrinsics_vec256 x2 = Lib_IntVector_Intrinsics_vec256_add64(t2, z01); Lib_IntVector_Intrinsics_vec256 x01 = Lib_IntVector_Intrinsics_vec256_add64(x0, z121); Lib_IntVector_Intrinsics_vec256 z02 = Lib_IntVector_Intrinsics_vec256_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z13 = Lib_IntVector_Intrinsics_vec256_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask261); - Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask261); + Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask26); + Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask26); Lib_IntVector_Intrinsics_vec256 x31 = Lib_IntVector_Intrinsics_vec256_add64(x3, z02); Lib_IntVector_Intrinsics_vec256 x12 = Lib_IntVector_Intrinsics_vec256_add64(x11, z13); Lib_IntVector_Intrinsics_vec256 z03 = Lib_IntVector_Intrinsics_vec256_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask261); + Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask26); Lib_IntVector_Intrinsics_vec256 x42 = Lib_IntVector_Intrinsics_vec256_add64(x41, z03); Lib_IntVector_Intrinsics_vec256 o0 = x02; Lib_IntVector_Intrinsics_vec256 o10 = x12; @@ -580,57 +580,32 @@ Hacl_Impl_Poly1305_Field32xN_256_fmul_r4_normalize( v00 = Lib_IntVector_Intrinsics_vec256_interleave_high128(o0, o0); Lib_IntVector_Intrinsics_vec256 v10 = Lib_IntVector_Intrinsics_vec256_add64(o0, v00); Lib_IntVector_Intrinsics_vec256 - v20 = - Lib_IntVector_Intrinsics_vec256_add64(v10, - Lib_IntVector_Intrinsics_vec256_shuffle64(v10, - (uint32_t)1U, - (uint32_t)1U, - (uint32_t)1U, - (uint32_t)1U)); + v10h = Lib_IntVector_Intrinsics_vec256_interleave_high64(v10, v10); + Lib_IntVector_Intrinsics_vec256 v20 = Lib_IntVector_Intrinsics_vec256_add64(v10, v10h); Lib_IntVector_Intrinsics_vec256 v01 = Lib_IntVector_Intrinsics_vec256_interleave_high128(o10, o10); Lib_IntVector_Intrinsics_vec256 v11 = Lib_IntVector_Intrinsics_vec256_add64(o10, v01); Lib_IntVector_Intrinsics_vec256 - v21 = - Lib_IntVector_Intrinsics_vec256_add64(v11, - Lib_IntVector_Intrinsics_vec256_shuffle64(v11, - (uint32_t)1U, - (uint32_t)1U, - (uint32_t)1U, - (uint32_t)1U)); + v11h = Lib_IntVector_Intrinsics_vec256_interleave_high64(v11, v11); + Lib_IntVector_Intrinsics_vec256 v21 = Lib_IntVector_Intrinsics_vec256_add64(v11, v11h); Lib_IntVector_Intrinsics_vec256 v02 = Lib_IntVector_Intrinsics_vec256_interleave_high128(o20, o20); Lib_IntVector_Intrinsics_vec256 v12 = Lib_IntVector_Intrinsics_vec256_add64(o20, v02); Lib_IntVector_Intrinsics_vec256 - v22 = - Lib_IntVector_Intrinsics_vec256_add64(v12, - Lib_IntVector_Intrinsics_vec256_shuffle64(v12, - (uint32_t)1U, - (uint32_t)1U, - (uint32_t)1U, - (uint32_t)1U)); + v12h = Lib_IntVector_Intrinsics_vec256_interleave_high64(v12, v12); + Lib_IntVector_Intrinsics_vec256 v22 = Lib_IntVector_Intrinsics_vec256_add64(v12, v12h); Lib_IntVector_Intrinsics_vec256 v03 = Lib_IntVector_Intrinsics_vec256_interleave_high128(o30, o30); Lib_IntVector_Intrinsics_vec256 v13 = Lib_IntVector_Intrinsics_vec256_add64(o30, v03); Lib_IntVector_Intrinsics_vec256 - v23 = - Lib_IntVector_Intrinsics_vec256_add64(v13, - Lib_IntVector_Intrinsics_vec256_shuffle64(v13, - (uint32_t)1U, - (uint32_t)1U, - (uint32_t)1U, - (uint32_t)1U)); + v13h = Lib_IntVector_Intrinsics_vec256_interleave_high64(v13, v13); + Lib_IntVector_Intrinsics_vec256 v23 = Lib_IntVector_Intrinsics_vec256_add64(v13, v13h); Lib_IntVector_Intrinsics_vec256 v04 = Lib_IntVector_Intrinsics_vec256_interleave_high128(o40, o40); Lib_IntVector_Intrinsics_vec256 v14 = Lib_IntVector_Intrinsics_vec256_add64(o40, v04); Lib_IntVector_Intrinsics_vec256 - v24 = - Lib_IntVector_Intrinsics_vec256_add64(v14, - Lib_IntVector_Intrinsics_vec256_shuffle64(v14, - (uint32_t)1U, - (uint32_t)1U, - (uint32_t)1U, - (uint32_t)1U)); + v14h = Lib_IntVector_Intrinsics_vec256_interleave_high64(v14, v14); + Lib_IntVector_Intrinsics_vec256 v24 = Lib_IntVector_Intrinsics_vec256_add64(v14, v14h); Lib_IntVector_Intrinsics_vec256 l = Lib_IntVector_Intrinsics_vec256_add64(v20, Lib_IntVector_Intrinsics_vec256_zero); Lib_IntVector_Intrinsics_vec256 @@ -857,13 +832,13 @@ Hacl_Poly1305_256_poly1305_init(Lib_IntVector_Intrinsics_vec256 *ctx, uint8_t *k Lib_IntVector_Intrinsics_vec256 t30 = a340; Lib_IntVector_Intrinsics_vec256 t40 = a440; Lib_IntVector_Intrinsics_vec256 - mask2610 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask260 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z00 = Lib_IntVector_Intrinsics_vec256_shift_right64(t00, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z10 = Lib_IntVector_Intrinsics_vec256_shift_right64(t30, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x00 = Lib_IntVector_Intrinsics_vec256_and(t00, mask2610); - Lib_IntVector_Intrinsics_vec256 x30 = Lib_IntVector_Intrinsics_vec256_and(t30, mask2610); + Lib_IntVector_Intrinsics_vec256 x00 = Lib_IntVector_Intrinsics_vec256_and(t00, mask260); + Lib_IntVector_Intrinsics_vec256 x30 = Lib_IntVector_Intrinsics_vec256_and(t30, mask260); Lib_IntVector_Intrinsics_vec256 x10 = Lib_IntVector_Intrinsics_vec256_add64(t10, z00); Lib_IntVector_Intrinsics_vec256 x40 = Lib_IntVector_Intrinsics_vec256_add64(t40, z10); Lib_IntVector_Intrinsics_vec256 @@ -873,21 +848,21 @@ Hacl_Poly1305_256_poly1305_init(Lib_IntVector_Intrinsics_vec256 *ctx, uint8_t *k Lib_IntVector_Intrinsics_vec256 t5 = Lib_IntVector_Intrinsics_vec256_shift_left64(z110, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z12 = Lib_IntVector_Intrinsics_vec256_add64(z110, t5); - Lib_IntVector_Intrinsics_vec256 x110 = Lib_IntVector_Intrinsics_vec256_and(x10, mask2610); - Lib_IntVector_Intrinsics_vec256 x410 = Lib_IntVector_Intrinsics_vec256_and(x40, mask2610); + Lib_IntVector_Intrinsics_vec256 x110 = Lib_IntVector_Intrinsics_vec256_and(x10, mask260); + Lib_IntVector_Intrinsics_vec256 x410 = Lib_IntVector_Intrinsics_vec256_and(x40, mask260); Lib_IntVector_Intrinsics_vec256 x20 = Lib_IntVector_Intrinsics_vec256_add64(t20, z010); Lib_IntVector_Intrinsics_vec256 x010 = Lib_IntVector_Intrinsics_vec256_add64(x00, z12); Lib_IntVector_Intrinsics_vec256 z020 = Lib_IntVector_Intrinsics_vec256_shift_right64(x20, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z130 = Lib_IntVector_Intrinsics_vec256_shift_right64(x010, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x210 = Lib_IntVector_Intrinsics_vec256_and(x20, mask2610); - Lib_IntVector_Intrinsics_vec256 x020 = Lib_IntVector_Intrinsics_vec256_and(x010, mask2610); + Lib_IntVector_Intrinsics_vec256 x210 = Lib_IntVector_Intrinsics_vec256_and(x20, mask260); + Lib_IntVector_Intrinsics_vec256 x020 = Lib_IntVector_Intrinsics_vec256_and(x010, mask260); Lib_IntVector_Intrinsics_vec256 x310 = Lib_IntVector_Intrinsics_vec256_add64(x30, z020); Lib_IntVector_Intrinsics_vec256 x120 = Lib_IntVector_Intrinsics_vec256_add64(x110, z130); Lib_IntVector_Intrinsics_vec256 z030 = Lib_IntVector_Intrinsics_vec256_shift_right64(x310, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x320 = Lib_IntVector_Intrinsics_vec256_and(x310, mask2610); + Lib_IntVector_Intrinsics_vec256 x320 = Lib_IntVector_Intrinsics_vec256_and(x310, mask260); Lib_IntVector_Intrinsics_vec256 x420 = Lib_IntVector_Intrinsics_vec256_add64(x410, z030); Lib_IntVector_Intrinsics_vec256 o00 = x020; Lib_IntVector_Intrinsics_vec256 o10 = x120; @@ -1008,13 +983,13 @@ Hacl_Poly1305_256_poly1305_init(Lib_IntVector_Intrinsics_vec256 *ctx, uint8_t *k Lib_IntVector_Intrinsics_vec256 t3 = a34; Lib_IntVector_Intrinsics_vec256 t4 = a44; Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z0 = Lib_IntVector_Intrinsics_vec256_shift_right64(t0, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t0, mask261); - Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask261); + Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t0, mask26); + Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask26); Lib_IntVector_Intrinsics_vec256 x1 = Lib_IntVector_Intrinsics_vec256_add64(t1, z0); Lib_IntVector_Intrinsics_vec256 x4 = Lib_IntVector_Intrinsics_vec256_add64(t4, z1); Lib_IntVector_Intrinsics_vec256 @@ -1024,21 +999,21 @@ Hacl_Poly1305_256_poly1305_init(Lib_IntVector_Intrinsics_vec256 *ctx, uint8_t *k Lib_IntVector_Intrinsics_vec256 t = Lib_IntVector_Intrinsics_vec256_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z120 = Lib_IntVector_Intrinsics_vec256_add64(z11, t); - Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask261); - Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask261); + Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask26); + Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask26); Lib_IntVector_Intrinsics_vec256 x2 = Lib_IntVector_Intrinsics_vec256_add64(t2, z01); Lib_IntVector_Intrinsics_vec256 x01 = Lib_IntVector_Intrinsics_vec256_add64(x0, z120); Lib_IntVector_Intrinsics_vec256 z02 = Lib_IntVector_Intrinsics_vec256_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z13 = Lib_IntVector_Intrinsics_vec256_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask261); - Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask261); + Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask26); + Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask26); Lib_IntVector_Intrinsics_vec256 x31 = Lib_IntVector_Intrinsics_vec256_add64(x3, z02); Lib_IntVector_Intrinsics_vec256 x12 = Lib_IntVector_Intrinsics_vec256_add64(x11, z13); Lib_IntVector_Intrinsics_vec256 z03 = Lib_IntVector_Intrinsics_vec256_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask261); + Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask26); Lib_IntVector_Intrinsics_vec256 x42 = Lib_IntVector_Intrinsics_vec256_add64(x41, z03); Lib_IntVector_Intrinsics_vec256 o0 = x02; Lib_IntVector_Intrinsics_vec256 o1 = x12; @@ -1230,13 +1205,13 @@ Hacl_Poly1305_256_poly1305_update1(Lib_IntVector_Intrinsics_vec256 *ctx, uint8_t Lib_IntVector_Intrinsics_vec256 t3 = a36; Lib_IntVector_Intrinsics_vec256 t4 = a46; Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z0 = Lib_IntVector_Intrinsics_vec256_shift_right64(t0, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t0, mask261); - Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask261); + Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t0, mask26); + Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask26); Lib_IntVector_Intrinsics_vec256 x1 = Lib_IntVector_Intrinsics_vec256_add64(t1, z0); Lib_IntVector_Intrinsics_vec256 x4 = Lib_IntVector_Intrinsics_vec256_add64(t4, z1); Lib_IntVector_Intrinsics_vec256 @@ -1246,21 +1221,21 @@ Hacl_Poly1305_256_poly1305_update1(Lib_IntVector_Intrinsics_vec256 *ctx, uint8_t Lib_IntVector_Intrinsics_vec256 t = Lib_IntVector_Intrinsics_vec256_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z12 = Lib_IntVector_Intrinsics_vec256_add64(z11, t); - Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask261); - Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask261); + Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask26); + Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask26); Lib_IntVector_Intrinsics_vec256 x2 = Lib_IntVector_Intrinsics_vec256_add64(t2, z01); Lib_IntVector_Intrinsics_vec256 x01 = Lib_IntVector_Intrinsics_vec256_add64(x0, z12); Lib_IntVector_Intrinsics_vec256 z02 = Lib_IntVector_Intrinsics_vec256_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z13 = Lib_IntVector_Intrinsics_vec256_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask261); - Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask261); + Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask26); + Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask26); Lib_IntVector_Intrinsics_vec256 x31 = Lib_IntVector_Intrinsics_vec256_add64(x3, z02); Lib_IntVector_Intrinsics_vec256 x12 = Lib_IntVector_Intrinsics_vec256_add64(x11, z13); Lib_IntVector_Intrinsics_vec256 z03 = Lib_IntVector_Intrinsics_vec256_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask261); + Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask26); Lib_IntVector_Intrinsics_vec256 x42 = Lib_IntVector_Intrinsics_vec256_add64(x41, z03); Lib_IntVector_Intrinsics_vec256 o0 = x02; Lib_IntVector_Intrinsics_vec256 o1 = x12; @@ -1301,7 +1276,7 @@ Hacl_Poly1305_256_poly1305_update( Lib_IntVector_Intrinsics_vec256 hi = Lib_IntVector_Intrinsics_vec256_load_le(block + (uint32_t)32U); Lib_IntVector_Intrinsics_vec256 - mask2610 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask260 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 m0 = Lib_IntVector_Intrinsics_vec256_interleave_low128(lo, hi); Lib_IntVector_Intrinsics_vec256 @@ -1318,14 +1293,14 @@ Hacl_Poly1305_256_poly1305_update( t30 = Lib_IntVector_Intrinsics_vec256_interleave_low64(m2, m3); Lib_IntVector_Intrinsics_vec256 t20 = Lib_IntVector_Intrinsics_vec256_shift_right64(t30, (uint32_t)4U); - Lib_IntVector_Intrinsics_vec256 o20 = Lib_IntVector_Intrinsics_vec256_and(t20, mask2610); + Lib_IntVector_Intrinsics_vec256 o20 = Lib_IntVector_Intrinsics_vec256_and(t20, mask260); Lib_IntVector_Intrinsics_vec256 t10 = Lib_IntVector_Intrinsics_vec256_shift_right64(t010, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 o10 = Lib_IntVector_Intrinsics_vec256_and(t10, mask2610); - Lib_IntVector_Intrinsics_vec256 o5 = Lib_IntVector_Intrinsics_vec256_and(t010, mask2610); + Lib_IntVector_Intrinsics_vec256 o10 = Lib_IntVector_Intrinsics_vec256_and(t10, mask260); + Lib_IntVector_Intrinsics_vec256 o5 = Lib_IntVector_Intrinsics_vec256_and(t010, mask260); Lib_IntVector_Intrinsics_vec256 t31 = Lib_IntVector_Intrinsics_vec256_shift_right64(t30, (uint32_t)30U); - Lib_IntVector_Intrinsics_vec256 o30 = Lib_IntVector_Intrinsics_vec256_and(t31, mask2610); + Lib_IntVector_Intrinsics_vec256 o30 = Lib_IntVector_Intrinsics_vec256_and(t31, mask260); Lib_IntVector_Intrinsics_vec256 o40 = Lib_IntVector_Intrinsics_vec256_shift_right64(m4, (uint32_t)40U); Lib_IntVector_Intrinsics_vec256 o00 = o5; @@ -1449,13 +1424,13 @@ Hacl_Poly1305_256_poly1305_update( Lib_IntVector_Intrinsics_vec256 t3 = a34; Lib_IntVector_Intrinsics_vec256 t4 = a44; Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z0 = Lib_IntVector_Intrinsics_vec256_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask261); - Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask261); + Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask26); + Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask26); Lib_IntVector_Intrinsics_vec256 x1 = Lib_IntVector_Intrinsics_vec256_add64(t1, z0); Lib_IntVector_Intrinsics_vec256 x4 = Lib_IntVector_Intrinsics_vec256_add64(t4, z1); Lib_IntVector_Intrinsics_vec256 @@ -1465,21 +1440,21 @@ Hacl_Poly1305_256_poly1305_update( Lib_IntVector_Intrinsics_vec256 t = Lib_IntVector_Intrinsics_vec256_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z12 = Lib_IntVector_Intrinsics_vec256_add64(z11, t); - Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask261); - Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask261); + Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask26); + Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask26); Lib_IntVector_Intrinsics_vec256 x2 = Lib_IntVector_Intrinsics_vec256_add64(t2, z01); Lib_IntVector_Intrinsics_vec256 x01 = Lib_IntVector_Intrinsics_vec256_add64(x0, z12); Lib_IntVector_Intrinsics_vec256 z02 = Lib_IntVector_Intrinsics_vec256_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z13 = Lib_IntVector_Intrinsics_vec256_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask261); - Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask261); + Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask26); + Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask26); Lib_IntVector_Intrinsics_vec256 x31 = Lib_IntVector_Intrinsics_vec256_add64(x3, z02); Lib_IntVector_Intrinsics_vec256 x12 = Lib_IntVector_Intrinsics_vec256_add64(x11, z13); Lib_IntVector_Intrinsics_vec256 z03 = Lib_IntVector_Intrinsics_vec256_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask261); + Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask26); Lib_IntVector_Intrinsics_vec256 x42 = Lib_IntVector_Intrinsics_vec256_add64(x41, z03); Lib_IntVector_Intrinsics_vec256 o01 = x02; Lib_IntVector_Intrinsics_vec256 o12 = x12; @@ -1517,7 +1492,7 @@ Hacl_Poly1305_256_poly1305_update( uint32_t len1 = len - len0; uint8_t *t1 = text + len0; uint32_t nb = len1 / (uint32_t)16U; - uint32_t rem1 = len1 % (uint32_t)16U; + uint32_t rem = len1 % (uint32_t)16U; for (uint32_t i = (uint32_t)0U; i < nb; i++) { uint8_t *block = t1 + i * (uint32_t)16U; Lib_IntVector_Intrinsics_vec256 e[5U]; @@ -1683,13 +1658,13 @@ Hacl_Poly1305_256_poly1305_update( Lib_IntVector_Intrinsics_vec256 t3 = a36; Lib_IntVector_Intrinsics_vec256 t4 = a46; Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z0 = Lib_IntVector_Intrinsics_vec256_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask261); - Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask261); + Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask26); + Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask26); Lib_IntVector_Intrinsics_vec256 x1 = Lib_IntVector_Intrinsics_vec256_add64(t11, z0); Lib_IntVector_Intrinsics_vec256 x4 = Lib_IntVector_Intrinsics_vec256_add64(t4, z1); Lib_IntVector_Intrinsics_vec256 @@ -1699,21 +1674,21 @@ Hacl_Poly1305_256_poly1305_update( Lib_IntVector_Intrinsics_vec256 t = Lib_IntVector_Intrinsics_vec256_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z12 = Lib_IntVector_Intrinsics_vec256_add64(z11, t); - Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask261); - Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask261); + Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask26); + Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask26); Lib_IntVector_Intrinsics_vec256 x2 = Lib_IntVector_Intrinsics_vec256_add64(t2, z01); Lib_IntVector_Intrinsics_vec256 x01 = Lib_IntVector_Intrinsics_vec256_add64(x0, z12); Lib_IntVector_Intrinsics_vec256 z02 = Lib_IntVector_Intrinsics_vec256_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z13 = Lib_IntVector_Intrinsics_vec256_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask261); - Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask261); + Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask26); + Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask26); Lib_IntVector_Intrinsics_vec256 x31 = Lib_IntVector_Intrinsics_vec256_add64(x3, z02); Lib_IntVector_Intrinsics_vec256 x12 = Lib_IntVector_Intrinsics_vec256_add64(x11, z13); Lib_IntVector_Intrinsics_vec256 z03 = Lib_IntVector_Intrinsics_vec256_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask261); + Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask26); Lib_IntVector_Intrinsics_vec256 x42 = Lib_IntVector_Intrinsics_vec256_add64(x41, z03); Lib_IntVector_Intrinsics_vec256 o0 = x02; Lib_IntVector_Intrinsics_vec256 o1 = x12; @@ -1726,13 +1701,13 @@ Hacl_Poly1305_256_poly1305_update( acc[3U] = o3; acc[4U] = o4; } - if (rem1 > (uint32_t)0U) { - uint8_t *last1 = t1 + nb * (uint32_t)16U; + if (rem > (uint32_t)0U) { + uint8_t *last = t1 + nb * (uint32_t)16U; Lib_IntVector_Intrinsics_vec256 e[5U]; for (uint32_t _i = 0U; _i < (uint32_t)5U; ++_i) e[_i] = Lib_IntVector_Intrinsics_vec256_zero; uint8_t tmp[16U] = { 0U }; - memcpy(tmp, last1, rem1 * sizeof(last1[0U])); + memcpy(tmp, last, rem * sizeof(last[0U])); uint64_t u0 = load64_le(tmp); uint64_t lo = u0; uint64_t u = load64_le(tmp + (uint32_t)8U); @@ -1772,10 +1747,10 @@ Hacl_Poly1305_256_poly1305_update( e[2U] = f2; e[3U] = f3; e[4U] = f4; - uint64_t b = (uint64_t)1U << rem1 * (uint32_t)8U % (uint32_t)26U; + uint64_t b = (uint64_t)1U << rem * (uint32_t)8U % (uint32_t)26U; Lib_IntVector_Intrinsics_vec256 mask = Lib_IntVector_Intrinsics_vec256_load64(b); - Lib_IntVector_Intrinsics_vec256 fi = e[rem1 * (uint32_t)8U / (uint32_t)26U]; - e[rem1 * (uint32_t)8U / (uint32_t)26U] = Lib_IntVector_Intrinsics_vec256_or(fi, mask); + Lib_IntVector_Intrinsics_vec256 fi = e[rem * (uint32_t)8U / (uint32_t)26U]; + e[rem * (uint32_t)8U / (uint32_t)26U] = Lib_IntVector_Intrinsics_vec256_or(fi, mask); Lib_IntVector_Intrinsics_vec256 *r = pre; Lib_IntVector_Intrinsics_vec256 *r5 = pre + (uint32_t)5U; Lib_IntVector_Intrinsics_vec256 r0 = r[0U]; @@ -1893,13 +1868,13 @@ Hacl_Poly1305_256_poly1305_update( Lib_IntVector_Intrinsics_vec256 t3 = a36; Lib_IntVector_Intrinsics_vec256 t4 = a46; Lib_IntVector_Intrinsics_vec256 - mask261 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); + mask26 = Lib_IntVector_Intrinsics_vec256_load64((uint64_t)0x3ffffffU); Lib_IntVector_Intrinsics_vec256 z0 = Lib_IntVector_Intrinsics_vec256_shift_right64(t01, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z1 = Lib_IntVector_Intrinsics_vec256_shift_right64(t3, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask261); - Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask261); + Lib_IntVector_Intrinsics_vec256 x0 = Lib_IntVector_Intrinsics_vec256_and(t01, mask26); + Lib_IntVector_Intrinsics_vec256 x3 = Lib_IntVector_Intrinsics_vec256_and(t3, mask26); Lib_IntVector_Intrinsics_vec256 x1 = Lib_IntVector_Intrinsics_vec256_add64(t11, z0); Lib_IntVector_Intrinsics_vec256 x4 = Lib_IntVector_Intrinsics_vec256_add64(t4, z1); Lib_IntVector_Intrinsics_vec256 @@ -1909,21 +1884,21 @@ Hacl_Poly1305_256_poly1305_update( Lib_IntVector_Intrinsics_vec256 t = Lib_IntVector_Intrinsics_vec256_shift_left64(z11, (uint32_t)2U); Lib_IntVector_Intrinsics_vec256 z12 = Lib_IntVector_Intrinsics_vec256_add64(z11, t); - Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask261); - Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask261); + Lib_IntVector_Intrinsics_vec256 x11 = Lib_IntVector_Intrinsics_vec256_and(x1, mask26); + Lib_IntVector_Intrinsics_vec256 x41 = Lib_IntVector_Intrinsics_vec256_and(x4, mask26); Lib_IntVector_Intrinsics_vec256 x2 = Lib_IntVector_Intrinsics_vec256_add64(t2, z01); Lib_IntVector_Intrinsics_vec256 x01 = Lib_IntVector_Intrinsics_vec256_add64(x0, z12); Lib_IntVector_Intrinsics_vec256 z02 = Lib_IntVector_Intrinsics_vec256_shift_right64(x2, (uint32_t)26U); Lib_IntVector_Intrinsics_vec256 z13 = Lib_IntVector_Intrinsics_vec256_shift_right64(x01, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask261); - Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask261); + Lib_IntVector_Intrinsics_vec256 x21 = Lib_IntVector_Intrinsics_vec256_and(x2, mask26); + Lib_IntVector_Intrinsics_vec256 x02 = Lib_IntVector_Intrinsics_vec256_and(x01, mask26); Lib_IntVector_Intrinsics_vec256 x31 = Lib_IntVector_Intrinsics_vec256_add64(x3, z02); Lib_IntVector_Intrinsics_vec256 x12 = Lib_IntVector_Intrinsics_vec256_add64(x11, z13); Lib_IntVector_Intrinsics_vec256 z03 = Lib_IntVector_Intrinsics_vec256_shift_right64(x31, (uint32_t)26U); - Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask261); + Lib_IntVector_Intrinsics_vec256 x32 = Lib_IntVector_Intrinsics_vec256_and(x31, mask26); Lib_IntVector_Intrinsics_vec256 x42 = Lib_IntVector_Intrinsics_vec256_add64(x41, z03); Lib_IntVector_Intrinsics_vec256 o0 = x02; Lib_IntVector_Intrinsics_vec256 o1 = x12; diff --git a/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_32.c b/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_32.c index 0ed0174ea..b5b118333 100644 --- a/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_32.c +++ b/libs/nss/src/lib/freebl/verified/Hacl_Poly1305_32.c @@ -174,29 +174,29 @@ Hacl_Poly1305_32_poly1305_update1(uint64_t *ctx, uint8_t *text) uint64_t t2 = a26; uint64_t t3 = a36; uint64_t t4 = a46; - uint64_t mask261 = (uint64_t)0x3ffffffU; + uint64_t mask26 = (uint64_t)0x3ffffffU; uint64_t z0 = t0 >> (uint32_t)26U; uint64_t z1 = t3 >> (uint32_t)26U; - uint64_t x0 = t0 & mask261; - uint64_t x3 = t3 & mask261; + uint64_t x0 = t0 & mask26; + uint64_t x3 = t3 & mask26; uint64_t x1 = t1 + z0; uint64_t x4 = t4 + z1; uint64_t z01 = x1 >> (uint32_t)26U; uint64_t z11 = x4 >> (uint32_t)26U; uint64_t t = z11 << (uint32_t)2U; uint64_t z12 = z11 + t; - uint64_t x11 = x1 & mask261; - uint64_t x41 = x4 & mask261; + uint64_t x11 = x1 & mask26; + uint64_t x41 = x4 & mask26; uint64_t x2 = t2 + z01; uint64_t x01 = x0 + z12; uint64_t z02 = x2 >> (uint32_t)26U; uint64_t z13 = x01 >> (uint32_t)26U; - uint64_t x21 = x2 & mask261; - uint64_t x02 = x01 & mask261; + uint64_t x21 = x2 & mask26; + uint64_t x02 = x01 & mask26; uint64_t x31 = x3 + z02; uint64_t x12 = x11 + z13; uint64_t z03 = x31 >> (uint32_t)26U; - uint64_t x32 = x31 & mask261; + uint64_t x32 = x31 & mask26; uint64_t x42 = x41 + z03; uint64_t o0 = x02; uint64_t o1 = x12; @@ -216,7 +216,7 @@ Hacl_Poly1305_32_poly1305_update(uint64_t *ctx, uint32_t len, uint8_t *text) uint64_t *pre = ctx + (uint32_t)5U; uint64_t *acc = ctx; uint32_t nb = len / (uint32_t)16U; - uint32_t rem1 = len % (uint32_t)16U; + uint32_t rem = len % (uint32_t)16U; for (uint32_t i = (uint32_t)0U; i < nb; i++) { uint8_t *block = text + i * (uint32_t)16U; uint64_t e[5U] = { 0U }; @@ -301,29 +301,29 @@ Hacl_Poly1305_32_poly1305_update(uint64_t *ctx, uint32_t len, uint8_t *text) uint64_t t2 = a26; uint64_t t3 = a36; uint64_t t4 = a46; - uint64_t mask261 = (uint64_t)0x3ffffffU; + uint64_t mask26 = (uint64_t)0x3ffffffU; uint64_t z0 = t0 >> (uint32_t)26U; uint64_t z1 = t3 >> (uint32_t)26U; - uint64_t x0 = t0 & mask261; - uint64_t x3 = t3 & mask261; + uint64_t x0 = t0 & mask26; + uint64_t x3 = t3 & mask26; uint64_t x1 = t1 + z0; uint64_t x4 = t4 + z1; uint64_t z01 = x1 >> (uint32_t)26U; uint64_t z11 = x4 >> (uint32_t)26U; uint64_t t = z11 << (uint32_t)2U; uint64_t z12 = z11 + t; - uint64_t x11 = x1 & mask261; - uint64_t x41 = x4 & mask261; + uint64_t x11 = x1 & mask26; + uint64_t x41 = x4 & mask26; uint64_t x2 = t2 + z01; uint64_t x01 = x0 + z12; uint64_t z02 = x2 >> (uint32_t)26U; uint64_t z13 = x01 >> (uint32_t)26U; - uint64_t x21 = x2 & mask261; - uint64_t x02 = x01 & mask261; + uint64_t x21 = x2 & mask26; + uint64_t x02 = x01 & mask26; uint64_t x31 = x3 + z02; uint64_t x12 = x11 + z13; uint64_t z03 = x31 >> (uint32_t)26U; - uint64_t x32 = x31 & mask261; + uint64_t x32 = x31 & mask26; uint64_t x42 = x41 + z03; uint64_t o0 = x02; uint64_t o1 = x12; @@ -336,11 +336,11 @@ Hacl_Poly1305_32_poly1305_update(uint64_t *ctx, uint32_t len, uint8_t *text) acc[3U] = o3; acc[4U] = o4; } - if (rem1 > (uint32_t)0U) { - uint8_t *last1 = text + nb * (uint32_t)16U; + if (rem > (uint32_t)0U) { + uint8_t *last = text + nb * (uint32_t)16U; uint64_t e[5U] = { 0U }; uint8_t tmp[16U] = { 0U }; - memcpy(tmp, last1, rem1 * sizeof(last1[0U])); + memcpy(tmp, last, rem * sizeof(last[0U])); uint64_t u0 = load64_le(tmp); uint64_t lo = u0; uint64_t u = load64_le(tmp + (uint32_t)8U); @@ -362,10 +362,10 @@ Hacl_Poly1305_32_poly1305_update(uint64_t *ctx, uint32_t len, uint8_t *text) e[2U] = f2; e[3U] = f3; e[4U] = f4; - uint64_t b = (uint64_t)1U << rem1 * (uint32_t)8U % (uint32_t)26U; + uint64_t b = (uint64_t)1U << rem * (uint32_t)8U % (uint32_t)26U; uint64_t mask = b; - uint64_t fi = e[rem1 * (uint32_t)8U / (uint32_t)26U]; - e[rem1 * (uint32_t)8U / (uint32_t)26U] = fi | mask; + uint64_t fi = e[rem * (uint32_t)8U / (uint32_t)26U]; + e[rem * (uint32_t)8U / (uint32_t)26U] = fi | mask; uint64_t *r = pre; uint64_t *r5 = pre + (uint32_t)5U; uint64_t r0 = r[0U]; @@ -422,29 +422,29 @@ Hacl_Poly1305_32_poly1305_update(uint64_t *ctx, uint32_t len, uint8_t *text) uint64_t t2 = a26; uint64_t t3 = a36; uint64_t t4 = a46; - uint64_t mask261 = (uint64_t)0x3ffffffU; + uint64_t mask26 = (uint64_t)0x3ffffffU; uint64_t z0 = t0 >> (uint32_t)26U; uint64_t z1 = t3 >> (uint32_t)26U; - uint64_t x0 = t0 & mask261; - uint64_t x3 = t3 & mask261; + uint64_t x0 = t0 & mask26; + uint64_t x3 = t3 & mask26; uint64_t x1 = t1 + z0; uint64_t x4 = t4 + z1; uint64_t z01 = x1 >> (uint32_t)26U; uint64_t z11 = x4 >> (uint32_t)26U; uint64_t t = z11 << (uint32_t)2U; uint64_t z12 = z11 + t; - uint64_t x11 = x1 & mask261; - uint64_t x41 = x4 & mask261; + uint64_t x11 = x1 & mask26; + uint64_t x41 = x4 & mask26; uint64_t x2 = t2 + z01; uint64_t x01 = x0 + z12; uint64_t z02 = x2 >> (uint32_t)26U; uint64_t z13 = x01 >> (uint32_t)26U; - uint64_t x21 = x2 & mask261; - uint64_t x02 = x01 & mask261; + uint64_t x21 = x2 & mask26; + uint64_t x02 = x01 & mask26; uint64_t x31 = x3 + z02; uint64_t x12 = x11 + z13; uint64_t z03 = x31 >> (uint32_t)26U; - uint64_t x32 = x31 & mask261; + uint64_t x32 = x31 & mask26; uint64_t x42 = x41 + z03; uint64_t o0 = x02; uint64_t o1 = x12; diff --git a/libs/nss/src/lib/freebl/verified/kremlin/include/kremlin/internal/types.h b/libs/nss/src/lib/freebl/verified/kremlin/include/kremlin/internal/types.h index f65e40cba..4654b8c01 100644 --- a/libs/nss/src/lib/freebl/verified/kremlin/include/kremlin/internal/types.h +++ b/libs/nss/src/lib/freebl/verified/kremlin/include/kremlin/internal/types.h @@ -47,21 +47,33 @@ typedef uint64_t FStar_Date_dateTime, FStar_Date_timeSpan; * definition into scope by default. */ typedef const char *Prims_string; -/* The great static header headache. */ +#if (defined(_MSC_VER) && defined(_M_X64) && !defined(__clang__)) +#define IS_MSVC64 1 +#endif + +/* This code makes a number of assumptions and should be refined. In particular, + * it assumes that: any non-MSVC amd64 compiler supports int128. Maybe it would + * be easier to just test for defined(__SIZEOF_INT128__) only? */ +#if (defined(__x86_64__) || \ + defined(__x86_64) || \ + defined(__aarch64__) || \ + (defined(__powerpc64__) && defined(__LITTLE_ENDIAN__)) || \ + defined(__s390x__) || \ + (defined(_MSC_VER) && !defined(_M_X64) && defined(__clang__)) || \ + (defined(__mips__) && defined(__LP64__)) || \ + (defined(__riscv) && __riscv_xlen == 64) || \ + defined(__SIZEOF_INT128__)) +#define HAS_INT128 1 +#endif /* The uint128 type is a special case since we offer several implementations of * it, depending on the compiler and whether the user wants the verified * implementation or not. */ -#if !defined(KRML_VERIFIED_UINT128) && defined(_MSC_VER) && defined(_M_X64) && \ - !defined(__clang__) +#if !defined(KRML_VERIFIED_UINT128) && defined(IS_MSVC64) #include <emmintrin.h> typedef __m128i FStar_UInt128_uint128; -#elif !defined(KRML_VERIFIED_UINT128) && !defined(_MSC_VER) && \ - (defined(__x86_64__) || defined(__x86_64) || defined(__aarch64__) || \ - (defined(__powerpc64__) && defined(__LITTLE_ENDIAN__))) +#elif !defined(KRML_VERIFIED_UINT128) && defined(HAS_INT128) typedef unsigned __int128 FStar_UInt128_uint128; -#elif !defined(KRML_VERIFIED_UINT128) && defined(_MSC_VER) && defined(__clang__) -typedef __uint128_t FStar_UInt128_uint128; #else typedef struct FStar_UInt128_uint128_s { uint64_t low; @@ -75,15 +87,13 @@ typedef FStar_UInt128_uint128 FStar_UInt128_t, uint128_t; #include "kremlin/lowstar_endianness.h" -/* This one is always included, because it defines C.Endianness functions too. */ -#if !defined(_MSC_VER) || defined(__clang__) -#include "fstar_uint128_gcc64.h" -#endif - -#if !defined(KRML_VERIFIED_UINT128) && defined(_MSC_VER) && !defined(__clang__) +#if !defined(KRML_VERIFIED_UINT128) && defined(IS_MSVC64) #include "fstar_uint128_msvc.h" -#elif defined(KRML_VERIFIED_UINT128) +#elif !defined(KRML_VERIFIED_UINT128) && defined(HAS_INT128) +#include "fstar_uint128_gcc64.h" +#else #include "FStar_UInt128_Verified.h" +#include "fstar_uint128_struct_endianness.h" #endif #endif diff --git a/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt128.h b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt128.h index 791d3460b..6f254639f 100644 --- a/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt128.h +++ b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt128.h @@ -13,12 +13,6 @@ #ifndef __FStar_UInt128_H #define __FStar_UInt128_H -static inline uint64_t -FStar_UInt128___proj__Mkuint128__item__low(FStar_UInt128_uint128 projectee); - -static inline uint64_t -FStar_UInt128___proj__Mkuint128__item__high(FStar_UInt128_uint128 projectee); - static inline FStar_UInt128_uint128 FStar_UInt128_add(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b); diff --git a/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt128_Verified.h b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt128_Verified.h index b629a954a..a7da435c3 100644 --- a/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt128_Verified.h +++ b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt128_Verified.h @@ -14,18 +14,6 @@ #include "FStar_UInt_8_16_32_64.h" static inline uint64_t -FStar_UInt128___proj__Mkuint128__item__low(FStar_UInt128_uint128 projectee) -{ - return projectee.low; -} - -static inline uint64_t -FStar_UInt128___proj__Mkuint128__item__high(FStar_UInt128_uint128 projectee) -{ - return projectee.high; -} - -static inline uint64_t FStar_UInt128_constant_time_carry(uint64_t a, uint64_t b) { return (a ^ ((a ^ b) | ((a - b) ^ b))) >> (uint32_t)63U; diff --git a/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt_8_16_32_64.h b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt_8_16_32_64.h index 6ca83ed01..809ea58ac 100644 --- a/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt_8_16_32_64.h +++ b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/FStar_UInt_8_16_32_64.h @@ -15,6 +15,10 @@ extern Prims_int FStar_UInt64_n; +extern bool FStar_UInt64_uu___is_Mk(uint64_t projectee); + +extern Prims_int FStar_UInt64___proj__Mk__item__v(uint64_t projectee); + extern Prims_int FStar_UInt64_v(uint64_t x); extern uint64_t FStar_UInt64_uint_to_t(Prims_int x); @@ -47,12 +51,20 @@ FStar_UInt64_gte_mask(uint64_t a, uint64_t b) return x_xor_q_ - (uint64_t)1U; } -extern Prims_string FStar_UInt64_to_string(uint64_t uu____716); +extern Prims_string FStar_UInt64_to_string(uint64_t uu____888); + +extern Prims_string FStar_UInt64_to_string_hex(uint64_t uu____899); + +extern Prims_string FStar_UInt64_to_string_hex_pad(uint64_t uu____910); -extern uint64_t FStar_UInt64_of_string(Prims_string uu____728); +extern uint64_t FStar_UInt64_of_string(Prims_string uu____921); extern Prims_int FStar_UInt32_n; +extern bool FStar_UInt32_uu___is_Mk(uint32_t projectee); + +extern Prims_int FStar_UInt32___proj__Mk__item__v(uint32_t projectee); + extern Prims_int FStar_UInt32_v(uint32_t x); extern uint32_t FStar_UInt32_uint_to_t(Prims_int x); @@ -85,12 +97,20 @@ FStar_UInt32_gte_mask(uint32_t a, uint32_t b) return x_xor_q_ - (uint32_t)1U; } -extern Prims_string FStar_UInt32_to_string(uint32_t uu____716); +extern Prims_string FStar_UInt32_to_string(uint32_t uu____888); + +extern Prims_string FStar_UInt32_to_string_hex(uint32_t uu____899); + +extern Prims_string FStar_UInt32_to_string_hex_pad(uint32_t uu____910); -extern uint32_t FStar_UInt32_of_string(Prims_string uu____728); +extern uint32_t FStar_UInt32_of_string(Prims_string uu____921); extern Prims_int FStar_UInt16_n; +extern bool FStar_UInt16_uu___is_Mk(uint16_t projectee); + +extern Prims_int FStar_UInt16___proj__Mk__item__v(uint16_t projectee); + extern Prims_int FStar_UInt16_v(uint16_t x); extern uint16_t FStar_UInt16_uint_to_t(Prims_int x); @@ -123,12 +143,20 @@ FStar_UInt16_gte_mask(uint16_t a, uint16_t b) return x_xor_q_ - (uint16_t)1U; } -extern Prims_string FStar_UInt16_to_string(uint16_t uu____716); +extern Prims_string FStar_UInt16_to_string(uint16_t uu____888); + +extern Prims_string FStar_UInt16_to_string_hex(uint16_t uu____899); + +extern Prims_string FStar_UInt16_to_string_hex_pad(uint16_t uu____910); -extern uint16_t FStar_UInt16_of_string(Prims_string uu____728); +extern uint16_t FStar_UInt16_of_string(Prims_string uu____921); extern Prims_int FStar_UInt8_n; +extern bool FStar_UInt8_uu___is_Mk(uint8_t projectee); + +extern Prims_int FStar_UInt8___proj__Mk__item__v(uint8_t projectee); + extern Prims_int FStar_UInt8_v(uint8_t x); extern uint8_t FStar_UInt8_uint_to_t(Prims_int x); @@ -161,9 +189,13 @@ FStar_UInt8_gte_mask(uint8_t a, uint8_t b) return x_xor_q_ - (uint8_t)1U; } -extern Prims_string FStar_UInt8_to_string(uint8_t uu____716); +extern Prims_string FStar_UInt8_to_string(uint8_t uu____888); + +extern Prims_string FStar_UInt8_to_string_hex(uint8_t uu____899); + +extern Prims_string FStar_UInt8_to_string_hex_pad(uint8_t uu____910); -extern uint8_t FStar_UInt8_of_string(Prims_string uu____728); +extern uint8_t FStar_UInt8_of_string(Prims_string uu____921); typedef uint8_t FStar_UInt8_byte; diff --git a/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_gcc64.h b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_gcc64.h index 149f50f28..5372de42a 100644 --- a/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_gcc64.h +++ b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_gcc64.h @@ -24,10 +24,6 @@ #include "FStar_UInt_8_16_32_64.h" #include "LowStar_Endianness.h" -#if !defined(KRML_VERIFIED_UINT128) && (!defined(_MSC_VER) || defined(__clang__)) && \ - (defined(__x86_64__) || defined(__x86_64) || defined(__aarch64__) || \ - (defined(__powerpc64__) && defined(__LITTLE_ENDIAN__))) - /* GCC + using native unsigned __int128 support */ inline static uint128_t @@ -222,83 +218,3 @@ FStar_UInt128_mul32(uint64_t x, uint32_t y) { return (uint128_t)x * (uint128_t)y; } - -#elif !defined(_MSC_VER) && defined(KRML_VERIFIED_UINT128) - -/* Verified uint128 implementation. */ - -/* Access 64-bit fields within the int128. */ -#define HIGH64_OF(x) ((x)->high) -#define LOW64_OF(x) ((x)->low) - -/* A series of definitions written using pointers. */ - -inline static void -load128_le_(uint8_t *b, uint128_t *r) -{ - LOW64_OF(r) = load64_le(b); - HIGH64_OF(r) = load64_le(b + 8); -} - -inline static void -store128_le_(uint8_t *b, uint128_t *n) -{ - store64_le(b, LOW64_OF(n)); - store64_le(b + 8, HIGH64_OF(n)); -} - -inline static void -load128_be_(uint8_t *b, uint128_t *r) -{ - HIGH64_OF(r) = load64_be(b); - LOW64_OF(r) = load64_be(b + 8); -} - -inline static void -store128_be_(uint8_t *b, uint128_t *n) -{ - store64_be(b, HIGH64_OF(n)); - store64_be(b + 8, LOW64_OF(n)); -} - -#ifndef KRML_NOSTRUCT_PASSING - -inline static uint128_t -load128_le(uint8_t *b) -{ - uint128_t r; - load128_le_(b, &r); - return r; -} - -inline static void -store128_le(uint8_t *b, uint128_t n) -{ - store128_le_(b, &n); -} - -inline static uint128_t -load128_be(uint8_t *b) -{ - uint128_t r; - load128_be_(b, &r); - return r; -} - -inline static void -store128_be(uint8_t *b, uint128_t n) -{ - store128_be_(b, &n); -} - -#else /* !defined(KRML_STRUCT_PASSING) */ - -#define print128 print128_ -#define load128_le load128_le_ -#define store128_le store128_le_ -#define load128_be load128_be_ -#define store128_be store128_be_ - -#endif /* KRML_STRUCT_PASSING */ - -#endif diff --git a/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_msvc.h b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_msvc.h index 5a05332fc..fca0e2d96 100644 --- a/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_msvc.h +++ b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_msvc.h @@ -15,6 +15,10 @@ #error This file only works with the MSVC compiler #endif +/* JP: need to rip out HAS_OPTIMIZED since the header guards in types.h are now + * done properly and only include this file when we know for sure we are on + * 64-bit MSVC. */ + #if defined(_M_X64) && !defined(KRML_VERIFIED_UINT128) #define HAS_OPTIMIZED 1 #else @@ -104,9 +108,7 @@ FStar_UInt128_add_underspec(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b) #else return ((FStar_UInt128_uint128){ .low = a.low + b.low, - .high = FStar_UInt64_add_underspec( - FStar_UInt64_add_underspec(a.high, b.high), - FStar_UInt128_carry(a.low + b.low, b.low)) }); + .high = a.high + b.high + FStar_UInt128_carry(a.low + b.low, b.low) }); #endif } @@ -146,9 +148,7 @@ FStar_UInt128_sub_underspec(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b) #else return ((FStar_UInt128_uint128){ .low = a.low - b.low, - .high = FStar_UInt64_sub_underspec( - FStar_UInt64_sub_underspec(a.high, b.high), - FStar_UInt128_carry(a.low, a.low - b.low)) }); + .high = a.high - b.high - FStar_UInt128_carry(a.low, a.low - b.low) }); #endif } diff --git a/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_struct_endianness.h b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_struct_endianness.h new file mode 100644 index 000000000..61fe85c49 --- /dev/null +++ b/libs/nss/src/lib/freebl/verified/kremlin/kremlib/dist/minimal/fstar_uint128_struct_endianness.h @@ -0,0 +1,84 @@ +/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. + Licensed under the Apache 2.0 License. */ + +#ifndef FSTAR_UINT128_STRUCT_ENDIANNESS_H +#define FSTAR_UINT128_STRUCT_ENDIANNESS_H + +/* Hand-written implementation of endianness-related uint128 functions + * for the extracted uint128 implementation */ + +/* Access 64-bit fields within the int128. */ +#define HIGH64_OF(x) ((x)->high) +#define LOW64_OF(x) ((x)->low) + +/* A series of definitions written using pointers. */ + +inline static void +load128_le_(uint8_t *b, uint128_t *r) +{ + LOW64_OF(r) = load64_le(b); + HIGH64_OF(r) = load64_le(b + 8); +} + +inline static void +store128_le_(uint8_t *b, uint128_t *n) +{ + store64_le(b, LOW64_OF(n)); + store64_le(b + 8, HIGH64_OF(n)); +} + +inline static void +load128_be_(uint8_t *b, uint128_t *r) +{ + HIGH64_OF(r) = load64_be(b); + LOW64_OF(r) = load64_be(b + 8); +} + +inline static void +store128_be_(uint8_t *b, uint128_t *n) +{ + store64_be(b, HIGH64_OF(n)); + store64_be(b + 8, LOW64_OF(n)); +} + +#ifndef KRML_NOSTRUCT_PASSING + +inline static uint128_t +load128_le(uint8_t *b) +{ + uint128_t r; + load128_le_(b, &r); + return r; +} + +inline static void +store128_le(uint8_t *b, uint128_t n) +{ + store128_le_(b, &n); +} + +inline static uint128_t +load128_be(uint8_t *b) +{ + uint128_t r; + load128_be_(b, &r); + return r; +} + +inline static void +store128_be(uint8_t *b, uint128_t n) +{ + store128_be_(b, &n); +} + +#else /* !defined(KRML_STRUCT_PASSING) */ + +#define print128 print128_ +#define load128_le load128_le_ +#define store128_le store128_le_ +#define load128_be load128_be_ +#define store128_be store128_be_ + +#endif /* KRML_STRUCT_PASSING */ + +#endif diff --git a/libs/nss/src/lib/freebl/verified/libintvector.h b/libs/nss/src/lib/freebl/verified/libintvector.h index 35ae7c6f3..24a221786 100644 --- a/libs/nss/src/lib/freebl/verified/libintvector.h +++ b/libs/nss/src/lib/freebl/verified/libintvector.h @@ -75,8 +75,11 @@ typedef __m128i Lib_IntVector_Intrinsics_vec128; #define Lib_IntVector_Intrinsics_vec128_rotate_left32_16(x0) \ (_mm_shuffle_epi8(x0, _mm_set_epi8(13, 12, 15, 14, 9, 8, 11, 10, 5, 4, 7, 6, 1, 0, 3, 2))) +#define Lib_IntVector_Intrinsics_vec128_rotate_left32_24(x0) \ + (_mm_shuffle_epi8(x0, _mm_set_epi8(12, 15, 14, 13, 8, 11, 10, 9, 4, 7, 6, 5, 0, 3, 2, 1))) + #define Lib_IntVector_Intrinsics_vec128_rotate_left32(x0, x1) \ - ((x1 == 8 ? Lib_IntVector_Intrinsics_vec128_rotate_left32_8(x0) : (x1 == 16 ? Lib_IntVector_Intrinsics_vec128_rotate_left32_16(x0) : _mm_xor_si128(_mm_slli_epi32(x0, x1), _mm_srli_epi32(x0, 32 - (x1)))))) + (((x1) == 8 ? Lib_IntVector_Intrinsics_vec128_rotate_left32_8(x0) : ((x1) == 16 ? Lib_IntVector_Intrinsics_vec128_rotate_left32_16(x0) : ((x1) == 24 ? Lib_IntVector_Intrinsics_vec128_rotate_left32_24(x0) : _mm_xor_si128(_mm_slli_epi32(x0, x1), _mm_srli_epi32(x0, 32 - (x1))))))) #define Lib_IntVector_Intrinsics_vec128_rotate_right32(x0, x1) \ (Lib_IntVector_Intrinsics_vec128_rotate_left32(x0, 32 - (x1))) @@ -87,6 +90,12 @@ typedef __m128i Lib_IntVector_Intrinsics_vec128; #define Lib_IntVector_Intrinsics_vec128_shuffle64(x0, x1, x2) \ (_mm_shuffle_epi32(x0, _MM_SHUFFLE(2 * x1 + 1, 2 * x1, 2 * x2 + 1, 2 * x2))) +#define Lib_IntVector_Intrinsics_vec128_rotate_right_lanes32(x0, x1) \ + (_mm_shuffle_epi32(x0, _MM_SHUFFLE((x1 + 3) % 4, (x1 + 2) % 4, (x1 + 1) % 4, x1 % 4))) + +#define Lib_IntVector_Intrinsics_vec128_rotate_right_lanes64(x0, x1) \ + (_mm_shuffle_epi32(x0, _MM_SHUFFLE((2 * x1 + 3) % 4, (2 * x1 + 2) % 4, (2 * x1 + 1) % 4, (2 * x1) % 4))) + #define Lib_IntVector_Intrinsics_vec128_load_le(x0) \ (_mm_loadu_si128((__m128i*)(x0))) @@ -130,7 +139,7 @@ typedef __m128i Lib_IntVector_Intrinsics_vec128; (_mm_extract_epi64(x0, x1)) #define Lib_IntVector_Intrinsics_vec128_zero \ - (_mm_set1_epi16((uint16_t)0)) + (_mm_setzero_si128()) #define Lib_IntVector_Intrinsics_vec128_add64(x0, x1) \ (_mm_add_epi64(x0, x1)) @@ -238,8 +247,11 @@ typedef __m256i Lib_IntVector_Intrinsics_vec256; #define Lib_IntVector_Intrinsics_vec256_rotate_left32_16(x0) \ (_mm256_shuffle_epi8(x0, _mm256_set_epi8(13, 12, 15, 14, 9, 8, 11, 10, 5, 4, 7, 6, 1, 0, 3, 2, 13, 12, 15, 14, 9, 8, 11, 10, 5, 4, 7, 6, 1, 0, 3, 2))) +#define Lib_IntVector_Intrinsics_vec256_rotate_left32_24(x0) \ + (_mm256_shuffle_epi8(x0, _mm256_set_epi8(12, 15, 14, 13, 8, 11, 10, 9, 4, 7, 6, 5, 0, 3, 2, 1, 12, 15, 14, 13, 8, 11, 10, 9, 4, 7, 6, 5, 0, 3, 2, 1))) + #define Lib_IntVector_Intrinsics_vec256_rotate_left32(x0, x1) \ - ((x1 == 8 ? Lib_IntVector_Intrinsics_vec256_rotate_left32_8(x0) : (x1 == 16 ? Lib_IntVector_Intrinsics_vec256_rotate_left32_16(x0) : _mm256_or_si256(_mm256_slli_epi32(x0, x1), _mm256_srli_epi32(x0, 32 - (x1)))))) + ((x1 == 8 ? Lib_IntVector_Intrinsics_vec256_rotate_left32_8(x0) : (x1 == 16 ? Lib_IntVector_Intrinsics_vec256_rotate_left32_16(x0) : (x1 == 24 ? Lib_IntVector_Intrinsics_vec256_rotate_left32_24(x0) : _mm256_or_si256(_mm256_slli_epi32(x0, x1), _mm256_srli_epi32(x0, 32 - (x1))))))) #define Lib_IntVector_Intrinsics_vec256_rotate_right32(x0, x1) \ (Lib_IntVector_Intrinsics_vec256_rotate_left32(x0, 32 - (x1))) @@ -256,8 +268,20 @@ typedef __m256i Lib_IntVector_Intrinsics_vec256; #define Lib_IntVector_Intrinsics_vec256_rotate_right64_32(x0) \ (_mm256_shuffle_epi8(x0, _mm256_set_epi8(11, 10, 9, 8, 15, 14, 13, 12, 3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12, 3, 2, 1, 0, 7, 6, 5, 4))) +#define Lib_IntVector_Intrinsics_vec256_rotate_right64_40(x0) \ + (_mm256_shuffle_epi8(x0, _mm256_set_epi8(12, 11, 10, 9, 8, 15, 14, 13, 4, 3, 2, 1, 0, 7, 6, 5, 12, 11, 10, 9, 8, 15, 14, 13, 4, 3, 2, 1, 0, 7, 6, 5))) + +#define Lib_IntVector_Intrinsics_vec256_rotate_right64_48(x0) \ + (_mm256_shuffle_epi8(x0, _mm256_set_epi8(13, 12, 11, 10, 9, 8, 15, 14, 5, 4, 3, 2, 1, 0, 7, 6, 13, 12, 11, 10, 9, 8, 15, 14, 5, 4, 3, 2, 1, 0, 7, 6))) + +#define Lib_IntVector_Intrinsics_vec256_rotate_right64_56(x0) \ + (_mm256_shuffle_epi8(x0, _mm256_set_epi8(14, 13, 12, 11, 10, 9, 8, 15, 6, 5, 4, 3, 2, 1, 0, 7, 14, 13, 12, 11, 10, 9, 8, 15, 6, 5, 4, 3, 2, 1, 0, 7))) + #define Lib_IntVector_Intrinsics_vec256_rotate_right64(x0, x1) \ - ((x1 == 8 ? Lib_IntVector_Intrinsics_vec256_rotate_right64_8(x0) : (x1 == 16 ? Lib_IntVector_Intrinsics_vec256_rotate_right64_16(x0) : (x1 == 24 ? Lib_IntVector_Intrinsics_vec256_rotate_right64_24(x0) : (x1 == 32 ? Lib_IntVector_Intrinsics_vec256_rotate_right64_32(x0) : _mm256_xor_si256(_mm256_srli_epi64((x0), (x1)), _mm256_slli_epi64((x0), (64 - (x1))))))))) + ((x1 == 8 ? Lib_IntVector_Intrinsics_vec256_rotate_right64_8(x0) : (x1 == 16 ? Lib_IntVector_Intrinsics_vec256_rotate_right64_16(x0) : (x1 == 24 ? Lib_IntVector_Intrinsics_vec256_rotate_right64_24(x0) : (x1 == 32 ? Lib_IntVector_Intrinsics_vec256_rotate_right64_32(x0) : (x1 == 40 ? Lib_IntVector_Intrinsics_vec256_rotate_right64_40(x0) : (x1 == 48 ? Lib_IntVector_Intrinsics_vec256_rotate_right64_48(x0) : (x1 == 56 ? Lib_IntVector_Intrinsics_vec256_rotate_right64_56(x0) : _mm256_xor_si256(_mm256_srli_epi64((x0), (x1)), _mm256_slli_epi64((x0), (64 - (x1)))))))))))) + +#define Lib_IntVector_Intrinsics_vec256_rotate_left64(x0, x1) \ + (Lib_IntVector_Intrinsics_vec256_rotate_right64(x0, 64 - (x1))) #define Lib_IntVector_Intrinsics_vec256_shuffle64(x0, x1, x2, x3, x4) \ (_mm256_permute4x64_epi64(x0, _MM_SHUFFLE(x4, x3, x2, x1))) @@ -265,12 +289,30 @@ typedef __m256i Lib_IntVector_Intrinsics_vec256; #define Lib_IntVector_Intrinsics_vec256_shuffle32(x0, x1, x2, x3, x4, x5, x6, x7, x8) \ (_mm256_permutevar8x32_epi32(x0, _mm256_set_epi32(x8, x7, x6, x5, x4, x3, x2, x1))) +#define Lib_IntVector_Intrinsics_vec256_rotate_right_lanes32(x0, x1) \ + (_mm256_permutevar8x32_epi32(x0, _mm256_set_epi32((x1 + 7) % 8, (x1 + 6) % 8, (x1 + 5) % 8, (x1 + 4) % 8, (x1 + 3 % 8), (x1 + 2) % 8, (x1 + 1) % 8, x1 % 8))) + +#define Lib_IntVector_Intrinsics_vec256_rotate_right_lanes64(x0, x1) \ + (_mm256_permute4x64_epi64(x0, _MM_SHUFFLE((x1 + 3) % 4, (x1 + 2) % 4, (x1 + 1) % 4, x1 % 4))) + #define Lib_IntVector_Intrinsics_vec256_load_le(x0) \ (_mm256_loadu_si256((__m256i*)(x0))) +#define Lib_IntVector_Intrinsics_vec256_load32_be(x0) \ + (_mm256_shuffle_epi8(_mm256_loadu_si256((__m256i*)(x0)), _mm256_set_epi8(12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3))) + +#define Lib_IntVector_Intrinsics_vec256_load64_be(x0) \ + (_mm256_shuffle_epi8(_mm256_loadu_si256((__m256i*)(x0)), _mm256_set_epi8(8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7))) + #define Lib_IntVector_Intrinsics_vec256_store_le(x0, x1) \ (_mm256_storeu_si256((__m256i*)(x0), x1)) +#define Lib_IntVector_Intrinsics_vec256_store32_be(x0, x1) \ + (_mm256_storeu_si256((__m256i*)(x0), _mm256_shuffle_epi8(x1, _mm256_set_epi8(12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3)))) + +#define Lib_IntVector_Intrinsics_vec256_store64_be(x0, x1) \ + (_mm256_storeu_si256((__m256i*)(x0), _mm256_shuffle_epi8(x1, _mm256_set_epi8(8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7)))) + #define Lib_IntVector_Intrinsics_vec256_insert8(x0, x1, x2) \ (_mm256_insert_epi8(x0, x1, x2)) @@ -290,7 +332,7 @@ typedef __m256i Lib_IntVector_Intrinsics_vec256; (_mm256_extract_epi64(x0, x1)) #define Lib_IntVector_Intrinsics_vec256_zero \ - (_mm256_set1_epi16((uint16_t)0)) + (_mm256_setzero_si256()) #define Lib_IntVector_Intrinsics_vec256_add64(x0, x1) \ (_mm256_add_epi64(x0, x1)) @@ -369,8 +411,17 @@ typedef uint32x4_t Lib_IntVector_Intrinsics_vec128; #define Lib_IntVector_Intrinsics_vec128_gt32(x0, x1) \ (vcgtq_u32(x0, x1)) +#define high32(x0) \ + (vmovn_u64(vshrq_n_u64(vreinterpretq_u64_u32(x0), 32))) + +#define low32(x0) \ + (vmovn_u64(vreinterpretq_u64_u32(x0))) + +#define Lib_IntVector_Intrinsics_vec128_gt64(x0, x1) \ + (vreinterpretq_u32_u64(vmovl_u32(vorr_u32(vcgt_u32(high32(x0), high32(x1)), vand_u32(vceq_u32(high32(x0), high32(x1)), vcgt_u32(low32(x0), low32(x1))))))) + #define Lib_IntVector_Intrinsics_vec128_or(x0, x1) \ - (voorq_u32(x0, x1)) + (vorrq_u32(x0, x1)) #define Lib_IntVector_Intrinsics_vec128_and(x0, x1) \ (vandq_u32(x0, x1)) @@ -394,13 +445,25 @@ typedef uint32x4_t Lib_IntVector_Intrinsics_vec128; (vshlq_n_u32(x0, x1)) #define Lib_IntVector_Intrinsics_vec128_shift_right32(x0, x1) \ - (vreinterpretq_u32_u64(vshrq_n_u64(vreinterpretq_u64_u32(x0), x1))) + (vshrq_n_u32(x0, x1)) + +#define Lib_IntVector_Intrinsics_vec128_rotate_left32_16(x1) \ + (vreinterpretq_u32_u16(vrev32q_u16(vreinterpretq_u16_u32(x1)))) #define Lib_IntVector_Intrinsics_vec128_rotate_left32(x0, x1) \ - (vsriq_n_u32(vshlq_n_u32((x0), (x1)), (x0), 32 - (x1))) + (((x1) == 16 ? Lib_IntVector_Intrinsics_vec128_rotate_left32_16(x0) : vsriq_n_u32(vshlq_n_u32((x0), (x1)), (x0), 32 - (x1)))) + +#define Lib_IntVector_Intrinsics_vec128_rotate_right32_16(x1) \ + (vreinterpretq_u32_u16(vrev32q_u16(vreinterpretq_u16_u32(x1)))) #define Lib_IntVector_Intrinsics_vec128_rotate_right32(x0, x1) \ - (vsriq_n_u32(vshlq_n_u32((x0), 32 - (x1)), (x0), (x1))) + (((x1) == 16 ? Lib_IntVector_Intrinsics_vec128_rotate_right32_16(x0) : vsriq_n_u32(vshlq_n_u32((x0), 32 - (x1)), (x0), (x1)))) + +#define Lib_IntVector_Intrinsics_vec128_rotate_right_lanes32(x0, x1) \ + (vextq_u32(x0, x0, x1)) + +#define Lib_IntVector_Intrinsics_vec128_rotate_right_lanes64(x0, x1) \ + (vextq_u64(x0, x0, x1)) /* #define Lib_IntVector_Intrinsics_vec128_shuffle32(x0, x1, x2, x3, x4) \ @@ -423,10 +486,10 @@ typedef uint32x4_t Lib_IntVector_Intrinsics_vec128; */ #define Lib_IntVector_Intrinsics_vec128_load32_be(x0) \ - (vrev32q_u8(vld1q_u32((const uint32_t*)(x0)))) + (vreinterpretq_u32_u8(vrev32q_u8(vreinterpretq_u8_u32(vld1q_u32((const uint32_t*)(x0)))))) #define Lib_IntVector_Intrinsics_vec128_load64_be(x0) \ - (vreinterpretq_u32_u64(vrev64q_u8(vld1q_u32((const uint32_t*)(x0))))) + (vreinterpretq_u32_u8(vrev64q_u8(vreinterpretq_u8_u32(vld1q_u32((const uint32_t*)(x0)))))) /* #define Lib_IntVector_Intrinsics_vec128_store_be(x0, x1) \ @@ -434,10 +497,10 @@ typedef uint32x4_t Lib_IntVector_Intrinsics_vec128; */ #define Lib_IntVector_Intrinsics_vec128_store32_be(x0, x1) \ - (vst1q_u32((uint32_t*)(x0), (vrev32q_u8(x1)))) + (vst1q_u32((uint32_t*)(x0), (vreinterpretq_u32_u8(vrev32q_u8(vreinterpretq_u8_u32(x1)))))) #define Lib_IntVector_Intrinsics_vec128_store64_be(x0, x1) \ - (vst1q_u32((uint32_t*)(x0), (vrev64q_u8(x1)))) + (vst1q_u32((uint32_t*)(x0), (vreinterpretq_u32_u8(vrev64q_u8(vreinterpretq_u8_u32(x1)))))) #define Lib_IntVector_Intrinsics_vec128_insert8(x0, x1, x2) \ (vsetq_lane_u8(x1, x0, x2)) @@ -455,10 +518,10 @@ typedef uint32x4_t Lib_IntVector_Intrinsics_vec128; (vgetq_lane_u32(x0, x1)) #define Lib_IntVector_Intrinsics_vec128_extract64(x0, x1) \ - (vreinterpretq_u32_u64(vgetq_lane_u64(vreinterpretq_u64_u32(x0), x1))) + (vgetq_lane_u64(vreinterpretq_u64_u32(x0), x1)) #define Lib_IntVector_Intrinsics_vec128_zero \ - (vdup_n_u8(0)) + (vdupq_n_u32(0)) #define Lib_IntVector_Intrinsics_vec128_add64(x0, x1) \ (vreinterpretq_u32_u64(vaddq_u64(vreinterpretq_u64_u32(x0), vreinterpretq_u64_u32(x1)))) @@ -467,10 +530,10 @@ typedef uint32x4_t Lib_IntVector_Intrinsics_vec128; (vreinterpretq_u32_u64(vsubq_u64(vreinterpretq_u64_u32(x0), vreinterpretq_u64_u32(x1)))) #define Lib_IntVector_Intrinsics_vec128_mul64(x0, x1) \ - (vmull_u32(vmovn_u64(x0), vmovn_u64(x1))) + (vreinterpretq_u32_u64(vmull_u32(vmovn_u64(vreinterpretq_u64_u32(x0)), vmovn_u64(vreinterpretq_u64_u32(x1))))) #define Lib_IntVector_Intrinsics_vec128_smul64(x0, x1) \ - (vmull_u32(vmovn_u64(x0), vdupq_n_u64(x1))) + (vreinterpretq_u32_u64(vmull_n_u32(vmovn_u64(vreinterpretq_u64_u32(x0)), (uint32_t)x1))) #define Lib_IntVector_Intrinsics_vec128_add32(x0, x1) \ (vaddq_u32(x0, x1)) diff --git a/libs/nss/src/lib/jar/Makefile b/libs/nss/src/lib/jar/Makefile index 245c127a4..650c2ae86 100644 --- a/libs/nss/src/lib/jar/Makefile +++ b/libs/nss/src/lib/jar/Makefile @@ -5,7 +5,19 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. include manifest.mn + include $(CORE_DEPTH)/coreconf/config.mk -include config.mk -include $(CORE_DEPTH)/coreconf/rules.mk +# NSS_X86 means the target is a 32-bits x86 CPU architecture +# NSS_X64 means the target is a 64-bits x64 CPU architecture +# NSS_X86_OR_X64 means the target is either x86 or x64 +ifeq (,$(filter-out i386 x386 x86 x86_64,$(CPU_ARCH))) + DEFINES += -DNSS_X86_OR_X64 +ifdef USE_64 + DEFINES += -DNSS_X64 +else + DEFINES += -DNSS_X86 +endif +endif + +include $(CORE_DEPTH)/coreconf/rules.mk diff --git a/libs/nss/src/lib/jar/config.mk b/libs/nss/src/lib/jar/config.mk deleted file mode 100644 index 1412dcc59..000000000 --- a/libs/nss/src/lib/jar/config.mk +++ /dev/null @@ -1,26 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - -# NSS_X86 means the target is a 32-bits x86 CPU architecture -# NSS_X64 means the target is a 64-bits x64 CPU architecture -# NSS_X86_OR_X64 means the target is either x86 or x64 -ifeq (,$(filter-out i386 x386 x86 x86_64,$(CPU_ARCH))) - DEFINES += -DNSS_X86_OR_X64 -ifdef USE_64 - DEFINES += -DNSS_X64 -else - DEFINES += -DNSS_X86 -endif -endif diff --git a/libs/nss/src/lib/jar/jar.c b/libs/nss/src/lib/jar/jar.c index 00a55463e..5a38def9d 100644 --- a/libs/nss/src/lib/jar/jar.c +++ b/libs/nss/src/lib/jar/jar.c @@ -18,7 +18,7 @@ static void jar_destroy_list(ZZList *list); static int -jar_find_first_cert(JAR_Signer *signer, int type, JAR_Item **it); +jar_find_first_cert(JAR_Signer *signer, jarType type, JAR_Item **it); /* * J A R _ n e w @@ -323,7 +323,7 @@ JAR_find_next(JAR_Context *ctx, JAR_Item **it) { JAR *jar; ZZList *list = NULL; - int finding; + jarType finding; JAR_Signer *signer = NULL; PORT_Assert(ctx != NULL); @@ -413,6 +413,13 @@ JAR_find_next(JAR_Context *ctx, JAR_Item **it) case jarTypeSign: ctx->next = ZZ_ListHead(signer->certs); break; + + case jarTypeMF: + case jarTypeMeta: + case jarTypePhy: + case jarTypeSect: + case jarTypeOwner: + break; } } PORT_Assert(ctx->next != NULL); @@ -447,7 +454,7 @@ JAR_find_next(JAR_Context *ctx, JAR_Item **it) } static int -jar_find_first_cert(JAR_Signer *signer, int type, JAR_Item **it) +jar_find_first_cert(JAR_Signer *signer, jarType type, JAR_Item **it) { ZZLink *link; ZZList *list = signer->certs; diff --git a/libs/nss/src/lib/jar/manifest.mn b/libs/nss/src/lib/jar/manifest.mn index 5b516886a..bcfff578d 100644 --- a/libs/nss/src/lib/jar/manifest.mn +++ b/libs/nss/src/lib/jar/manifest.mn @@ -5,6 +5,7 @@ MODULE = nss LIBRARY_NAME = jar +SHARED_LIBRARY = $(NULL) CORE_DEPTH = ../.. diff --git a/libs/nss/src/lib/libpkix/Makefile b/libs/nss/src/lib/libpkix/Makefile index 36524f56a..bb8877285 100644 --- a/libs/nss/src/lib/libpkix/Makefile +++ b/libs/nss/src/lib/libpkix/Makefile @@ -26,8 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk - ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # ####################################################################### @@ -44,5 +42,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/config.mk b/libs/nss/src/lib/libpkix/config.mk deleted file mode 100644 index 5d75e1c04..000000000 --- a/libs/nss/src/lib/libpkix/config.mk +++ /dev/null @@ -1,16 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# -# DEFINES+=-DPKIX_LISTDEBUG Can be used to turn on debug compilation - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/include/Makefile b/libs/nss/src/lib/libpkix/include/Makefile index 36524f56a..d714361be 100644 --- a/libs/nss/src/lib/libpkix/include/Makefile +++ b/libs/nss/src/lib/libpkix/include/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,5 +43,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/include/config.mk b/libs/nss/src/lib/libpkix/include/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/include/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/include/manifest.mn b/libs/nss/src/lib/libpkix/include/manifest.mn index cc74890cf..3792dbb86 100644 --- a/libs/nss/src/lib/libpkix/include/manifest.mn +++ b/libs/nss/src/lib/libpkix/include/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix.h \ pkix_crlsel.h \ diff --git a/libs/nss/src/lib/libpkix/pkix/Makefile b/libs/nss/src/lib/libpkix/pkix/Makefile index 36524f56a..d714361be 100644 --- a/libs/nss/src/lib/libpkix/pkix/Makefile +++ b/libs/nss/src/lib/libpkix/pkix/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,5 +43,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/pkix/certsel/Makefile b/libs/nss/src/lib/libpkix/pkix/certsel/Makefile index 36524f56a..d714361be 100644 --- a/libs/nss/src/lib/libpkix/pkix/certsel/Makefile +++ b/libs/nss/src/lib/libpkix/pkix/certsel/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,5 +43,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/pkix/certsel/config.mk b/libs/nss/src/lib/libpkix/pkix/certsel/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix/certsel/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix/certsel/manifest.mn b/libs/nss/src/lib/libpkix/pkix/certsel/manifest.mn index 525ee09ca..eb434bd53 100644 --- a/libs/nss/src/lib/libpkix/pkix/certsel/manifest.mn +++ b/libs/nss/src/lib/libpkix/pkix/certsel/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix_certselector.h \ pkix_comcertselparams.h \ @@ -20,4 +17,4 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkixcertsel - +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/libpkix/pkix/checker/Makefile b/libs/nss/src/lib/libpkix/pkix/checker/Makefile index 36524f56a..d714361be 100644 --- a/libs/nss/src/lib/libpkix/pkix/checker/Makefile +++ b/libs/nss/src/lib/libpkix/pkix/checker/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,5 +43,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/pkix/checker/config.mk b/libs/nss/src/lib/libpkix/pkix/checker/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix/checker/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix/checker/manifest.mn b/libs/nss/src/lib/libpkix/pkix/checker/manifest.mn index eba69d0ce..84a372cea 100644 --- a/libs/nss/src/lib/libpkix/pkix/checker/manifest.mn +++ b/libs/nss/src/lib/libpkix/pkix/checker/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix_basicconstraintschecker.h \ pkix_certchainchecker.h \ @@ -42,4 +39,4 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkixchecker - +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/libpkix/pkix/config.mk b/libs/nss/src/lib/libpkix/pkix/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix/crlsel/Makefile b/libs/nss/src/lib/libpkix/pkix/crlsel/Makefile index 36524f56a..d714361be 100644 --- a/libs/nss/src/lib/libpkix/pkix/crlsel/Makefile +++ b/libs/nss/src/lib/libpkix/pkix/crlsel/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,5 +43,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/pkix/crlsel/config.mk b/libs/nss/src/lib/libpkix/pkix/crlsel/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix/crlsel/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix/crlsel/manifest.mn b/libs/nss/src/lib/libpkix/pkix/crlsel/manifest.mn index 8ea0f59c6..fe84a2d62 100644 --- a/libs/nss/src/lib/libpkix/pkix/crlsel/manifest.mn +++ b/libs/nss/src/lib/libpkix/pkix/crlsel/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix_comcrlselparams.h \ pkix_crlselector.h \ @@ -20,4 +17,4 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkixcrlsel - +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/libpkix/pkix/params/Makefile b/libs/nss/src/lib/libpkix/pkix/params/Makefile index 36524f56a..d714361be 100644 --- a/libs/nss/src/lib/libpkix/pkix/params/Makefile +++ b/libs/nss/src/lib/libpkix/pkix/params/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,5 +43,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/pkix/params/config.mk b/libs/nss/src/lib/libpkix/pkix/params/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix/params/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix/params/manifest.mn b/libs/nss/src/lib/libpkix/pkix/params/manifest.mn index f26e588f5..2a77bf0ee 100644 --- a/libs/nss/src/lib/libpkix/pkix/params/manifest.mn +++ b/libs/nss/src/lib/libpkix/pkix/params/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix_procparams.h \ pkix_trustanchor.h \ @@ -24,4 +21,4 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkixparams - +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/libpkix/pkix/results/Makefile b/libs/nss/src/lib/libpkix/pkix/results/Makefile index 36524f56a..d714361be 100644 --- a/libs/nss/src/lib/libpkix/pkix/results/Makefile +++ b/libs/nss/src/lib/libpkix/pkix/results/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,5 +43,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/pkix/results/config.mk b/libs/nss/src/lib/libpkix/pkix/results/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix/results/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix/results/manifest.mn b/libs/nss/src/lib/libpkix/pkix/results/manifest.mn index c082ada1f..bec0270fb 100644 --- a/libs/nss/src/lib/libpkix/pkix/results/manifest.mn +++ b/libs/nss/src/lib/libpkix/pkix/results/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix_buildresult.h \ pkix_policynode.h \ @@ -24,4 +21,4 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkixresults - +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/libpkix/pkix/store/Makefile b/libs/nss/src/lib/libpkix/pkix/store/Makefile index 36524f56a..d714361be 100644 --- a/libs/nss/src/lib/libpkix/pkix/store/Makefile +++ b/libs/nss/src/lib/libpkix/pkix/store/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,5 +43,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/pkix/store/config.mk b/libs/nss/src/lib/libpkix/pkix/store/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix/store/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix/store/manifest.mn b/libs/nss/src/lib/libpkix/pkix/store/manifest.mn index 4df8eb64b..53a54d6cc 100644 --- a/libs/nss/src/lib/libpkix/pkix/store/manifest.mn +++ b/libs/nss/src/lib/libpkix/pkix/store/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix_store.h \ $(NULL) @@ -18,4 +15,4 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkixstore - +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/libpkix/pkix/top/Makefile b/libs/nss/src/lib/libpkix/pkix/top/Makefile index 36524f56a..d714361be 100644 --- a/libs/nss/src/lib/libpkix/pkix/top/Makefile +++ b/libs/nss/src/lib/libpkix/pkix/top/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,5 +43,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/pkix/top/config.mk b/libs/nss/src/lib/libpkix/pkix/top/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix/top/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix/top/manifest.mn b/libs/nss/src/lib/libpkix/pkix/top/manifest.mn index c49941034..5bdd3f300 100644 --- a/libs/nss/src/lib/libpkix/pkix/top/manifest.mn +++ b/libs/nss/src/lib/libpkix/pkix/top/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix_build.h \ pkix_lifecycle.h \ @@ -22,4 +19,4 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkixtop - +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/libpkix/pkix/util/Makefile b/libs/nss/src/lib/libpkix/pkix/util/Makefile index 36524f56a..2b5492506 100644 --- a/libs/nss/src/lib/libpkix/pkix/util/Makefile +++ b/libs/nss/src/lib/libpkix/pkix/util/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -43,6 +42,3 @@ include $(CORE_DEPTH)/coreconf/rules.mk ####################################################################### # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### - -export:: private_export - diff --git a/libs/nss/src/lib/libpkix/pkix/util/config.mk b/libs/nss/src/lib/libpkix/pkix/util/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix/util/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix/util/manifest.mn b/libs/nss/src/lib/libpkix/pkix/util/manifest.mn index 9c068ae73..e7d9f973c 100644 --- a/libs/nss/src/lib/libpkix/pkix/util/manifest.mn +++ b/libs/nss/src/lib/libpkix/pkix/util/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix_tools.h \ pkix_error.h \ @@ -25,4 +22,4 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkixutil - +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/libpkix/pkix/util/pkix_logger.c b/libs/nss/src/lib/libpkix/pkix/util/pkix_logger.c index a916e6e4f..10f537a31 100644 --- a/libs/nss/src/lib/libpkix/pkix/util/pkix_logger.c +++ b/libs/nss/src/lib/libpkix/pkix/util/pkix_logger.c @@ -313,7 +313,7 @@ pkix_Logger_Destroy( logger->callback = NULL; PKIX_DECREF(logger->context); - logger->logComponent = (PKIX_ERRORCLASS)NULL; + logger->logComponent = (PKIX_ERRORCLASS)0; cleanup: @@ -614,7 +614,7 @@ PKIX_Logger_Create( logger->callback = callback; logger->maxLevel = 0; - logger->logComponent = (PKIX_ERRORCLASS)NULL; + logger->logComponent = (PKIX_ERRORCLASS)0; PKIX_INCREF(loggerContext); logger->context = loggerContext; diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/Makefile b/libs/nss/src/lib/libpkix/pkix_pl_nss/Makefile index 36524f56a..2b5492506 100644 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/Makefile +++ b/libs/nss/src/lib/libpkix/pkix_pl_nss/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -43,6 +42,3 @@ include $(CORE_DEPTH)/coreconf/rules.mk ####################################################################### # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### - -export:: private_export - diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/config.mk b/libs/nss/src/lib/libpkix/pkix_pl_nss/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/module/Makefile b/libs/nss/src/lib/libpkix/pkix_pl_nss/module/Makefile index 36524f56a..e97ad8e4d 100644 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/module/Makefile +++ b/libs/nss/src/lib/libpkix/pkix_pl_nss/module/Makefile @@ -26,7 +26,26 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk +ifdef NSS_PKIX_NO_LDAP +LDAP_HEADERS = +LDAP_CSRCS = +else +LDAP_HEADERS = \ + pkix_pl_ldapt.h \ + pkix_pl_ldapcertstore.h \ + pkix_pl_ldapresponse.h \ + pkix_pl_ldaprequest.h \ + pkix_pl_ldapdefaultclient.h \ + $(NULL) + +LDAP_CSRCS = \ + pkix_pl_ldaptemplates.c \ + pkix_pl_ldapcertstore.c \ + pkix_pl_ldapresponse.c \ + pkix_pl_ldaprequest.c \ + pkix_pl_ldapdefaultclient.c \ + $(NULL) +endif ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,5 +63,4 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/module/config.mk b/libs/nss/src/lib/libpkix/pkix_pl_nss/module/config.mk deleted file mode 100644 index 2926747a2..000000000 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/module/config.mk +++ /dev/null @@ -1,35 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - -ifdef NSS_PKIX_NO_LDAP -LDAP_HEADERS = -LDAP_CSRCS = -else -LDAP_HEADERS = \ - pkix_pl_ldapt.h \ - pkix_pl_ldapcertstore.h \ - pkix_pl_ldapresponse.h \ - pkix_pl_ldaprequest.h \ - pkix_pl_ldapdefaultclient.h \ - $(NULL) - -LDAP_CSRCS = \ - pkix_pl_ldaptemplates.c \ - pkix_pl_ldapcertstore.c \ - pkix_pl_ldapresponse.c \ - pkix_pl_ldaprequest.c \ - pkix_pl_ldapdefaultclient.c \ - $(NULL) -endif diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/module/manifest.mn b/libs/nss/src/lib/libpkix/pkix_pl_nss/module/manifest.mn index 63bfd707e..31231e4ed 100644 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/module/manifest.mn +++ b/libs/nss/src/lib/libpkix/pkix_pl_nss/module/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix_pl_aiamgr.h \ pkix_pl_colcertstore.h \ @@ -22,7 +19,6 @@ MODULE = nss DEFINES += -DSHLIB_SUFFIX=\"$(DLL_SUFFIX)\" -DSHLIB_PREFIX=\"$(DLL_PREFIX)\" -DSHLIB_VERSION=\"$(LIBRARY_VERSION)\" - CSRCS = \ pkix_pl_aiamgr.c \ pkix_pl_colcertstore.c \ @@ -35,4 +31,4 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkixmodule - +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.c b/libs/nss/src/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.c index 171427558..966c6f37e 100644 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.c +++ b/libs/nss/src/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.c @@ -54,6 +54,7 @@ PKIX_PL_NssContext_Create( context->crlReloadDelay = PKIX_DEFAULT_CRL_RELOAD_DELAY_SECONDS; context->badDerCrlReloadDelay = PKIX_DEFAULT_BAD_CRL_RELOAD_DELAY_SECONDS; + context->certSignatureCheck = PKIX_TRUE; context->chainVerifyCallback.isChainValid = NULL; context->chainVerifyCallback.isChainValidArg = NULL; *pNssContext = context; @@ -161,6 +162,75 @@ pkix_pl_NssContext_SetCertUsage( } /* + * FUNCTION: pkix_pl_NssContext_GetCertSignatureCheck + * DESCRIPTION: + * + * This function obtains the platform-dependent flag to turn on or off + * signature checks. + * + * PARAMETERS: + * "nssContext" + * The address of the context object whose wincx parameter is to be + * obtained. Must be non-NULL. + * "pCheckSig" + * The address where the result is stored. Must be non-NULL. + * THREAD SAFETY: + * Thread Safe (see Thread Safety Definitions in Programmer's Guide) + * RETURNS: + * Returns NULL if the function succeeds. + * Returns a Fatal Error if the function fails in an unrecoverable way. + */ +PKIX_Error * +pkix_pl_NssContext_GetCertSignatureCheck( + PKIX_PL_NssContext *nssContext, + PKIX_Boolean *pCheckSig) +{ + void *plContext = NULL; + + PKIX_ENTER(CONTEXT, "pkix_pl_NssContext_GetCertUsage"); + PKIX_NULLCHECK_TWO(nssContext, pCheckSig); + + *pCheckSig = nssContext->certSignatureCheck; + + PKIX_RETURN(CONTEXT); +} + +/* + * FUNCTION: pkix_pl_NssContext_SetCertSignatureCheck + * DESCRIPTION: + * + * This function sets the check signature flag in + * the context object pointed to by "nssContext" to the value provided in + * "checkSig". + * + * PARAMETERS: + * "checkSig" + * Boolean that tells whether or not to check the signatues on certs. + * "nssContext" + * The address of the context object whose wincx parameter is to be + * obtained. Must be non-NULL. + * THREAD SAFETY: + * Thread Safe (see Thread Safety Definitions in Programmer's Guide) + * RETURNS: + * Returns NULL if the function succeeds. + * Returns a Fatal Error if the function fails in an unrecoverable way. + */ +PKIX_Error * +pkix_pl_NssContext_SetCertSignatureCheck( + PKIX_Boolean checkSig, + PKIX_PL_NssContext *nssContext) +{ + void *plContext = NULL; + + PKIX_ENTER(CONTEXT, "pkix_pl_NssContext_SetCertUsage"); + PKIX_NULLCHECK_ONE(nssContext); + + nssContext->certSignatureCheck = checkSig; + + PKIX_RETURN(CONTEXT); +} + +/* * FUNCTION: pkix_pl_NssContext_GetWincx * DESCRIPTION: * diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.h b/libs/nss/src/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.h index 04441c2b2..5de44214e 100644 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.h +++ b/libs/nss/src/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.h @@ -27,6 +27,7 @@ struct PKIX_PL_NssContextStruct { PRTime crlReloadDelay; PRTime badDerCrlReloadDelay; CERTChainVerifyCallback chainVerifyCallback; + PKIX_Boolean certSignatureCheck; }; PKIX_Error * @@ -39,6 +40,14 @@ pkix_pl_NssContext_SetCertUsage (SECCertificateUsage certUsage, PKIX_PL_NssContext *nssContext); PKIX_Error * +pkix_pl_NssContext_GetCertSignatureCheck + (PKIX_PL_NssContext *nssContext, PKIX_Boolean *pCheckSig); + +PKIX_Error * +pkix_pl_NssContext_SetCertSignatureCheck + (PKIX_Boolean checkSig, PKIX_PL_NssContext *nssContext); + +PKIX_Error * pkix_pl_NssContext_GetWincx(PKIX_PL_NssContext *nssContext, void **pWincx); /* XXX move the setter into the public header. */ diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/Makefile b/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/Makefile index 0fb6c9058..2b4b1574a 100644 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/Makefile +++ b/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,6 +43,5 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/config.mk b/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/manifest.mn b/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/manifest.mn index f8d4571e1..aba1367e5 100644 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/manifest.mn +++ b/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix_pl_basicconstraints.h \ pkix_pl_cert.h \ @@ -50,4 +47,4 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkixpki - +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c b/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c index e5516505d..9dddd2e40 100644 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c +++ b/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c @@ -2811,14 +2811,23 @@ PKIX_PL_Cert_VerifySignature( PKIX_PL_Cert *cachedCert = NULL; PKIX_Error *verifySig = NULL; PKIX_Error *cachedSig = NULL; + PKIX_Error *checkSig = NULL; SECStatus status; PKIX_Boolean certEqual = PKIX_FALSE; PKIX_Boolean certInHash = PKIX_FALSE; + PKIX_Boolean checkCertSig = PKIX_TRUE; void* wincx = NULL; PKIX_ENTER(CERT, "PKIX_PL_Cert_VerifySignature"); PKIX_NULLCHECK_THREE(cert, cert->nssCert, pubKey); + /* if the cert check flag is off, skip the check */ + checkSig = pkix_pl_NssContext_GetCertSignatureCheck( + (PKIX_PL_NssContext *)plContext, &checkCertSig); + if ((checkCertSig == PKIX_FALSE) && (checkSig == NULL)) { + goto cleanup; + } + verifySig = PKIX_PL_HashTable_Lookup (cachedCertSigTable, (PKIX_PL_Object *) pubKey, @@ -2879,6 +2888,7 @@ cleanup: } PKIX_DECREF(cachedCert); + PKIX_DECREF(checkSig); PKIX_DECREF(verifySig); PKIX_DECREF(cachedSig); diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspresponse.c b/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspresponse.c index fa5d6e9d5..fa41f8102 100644 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspresponse.c +++ b/libs/nss/src/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspresponse.c @@ -741,7 +741,9 @@ pkix_pl_OcspResponse_VerifyResponse( PKIX_CERTVERIFYKEYUSAGEFAILED); rv = SECSuccess; } else { - rv = CERT_VerifyCert(response->handle, response->signerCert, PKIX_TRUE, + /* checkSig is !isRoot */ + PRBool checkSig = response->signerCert->isRoot ? PR_FALSE : PR_TRUE; + rv = CERT_VerifyCert(response->handle, response->signerCert, checkSig, certUsage, response->producedAt, NULL, NULL); if (rv != SECSuccess) { PKIX_ERROR(PKIX_CERTVERIFYKEYUSAGEFAILED); diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/system/Makefile b/libs/nss/src/lib/libpkix/pkix_pl_nss/system/Makefile index 0fb6c9058..2b4b1574a 100644 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/system/Makefile +++ b/libs/nss/src/lib/libpkix/pkix_pl_nss/system/Makefile @@ -26,7 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -44,6 +43,5 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/system/config.mk b/libs/nss/src/lib/libpkix/pkix_pl_nss/system/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/system/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/libpkix/pkix_pl_nss/system/manifest.mn b/libs/nss/src/lib/libpkix/pkix_pl_nss/system/manifest.mn index 82d297992..a143a03ee 100644 --- a/libs/nss/src/lib/libpkix/pkix_pl_nss/system/manifest.mn +++ b/libs/nss/src/lib/libpkix/pkix_pl_nss/system/manifest.mn @@ -4,9 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. CORE_DEPTH = ../../../.. -EXPORTS = \ - $(NULL) - PRIVATE_EXPORTS = \ pkix_pl_common.h \ pkix_pl_mem.h \ @@ -43,4 +40,4 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkixsystem - +SHARED_LIBRARY = $(NULL) diff --git a/libs/nss/src/lib/manifest.mn b/libs/nss/src/lib/manifest.mn deleted file mode 100644 index 80d7d9c44..000000000 --- a/libs/nss/src/lib/manifest.mn +++ /dev/null @@ -1,62 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -CORE_DEPTH = .. -DEPTH = .. - -# Building softoken (and freebl) only requires that the paths -# to the locations where the util headers and libraries were -# previously installed by a prior util-only build - likely in -# in a system location that varies with the distribution. This -# cannot be addressed here and requires that downstream package -# mantainers add suitable modifications. Building full nss will -# not have that problem as everything is available. - -SOFTOKEN_SRCDIRS= -NSS_SRCDIRS= - -ifndef NSS_BUILD_UTIL_ONLY -SOFTOKEN_SRCDIRS = \ - $(FREEBL_SRCDIR) \ - $(SQLITE_SRCDIR) \ - $(DBM_SRCDIR) \ - $(SOFTOKEN_SRCDIR) \ - $(NULL) -ifndef NSS_BUILD_SOFTOKEN_ONLY -# the rest of nss -NSS_SRCDIRS = \ - base dev pki \ - $(LIBPKIX_SRCDIR) \ - certdb certhigh pk11wrap cryptohi nss \ - $(ZLIB_SRCDIR) ssl \ - pkcs7 pkcs12 smime \ - crmf jar \ - ckfw $(SYSINIT_SRCDIR) \ - $(NULL) -endif -endif - -# -# organized by DLL -# -# softoken and prereqs. -# stan (not a separate dll yet) -# libpkix (not a separate dll) -# nss base (traditional) -# ssl -# smime -# ckfw (builtins module) -# crmf jar (not dll's) -DIRS = \ - $(UTIL_SRCDIR) \ - $(SOFTOKEN_SRCDIRS) \ - $(NSS_SRCDIRS) \ - $(NULL) - -# fortcrypt is no longer built - -# -# these dirs are not built at the moment -# -#NOBUILD_DIRS = jar diff --git a/libs/nss/src/lib/mozpkix/include/pkix/pkixtypes.h b/libs/nss/src/lib/mozpkix/include/pkix/pkixtypes.h index bfa5c780a..6c391681f 100644 --- a/libs/nss/src/lib/mozpkix/include/pkix/pkixtypes.h +++ b/libs/nss/src/lib/mozpkix/include/pkix/pkixtypes.h @@ -278,10 +278,10 @@ class TrustDomain { virtual Result CheckRevocation(EndEntityOrCA endEntityOrCA, const CertID& certID, Time time, - Time validityBeginning, Duration validityDuration, /*optional*/ const Input* stapledOCSPresponse, - /*optional*/ const Input* aiaExtension) = 0; + /*optional*/ const Input* aiaExtension, + /*optional*/ const Input* sctExtension) = 0; // Check that the given digest algorithm is acceptable for use in signatures. // diff --git a/libs/nss/src/lib/mozpkix/lib/pkixbuild.cpp b/libs/nss/src/lib/mozpkix/lib/pkixbuild.cpp index b95907a94..afe7e2a24 100644 --- a/libs/nss/src/lib/mozpkix/lib/pkixbuild.cpp +++ b/libs/nss/src/lib/mozpkix/lib/pkixbuild.cpp @@ -252,9 +252,9 @@ PathBuildingStep::Check(Input potentialIssuerDER, } Duration validityDuration(notAfter, notBefore); rv = trustDomain.CheckRevocation(subject.endEntityOrCA, certID, time, - notBefore, validityDuration, - stapledOCSPResponse, - subject.GetAuthorityInfoAccess()); + validityDuration, stapledOCSPResponse, + subject.GetAuthorityInfoAccess(), + subject.GetSignedCertificateTimestamps()); if (rv != Success) { // Since this is actually a problem with the current subject certificate // (rather than the issuer), it doesn't make sense to keep going; all diff --git a/libs/nss/src/lib/nss/Makefile b/libs/nss/src/lib/nss/Makefile index 3a8e22f0a..3c18bc1f5 100644 --- a/libs/nss/src/lib/nss/Makefile +++ b/libs/nss/src/lib/nss/Makefile @@ -43,4 +43,3 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/nss/config.mk b/libs/nss/src/lib/nss/config.mk index a17f3ef5c..3716721d9 100644 --- a/libs/nss/src/lib/nss/config.mk +++ b/libs/nss/src/lib/nss/config.mk @@ -6,13 +6,6 @@ # can't do this in manifest.mn because OS_TARGET isn't defined there. ifeq (,$(filter-out WIN%,$(OS_TARGET))) -# don't want the 32 in the shared library name -SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) - -RES = $(OBJDIR)/$(LIBRARY_NAME).res -RESNAME = $(LIBRARY_NAME).rc - ifdef NS_USE_GCC EXTRA_SHARED_LIBS += \ -L$(DIST)/lib \ diff --git a/libs/nss/src/lib/nss/manifest.mn b/libs/nss/src/lib/nss/manifest.mn index 54bed49e6..312aa5384 100644 --- a/libs/nss/src/lib/nss/manifest.mn +++ b/libs/nss/src/lib/nss/manifest.mn @@ -22,10 +22,9 @@ CSRCS = \ utilwrap.c \ $(NULL) -MAPFILE = $(OBJDIR)/nss.def - LIBRARY_NAME = nss LIBRARY_VERSION = 3 +MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/nss/nss.def b/libs/nss/src/lib/nss/nss.def index 49b8c1c1b..5ad688b4e 100644 --- a/libs/nss/src/lib/nss/nss.def +++ b/libs/nss/src/lib/nss/nss.def @@ -522,7 +522,7 @@ VFY_EndWithSignature; ;+NSS_3.3.1 { # NSS 3.3.1 release ;+ global: ;+# -;+# The following symbols are exported only to make libsmime3.so work. +;+# The following symbols are exported only to make libsmime3.so work. ;+# These are still private!!! ;+# PK11_CreatePBEParams; @@ -1175,3 +1175,41 @@ PK11_SymKeysToSameSlot; ;+ local: ;+ *; ;+}; +;+NSS_3.53 { # NSS 3.53 release +;+ global: +SECMOD_GetSystemFIPSEnabled; +;+ local: +;+ *; +;+}; +;+NSS_3.55 { # NSS 3.55 release +;+ global: +PK11_FindEncodedCertInSlot; +;+ local: +;+ *; +;+}; +;+NSS_3.58 { # NSS 3.58 release +;+ global: +PK11_HPKE_DestroyContext; +PK11_HPKE_Deserialize; +PK11_HPKE_ExportSecret; +PK11_HPKE_GetEncapPubKey; +PK11_HPKE_NewContext; +PK11_HPKE_Open; +PK11_HPKE_Seal; +PK11_HPKE_Serialize; +PK11_HPKE_SetupS; +PK11_HPKE_SetupR; +PK11_HPKE_ValidateParameters; +PK11_ImportDataKey; +;+ local: +;+ *; +;+}; +;+NSS_3.59 { # NSS 3.59 release +;+ global: +CERT_AddCertToListHeadWithData; +CERT_AddCertToListTailWithData; +PK11_PubWrapSymKeyWithMechanism; +PK11_PubUnwrapSymKeyWithMechanism; +;+ local: +;+ *; +;+}; diff --git a/libs/nss/src/lib/nss/nss.h b/libs/nss/src/lib/nss/nss.h index 58ce4a389..1829b36e4 100644 --- a/libs/nss/src/lib/nss/nss.h +++ b/libs/nss/src/lib/nss/nss.h @@ -22,10 +22,10 @@ * The format of the version string should be * "<major version>.<minor version>[.<patch level>[.<build number>]][ <ECC>][ <Beta>]" */ -#define NSS_VERSION "3.52.3" _NSS_CUSTOMIZED +#define NSS_VERSION "3.59.1" _NSS_CUSTOMIZED #define NSS_VMAJOR 3 -#define NSS_VMINOR 52 -#define NSS_VPATCH 3 +#define NSS_VMINOR 59 +#define NSS_VPATCH 1 #define NSS_VBUILD 0 #define NSS_BETA PR_FALSE @@ -299,6 +299,8 @@ SECStatus NSS_UnregisterShutdown(NSS_ShutdownFunc sFunc, void *appData); * old NSS versions. This option might be removed in the future NSS * releases; don't rely on it. */ #define __NSS_PKCS12_DECODE_FORCE_UNICODE 0x00c +#define NSS_DEFAULT_LOCKS 0x00d /* lock default values */ +#define NSS_DEFAULT_SSL_LOCK 1 /* lock the ssl default values */ /* * Set and get global options for the NSS library. diff --git a/libs/nss/src/lib/nss/nssoptions.c b/libs/nss/src/lib/nss/nssoptions.c index 1339cede8..f7225c414 100644 --- a/libs/nss/src/lib/nss/nssoptions.c +++ b/libs/nss/src/lib/nss/nssoptions.c @@ -14,6 +14,7 @@ #include "secoid.h" #include "nss.h" #include "nssoptions.h" +#include "secerr.h" struct nssOps { PRInt32 rsaMinKeySize; @@ -24,6 +25,7 @@ struct nssOps { PRInt32 dtlsVersionMinPolicy; PRInt32 dtlsVersionMaxPolicy; PRInt32 pkcs12DecodeForceUnicode; + PRInt32 defaultLocks; }; static struct nssOps nss_ops = { @@ -34,7 +36,8 @@ static struct nssOps nss_ops = { 0xffff, /* set TLS max to more than the largest legal SSL value */ 1, 0xffff, - PR_FALSE + PR_FALSE, + 0 }; SECStatus @@ -42,6 +45,11 @@ NSS_OptionSet(PRInt32 which, PRInt32 value) { SECStatus rv = SECSuccess; + if (NSS_IsPolicyLocked()) { + PORT_SetError(SEC_ERROR_POLICY_LOCKED); + return SECFailure; + } + switch (which) { case NSS_RSA_MIN_KEY_SIZE: nss_ops.rsaMinKeySize = value; @@ -67,7 +75,11 @@ NSS_OptionSet(PRInt32 which, PRInt32 value) case __NSS_PKCS12_DECODE_FORCE_UNICODE: nss_ops.pkcs12DecodeForceUnicode = value; break; + case NSS_DEFAULT_LOCKS: + nss_ops.defaultLocks = value; + break; default: + PORT_SetError(SEC_ERROR_INVALID_ARGS); rv = SECFailure; } @@ -104,6 +116,9 @@ NSS_OptionGet(PRInt32 which, PRInt32 *value) case __NSS_PKCS12_DECODE_FORCE_UNICODE: *value = nss_ops.pkcs12DecodeForceUnicode; break; + case NSS_DEFAULT_LOCKS: + *value = nss_ops.defaultLocks; + break; default: rv = SECFailure; } diff --git a/libs/nss/src/lib/pk11wrap/Makefile b/libs/nss/src/lib/pk11wrap/Makefile index 86ab29653..9d27595ca 100644 --- a/libs/nss/src/lib/pk11wrap/Makefile +++ b/libs/nss/src/lib/pk11wrap/Makefile @@ -26,8 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### --include config.mk - ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # ####################################################################### @@ -44,7 +42,6 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export $(OBJDIR)/pk11load$(OBJ_SUFFIX): debug_module.c @@ -54,8 +51,7 @@ $(OBJDIR)/pk11load$(OBJ_SUFFIX): debug_module.c ifeq ($(OS_TARGET)$(OS_RELEASE),AIX4.3) ifeq ($(USE_64),1) ifndef BUILD_OPT -$(OBJDIR)/pk11slot.o: pk11slot.c - @$(MAKE_OBJDIR) +$(OBJDIR)/pk11slot.o: pk11slot.c | $$(@D)/d $(CC) -o $@ -c -O2 $(CFLAGS) $< endif endif diff --git a/libs/nss/src/lib/pk11wrap/config.mk b/libs/nss/src/lib/pk11wrap/config.mk deleted file mode 100644 index b8c03de79..000000000 --- a/libs/nss/src/lib/pk11wrap/config.mk +++ /dev/null @@ -1,15 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/pk11wrap/debug_module.c b/libs/nss/src/lib/pk11wrap/debug_module.c index f2faa2b89..f29e9810d 100644 --- a/libs/nss/src/lib/pk11wrap/debug_module.c +++ b/libs/nss/src/lib/pk11wrap/debug_module.c @@ -392,7 +392,7 @@ log_state(CK_STATE state) } static void -log_handle(int level, const char *format, CK_ULONG handle) +log_handle(PRLogModuleLevel level, const char *format, CK_ULONG handle) { char fmtBuf[80]; if (handle) diff --git a/libs/nss/src/lib/pk11wrap/exports.gyp b/libs/nss/src/lib/pk11wrap/exports.gyp index 365006080..5067cade8 100644 --- a/libs/nss/src/lib/pk11wrap/exports.gyp +++ b/libs/nss/src/lib/pk11wrap/exports.gyp @@ -13,6 +13,7 @@ { 'files': [ 'pk11func.h', + 'pk11hpke.h', 'pk11pqg.h', 'pk11priv.h', 'pk11pub.h', diff --git a/libs/nss/src/lib/pk11wrap/manifest.mn b/libs/nss/src/lib/pk11wrap/manifest.mn index 1df7e09bf..8f8a387b4 100644 --- a/libs/nss/src/lib/pk11wrap/manifest.mn +++ b/libs/nss/src/lib/pk11wrap/manifest.mn @@ -1,4 +1,4 @@ -# +# # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -9,6 +9,7 @@ EXPORTS = \ secmodt.h \ secpkcs5.h \ pk11func.h \ + pk11hpke.h \ pk11pub.h \ pk11priv.h \ pk11sdr.h \ @@ -30,6 +31,7 @@ CSRCS = \ pk11cert.c \ pk11cxt.c \ pk11err.c \ + pk11hpke.c \ pk11kea.c \ pk11list.c \ pk11load.c \ @@ -48,11 +50,12 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pk11wrap +SHARED_LIBRARY = $(NULL) -LIBRARY_VERSION = 3 +NSS_LIBRARY_VERSION = 3 SOFTOKEN_LIBRARY_VERSION = 3 DEFINES += -DSHLIB_SUFFIX=\"$(DLL_SUFFIX)\" -DSHLIB_PREFIX=\"$(DLL_PREFIX)\" \ - -DSHLIB_VERSION=\"$(LIBRARY_VERSION)\" \ + -DNSS_SHLIB_VERSION=\"$(NSS_LIBRARY_VERSION)\" \ -DSOFTOKEN_SHLIB_VERSION=\"$(SOFTOKEN_LIBRARY_VERSION)\" # only add module debugging in opt builds if DEBUG_PKCS11 is set diff --git a/libs/nss/src/lib/pk11wrap/pk11akey.c b/libs/nss/src/lib/pk11wrap/pk11akey.c index c4d139226..cada965c6 100644 --- a/libs/nss/src/lib/pk11wrap/pk11akey.c +++ b/libs/nss/src/lib/pk11wrap/pk11akey.c @@ -5,6 +5,8 @@ * This file contains functions to manage asymetric keys, (public and * private keys). */ +#include <stddef.h> + #include "seccomon.h" #include "secmod.h" #include "secmodi.h" @@ -2548,7 +2550,7 @@ PK11_ListPublicKeysInSlot(PK11SlotInfo *slot, char *nickname) CK_ATTRIBUTE *attrs; CK_BBOOL ckTrue = CK_TRUE; CK_OBJECT_CLASS keyclass = CKO_PUBLIC_KEY; - unsigned int tsize = 0; + size_t tsize = 0; int objCount = 0; CK_OBJECT_HANDLE *key_ids; SECKEYPublicKeyList *keys; @@ -2596,7 +2598,7 @@ PK11_ListPrivKeysInSlot(PK11SlotInfo *slot, char *nickname, void *wincx) CK_ATTRIBUTE *attrs; CK_BBOOL ckTrue = CK_TRUE; CK_OBJECT_CLASS keyclass = CKO_PRIVATE_KEY; - unsigned int tsize = 0; + size_t tsize = 0; int objCount = 0; CK_OBJECT_HANDLE *key_ids; SECKEYPrivateKeyList *keys; diff --git a/libs/nss/src/lib/pk11wrap/pk11cert.c b/libs/nss/src/lib/pk11wrap/pk11cert.c index d89897a18..9c745d7b8 100644 --- a/libs/nss/src/lib/pk11wrap/pk11cert.c +++ b/libs/nss/src/lib/pk11wrap/pk11cert.c @@ -5,6 +5,8 @@ * This file manages PKCS #11 instances of certificates. */ +#include <stddef.h> + #include "secport.h" #include "seccomon.h" #include "secmod.h" @@ -445,7 +447,7 @@ PK11_FindCertHandlesForKeyHandle(PK11SlotInfo *slot, CK_OBJECT_HANDLE keyHandle, idTemplate[0], { CKA_CLASS, &searchClass, sizeof(searchClass) } }; - const int searchAttrCount = sizeof(searchTemplate) / sizeof(searchTemplate[0]); + const size_t searchAttrCount = sizeof(searchTemplate) / sizeof(searchTemplate[0]); CK_OBJECT_HANDLE *ids = pk11_FindObjectsByTemplate(slot, searchTemplate, searchAttrCount, certHandleCountOut); PORT_DestroyCheapArena(&arena); @@ -1146,8 +1148,11 @@ PK11_ImportCert(PK11SlotInfo *slot, CERTCertificate *cert, } /* need to get the cert as a stan cert */ - if (cert->nssCertificate) { - c = cert->nssCertificate; + CERT_LockCertTempPerm(cert); + NSSCertificate *nssCert = cert->nssCertificate; + CERT_UnlockCertTempPerm(cert); + if (nssCert) { + c = nssCert; } else { c = STAN_GetNSSCertificate(cert); if (c == NULL) { @@ -1253,29 +1258,6 @@ PK11_ImportDERCert(PK11SlotInfo *slot, SECItem *derCert, } /* - * get a certificate handle, look at the cached handle first.. - */ -CK_OBJECT_HANDLE -pk11_getcerthandle(PK11SlotInfo *slot, CERTCertificate *cert, - CK_ATTRIBUTE *theTemplate, int tsize) -{ - CK_OBJECT_HANDLE certh; - - if (cert->slot == slot) { - certh = cert->pkcs11ID; - if ((certh == CK_INVALID_HANDLE) || - (cert->series != slot->series)) { - certh = pk11_FindObjectByTemplate(slot, theTemplate, tsize); - cert->pkcs11ID = certh; - cert->series = slot->series; - } - } else { - certh = pk11_FindObjectByTemplate(slot, theTemplate, tsize); - } - return certh; -} - -/* * return the private key From a given Cert */ SECKEYPrivateKey * @@ -1283,33 +1265,12 @@ PK11_FindPrivateKeyFromCert(PK11SlotInfo *slot, CERTCertificate *cert, void *wincx) { int err; - CK_OBJECT_CLASS certClass = CKO_CERTIFICATE; - CK_ATTRIBUTE theTemplate[] = { - { CKA_VALUE, NULL, 0 }, - { CKA_CLASS, NULL, 0 } - }; - /* if you change the array, change the variable below as well */ - int tsize = sizeof(theTemplate) / sizeof(theTemplate[0]); CK_OBJECT_HANDLE certh; CK_OBJECT_HANDLE keyh; - CK_ATTRIBUTE *attrs = theTemplate; PRBool needLogin; SECStatus rv; - PK11_SETATTRS(attrs, CKA_VALUE, cert->derCert.data, - cert->derCert.len); - attrs++; - PK11_SETATTRS(attrs, CKA_CLASS, &certClass, sizeof(certClass)); - - /* - * issue the find - */ - rv = pk11_AuthenticateUnfriendly(slot, PR_TRUE, wincx); - if (rv != SECSuccess) { - return NULL; - } - - certh = pk11_getcerthandle(slot, cert, theTemplate, tsize); + certh = PK11_FindCertInSlot(slot, cert, wincx); if (certh == CK_INVALID_HANDLE) { return NULL; } @@ -1459,7 +1420,7 @@ PK11_ImportDERCertForKey(SECItem *derCert, char *nickname, void *wincx) static CK_OBJECT_HANDLE pk11_FindCertObjectByTemplate(PK11SlotInfo **slotPtr, - CK_ATTRIBUTE *searchTemplate, int count, void *wincx) + CK_ATTRIBUTE *searchTemplate, size_t count, void *wincx) { PK11SlotList *list; PK11SlotListElement *le; @@ -2041,7 +2002,7 @@ PK11_FindObjectForCert(CERTCertificate *cert, void *wincx, PK11SlotInfo **pSlot) { CKA_CLASS, NULL, 0 }, { CKA_VALUE, NULL, 0 }, }; - int templateSize = sizeof(searchTemplate) / sizeof(searchTemplate[0]); + const size_t templateSize = sizeof(searchTemplate) / sizeof(searchTemplate[0]); attr = searchTemplate; PK11_SETATTRS(attr, CKA_CLASS, &certClass, sizeof(certClass)); @@ -2049,8 +2010,7 @@ PK11_FindObjectForCert(CERTCertificate *cert, void *wincx, PK11SlotInfo **pSlot) PK11_SETATTRS(attr, CKA_VALUE, cert->derCert.data, cert->derCert.len); if (cert->slot) { - certHandle = pk11_getcerthandle(cert->slot, cert, searchTemplate, - templateSize); + certHandle = PK11_FindCertInSlot(cert->slot, cert, wincx); if (certHandle != CK_INVALID_HANDLE) { *pSlot = PK11_ReferenceSlot(cert->slot); return certHandle; @@ -2628,36 +2588,51 @@ PK11_GetKEAMatchedCerts(PK11SlotInfo *slot1, PK11SlotInfo *slot2, return SECFailure; } -/* - * return the private key From a given Cert - */ CK_OBJECT_HANDLE -PK11_FindCertInSlot(PK11SlotInfo *slot, CERTCertificate *cert, void *wincx) +PK11_FindEncodedCertInSlot(PK11SlotInfo *slot, SECItem *derCert, void *wincx) { + if (!slot || !derCert) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + CK_OBJECT_CLASS certClass = CKO_CERTIFICATE; CK_ATTRIBUTE theTemplate[] = { { CKA_VALUE, NULL, 0 }, { CKA_CLASS, NULL, 0 } }; - /* if you change the array, change the variable below as well */ - int tsize = sizeof(theTemplate) / sizeof(theTemplate[0]); + const size_t tsize = sizeof(theTemplate) / sizeof(theTemplate[0]); CK_ATTRIBUTE *attrs = theTemplate; - SECStatus rv; - PK11_SETATTRS(attrs, CKA_VALUE, cert->derCert.data, - cert->derCert.len); + PK11_SETATTRS(attrs, CKA_VALUE, derCert->data, derCert->len); attrs++; PK11_SETATTRS(attrs, CKA_CLASS, &certClass, sizeof(certClass)); - /* - * issue the find - */ - rv = pk11_AuthenticateUnfriendly(slot, PR_TRUE, wincx); + SECStatus rv = pk11_AuthenticateUnfriendly(slot, PR_TRUE, wincx); if (rv != SECSuccess) { return CK_INVALID_HANDLE; } - return pk11_getcerthandle(slot, cert, theTemplate, tsize); + return pk11_FindObjectByTemplate(slot, theTemplate, tsize); +} + +CK_OBJECT_HANDLE +PK11_FindCertInSlot(PK11SlotInfo *slot, CERTCertificate *cert, void *wincx) +{ + CK_OBJECT_HANDLE certh; + + if (cert->slot == slot) { + certh = cert->pkcs11ID; + if ((certh == CK_INVALID_HANDLE) || + (cert->series != slot->series)) { + certh = PK11_FindEncodedCertInSlot(slot, &cert->derCert, wincx); + cert->pkcs11ID = certh; + cert->series = slot->series; + } + } else { + certh = PK11_FindEncodedCertInSlot(slot, &cert->derCert, wincx); + } + return certh; } /* Looking for PK11_GetKeyIDFromCert? @@ -2785,30 +2760,12 @@ SECItem * PK11_GetLowLevelKeyIDForCert(PK11SlotInfo *slot, CERTCertificate *cert, void *wincx) { - CK_OBJECT_CLASS certClass = CKO_CERTIFICATE; - CK_ATTRIBUTE theTemplate[] = { - { CKA_VALUE, NULL, 0 }, - { CKA_CLASS, NULL, 0 } - }; - /* if you change the array, change the variable below as well */ - int tsize = sizeof(theTemplate) / sizeof(theTemplate[0]); CK_OBJECT_HANDLE certHandle; - CK_ATTRIBUTE *attrs = theTemplate; PK11SlotInfo *slotRef = NULL; SECItem *item; - SECStatus rv; if (slot) { - PK11_SETATTRS(attrs, CKA_VALUE, cert->derCert.data, - cert->derCert.len); - attrs++; - PK11_SETATTRS(attrs, CKA_CLASS, &certClass, sizeof(certClass)); - - rv = pk11_AuthenticateUnfriendly(slot, PR_TRUE, wincx); - if (rv != SECSuccess) { - return NULL; - } - certHandle = pk11_getcerthandle(slot, cert, theTemplate, tsize); + certHandle = PK11_FindCertInSlot(slot, cert, wincx); } else { certHandle = PK11_FindObjectForCert(cert, wincx, &slotRef); if (certHandle == CK_INVALID_HANDLE) { diff --git a/libs/nss/src/lib/pk11wrap/pk11cxt.c b/libs/nss/src/lib/pk11wrap/pk11cxt.c index c4c1ecdad..e189716a9 100644 --- a/libs/nss/src/lib/pk11wrap/pk11cxt.c +++ b/libs/nss/src/lib/pk11wrap/pk11cxt.c @@ -1159,6 +1159,9 @@ pk11_AEADSimulateOp(PK11Context *context, void *params, int paramslen, * the tag. We'll copy the tag after the operation */ if (maxout < inlen + taglen) { allocOut = PORT_Alloc(inlen + taglen); + if (allocOut == NULL) { + return SECFailure; + } out = allocOut; length = maxout = inlen + taglen; } @@ -1616,7 +1619,6 @@ finalize: } else { buffer = PORT_Alloc(count); if (buffer == NULL) { - PORT_SetError(SEC_ERROR_NO_MEMORY); return SECFailure; } } diff --git a/libs/nss/src/lib/pk11wrap/pk11hpke.c b/libs/nss/src/lib/pk11wrap/pk11hpke.c new file mode 100644 index 000000000..7f8fe3b1b --- /dev/null +++ b/libs/nss/src/lib/pk11wrap/pk11hpke.c @@ -0,0 +1,1085 @@ +/* + * draft-irtf-cfrg-hpke-05 + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include "keyhi.h" +#include "pkcs11t.h" +#include "pk11func.h" +#include "pk11hpke.h" +#include "pk11pqg.h" +#include "secerr.h" +#include "secitem.h" +#include "secmod.h" +#include "secmodi.h" +#include "secmodti.h" +#include "secutil.h" + +#ifndef NSS_ENABLE_DRAFT_HPKE +/* "Not Implemented" stubs to maintain the ABI. */ +SECStatus +PK11_HPKE_ValidateParameters(HpkeKemId kemId, HpkeKdfId kdfId, HpkeAeadId aeadId) +{ + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); + return SECFailure; +} +HpkeContext * +PK11_HPKE_NewContext(HpkeKemId kemId, HpkeKdfId kdfId, HpkeAeadId aeadId, + PK11SymKey *psk, const SECItem *pskId) +{ + + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); + return NULL; +} +SECStatus +PK11_HPKE_Deserialize(const HpkeContext *cx, const PRUint8 *enc, + unsigned int encLen, SECKEYPublicKey **outPubKey) +{ + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); + return SECFailure; +} +void +PK11_HPKE_DestroyContext(HpkeContext *cx, PRBool freeit) +{ + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); +} +const SECItem * +PK11_HPKE_GetEncapPubKey(const HpkeContext *cx) +{ + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); + return NULL; +} +SECStatus +PK11_HPKE_ExportSecret(const HpkeContext *cx, const SECItem *info, + unsigned int L, PK11SymKey **outKey) +{ + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); + return SECFailure; +} +SECStatus +PK11_HPKE_Open(HpkeContext *cx, const SECItem *aad, const SECItem *ct, + SECItem **outPt) +{ + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); + return SECFailure; +} +SECStatus +PK11_HPKE_Seal(HpkeContext *cx, const SECItem *aad, const SECItem *pt, SECItem **outCt) +{ + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); + return SECFailure; +} +SECStatus +PK11_HPKE_Serialize(const SECKEYPublicKey *pk, PRUint8 *buf, unsigned int *len, unsigned int maxLen) +{ + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); + return SECFailure; +} +SECStatus +PK11_HPKE_SetupS(HpkeContext *cx, const SECKEYPublicKey *pkE, SECKEYPrivateKey *skE, + SECKEYPublicKey *pkR, const SECItem *info) +{ + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); + return SECFailure; +} +SECStatus +PK11_HPKE_SetupR(HpkeContext *cx, const SECKEYPublicKey *pkR, SECKEYPrivateKey *skR, + const SECItem *enc, const SECItem *info) +{ + PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); + return SECFailure; +} + +#else +static const char *DRAFT_LABEL = "HPKE-05 "; +static const char *EXP_LABEL = "exp"; +static const char *HPKE_LABEL = "HPKE"; +static const char *INFO_LABEL = "info_hash"; +static const char *KEM_LABEL = "KEM"; +static const char *KEY_LABEL = "key"; +static const char *NONCE_LABEL = "nonce"; +static const char *PSK_ID_LABEL = "psk_id_hash"; +static const char *PSK_LABEL = "psk_hash"; +static const char *SECRET_LABEL = "secret"; +static const char *SEC_LABEL = "sec"; +static const char *EAE_PRK_LABEL = "eae_prk"; +static const char *SH_SEC_LABEL = "shared_secret"; + +struct HpkeContextStr { + const hpkeKemParams *kemParams; + const hpkeKdfParams *kdfParams; + const hpkeAeadParams *aeadParams; + PRUint8 mode; /* Base and PSK modes supported. */ + SECItem *encapPubKey; /* Marshalled public key, sent to receiver. */ + SECItem *nonce; /* Deterministic nonce for AEAD. */ + SECItem *pskId; /* PSK identifier (non-secret). */ + PK11Context *aeadContext; /* AEAD context used by Seal/Open. */ + PRUint64 sequenceNumber; /* seqNo for decrypt IV construction. */ + PK11SymKey *sharedSecret; /* ExtractAndExpand output key. */ + PK11SymKey *key; /* Key used with the AEAD. */ + PK11SymKey *exporterSecret; /* Derivation key for ExportSecret. */ + PK11SymKey *psk; /* PSK imported by the application. */ +}; + +static const hpkeKemParams kemParams[] = { + /* KEM, Nsk, Nsecret, Npk, oidTag, Hash mechanism */ + { HpkeDhKemX25519Sha256, 32, 32, 32, SEC_OID_CURVE25519, CKM_SHA256 }, +}; + +static const hpkeKdfParams kdfParams[] = { + /* KDF, Nh, mechanism */ + { HpkeKdfHkdfSha256, SHA256_LENGTH, CKM_SHA256 }, +}; +static const hpkeAeadParams aeadParams[] = { + /* AEAD, Nk, Nn, tagLen, mechanism */ + { HpkeAeadAes128Gcm, 16, 12, 16, CKM_AES_GCM }, + { HpkeAeadChaCha20Poly1305, 32, 12, 16, CKM_CHACHA20_POLY1305 }, +}; + +static inline const hpkeKemParams * +kemId2Params(HpkeKemId kemId) +{ + switch (kemId) { + case HpkeDhKemX25519Sha256: + return &kemParams[0]; + default: + return NULL; + } +} + +static inline const hpkeKdfParams * +kdfId2Params(HpkeKdfId kdfId) +{ + switch (kdfId) { + case HpkeKdfHkdfSha256: + return &kdfParams[0]; + default: + return NULL; + } +} + +static const inline hpkeAeadParams * +aeadId2Params(HpkeAeadId aeadId) +{ + switch (aeadId) { + case HpkeAeadAes128Gcm: + return &aeadParams[0]; + case HpkeAeadChaCha20Poly1305: + return &aeadParams[1]; + default: + return NULL; + } +} + +static SECStatus +encodeShort(PRUint32 val, PRUint8 *b) +{ + if (val > 0xFFFF || !b) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + b[0] = (val >> 8) & 0xff; + b[1] = val & 0xff; + return SECSuccess; +} + +SECStatus +PK11_HPKE_ValidateParameters(HpkeKemId kemId, HpkeKdfId kdfId, HpkeAeadId aeadId) +{ + /* If more variants are added, ensure the combination is also + * legal. For now it is, since only the AEAD may vary. */ + const hpkeKemParams *kem = kemId2Params(kemId); + const hpkeKdfParams *kdf = kdfId2Params(kdfId); + const hpkeAeadParams *aead = aeadId2Params(aeadId); + if (!kem || !kdf || !aead) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + return SECSuccess; +} + +HpkeContext * +PK11_HPKE_NewContext(HpkeKemId kemId, HpkeKdfId kdfId, HpkeAeadId aeadId, + PK11SymKey *psk, const SECItem *pskId) +{ + SECStatus rv = SECSuccess; + PK11SlotInfo *slot = NULL; + HpkeContext *cx = NULL; + /* Both the PSK and the PSK ID default to empty. */ + SECItem emptyItem = { siBuffer, NULL, 0 }; + + cx = PORT_ZNew(HpkeContext); + if (!cx) { + return NULL; + } + cx->mode = psk ? HpkeModePsk : HpkeModeBase; + cx->kemParams = kemId2Params(kemId); + cx->kdfParams = kdfId2Params(kdfId); + cx->aeadParams = aeadId2Params(aeadId); + CHECK_FAIL_ERR((!!psk != !!pskId), SEC_ERROR_INVALID_ARGS); + CHECK_FAIL_ERR(!cx->kemParams || !cx->kdfParams || !cx->aeadParams, + SEC_ERROR_INVALID_ARGS); + + /* Import the provided PSK or the default. */ + slot = PK11_GetBestSlot(CKM_EC_KEY_PAIR_GEN, NULL); + CHECK_FAIL(!slot); + if (psk) { + cx->psk = PK11_ReferenceSymKey(psk); + cx->pskId = SECITEM_DupItem(pskId); + } else { + cx->psk = PK11_ImportDataKey(slot, CKM_HKDF_DATA, PK11_OriginUnwrap, + CKA_DERIVE, &emptyItem, NULL); + cx->pskId = SECITEM_DupItem(&emptyItem); + } + CHECK_FAIL(!cx->psk); + CHECK_FAIL(!cx->pskId); + +CLEANUP: + if (rv != SECSuccess) { + PK11_FreeSymKey(cx->psk); + SECITEM_FreeItem(cx->pskId, PR_TRUE); + cx->pskId = NULL; + cx->psk = NULL; + PORT_Free(cx); + cx = NULL; + } + if (slot) { + PK11_FreeSlot(slot); + } + return cx; +} + +void +PK11_HPKE_DestroyContext(HpkeContext *cx, PRBool freeit) +{ + if (!cx) { + return; + } + + if (cx->aeadContext) { + PK11_DestroyContext((PK11Context *)cx->aeadContext, PR_TRUE); + cx->aeadContext = NULL; + } + PK11_FreeSymKey(cx->exporterSecret); + PK11_FreeSymKey(cx->sharedSecret); + PK11_FreeSymKey(cx->key); + PK11_FreeSymKey(cx->psk); + SECITEM_FreeItem(cx->pskId, PR_TRUE); + SECITEM_FreeItem(cx->nonce, PR_TRUE); + SECITEM_FreeItem(cx->encapPubKey, PR_TRUE); + cx->exporterSecret = NULL; + cx->sharedSecret = NULL; + cx->key = NULL; + cx->psk = NULL; + cx->pskId = NULL; + cx->nonce = NULL; + cx->encapPubKey = NULL; + if (freeit) { + PORT_ZFree(cx, sizeof(HpkeContext)); + } +} + +SECStatus +PK11_HPKE_Serialize(const SECKEYPublicKey *pk, PRUint8 *buf, unsigned int *len, unsigned int maxLen) +{ + if (!pk || !len || pk->keyType != ecKey) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + + /* If no buffer provided, return the length required for + * the serialized public key. */ + if (!buf) { + *len = pk->u.ec.publicValue.len; + return SECSuccess; + } + + if (maxLen < pk->u.ec.publicValue.len) { + PORT_SetError(SEC_ERROR_INPUT_LEN); + return SECFailure; + } + + PORT_Memcpy(buf, pk->u.ec.publicValue.data, pk->u.ec.publicValue.len); + *len = pk->u.ec.publicValue.len; + return SECSuccess; +}; + +SECStatus +PK11_HPKE_Deserialize(const HpkeContext *cx, const PRUint8 *enc, + unsigned int encLen, SECKEYPublicKey **outPubKey) +{ + SECStatus rv; + SECKEYPublicKey *pubKey = NULL; + SECOidData *oidData = NULL; + PLArenaPool *arena; + + if (!cx || !enc || encLen == 0 || !outPubKey) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + + arena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE); + CHECK_FAIL(!arena); + pubKey = PORT_ArenaZNew(arena, SECKEYPublicKey); + CHECK_FAIL(!pubKey); + + pubKey->arena = arena; + pubKey->keyType = ecKey; + pubKey->pkcs11Slot = NULL; + pubKey->pkcs11ID = CK_INVALID_HANDLE; + + rv = SECITEM_MakeItem(pubKey->arena, &pubKey->u.ec.publicValue, + enc, encLen); + CHECK_RV(rv); + pubKey->u.ec.encoding = ECPoint_Undefined; + pubKey->u.ec.size = 0; + + oidData = SECOID_FindOIDByTag(cx->kemParams->oidTag); + CHECK_FAIL_ERR(!oidData, SEC_ERROR_INVALID_ALGORITHM); + + // Create parameters. + CHECK_FAIL(!SECITEM_AllocItem(pubKey->arena, &pubKey->u.ec.DEREncodedParams, + 2 + oidData->oid.len)); + + // Set parameters. + pubKey->u.ec.DEREncodedParams.data[0] = SEC_ASN1_OBJECT_ID; + pubKey->u.ec.DEREncodedParams.data[1] = oidData->oid.len; + memcpy(pubKey->u.ec.DEREncodedParams.data + 2, oidData->oid.data, oidData->oid.len); + *outPubKey = pubKey; + +CLEANUP: + if (rv != SECSuccess) { + SECKEY_DestroyPublicKey(pubKey); + } + return rv; +}; + +static SECStatus +pk11_hpke_CheckKeys(const HpkeContext *cx, const SECKEYPublicKey *pk, + const SECKEYPrivateKey *sk) +{ + SECOidTag pkTag; + unsigned int i; + if (pk->keyType != ecKey || (sk && sk->keyType != ecKey)) { + PORT_SetError(SEC_ERROR_BAD_KEY); + return SECFailure; + } + pkTag = SECKEY_GetECCOid(&pk->u.ec.DEREncodedParams); + if (pkTag != cx->kemParams->oidTag) { + PORT_SetError(SEC_ERROR_BAD_KEY); + return SECFailure; + } + for (i = 0; i < PR_ARRAY_SIZE(kemParams); i++) { + if (cx->kemParams->oidTag == kemParams[i].oidTag) { + return SECSuccess; + } + } + + return SECFailure; +} + +static SECStatus +pk11_hpke_GenerateKeyPair(const HpkeContext *cx, SECKEYPublicKey **pkE, + SECKEYPrivateKey **skE) +{ + SECStatus rv = SECSuccess; + SECKEYPrivateKey *privKey = NULL; + SECKEYPublicKey *pubKey = NULL; + SECOidData *oidData = NULL; + SECKEYECParams ecp; + PK11SlotInfo *slot = NULL; + ecp.data = NULL; + PORT_Assert(cx && skE && pkE); + + oidData = SECOID_FindOIDByTag(cx->kemParams->oidTag); + CHECK_FAIL_ERR(!oidData, SEC_ERROR_INVALID_ALGORITHM); + ecp.data = PORT_Alloc(2 + oidData->oid.len); + CHECK_FAIL(!ecp.data); + + ecp.len = 2 + oidData->oid.len; + ecp.type = siDEROID; + ecp.data[0] = SEC_ASN1_OBJECT_ID; + ecp.data[1] = oidData->oid.len; + memcpy(&ecp.data[2], oidData->oid.data, oidData->oid.len); + + slot = PK11_GetBestSlot(CKM_EC_KEY_PAIR_GEN, NULL); + CHECK_FAIL(!slot); + + privKey = PK11_GenerateKeyPair(slot, CKM_EC_KEY_PAIR_GEN, &ecp, &pubKey, + PR_FALSE, PR_TRUE, NULL); + CHECK_FAIL_ERR((!privKey || !pubKey), SEC_ERROR_KEYGEN_FAIL); + PORT_Assert(rv == SECSuccess); + *skE = privKey; + *pkE = pubKey; + +CLEANUP: + if (rv != SECSuccess) { + SECKEY_DestroyPrivateKey(privKey); + SECKEY_DestroyPublicKey(pubKey); + } + if (slot) { + PK11_FreeSlot(slot); + } + PORT_Free(ecp.data); + return rv; +} + +static inline SECItem * +pk11_hpke_MakeExtractLabel(const char *prefix, unsigned int prefixLen, + const char *label, unsigned int labelLen, + const SECItem *suiteId, const SECItem *ikm) +{ + SECItem *out = NULL; + size_t off = 0; + out = SECITEM_AllocItem(NULL, NULL, prefixLen + labelLen + suiteId->len + (ikm ? ikm->len : 0)); + if (!out) { + return NULL; + } + + memcpy(&out->data[off], prefix, prefixLen); + off += prefixLen; + memcpy(&out->data[off], suiteId->data, suiteId->len); + off += suiteId->len; + memcpy(&out->data[off], label, labelLen); + off += labelLen; + if (ikm && ikm->data) { + memcpy(&out->data[off], ikm->data, ikm->len); + off += ikm->len; + } + + return out; +} + +static SECStatus +pk11_hpke_LabeledExtractData(const HpkeContext *cx, SECItem *salt, + const SECItem *suiteId, const char *label, + unsigned int labelLen, const SECItem *ikm, SECItem **out) +{ + SECStatus rv; + CK_HKDF_PARAMS params = { 0 }; + PK11SymKey *importedIkm = NULL; + PK11SymKey *prk = NULL; + PK11SlotInfo *slot = NULL; + SECItem *borrowed; + SECItem *outDerived = NULL; + SECItem *labeledIkm; + SECItem paramsItem = { siBuffer, (unsigned char *)¶ms, + sizeof(params) }; + PORT_Assert(cx && ikm && label && labelLen && out && suiteId); + + labeledIkm = pk11_hpke_MakeExtractLabel(DRAFT_LABEL, strlen(DRAFT_LABEL), label, labelLen, suiteId, ikm); + CHECK_FAIL(!labeledIkm); + params.bExtract = CK_TRUE; + params.bExpand = CK_FALSE; + params.prfHashMechanism = cx->kemParams->hashMech; + params.ulSaltType = salt ? CKF_HKDF_SALT_DATA : CKF_HKDF_SALT_NULL; + params.pSalt = salt ? (CK_BYTE_PTR)salt->data : NULL; + params.ulSaltLen = salt ? salt->len : 0; + params.pInfo = labeledIkm->data; + params.ulInfoLen = labeledIkm->len; + + slot = PK11_GetBestSlot(CKM_EC_KEY_PAIR_GEN, NULL); + CHECK_FAIL(!slot); + + importedIkm = PK11_ImportDataKey(slot, CKM_HKDF_DATA, PK11_OriginUnwrap, + CKA_DERIVE, labeledIkm, NULL); + CHECK_FAIL(!importedIkm); + prk = PK11_Derive(importedIkm, CKM_HKDF_DATA, ¶msItem, + CKM_HKDF_DERIVE, CKA_DERIVE, 0); + CHECK_FAIL(!prk); + rv = PK11_ExtractKeyValue(prk); + CHECK_RV(rv); + borrowed = PK11_GetKeyData(prk); + CHECK_FAIL(!borrowed); + outDerived = SECITEM_DupItem(borrowed); + CHECK_FAIL(!outDerived); + + *out = outDerived; + +CLEANUP: + PK11_FreeSymKey(importedIkm); + PK11_FreeSymKey(prk); + SECITEM_FreeItem(labeledIkm, PR_TRUE); + if (slot) { + PK11_FreeSlot(slot); + } + return rv; +} + +static SECStatus +pk11_hpke_LabeledExtract(const HpkeContext *cx, PK11SymKey *salt, + const SECItem *suiteId, const char *label, + unsigned int labelLen, PK11SymKey *ikm, PK11SymKey **out) +{ + SECStatus rv = SECSuccess; + SECItem *innerLabel = NULL; + PK11SymKey *labeledIkm = NULL; + PK11SymKey *prk = NULL; + CK_HKDF_PARAMS params = { 0 }; + CK_KEY_DERIVATION_STRING_DATA labelData; + SECItem labelDataItem = { siBuffer, NULL, 0 }; + SECItem paramsItem = { siBuffer, (unsigned char *)¶ms, + sizeof(params) }; + PORT_Assert(cx && ikm && label && labelLen && out && suiteId); + + innerLabel = pk11_hpke_MakeExtractLabel(DRAFT_LABEL, strlen(DRAFT_LABEL), label, labelLen, suiteId, NULL); + CHECK_FAIL(!innerLabel); + labelData.pData = innerLabel->data; + labelData.ulLen = innerLabel->len; + labelDataItem.data = (PRUint8 *)&labelData; + labelDataItem.len = sizeof(labelData); + labeledIkm = PK11_Derive(ikm, CKM_CONCATENATE_DATA_AND_BASE, + &labelDataItem, CKM_GENERIC_SECRET_KEY_GEN, CKA_DERIVE, 0); + CHECK_FAIL(!labeledIkm); + + params.bExtract = CK_TRUE; + params.bExpand = CK_FALSE; + params.prfHashMechanism = cx->kemParams->hashMech; + params.ulSaltType = salt ? CKF_HKDF_SALT_KEY : CKF_HKDF_SALT_NULL; + params.hSaltKey = salt ? PK11_GetSymKeyHandle(salt) : CK_INVALID_HANDLE; + + prk = PK11_Derive(labeledIkm, CKM_HKDF_DERIVE, ¶msItem, + CKM_HKDF_DERIVE, CKA_DERIVE, 0); + CHECK_FAIL(!prk); + *out = prk; + +CLEANUP: + PK11_FreeSymKey(labeledIkm); + SECITEM_ZfreeItem(innerLabel, PR_TRUE); + return rv; +} + +static SECStatus +pk11_hpke_LabeledExpand(const HpkeContext *cx, PK11SymKey *prk, const SECItem *suiteId, + const char *label, unsigned int labelLen, const SECItem *info, + unsigned int L, PK11SymKey **outKey, SECItem **outItem) +{ + SECStatus rv; + CK_MECHANISM_TYPE keyMech; + CK_MECHANISM_TYPE deriveMech; + CK_HKDF_PARAMS params = { 0 }; + PK11SymKey *derivedKey = NULL; + SECItem *labeledInfoItem = NULL; + SECItem paramsItem = { siBuffer, (unsigned char *)¶ms, + sizeof(params) }; + SECItem *derivedKeyData; + PRUint8 encodedL[2]; + size_t off = 0; + size_t len; + PORT_Assert(cx && prk && label && (!!outKey != !!outItem)); + + rv = encodeShort(L, encodedL); + CHECK_RV(rv); + + len = info ? info->len : 0; + len += sizeof(encodedL) + strlen(DRAFT_LABEL) + suiteId->len + labelLen; + labeledInfoItem = SECITEM_AllocItem(NULL, NULL, len); + CHECK_FAIL(!labeledInfoItem); + + memcpy(&labeledInfoItem->data[off], encodedL, sizeof(encodedL)); + off += sizeof(encodedL); + memcpy(&labeledInfoItem->data[off], DRAFT_LABEL, strlen(DRAFT_LABEL)); + off += strlen(DRAFT_LABEL); + memcpy(&labeledInfoItem->data[off], suiteId->data, suiteId->len); + off += suiteId->len; + memcpy(&labeledInfoItem->data[off], label, labelLen); + off += labelLen; + if (info) { + memcpy(&labeledInfoItem->data[off], info->data, info->len); + off += info->len; + } + + params.bExtract = CK_FALSE; + params.bExpand = CK_TRUE; + params.prfHashMechanism = cx->kemParams->hashMech; + params.ulSaltType = CKF_HKDF_SALT_NULL; + params.pInfo = labeledInfoItem->data; + params.ulInfoLen = labeledInfoItem->len; + deriveMech = outItem ? CKM_HKDF_DATA : CKM_HKDF_DERIVE; + /* If we're expanding to the encryption key use the appropriate mechanism. */ + keyMech = (label && !strcmp(KEY_LABEL, label)) ? cx->aeadParams->mech : CKM_HKDF_DERIVE; + + derivedKey = PK11_Derive(prk, deriveMech, ¶msItem, keyMech, CKA_DERIVE, L); + CHECK_FAIL(!derivedKey); + + if (outItem) { + /* Don't allow export of real keys. */ + CHECK_FAIL_ERR(deriveMech != CKM_HKDF_DATA, SEC_ERROR_LIBRARY_FAILURE); + rv = PK11_ExtractKeyValue(derivedKey); + CHECK_RV(rv); + derivedKeyData = PK11_GetKeyData(derivedKey); + CHECK_FAIL_ERR((!derivedKeyData), SEC_ERROR_NO_KEY); + *outItem = SECITEM_DupItem(derivedKeyData); + CHECK_FAIL(!*outItem); + PK11_FreeSymKey(derivedKey); + } else { + *outKey = derivedKey; + } + +CLEANUP: + if (rv != SECSuccess) { + PK11_FreeSymKey(derivedKey); + } + SECITEM_ZfreeItem(labeledInfoItem, PR_TRUE); + return rv; +} + +static SECStatus +pk11_hpke_ExtractAndExpand(const HpkeContext *cx, PK11SymKey *ikm, + const SECItem *kemContext, PK11SymKey **out) +{ + SECStatus rv; + PK11SymKey *eaePrk = NULL; + PK11SymKey *sharedSecret = NULL; + PRUint8 suiteIdBuf[5]; + PORT_Memcpy(suiteIdBuf, KEM_LABEL, strlen(KEM_LABEL)); + SECItem suiteIdItem = { siBuffer, suiteIdBuf, sizeof(suiteIdBuf) }; + PORT_Assert(cx && ikm && kemContext && out); + + rv = encodeShort(cx->kemParams->id, &suiteIdBuf[3]); + CHECK_RV(rv); + + rv = pk11_hpke_LabeledExtract(cx, NULL, &suiteIdItem, EAE_PRK_LABEL, + strlen(EAE_PRK_LABEL), ikm, &eaePrk); + CHECK_RV(rv); + + rv = pk11_hpke_LabeledExpand(cx, eaePrk, &suiteIdItem, SH_SEC_LABEL, strlen(SH_SEC_LABEL), + kemContext, cx->kemParams->Nsecret, &sharedSecret, NULL); + CHECK_RV(rv); + *out = sharedSecret; + +CLEANUP: + if (rv != SECSuccess) { + PK11_FreeSymKey(sharedSecret); + } + PK11_FreeSymKey(eaePrk); + return rv; +} + +static SECStatus +pk11_hpke_Encap(HpkeContext *cx, const SECKEYPublicKey *pkE, SECKEYPrivateKey *skE, + SECKEYPublicKey *pkR) +{ + SECStatus rv; + PK11SymKey *dh = NULL; + SECItem *kemContext = NULL; + SECItem *encPkR = NULL; + unsigned int tmpLen; + + PORT_Assert(cx && skE && pkE && pkR); + + rv = pk11_hpke_CheckKeys(cx, pkE, skE); + CHECK_RV(rv); + rv = pk11_hpke_CheckKeys(cx, pkR, NULL); + CHECK_RV(rv); + + dh = PK11_PubDeriveWithKDF(skE, pkR, PR_FALSE, NULL, NULL, CKM_ECDH1_DERIVE, + CKM_SHA512_HMAC /* unused */, CKA_DERIVE, 0, + CKD_NULL, NULL, NULL); + CHECK_FAIL(!dh); + + /* Encapsulate our sender public key. Many use cases + * (including ECH) require that the application fetch + * this value, so do it once and store into the cx. */ + rv = PK11_HPKE_Serialize(pkE, NULL, &tmpLen, 0); + CHECK_RV(rv); + cx->encapPubKey = SECITEM_AllocItem(NULL, NULL, tmpLen); + CHECK_FAIL(!cx->encapPubKey); + rv = PK11_HPKE_Serialize(pkE, cx->encapPubKey->data, + &cx->encapPubKey->len, cx->encapPubKey->len); + CHECK_RV(rv); + + rv = PK11_HPKE_Serialize(pkR, NULL, &tmpLen, 0); + CHECK_RV(rv); + + kemContext = SECITEM_AllocItem(NULL, NULL, cx->encapPubKey->len + tmpLen); + CHECK_FAIL(!kemContext); + + memcpy(kemContext->data, cx->encapPubKey->data, cx->encapPubKey->len); + rv = PK11_HPKE_Serialize(pkR, &kemContext->data[cx->encapPubKey->len], &tmpLen, tmpLen); + CHECK_RV(rv); + + rv = pk11_hpke_ExtractAndExpand(cx, dh, kemContext, &cx->sharedSecret); + CHECK_RV(rv); + +CLEANUP: + if (rv != SECSuccess) { + PK11_FreeSymKey(cx->sharedSecret); + cx->sharedSecret = NULL; + } + SECITEM_FreeItem(encPkR, PR_TRUE); + SECITEM_FreeItem(kemContext, PR_TRUE); + PK11_FreeSymKey(dh); + return rv; +} + +SECStatus +PK11_HPKE_ExportSecret(const HpkeContext *cx, const SECItem *info, unsigned int L, + PK11SymKey **out) +{ + SECStatus rv; + PK11SymKey *exported; + PRUint8 suiteIdBuf[10]; + PORT_Memcpy(suiteIdBuf, HPKE_LABEL, strlen(HPKE_LABEL)); + SECItem suiteIdItem = { siBuffer, suiteIdBuf, sizeof(suiteIdBuf) }; + + /* Arbitrary info length limit well under the specified max. */ + if (!cx || !info || (!info->data && info->len) || info->len > 0xFFFF || + !L || (L > 255 * cx->kdfParams->Nh)) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + + rv = encodeShort(cx->kemParams->id, &suiteIdBuf[4]); + CHECK_RV(rv); + rv = encodeShort(cx->kdfParams->id, &suiteIdBuf[6]); + CHECK_RV(rv); + rv = encodeShort(cx->aeadParams->id, &suiteIdBuf[8]); + CHECK_RV(rv); + + rv = pk11_hpke_LabeledExpand(cx, cx->exporterSecret, &suiteIdItem, SEC_LABEL, + strlen(SEC_LABEL), info, L, &exported, NULL); + CHECK_RV(rv); + *out = exported; + +CLEANUP: + return rv; +} + +static SECStatus +pk11_hpke_Decap(HpkeContext *cx, const SECKEYPublicKey *pkR, SECKEYPrivateKey *skR, + const SECItem *encS) +{ + SECStatus rv; + PK11SymKey *dh = NULL; + SECItem *encR = NULL; + SECItem *kemContext = NULL; + SECKEYPublicKey *pkS = NULL; + unsigned int tmpLen; + + if (!cx || !skR || !pkR || !encS || !encS->data || !encS->len) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + + rv = PK11_HPKE_Deserialize(cx, encS->data, encS->len, &pkS); + CHECK_RV(rv); + + rv = pk11_hpke_CheckKeys(cx, pkR, skR); + CHECK_RV(rv); + rv = pk11_hpke_CheckKeys(cx, pkS, NULL); + CHECK_RV(rv); + + dh = PK11_PubDeriveWithKDF(skR, pkS, PR_FALSE, NULL, NULL, CKM_ECDH1_DERIVE, + CKM_SHA512_HMAC /* unused */, CKA_DERIVE, 0, + CKD_NULL, NULL, NULL); + CHECK_FAIL(!dh); + + /* kem_context = concat(enc, pkRm) */ + rv = PK11_HPKE_Serialize(pkR, NULL, &tmpLen, 0); + CHECK_RV(rv); + + kemContext = SECITEM_AllocItem(NULL, NULL, encS->len + tmpLen); + CHECK_FAIL(!kemContext); + + memcpy(kemContext->data, encS->data, encS->len); + rv = PK11_HPKE_Serialize(pkR, &kemContext->data[encS->len], &tmpLen, + kemContext->len - encS->len); + CHECK_RV(rv); + rv = pk11_hpke_ExtractAndExpand(cx, dh, kemContext, &cx->sharedSecret); + CHECK_RV(rv); +CLEANUP: + if (rv != SECSuccess) { + PK11_FreeSymKey(cx->sharedSecret); + cx->sharedSecret = NULL; + } + PK11_FreeSymKey(dh); + SECKEY_DestroyPublicKey(pkS); + SECITEM_FreeItem(encR, PR_TRUE); + SECITEM_ZfreeItem(kemContext, PR_TRUE); + return rv; +} + +const SECItem * +PK11_HPKE_GetEncapPubKey(const HpkeContext *cx) +{ + if (!cx) { + return NULL; + } + /* Will be NULL on receiver. */ + return cx->encapPubKey; +} + +static SECStatus +pk11_hpke_KeySchedule(HpkeContext *cx, const SECItem *info) +{ + SECStatus rv; + SECItem contextItem = { siBuffer, NULL, 0 }; + unsigned int len; + unsigned int off; + PK11SymKey *pskHash = NULL; + PK11SymKey *secret = NULL; + SECItem *pskIdHash = NULL; + SECItem *infoHash = NULL; + PRUint8 suiteIdBuf[10]; + PORT_Memcpy(suiteIdBuf, HPKE_LABEL, strlen(HPKE_LABEL)); + SECItem suiteIdItem = { siBuffer, suiteIdBuf, sizeof(suiteIdBuf) }; + PORT_Assert(cx && info && cx->psk && cx->pskId); + + rv = encodeShort(cx->kemParams->id, &suiteIdBuf[4]); + CHECK_RV(rv); + rv = encodeShort(cx->kdfParams->id, &suiteIdBuf[6]); + CHECK_RV(rv); + rv = encodeShort(cx->aeadParams->id, &suiteIdBuf[8]); + CHECK_RV(rv); + + rv = pk11_hpke_LabeledExtractData(cx, NULL, &suiteIdItem, PSK_ID_LABEL, + strlen(PSK_ID_LABEL), cx->pskId, &pskIdHash); + CHECK_RV(rv); + rv = pk11_hpke_LabeledExtractData(cx, NULL, &suiteIdItem, INFO_LABEL, + strlen(INFO_LABEL), info, &infoHash); + CHECK_RV(rv); + + // Make the context string + len = sizeof(cx->mode) + pskIdHash->len + infoHash->len; + CHECK_FAIL(!SECITEM_AllocItem(NULL, &contextItem, len)); + off = 0; + memcpy(&contextItem.data[off], &cx->mode, sizeof(cx->mode)); + off += sizeof(cx->mode); + memcpy(&contextItem.data[off], pskIdHash->data, pskIdHash->len); + off += pskIdHash->len; + memcpy(&contextItem.data[off], infoHash->data, infoHash->len); + off += infoHash->len; + + // Compute the keys + rv = pk11_hpke_LabeledExtract(cx, NULL, &suiteIdItem, PSK_LABEL, + strlen(PSK_LABEL), cx->psk, &pskHash); + CHECK_RV(rv); + rv = pk11_hpke_LabeledExtract(cx, pskHash, &suiteIdItem, SECRET_LABEL, + strlen(SECRET_LABEL), cx->sharedSecret, &secret); + CHECK_RV(rv); + rv = pk11_hpke_LabeledExpand(cx, secret, &suiteIdItem, KEY_LABEL, strlen(KEY_LABEL), + &contextItem, cx->aeadParams->Nk, &cx->key, NULL); + CHECK_RV(rv); + rv = pk11_hpke_LabeledExpand(cx, secret, &suiteIdItem, NONCE_LABEL, strlen(NONCE_LABEL), + &contextItem, cx->aeadParams->Nn, NULL, &cx->nonce); + CHECK_RV(rv); + rv = pk11_hpke_LabeledExpand(cx, secret, &suiteIdItem, EXP_LABEL, strlen(EXP_LABEL), + &contextItem, cx->kdfParams->Nh, &cx->exporterSecret, NULL); + CHECK_RV(rv); + +CLEANUP: + /* If !SECSuccess, callers will tear down the context. */ + PK11_FreeSymKey(pskHash); + PK11_FreeSymKey(secret); + SECITEM_FreeItem(&contextItem, PR_FALSE); + SECITEM_FreeItem(infoHash, PR_TRUE); + SECITEM_FreeItem(pskIdHash, PR_TRUE); + return rv; +} + +SECStatus +PK11_HPKE_SetupR(HpkeContext *cx, const SECKEYPublicKey *pkR, SECKEYPrivateKey *skR, + const SECItem *enc, const SECItem *info) +{ + SECStatus rv; + SECItem nullParams = { siBuffer, NULL, 0 }; + + CHECK_FAIL_ERR((!cx || !skR || !info || !enc || !enc->data || !enc->len), + SEC_ERROR_INVALID_ARGS); + /* Already setup */ + CHECK_FAIL_ERR((cx->aeadContext), SEC_ERROR_INVALID_STATE); + + rv = pk11_hpke_Decap(cx, pkR, skR, enc); + CHECK_RV(rv); + rv = pk11_hpke_KeySchedule(cx, info); + CHECK_RV(rv); + + /* Store the key context for subsequent calls to Open(). + * PK11_CreateContextBySymKey refs the key internally. */ + PORT_Assert(cx->key); + cx->aeadContext = PK11_CreateContextBySymKey(cx->aeadParams->mech, + CKA_NSS_MESSAGE | CKA_DECRYPT, + cx->key, &nullParams); + CHECK_FAIL_ERR((!cx->aeadContext), SEC_ERROR_LIBRARY_FAILURE); + +CLEANUP: + if (rv != SECSuccess) { + /* Clear everything past NewContext. */ + PK11_HPKE_DestroyContext(cx, PR_FALSE); + } + return rv; +} + +SECStatus +PK11_HPKE_SetupS(HpkeContext *cx, const SECKEYPublicKey *pkE, SECKEYPrivateKey *skE, + SECKEYPublicKey *pkR, const SECItem *info) +{ + SECStatus rv; + SECItem empty = { siBuffer, NULL, 0 }; + SECKEYPublicKey *tmpPkE = NULL; + SECKEYPrivateKey *tmpSkE = NULL; + CHECK_FAIL_ERR((!cx || !pkR || !info || (!!skE != !!pkE)), SEC_ERROR_INVALID_ARGS); + /* Already setup */ + CHECK_FAIL_ERR((cx->aeadContext), SEC_ERROR_INVALID_STATE); + + /* If NULL was passed for the local keypair, generate one. */ + if (skE == NULL) { + rv = pk11_hpke_GenerateKeyPair(cx, &tmpPkE, &tmpSkE); + if (rv != SECSuccess) { + /* Code set */ + return SECFailure; + } + rv = pk11_hpke_Encap(cx, tmpPkE, tmpSkE, pkR); + } else { + rv = pk11_hpke_Encap(cx, pkE, skE, pkR); + } + CHECK_RV(rv); + + SECItem defaultInfo = { siBuffer, NULL, 0 }; + if (!info || !info->data) { + info = &defaultInfo; + } + rv = pk11_hpke_KeySchedule(cx, info); + CHECK_RV(rv); + + PORT_Assert(cx->key); + cx->aeadContext = PK11_CreateContextBySymKey(cx->aeadParams->mech, + CKA_NSS_MESSAGE | CKA_ENCRYPT, + cx->key, &empty); + CHECK_FAIL_ERR((!cx->aeadContext), SEC_ERROR_LIBRARY_FAILURE); + +CLEANUP: + if (rv != SECSuccess) { + /* Clear everything past NewContext. */ + PK11_HPKE_DestroyContext(cx, PR_FALSE); + } + SECKEY_DestroyPrivateKey(tmpSkE); + SECKEY_DestroyPublicKey(tmpPkE); + return rv; +} + +SECStatus +PK11_HPKE_Seal(HpkeContext *cx, const SECItem *aad, const SECItem *pt, + SECItem **out) +{ + SECStatus rv; + PRUint8 ivOut[12] = { 0 }; + SECItem *ct = NULL; + size_t maxOut; + unsigned char tagBuf[HASH_LENGTH_MAX]; + size_t tagLen; + unsigned int fixedBits; + PORT_Assert(cx->nonce->len == sizeof(ivOut)); + memcpy(ivOut, cx->nonce->data, cx->nonce->len); + + /* aad may be NULL, PT may be zero-length but not NULL. */ + if (!cx || !cx->aeadContext || + (aad && aad->len && !aad->data) || + !pt || (pt->len && !pt->data) || + !out) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + + tagLen = cx->aeadParams->tagLen; + maxOut = pt->len + tagLen; + fixedBits = (cx->nonce->len - 8) * 8; + ct = SECITEM_AllocItem(NULL, NULL, maxOut); + CHECK_FAIL(!ct); + + rv = PK11_AEADOp(cx->aeadContext, + CKG_GENERATE_COUNTER_XOR, fixedBits, + ivOut, sizeof(ivOut), + aad ? aad->data : NULL, + aad ? aad->len : 0, + ct->data, (int *)&ct->len, maxOut, + tagBuf, tagLen, + pt->data, pt->len); + CHECK_RV(rv); + CHECK_FAIL_ERR((ct->len > maxOut - tagLen), SEC_ERROR_LIBRARY_FAILURE); + + /* Append the tag to the ciphertext. */ + memcpy(&ct->data[ct->len], tagBuf, tagLen); + ct->len += tagLen; + *out = ct; + +CLEANUP: + if (rv != SECSuccess) { + SECITEM_ZfreeItem(ct, PR_TRUE); + } + return rv; +} + +/* PKCS #11 defines the IV generator function to be ignored on + * decrypt (i.e. it uses the nonce input, as provided, as the IV). + * The sequence number is kept independently on each endpoint and + * the XORed IV is not transmitted, so we have to do our own IV + * construction XOR outside of the token. */ +static SECStatus +pk11_hpke_makeIv(HpkeContext *cx, PRUint8 *iv, size_t ivLen) +{ + unsigned int counterLen = sizeof(cx->sequenceNumber); + PORT_Assert(cx->nonce->len == ivLen); + PORT_Assert(counterLen == 8); + if (cx->sequenceNumber == PR_UINT64(0xffffffffffffffff)) { + /* Overflow */ + PORT_SetError(SEC_ERROR_INVALID_KEY); + return SECFailure; + } + + memcpy(iv, cx->nonce->data, cx->nonce->len); + for (size_t i = 0; i < counterLen; i++) { + iv[cx->nonce->len - 1 - i] ^= + PORT_GET_BYTE_BE(cx->sequenceNumber, + counterLen - 1 - i, counterLen); + } + return SECSuccess; +} + +SECStatus +PK11_HPKE_Open(HpkeContext *cx, const SECItem *aad, + const SECItem *ct, SECItem **out) +{ + SECStatus rv; + PRUint8 constructedNonce[12] = { 0 }; + unsigned int tagLen; + SECItem *pt = NULL; + + /* aad may be NULL, CT may be zero-length but not NULL. */ + if ((!cx || !cx->aeadContext || !ct || !out) || + (aad && aad->len && !aad->data) || + (!ct->data || (ct->data && !ct->len))) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + tagLen = cx->aeadParams->tagLen; + CHECK_FAIL_ERR((ct->len < tagLen), SEC_ERROR_INVALID_ARGS); + + pt = SECITEM_AllocItem(NULL, NULL, ct->len); + CHECK_FAIL(!pt); + + rv = pk11_hpke_makeIv(cx, constructedNonce, sizeof(constructedNonce)); + CHECK_RV(rv); + + rv = PK11_AEADOp(cx->aeadContext, CKG_NO_GENERATE, 0, + constructedNonce, sizeof(constructedNonce), + aad ? aad->data : NULL, + aad ? aad->len : 0, + pt->data, (int *)&pt->len, pt->len, + &ct->data[ct->len - tagLen], tagLen, + ct->data, ct->len - tagLen); + CHECK_RV(rv); + cx->sequenceNumber++; + *out = pt; + +CLEANUP: + if (rv != SECSuccess) { + SECITEM_ZfreeItem(pt, PR_TRUE); + } + return rv; +} +#endif // NSS_ENABLE_DRAFT_HPKE diff --git a/libs/nss/src/lib/pk11wrap/pk11hpke.h b/libs/nss/src/lib/pk11wrap/pk11hpke.h new file mode 100644 index 000000000..95a55fd33 --- /dev/null +++ b/libs/nss/src/lib/pk11wrap/pk11hpke.h @@ -0,0 +1,84 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef _PK11_HPKE_H_ +#define _PK11_HPKE_H_ 1 + +#include "blapit.h" +#include "seccomon.h" + +#ifdef NSS_ENABLE_DRAFT_HPKE +#define HPKE_DRAFT_VERSION 5 + +#define CLEANUP \ + PORT_Assert(rv == SECSuccess); \ + cleanup + +/* Error code must already be set. */ +#define CHECK_RV(rv) \ + if ((rv) != SECSuccess) { \ + goto cleanup; \ + } + +/* Error code must already be set. */ +#define CHECK_FAIL(cond) \ + if ((cond)) { \ + rv = SECFailure; \ + goto cleanup; \ + } + +#define CHECK_FAIL_ERR(cond, err) \ + if ((cond)) { \ + PORT_SetError((err)); \ + rv = SECFailure; \ + goto cleanup; \ + } + +#endif /* NSS_ENABLE_DRAFT_HPKE */ + +typedef enum { + HpkeModeBase = 0, + HpkeModePsk = 1, +} HpkeModeId; + +/* https://tools.ietf.org/html/draft-irtf-cfrg-hpke-05#section-7.1 */ +typedef enum { + HpkeDhKemX25519Sha256 = 0x20, +} HpkeKemId; + +typedef enum { + HpkeKdfHkdfSha256 = 1, +} HpkeKdfId; + +typedef enum { + HpkeAeadAes128Gcm = 1, + HpkeAeadChaCha20Poly1305 = 3, +} HpkeAeadId; + +typedef struct hpkeKemParamsStr { + HpkeKemId id; + unsigned int Nsk; + unsigned int Nsecret; + unsigned int Npk; + SECOidTag oidTag; + CK_MECHANISM_TYPE hashMech; +} hpkeKemParams; + +typedef struct hpkeKdfParamsStr { + HpkeKdfId id; + unsigned int Nh; + CK_MECHANISM_TYPE mech; +} hpkeKdfParams; + +typedef struct hpkeAeadParamsStr { + HpkeAeadId id; + unsigned int Nk; + unsigned int Nn; + unsigned int tagLen; + CK_MECHANISM_TYPE mech; +} hpkeAeadParams; + +typedef struct HpkeContextStr HpkeContext; + +#endif /* _PK11_HPKE_H_ */ diff --git a/libs/nss/src/lib/pk11wrap/pk11kea.c b/libs/nss/src/lib/pk11wrap/pk11kea.c index 1f228cfaf..249a301ad 100644 --- a/libs/nss/src/lib/pk11wrap/pk11kea.c +++ b/libs/nss/src/lib/pk11wrap/pk11kea.c @@ -6,6 +6,8 @@ * Interfaces. */ +#include <stddef.h> + #include "seccomon.h" #include "secmod.h" #include "nssilock.h" @@ -29,7 +31,7 @@ pk11_FindRSAPubKey(PK11SlotInfo *slot) CK_KEY_TYPE key_type = CKK_RSA; CK_OBJECT_CLASS class_type = CKO_PUBLIC_KEY; CK_ATTRIBUTE theTemplate[2]; - int template_count = sizeof(theTemplate) / sizeof(theTemplate[0]); + size_t template_count = sizeof(theTemplate) / sizeof(theTemplate[0]); CK_ATTRIBUTE *attrs = theTemplate; PK11_SETATTRS(attrs, CKA_CLASS, &class_type, sizeof(class_type)); diff --git a/libs/nss/src/lib/pk11wrap/pk11load.c b/libs/nss/src/lib/pk11wrap/pk11load.c index 9b941f963..9e7a0a546 100644 --- a/libs/nss/src/lib/pk11wrap/pk11load.c +++ b/libs/nss/src/lib/pk11wrap/pk11load.c @@ -355,7 +355,7 @@ SECMOD_SetRootCerts(PK11SlotInfo *slot, SECMODModule *mod) #ifndef NSS_STATIC_SOFTOKEN static const char *my_shlib_name = - SHLIB_PREFIX "nss" SHLIB_VERSION "." SHLIB_SUFFIX; + SHLIB_PREFIX "nss" NSS_SHLIB_VERSION "." SHLIB_SUFFIX; static const char *softoken_shlib_name = SHLIB_PREFIX "softokn" SOFTOKEN_SHLIB_VERSION "." SHLIB_SUFFIX; static const PRCallOnceType pristineCallOnce; diff --git a/libs/nss/src/lib/pk11wrap/pk11merge.c b/libs/nss/src/lib/pk11wrap/pk11merge.c index c7b5b709d..d6d9da718 100644 --- a/libs/nss/src/lib/pk11wrap/pk11merge.c +++ b/libs/nss/src/lib/pk11wrap/pk11merge.c @@ -464,7 +464,7 @@ pk11_mergeSecretKey(PK11SlotInfo *targetSlot, PK11SlotInfo *sourceSlot, { CKA_ID, NULL, 0 }, { CKA_CLASS, NULL, 0 } }; - CK_ULONG symTemplateCount = sizeof(symTemplate) / sizeof(symTemplate[0]); + const CK_ULONG symTemplateCount = sizeof(symTemplate) / sizeof(symTemplate[0]); CK_ATTRIBUTE symCopyTemplate[] = { { CKA_LABEL, NULL, 0 } }; diff --git a/libs/nss/src/lib/pk11wrap/pk11nobj.c b/libs/nss/src/lib/pk11wrap/pk11nobj.c index dcc1b7ae5..80bc009f7 100644 --- a/libs/nss/src/lib/pk11wrap/pk11nobj.c +++ b/libs/nss/src/lib/pk11wrap/pk11nobj.c @@ -6,6 +6,8 @@ * etc). */ +#include <stddef.h> + #include "secport.h" #include "seccomon.h" #include "secmod.h" @@ -552,7 +554,7 @@ PK11_FindSMimeProfile(PK11SlotInfo **slot, char *emailAddr, { CKA_VALUE, NULL, 0 }, }; /* if you change the array, change the variable below as well */ - int tsize = sizeof(theTemplate) / sizeof(theTemplate[0]); + const size_t tsize = sizeof(theTemplate) / sizeof(theTemplate[0]); CK_OBJECT_HANDLE smimeh = CK_INVALID_HANDLE; CK_ATTRIBUTE *attrs = theTemplate; CK_RV crv; diff --git a/libs/nss/src/lib/pk11wrap/pk11obj.c b/libs/nss/src/lib/pk11wrap/pk11obj.c index 37eea41f8..4432b8e3a 100644 --- a/libs/nss/src/lib/pk11wrap/pk11obj.c +++ b/libs/nss/src/lib/pk11wrap/pk11obj.c @@ -5,6 +5,7 @@ * This file manages object type indepentent functions. */ #include <limits.h> +#include <stddef.h> #include "seccomon.h" #include "secmod.h" @@ -1807,7 +1808,7 @@ PK11_ReadRawAttributes(PLArenaPool *arena, PK11ObjectType objType, void *objSpec * return the object handle that matches the template */ CK_OBJECT_HANDLE -pk11_FindObjectByTemplate(PK11SlotInfo *slot, CK_ATTRIBUTE *theTemplate, int tsize) +pk11_FindObjectByTemplate(PK11SlotInfo *slot, CK_ATTRIBUTE *theTemplate, size_t tsize) { CK_OBJECT_HANDLE object; CK_RV crv = CKR_SESSION_HANDLE_INVALID; @@ -1846,7 +1847,7 @@ pk11_FindObjectByTemplate(PK11SlotInfo *slot, CK_ATTRIBUTE *theTemplate, int tsi */ CK_OBJECT_HANDLE * pk11_FindObjectsByTemplate(PK11SlotInfo *slot, CK_ATTRIBUTE *findTemplate, - int templCount, int *object_count) + size_t templCount, int *object_count) { CK_OBJECT_HANDLE *objID = NULL; CK_ULONG returned_count = 0; @@ -1941,7 +1942,7 @@ PK11_FindRawCertsWithSubject(PK11SlotInfo *slot, SECItem *derSubject, { CKA_CLASS, &cko_certificate, sizeof(cko_certificate) }, { CKA_SUBJECT, derSubject->data, derSubject->len }, }; - int templateCount = sizeof(subjectTemplate) / sizeof(subjectTemplate[0]); + const size_t templateCount = sizeof(subjectTemplate) / sizeof(subjectTemplate[0]); int handleCount = 0; CK_OBJECT_HANDLE *handles = pk11_FindObjectsByTemplate(slot, subjectTemplate, templateCount, @@ -2021,7 +2022,7 @@ PK11_MatchItem(PK11SlotInfo *slot, CK_OBJECT_HANDLE searchID, }; /* if you change the array, change the variable below as well */ CK_ATTRIBUTE *keyclass = &theTemplate[1]; - int tsize = sizeof(theTemplate) / sizeof(theTemplate[0]); + const size_t tsize = sizeof(theTemplate) / sizeof(theTemplate[0]); /* if you change the array, change the variable below as well */ CK_OBJECT_HANDLE peerID; PORTCheapArenaPool tmpArena; @@ -2175,7 +2176,7 @@ PK11_FindObjectsFromNickname(char *nickname, PK11SlotInfo **slotptr, { CKA_LABEL, NULL, 0 }, { CKA_CLASS, NULL, 0 }, }; - int findCount = sizeof(findTemplate) / sizeof(findTemplate[0]); + const size_t findCount = sizeof(findTemplate) / sizeof(findTemplate[0]); SECStatus rv; PK11_SETATTRS(&findTemplate[1], CKA_CLASS, &objclass, sizeof(objclass)); diff --git a/libs/nss/src/lib/pk11wrap/pk11pars.c b/libs/nss/src/lib/pk11wrap/pk11pars.c index c5e21df51..edffa9e3a 100644 --- a/libs/nss/src/lib/pk11wrap/pk11pars.c +++ b/libs/nss/src/lib/pk11wrap/pk11pars.c @@ -158,16 +158,17 @@ SECMOD_CreateModule(const char *library, const char *moduleName, * Disallow values are parsed first, then allow values, independent of the * order they appear. * - * Future key words (not yet implemented): + * flags: turn on the following flags: + * policy-lock: turn off the ability for applications to change policy with + * the call NSS_SetAlgorithmPolicy or the other system policy + * calls (SSL_SetPolicy, etc.) + * ssl-lock: turn off the ability to change the ssl defaults. + * + * The following only apply to ssl cipher suites (future smime) + * * enable: turn on ciphersuites by default. * disable: turn off ciphersuites by default without disallowing them by policy. - * flags: turn on the following flags: - * ssl-lock: turn off the ability for applications to change policy with - * the SSL_SetCipherPolicy (or SSL_SetPolicy). - * policy-lock: turn off the ability for applications to change policy with - * the call NSS_SetAlgorithmPolicy. - * ssl-default-lock: turn off the ability for applications to change cipher - * suite states with SSL_EnableCipher, SSL_DisableCipher. + * * */ @@ -323,21 +324,21 @@ static const oidValDef curveOptList[] = { static const oidValDef hashOptList[] = { /* Hashes */ { CIPHER_NAME("MD2"), SEC_OID_MD2, - NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_CERT_SIGNATURE }, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE }, { CIPHER_NAME("MD4"), SEC_OID_MD4, - NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_CERT_SIGNATURE }, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE }, { CIPHER_NAME("MD5"), SEC_OID_MD5, - NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_CERT_SIGNATURE }, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE }, { CIPHER_NAME("SHA1"), SEC_OID_SHA1, - NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_CERT_SIGNATURE }, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE }, { CIPHER_NAME("SHA224"), SEC_OID_SHA224, - NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_CERT_SIGNATURE }, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE }, { CIPHER_NAME("SHA256"), SEC_OID_SHA256, - NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_CERT_SIGNATURE }, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE }, { CIPHER_NAME("SHA384"), SEC_OID_SHA384, - NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_CERT_SIGNATURE }, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE }, { CIPHER_NAME("SHA512"), SEC_OID_SHA512, - NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_CERT_SIGNATURE }, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE } }; static const oidValDef macOptList[] = { @@ -389,7 +390,13 @@ static const oidValDef kxOptList[] = { static const oidValDef signOptList[] = { /* Signatures */ { CIPHER_NAME("DSA"), SEC_OID_ANSIX9_DSA_SIGNATURE, - NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_CERT_SIGNATURE }, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE }, + { CIPHER_NAME("RSA-PKCS"), SEC_OID_PKCS1_RSA_ENCRYPTION, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE }, + { CIPHER_NAME("RSA-PSS"), SEC_OID_PKCS1_RSA_PSS_SIGNATURE, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE }, + { CIPHER_NAME("ECDSA"), SEC_OID_ANSIX962_EC_PUBLIC_KEY, + NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_SIGNATURE }, }; typedef struct { @@ -405,7 +412,7 @@ static const algListsDef algOptLists[] = { { macOptList, PR_ARRAY_SIZE(macOptList), "MAC", PR_FALSE }, { cipherOptList, PR_ARRAY_SIZE(cipherOptList), "CIPHER", PR_FALSE }, { kxOptList, PR_ARRAY_SIZE(kxOptList), "OTHER-KX", PR_FALSE }, - { signOptList, PR_ARRAY_SIZE(signOptList), "OTHER-SIGN", PR_TRUE }, + { signOptList, PR_ARRAY_SIZE(signOptList), "OTHER-SIGN", PR_FALSE }, }; static const optionFreeDef sslOptList[] = { @@ -443,10 +450,19 @@ static const policyFlagDef policyFlagList[] = { /* add other key exhanges in the future */ { CIPHER_NAME("KEY-EXCHANGE"), NSS_USE_ALG_IN_SSL_KX }, { CIPHER_NAME("CERT-SIGNATURE"), NSS_USE_ALG_IN_CERT_SIGNATURE }, - /* add other signatures in the future */ - { CIPHER_NAME("SIGNATURE"), NSS_USE_ALG_IN_CERT_SIGNATURE }, - /* enable everything */ - { CIPHER_NAME("ALL"), NSS_USE_ALG_IN_SSL | NSS_USE_ALG_IN_SSL_KX | NSS_USE_ALG_IN_CERT_SIGNATURE }, + { CIPHER_NAME("CMS-SIGNATURE"), NSS_USE_ALG_IN_CMS_SIGNATURE }, + { CIPHER_NAME("ALL-SIGNATURE"), NSS_USE_ALG_IN_SIGNATURE }, + /* sign turns off all signatures, but doesn't change the + * allowance for specific sigantures... for example: + * disallow=sha256/all allow=sha256/signature doesn't allow + * cert-sigantures, where disallow=sha256/all allow=sha256/all-signature + * does. + * however, disallow=sha356/signature and disallow=sha256/all-siganture are + * equivalent in effect */ + { CIPHER_NAME("SIGNATURE"), NSS_USE_ALG_IN_ANY_SIGNATURE }, + /* enable/disable everything */ + { CIPHER_NAME("ALL"), NSS_USE_ALG_IN_SSL | NSS_USE_ALG_IN_SSL_KX | + NSS_USE_ALG_IN_SIGNATURE }, { CIPHER_NAME("NONE"), 0 } }; @@ -538,8 +554,82 @@ secmod_getPolicyOptValue(const char *policyValue, int policyValueLength, return SECFailure; } +/* Policy operations: + * Disallow: operation is disallowed by policy. Implies disabled. + * Allow: operation is allowed by policy (but could be disabled). + * Disable: operation is turned off by default (but could be allowed). + * Enable: operation is enabled by default. Implies allowed. + */ +typedef enum { + NSS_DISALLOW, + NSS_ALLOW, + NSS_DISABLE, + NSS_ENABLE +} NSSPolicyOperation; + +/* apply the operator specific policy */ +SECStatus +secmod_setPolicyOperation(SECOidTag oid, NSSPolicyOperation operation, + PRUint32 value) +{ + SECStatus rv = SECSuccess; + switch (operation) { + case NSS_DISALLOW: + /* clear the requested policy bits */ + rv = NSS_SetAlgorithmPolicy(oid, 0, value); + break; + case NSS_ALLOW: + /* set the requested policy bits */ + rv = NSS_SetAlgorithmPolicy(oid, value, 0); + break; + /* enable/disable only apply to SSL cipher suites (future S/MIME). + * Enable/disable is implemented by clearing the DEFAULT_NOT_VALID + * flag, then setting the NSS_USE_DEFAULT_SSL_ENABLE flag to the + * correct value. The ssl policy code will then sort out what to + * set based on ciphers and cipher suite values.*/ + case NSS_DISABLE: + if (value & (NSS_USE_ALG_IN_SSL | NSS_USE_ALG_IN_SSL_KX)) { + /* clear not valid and enable */ + rv = NSS_SetAlgorithmPolicy(oid, 0, + NSS_USE_DEFAULT_NOT_VALID | + NSS_USE_DEFAULT_SSL_ENABLE); + } + break; + case NSS_ENABLE: + if (value & (NSS_USE_ALG_IN_SSL | NSS_USE_ALG_IN_SSL_KX)) { + /* set enable, clear not valid. NOTE: enable implies allow! */ + rv = NSS_SetAlgorithmPolicy(oid, value | NSS_USE_DEFAULT_SSL_ENABLE, + NSS_USE_DEFAULT_NOT_VALID); + } + break; + default: + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + rv = SECFailure; + break; + } + return rv; +} + +const char * +secmod_getOperationString(NSSPolicyOperation operation) +{ + switch (operation) { + case NSS_DISALLOW: + return "disallow"; + case NSS_ALLOW: + return "allow"; + case NSS_DISABLE: + return "disable"; + case NSS_ENABLE: + return "enable"; + default: + break; + } + return "invalid"; +} + static SECStatus -secmod_applyCryptoPolicy(const char *policyString, PRBool allow, +secmod_applyCryptoPolicy(const char *policyString, NSSPolicyOperation operation, PRBool printPolicyFeedback) { const char *cipher, *currentString; @@ -573,18 +663,10 @@ secmod_applyCryptoPolicy(const char *policyString, PRBool allow, for (i = 0; i < PR_ARRAY_SIZE(algOptLists); i++) { const algListsDef *algOptList = &algOptLists[i]; for (j = 0; j < algOptList->entries; j++) { - PRUint32 enable, disable; if (!newValue) { value = algOptList->list[j].val; } - if (allow) { - enable = value; - disable = 0; - } else { - enable = 0; - disable = value; - } - NSS_SetAlgorithmPolicy(algOptList->list[j].oid, enable, disable); + secmod_setPolicyOperation(algOptList->list[j].oid, operation, value); } } continue; @@ -603,20 +685,12 @@ secmod_applyCryptoPolicy(const char *policyString, PRBool allow, if ((newOption || algOpt->name_size == length) && PORT_Strncasecmp(algOpt->name, cipher, name_size) == 0) { PRUint32 value = algOpt->val; - PRUint32 enable, disable; if (newOption) { value = secmod_parsePolicyValue(&cipher[name_size] + 1, length - name_size - 1, printPolicyFeedback); } - if (allow) { - enable = value; - disable = 0; - } else { - enable = 0; - disable = value; - } - rv = NSS_SetAlgorithmPolicy(algOpt->oid, enable, disable); + rv = secmod_setPolicyOperation(algOptList->list[j].oid, operation, value); if (rv != SECSuccess) { /* could not enable option */ /* NSS_SetAlgorithPolicy should have set the error code */ @@ -666,7 +740,7 @@ secmod_applyCryptoPolicy(const char *policyString, PRBool allow, if (unknown && printPolicyFeedback) { PR_SetEnv("NSS_POLICY_FAIL=1"); fprintf(stderr, "NSS-POLICY-FAIL %s: unknown identifier: %.*s\n", - allow ? "allow" : "disallow", length, cipher); + secmod_getOperationString(operation), length, cipher); } } return rv; @@ -709,7 +783,8 @@ secmod_sanityCheckCryptoPolicy(void) anyEnabled = PR_TRUE; fprintf(stderr, "NSS-POLICY-INFO: %s is enabled for SSL\n", algOpt->name); } - if ((algOpt->val & NSS_USE_ALG_IN_CERT_SIGNATURE) && (value & NSS_USE_ALG_IN_CERT_SIGNATURE)) { + if ((algOpt->val & NSS_USE_ALG_IN_CERT_SIGNATURE) && + ((value & NSS_USE_CERT_SIGNATURE_OK) == NSS_USE_CERT_SIGNATURE_OK)) { ++num_sig_enabled; anyEnabled = PR_TRUE; fprintf(stderr, "NSS-POLICY-INFO: %s is enabled for CERT-SIGNATURE\n", algOpt->name); @@ -740,7 +815,7 @@ secmod_sanityCheckCryptoPolicy(void) static SECStatus secmod_parseCryptoPolicy(const char *policyConfig, PRBool printPolicyFeedback) { - char *disallow, *allow; + char *args; SECStatus rv; if (policyConfig == NULL) { @@ -752,20 +827,49 @@ secmod_parseCryptoPolicy(const char *policyConfig, PRBool printPolicyFeedback) if (rv != SECSuccess) { return rv; } - disallow = NSSUTIL_ArgGetParamValue("disallow", policyConfig); - rv = secmod_applyCryptoPolicy(disallow, PR_FALSE, printPolicyFeedback); - if (disallow) - PORT_Free(disallow); + args = NSSUTIL_ArgGetParamValue("disallow", policyConfig); + rv = secmod_applyCryptoPolicy(args, NSS_DISALLOW, printPolicyFeedback); + if (args) + PORT_Free(args); + if (rv != SECSuccess) { + return rv; + } + args = NSSUTIL_ArgGetParamValue("allow", policyConfig); + rv = secmod_applyCryptoPolicy(args, NSS_ALLOW, printPolicyFeedback); + if (args) + PORT_Free(args); + if (rv != SECSuccess) { + return rv; + } + args = NSSUTIL_ArgGetParamValue("disable", policyConfig); + rv = secmod_applyCryptoPolicy(args, NSS_DISABLE, printPolicyFeedback); + if (args) + PORT_Free(args); if (rv != SECSuccess) { return rv; } - allow = NSSUTIL_ArgGetParamValue("allow", policyConfig); - rv = secmod_applyCryptoPolicy(allow, PR_TRUE, printPolicyFeedback); - if (allow) - PORT_Free(allow); + args = NSSUTIL_ArgGetParamValue("enable", policyConfig); + rv = secmod_applyCryptoPolicy(args, NSS_ENABLE, printPolicyFeedback); + if (args) + PORT_Free(args); if (rv != SECSuccess) { return rv; } + /* this has to be last. Everything after this will be a noop */ + if (NSSUTIL_ArgHasFlag("flags", "ssl-lock", policyConfig)) { + PRInt32 locks; + /* don't overwrite other (future) lock flags */ + rv = NSS_OptionGet(NSS_DEFAULT_LOCKS, &locks); + if (rv == SECSuccess) { + rv = NSS_OptionSet(NSS_DEFAULT_LOCKS, locks | NSS_DEFAULT_SSL_LOCK); + } + if (rv != SECSuccess) { + return rv; + } + } + if (NSSUTIL_ArgHasFlag("flags", "policy-lock", policyConfig)) { + NSS_LockPolicy(); + } if (printPolicyFeedback) { /* This helps to distinguish configurations that don't contain any * policy config= statement. */ @@ -818,7 +922,7 @@ SECMOD_CreateModuleEx(const char *library, const char *moduleName, mod->internal = NSSUTIL_ArgHasFlag("flags", "internal", nssc); mod->isFIPS = NSSUTIL_ArgHasFlag("flags", "FIPS", nssc); /* if the system FIPS mode is enabled, force FIPS to be on */ - if (secmod_GetSystemFIPSEnabled()) { + if (SECMOD_GetSystemFIPSEnabled()) { mod->isFIPS = PR_TRUE; } mod->isCritical = NSSUTIL_ArgHasFlag("flags", "critical", nssc); diff --git a/libs/nss/src/lib/pk11wrap/pk11pbe.c b/libs/nss/src/lib/pk11wrap/pk11pbe.c index 39557c0b3..ac0d17659 100644 --- a/libs/nss/src/lib/pk11wrap/pk11pbe.c +++ b/libs/nss/src/lib/pk11wrap/pk11pbe.c @@ -883,7 +883,9 @@ pbe_PK11AlgidToParam(SECAlgorithmID *algid, SECItem *mech) pbeV2_params->ulPrfDataLen = 0; pbeV2_params->saltSource = CKZ_SALT_SPECIFIED; pSalt = ((CK_CHAR_PTR)pbeV2_params) + sizeof(CK_PKCS5_PBKD2_PARAMS); - PORT_Memcpy(pSalt, salt->data, salt->len); + if (salt->data) { + PORT_Memcpy(pSalt, salt->data, salt->len); + } pbeV2_params->pSaltSourceData = pSalt; pbeV2_params->ulSaltSourceDataLen = salt->len; pbeV2_params->iterations = iterations; @@ -899,7 +901,9 @@ pbe_PK11AlgidToParam(SECAlgorithmID *algid, SECItem *mech) pSalt = ((CK_CHAR_PTR)pbe_params) + sizeof(CK_PBE_PARAMS); pbe_params->pSalt = pSalt; - PORT_Memcpy(pSalt, salt->data, salt->len); + if (salt->data) { + PORT_Memcpy(pSalt, salt->data, salt->len); + } pbe_params->ulSaltLen = salt->len; if (iv_len) { pbe_params->pInitVector = @@ -1243,7 +1247,9 @@ PK11_CreatePBEParams(SECItem *salt, SECItem *pwd, unsigned int iterations) if (!pbe_params->pPassword) { goto loser; } - PORT_Memcpy(pbe_params->pPassword, pwd->data, pwd->len); + if (pwd->data) { + PORT_Memcpy(pbe_params->pPassword, pwd->data, pwd->len); + } pbe_params->ulPasswordLen = pwd->len; pbe_params->pSalt = (CK_CHAR_PTR)PORT_ZAlloc(salt->len); diff --git a/libs/nss/src/lib/pk11wrap/pk11priv.h b/libs/nss/src/lib/pk11wrap/pk11priv.h index 8baf069cc..e9977cfdb 100644 --- a/libs/nss/src/lib/pk11wrap/pk11priv.h +++ b/libs/nss/src/lib/pk11wrap/pk11priv.h @@ -3,6 +3,9 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef _PK11PRIV_H_ #define _PK11PRIV_H_ + +#include <stddef.h> + #include "plarena.h" #include "seccomon.h" #include "secoidt.h" @@ -48,7 +51,7 @@ CK_ULONG PK11_ReadULongAttribute(PK11SlotInfo *slot, CK_OBJECT_HANDLE id, char *PK11_MakeString(PLArenaPool *arena, char *space, char *staticSring, int stringLen); PRBool pk11_MatchString(const char *string, - const char *staticString, int staticStringLen); + const char *staticString, size_t staticStringLen); int PK11_MapError(CK_RV error); CK_SESSION_HANDLE PK11_GetRWSession(PK11SlotInfo *slot); void PK11_RestoreROSession(PK11SlotInfo *slot, CK_SESSION_HANDLE rwsession); diff --git a/libs/nss/src/lib/pk11wrap/pk11pub.h b/libs/nss/src/lib/pk11wrap/pk11pub.h index bc6c3169e..e6961e024 100644 --- a/libs/nss/src/lib/pk11wrap/pk11pub.h +++ b/libs/nss/src/lib/pk11wrap/pk11pub.h @@ -9,6 +9,7 @@ #include "secdert.h" #include "keythi.h" #include "certt.h" +#include "pk11hpke.h" #include "pkcs11t.h" #include "secmodt.h" #include "seccomon.h" @@ -267,6 +268,8 @@ CK_MECHANISM_TYPE PK11_MapSignKeyType(KeyType keyType); **********************************************************************/ void PK11_FreeSymKey(PK11SymKey *key); PK11SymKey *PK11_ReferenceSymKey(PK11SymKey *symKey); +PK11SymKey *PK11_ImportDataKey(PK11SlotInfo *slot, CK_MECHANISM_TYPE type, PK11Origin origin, + CK_ATTRIBUTE_TYPE operation, SECItem *key, void *wincx); PK11SymKey *PK11_ImportSymKey(PK11SlotInfo *slot, CK_MECHANISM_TYPE type, PK11Origin origin, CK_ATTRIBUTE_TYPE operation, SECItem *key, void *wincx); PK11SymKey *PK11_ImportSymKeyWithFlags(PK11SlotInfo *slot, @@ -354,6 +357,11 @@ void *PK11_GetSymKeyUserData(PK11SymKey *symKey); SECStatus PK11_PubWrapSymKey(CK_MECHANISM_TYPE type, SECKEYPublicKey *pubKey, PK11SymKey *symKey, SECItem *wrappedKey); +SECStatus PK11_PubWrapSymKeyWithMechanism(SECKEYPublicKey *pubKey, + CK_MECHANISM_TYPE mechType, + SECItem *param, + PK11SymKey *symKey, + SECItem *wrappedKey); SECStatus PK11_WrapSymKey(CK_MECHANISM_TYPE type, SECItem *params, PK11SymKey *wrappingKey, PK11SymKey *symKey, SECItem *wrappedKey); /* move a key to 'slot' optionally set the key attributes according to either @@ -448,6 +456,13 @@ PK11SymKey *PK11_UnwrapSymKeyWithFlagsPerm(PK11SymKey *wrappingKey, */ PK11SymKey *PK11_PubUnwrapSymKey(SECKEYPrivateKey *key, SECItem *wrapppedKey, CK_MECHANISM_TYPE target, CK_ATTRIBUTE_TYPE operation, int keySize); +PK11SymKey *PK11_PubUnwrapSymKeyWithMechanism(SECKEYPrivateKey *key, + CK_MECHANISM_TYPE mechType, + SECItem *param, + SECItem *wrapppedKey, + CK_MECHANISM_TYPE target, + CK_ATTRIBUTE_TYPE operation, + int keySize); PK11SymKey *PK11_PubUnwrapSymKeyWithFlagsPerm(SECKEYPrivateKey *wrappingKey, SECItem *wrappedKey, CK_MECHANISM_TYPE target, CK_ATTRIBUTE_TYPE operation, int keySize, @@ -697,6 +712,7 @@ SECStatus PK11_ImportCertForKeyToSlot(PK11SlotInfo *slot, CERTCertificate *cert, void *wincx); CERTCertificate *PK11_FindBestKEAMatch(CERTCertificate *serverCert, void *wincx); PRBool PK11_FortezzaHasKEA(CERTCertificate *cert); +CK_OBJECT_HANDLE PK11_FindEncodedCertInSlot(PK11SlotInfo *slot, SECItem *derCert, void *wincx); CK_OBJECT_HANDLE PK11_FindCertInSlot(PK11SlotInfo *slot, CERTCertificate *cert, void *wincx); SECStatus PK11_TraverseCertsForNicknameInSlot(SECItem *nickname, @@ -712,6 +728,36 @@ CK_BBOOL PK11_HasAttributeSet(PK11SlotInfo *slot, PRBool haslock /* must be set to PR_FALSE */); /********************************************************************** + * Hybrid Public Key Encryption (draft-05) + **********************************************************************/ +/* + * NOTE: All HPKE functions will fail with SEC_ERROR_INVALID_ALGORITHM + * unless NSS is compiled with NSS_ENABLE_DRAFT_HPKE while spec (and + * implementation) is in draft. The eventual RFC number is an input to + * the key schedule, so applications opting into this MUST be prepared for + * outputs to change when the implementation is updated or finalized. */ + +/* Some of the various HPKE arguments would ideally be const, but the + * underlying PK11 functions take them as non-const. To avoid lying to + * the application with a cast, this idiosyncrasy is exposed. */ +SECStatus PK11_HPKE_ValidateParameters(HpkeKemId kemId, HpkeKdfId kdfId, HpkeAeadId aeadId); +HpkeContext *PK11_HPKE_NewContext(HpkeKemId kemId, HpkeKdfId kdfId, HpkeAeadId aeadId, + PK11SymKey *psk, const SECItem *pskId); +SECStatus PK11_HPKE_Deserialize(const HpkeContext *cx, const PRUint8 *enc, + unsigned int encLen, SECKEYPublicKey **outPubKey); +void PK11_HPKE_DestroyContext(HpkeContext *cx, PRBool freeit); +const SECItem *PK11_HPKE_GetEncapPubKey(const HpkeContext *cx); +SECStatus PK11_HPKE_ExportSecret(const HpkeContext *cx, const SECItem *info, unsigned int L, + PK11SymKey **outKey); +SECStatus PK11_HPKE_Open(HpkeContext *cx, const SECItem *aad, const SECItem *ct, SECItem **outPt); +SECStatus PK11_HPKE_Seal(HpkeContext *cx, const SECItem *aad, const SECItem *pt, SECItem **outCt); +SECStatus PK11_HPKE_Serialize(const SECKEYPublicKey *pk, PRUint8 *buf, unsigned int *len, unsigned int maxLen); +SECStatus PK11_HPKE_SetupS(HpkeContext *cx, const SECKEYPublicKey *pkE, SECKEYPrivateKey *skE, + SECKEYPublicKey *pkR, const SECItem *info); +SECStatus PK11_HPKE_SetupR(HpkeContext *cx, const SECKEYPublicKey *pkR, SECKEYPrivateKey *skR, + const SECItem *enc, const SECItem *info); + +/********************************************************************** * Sign/Verify **********************************************************************/ @@ -939,6 +985,17 @@ PK11_GetLowLevelKeyIDForPrivateKey(SECKEYPrivateKey *key); PRBool SECMOD_HasRootCerts(void); +/********************************************************************** + * Other Utilities + **********************************************************************/ +/* + * Get the state of the system FIPS mode - + * NSS uses this to force FIPS mode if the system bit is on. This returns + * the system state independent of the database state and can be called + * before NSS initializes. + */ +int SECMOD_GetSystemFIPSEnabled(void); + SEC_END_PROTOS #endif diff --git a/libs/nss/src/lib/pk11wrap/pk11skey.c b/libs/nss/src/lib/pk11wrap/pk11skey.c index 6a1e39644..f724fe9b7 100644 --- a/libs/nss/src/lib/pk11wrap/pk11skey.c +++ b/libs/nss/src/lib/pk11wrap/pk11skey.c @@ -6,6 +6,8 @@ * Interfaces. */ +#include <stddef.h> + #include "seccomon.h" #include "secmod.h" #include "nssilock.h" @@ -401,15 +403,19 @@ void PK11_SetWrapKey(PK11SlotInfo *slot, int wrap, PK11SymKey *wrapKey) { PK11_EnterSlotMonitor(slot); - if (wrap < PR_ARRAY_SIZE(slot->refKeys) && - slot->refKeys[wrap] == CK_INVALID_HANDLE) { - /* save the handle and mechanism for the wrapping key */ - /* mark the key and session as not owned by us so they don't get freed - * when the key goes way... that lets us reuse the key later */ - slot->refKeys[wrap] = wrapKey->objectID; - wrapKey->owner = PR_FALSE; - wrapKey->sessionOwner = PR_FALSE; - slot->wrapMechanism = wrapKey->type; + if (wrap >= 0) { + size_t uwrap = (size_t)wrap; + if (uwrap < PR_ARRAY_SIZE(slot->refKeys) && + slot->refKeys[uwrap] == CK_INVALID_HANDLE) { + /* save the handle and mechanism for the wrapping key */ + /* mark the key and session as not owned by us so they don't get + * freed when the key goes way... that lets us reuse the key + * later */ + slot->refKeys[uwrap] = wrapKey->objectID; + wrapKey->owner = PR_FALSE; + wrapKey->sessionOwner = PR_FALSE; + slot->wrapMechanism = wrapKey->type; + } } PK11_ExitSlotMonitor(slot); } @@ -500,10 +506,37 @@ PK11_ImportSymKey(PK11SlotInfo *slot, CK_MECHANISM_TYPE type, keyTemplate, templateCount, key, wincx); return symKey; } +/* Import a PKCS #11 data object and return it as a key. This key is + * only useful in a limited number of mechanisms, such as HKDF. */ +PK11SymKey * +PK11_ImportDataKey(PK11SlotInfo *slot, CK_MECHANISM_TYPE type, PK11Origin origin, + CK_ATTRIBUTE_TYPE operation, SECItem *key, void *wincx) +{ + CK_OBJECT_CLASS ckoData = CKO_DATA; + CK_ATTRIBUTE template[2] = { { CKA_CLASS, (CK_BYTE_PTR)&ckoData, sizeof(ckoData) }, + { CKA_VALUE, (CK_BYTE_PTR)key->data, key->len } }; + CK_OBJECT_HANDLE handle; + PK11GenericObject *genObject; -/* - * turn key bits into an appropriate key object - */ + genObject = PK11_CreateGenericObject(slot, template, PR_ARRAY_SIZE(template), PR_FALSE); + if (genObject == NULL) { + return NULL; + } + handle = PK11_GetObjectHandle(PK11_TypeGeneric, genObject, NULL); + if (handle == CK_INVALID_HANDLE) { + return NULL; + } + /* A note about ownership of the PKCS #11 handle: + * PK11_CreateGenericObject() will not destroy the object it creates + * on Free, For that you want PK11_CreateManagedGenericObject(). + * Below we import the handle into the symKey structure. We pass + * PR_TRUE as the owner so that the symKey will destroy the object + * once it's freed. This is way it's safe to free now. */ + PK11_DestroyGenericObject(genObject); + return PK11_SymKeyFromHandle(slot, NULL, origin, type, handle, PR_TRUE, wincx); +} + +/* turn key bits into an appropriate key object */ PK11SymKey * PK11_ImportSymKeyWithFlags(PK11SlotInfo *slot, CK_MECHANISM_TYPE type, PK11Origin origin, CK_ATTRIBUTE_TYPE operation, SECItem *key, @@ -564,7 +597,7 @@ PK11_FindFixedKey(PK11SlotInfo *slot, CK_MECHANISM_TYPE type, SECItem *keyID, CK_ATTRIBUTE *attrs; CK_BBOOL ckTrue = CK_TRUE; CK_OBJECT_CLASS keyclass = CKO_SECRET_KEY; - int tsize = 0; + size_t tsize = 0; CK_OBJECT_HANDLE key_id; attrs = findTemp; @@ -1242,14 +1275,24 @@ PK11_ConvertSessionSymKeyToTokenSymKey(PK11SymKey *symk, void *wincx) symk->type, newKeyID, PR_FALSE /*owner*/, NULL /*wincx*/); } -/* - * This function does a straight public key wrap (which only RSA can do). - * Use PK11_PubGenKey and PK11_WrapSymKey to implement the FORTEZZA and - * Diffie-Hellman Ciphers. */ +/* This function does a straight public key wrap with the CKM_RSA_PKCS + * mechanism. */ SECStatus PK11_PubWrapSymKey(CK_MECHANISM_TYPE type, SECKEYPublicKey *pubKey, PK11SymKey *symKey, SECItem *wrappedKey) { + CK_MECHANISM_TYPE inferred = pk11_mapWrapKeyType(pubKey->keyType); + return PK11_PubWrapSymKeyWithMechanism(pubKey, inferred, NULL, symKey, + wrappedKey); +} + +/* This function wraps a symmetric key with a public key, such as with the + * CKM_RSA_PKCS and CKM_RSA_PKCS_OAEP mechanisms. */ +SECStatus +PK11_PubWrapSymKeyWithMechanism(SECKEYPublicKey *pubKey, + CK_MECHANISM_TYPE mechType, SECItem *param, + PK11SymKey *symKey, SECItem *wrappedKey) +{ PK11SlotInfo *slot; CK_ULONG len = wrappedKey->len; PK11SymKey *newKey = NULL; @@ -1265,7 +1308,7 @@ PK11_PubWrapSymKey(CK_MECHANISM_TYPE type, SECKEYPublicKey *pubKey, } /* if this slot doesn't support the mechanism, go to a slot that does */ - newKey = pk11_ForceSlot(symKey, type, CKA_ENCRYPT); + newKey = pk11_ForceSlot(symKey, mechType, CKA_ENCRYPT); if (newKey != NULL) { symKey = newKey; } @@ -1276,9 +1319,15 @@ PK11_PubWrapSymKey(CK_MECHANISM_TYPE type, SECKEYPublicKey *pubKey, } slot = symKey->slot; - mechanism.mechanism = pk11_mapWrapKeyType(pubKey->keyType); - mechanism.pParameter = NULL; - mechanism.ulParameterLen = 0; + + mechanism.mechanism = mechType; + if (param == NULL) { + mechanism.pParameter = NULL; + mechanism.ulParameterLen = 0; + } else { + mechanism.pParameter = param->data; + mechanism.ulParameterLen = param->len; + } id = PK11_ImportPublicKey(slot, pubKey, PR_FALSE); if (id == CK_INVALID_HANDLE) { @@ -2374,7 +2423,7 @@ pk11_PubDeriveECKeyWithKDF( key_size = SHA512_LENGTH; break; default: - PORT_Assert(!"Invalid CKD"); + PORT_AssertNotReached("Invalid CKD"); PORT_SetError(SEC_ERROR_INVALID_ALGORITHM); return NULL; } @@ -2850,20 +2899,33 @@ PK11_UnwrapSymKeyWithFlagsPerm(PK11SymKey *wrappingKey, wrappingKey->cx, keyTemplate, templateCount, isPerm); } -/* unwrap a symetric key with a private key. */ +/* unwrap a symmetric key with a private key. Only supports CKM_RSA_PKCS. */ PK11SymKey * PK11_PubUnwrapSymKey(SECKEYPrivateKey *wrappingKey, SECItem *wrappedKey, CK_MECHANISM_TYPE target, CK_ATTRIBUTE_TYPE operation, int keySize) { CK_MECHANISM_TYPE wrapType = pk11_mapWrapKeyType(wrappingKey->keyType); + + return PK11_PubUnwrapSymKeyWithMechanism(wrappingKey, wrapType, NULL, + wrappedKey, target, operation, + keySize); +} + +/* unwrap a symmetric key with a private key with the given parameters. */ +PK11SymKey * +PK11_PubUnwrapSymKeyWithMechanism(SECKEYPrivateKey *wrappingKey, + CK_MECHANISM_TYPE mechType, SECItem *param, + SECItem *wrappedKey, CK_MECHANISM_TYPE target, + CK_ATTRIBUTE_TYPE operation, int keySize) +{ PK11SlotInfo *slot = wrappingKey->pkcs11Slot; if (SECKEY_HAS_ATTRIBUTE_SET(wrappingKey, CKA_PRIVATE)) { PK11_HandlePasswordCheck(slot, wrappingKey->wincx); } - return pk11_AnyUnwrapKey(slot, wrappingKey->pkcs11ID, - wrapType, NULL, wrappedKey, target, operation, keySize, + return pk11_AnyUnwrapKey(slot, wrappingKey->pkcs11ID, mechType, param, + wrappedKey, target, operation, keySize, wrappingKey->wincx, NULL, 0, PR_FALSE); } diff --git a/libs/nss/src/lib/pk11wrap/pk11slot.c b/libs/nss/src/lib/pk11wrap/pk11slot.c index 9e641998d..2451c3639 100644 --- a/libs/nss/src/lib/pk11wrap/pk11slot.c +++ b/libs/nss/src/lib/pk11wrap/pk11slot.c @@ -4,6 +4,9 @@ /* * Deal with PKCS #11 Slots. */ + +#include <stddef.h> + #include "seccomon.h" #include "secmod.h" #include "nssilock.h" @@ -1102,16 +1105,16 @@ PK11_MakeString(PLArenaPool *arena, char *space, */ PRBool pk11_MatchString(const char *string, - const char *staticString, int staticStringLen) + const char *staticString, size_t staticStringLen) { - int i; + size_t i = staticStringLen; - for (i = (staticStringLen - 1); i >= 0; i--) { - if (staticString[i] != ' ') + /* move i to point to the last space */ + while (i > 0) { + if (staticString[i - 1] != ' ') break; + i--; } - /* move i to point to the last space */ - i++; if (strlen(string) == i && memcmp(string, staticString, i) == 0) { return PR_TRUE; @@ -1182,7 +1185,7 @@ pk11_ReadProfileList(PK11SlotInfo *slot) CK_ATTRIBUTE *attrs; CK_BBOOL cktrue = CK_TRUE; CK_OBJECT_CLASS oclass = CKO_PROFILE; - int tsize; + size_t tsize; int objCount; CK_OBJECT_HANDLE *handles = NULL; int i; @@ -1484,7 +1487,7 @@ pk11_isRootSlot(PK11SlotInfo *slot) CK_ATTRIBUTE findTemp[1]; CK_ATTRIBUTE *attrs; CK_OBJECT_CLASS oclass = CKO_NSS_BUILTIN_ROOT_LIST; - int tsize; + size_t tsize; CK_OBJECT_HANDLE handle; attrs = findTemp; @@ -2613,7 +2616,7 @@ SECStatus PK11_ResetToken(PK11SlotInfo *slot, char *sso_pwd) { unsigned char tokenName[32]; - int tokenNameLen; + size_t tokenNameLen; CK_RV crv; /* reconstruct the token name */ diff --git a/libs/nss/src/lib/pk11wrap/pk11util.c b/libs/nss/src/lib/pk11wrap/pk11util.c index d43a687a2..08c793bf3 100644 --- a/libs/nss/src/lib/pk11wrap/pk11util.c +++ b/libs/nss/src/lib/pk11wrap/pk11util.c @@ -95,8 +95,8 @@ SECMOD_Shutdown() return SECSuccess; } -int -secmod_GetSystemFIPSEnabled(void) +PRBool +SECMOD_GetSystemFIPSEnabled(void) { #ifdef LINUX #ifndef NSS_FIPS_DISABLED @@ -106,20 +106,20 @@ secmod_GetSystemFIPSEnabled(void) f = fopen("/proc/sys/crypto/fips_enabled", "r"); if (!f) { - return 0; + return PR_FALSE; } size = fread(&d, 1, sizeof(d), f); fclose(f); if (size != sizeof(d)) { - return 0; + return PR_FALSE; } if (d == '1') { - return 1; + return PR_TRUE; } #endif #endif - return 0; + return PR_FALSE; } /* @@ -455,7 +455,7 @@ SECMOD_DeleteInternalModule(const char *name) SECMODModuleList **mlpp; SECStatus rv = SECFailure; - if (secmod_GetSystemFIPSEnabled() || pendingModule) { + if (SECMOD_GetSystemFIPSEnabled() || pendingModule) { PORT_SetError(SEC_ERROR_MODULE_STUCK); return rv; } @@ -990,7 +990,7 @@ SECMOD_CanDeleteInternalModule(void) #ifdef NSS_FIPS_DISABLED return PR_FALSE; #else - return (PRBool)((pendingModule == NULL) && !secmod_GetSystemFIPSEnabled()); + return (PRBool)((pendingModule == NULL) && !SECMOD_GetSystemFIPSEnabled()); #endif } diff --git a/libs/nss/src/lib/pk11wrap/pk11wrap.gyp b/libs/nss/src/lib/pk11wrap/pk11wrap.gyp index 17de8add4..eebb4ea3c 100644 --- a/libs/nss/src/lib/pk11wrap/pk11wrap.gyp +++ b/libs/nss/src/lib/pk11wrap/pk11wrap.gyp @@ -37,6 +37,7 @@ 'pk11cert.c', 'pk11cxt.c', 'pk11err.c', + 'pk11hpke.c', 'pk11kea.c', 'pk11list.c', 'pk11load.c', @@ -60,7 +61,7 @@ 'defines': [ 'SHLIB_SUFFIX=\"<(dll_suffix)\"', 'SHLIB_PREFIX=\"<(dll_prefix)\"', - 'SHLIB_VERSION=\"3\"', + 'NSS_SHLIB_VERSION=\"3\"', 'SOFTOKEN_SHLIB_VERSION=\"3\"' ] }, diff --git a/libs/nss/src/lib/pk11wrap/secmodi.h b/libs/nss/src/lib/pk11wrap/secmodi.h index a85f94cc2..9f220d6bf 100644 --- a/libs/nss/src/lib/pk11wrap/secmodi.h +++ b/libs/nss/src/lib/pk11wrap/secmodi.h @@ -7,6 +7,9 @@ */ #ifndef _SECMODI_H_ #define _SECMODI_H_ 1 + +#include <stddef.h> + #include "pkcs11.h" #include "nssilock.h" #include "secoidt.h" @@ -90,9 +93,9 @@ CK_RV pk11_notify(CK_SESSION_HANDLE session, CK_NOTIFICATION event, CK_VOID_PTR pdata); void pk11_SignedToUnsigned(CK_ATTRIBUTE *attrib); CK_OBJECT_HANDLE pk11_FindObjectByTemplate(PK11SlotInfo *slot, - CK_ATTRIBUTE *inTemplate, int tsize); + CK_ATTRIBUTE *inTemplate, size_t tsize); CK_OBJECT_HANDLE *pk11_FindObjectsByTemplate(PK11SlotInfo *slot, - CK_ATTRIBUTE *inTemplate, int tsize, int *objCount); + CK_ATTRIBUTE *inTemplate, size_t tsize, int *objCount); #define PK11_GETTAB(x) ((CK_FUNCTION_LIST_3_0_PTR)((x)->functionList)) #define PK11_SETATTRS(x, id, v, l) \ @@ -115,13 +118,6 @@ PK11SymKey *pk11_TokenKeyGenWithFlagsAndKeyType(PK11SlotInfo *slot, CK_MECHANISM_TYPE pk11_GetPBECryptoMechanism(SECAlgorithmID *algid, SECItem **param, SECItem *pwd, PRBool faulty3DES); -/* Get the state of the system FIPS mode */ -/* NSS uses this to force FIPS mode if the system bit is on. Applications which - * use the SECMOD_CanDeleteInteral() to check to see if they can switch to or - * from FIPS mode will automatically be told that they can't swith out of FIPS - * mode */ -int secmod_GetSystemFIPSEnabled(); - extern void pk11sdr_Init(void); extern void pk11sdr_Shutdown(void); diff --git a/libs/nss/src/lib/pkcs12/Makefile b/libs/nss/src/lib/pkcs12/Makefile index 8149184b4..3fd2f50b1 100644 --- a/libs/nss/src/lib/pkcs12/Makefile +++ b/libs/nss/src/lib/pkcs12/Makefile @@ -27,8 +27,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk - ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # ####################################################################### diff --git a/libs/nss/src/lib/pkcs12/config.mk b/libs/nss/src/lib/pkcs12/config.mk deleted file mode 100644 index dc39ee4d6..000000000 --- a/libs/nss/src/lib/pkcs12/config.mk +++ /dev/null @@ -1,16 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/pkcs12/manifest.mn b/libs/nss/src/lib/pkcs12/manifest.mn index 26166ec32..ab54bec43 100644 --- a/libs/nss/src/lib/pkcs12/manifest.mn +++ b/libs/nss/src/lib/pkcs12/manifest.mn @@ -26,6 +26,7 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkcs12 +SHARED_LIBRARY = $(NULL) # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/pkcs7/Makefile b/libs/nss/src/lib/pkcs7/Makefile index a9cebcfec..aae54b1e0 100644 --- a/libs/nss/src/lib/pkcs7/Makefile +++ b/libs/nss/src/lib/pkcs7/Makefile @@ -26,8 +26,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk - ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # ####################################################################### diff --git a/libs/nss/src/lib/pkcs7/certread.c b/libs/nss/src/lib/pkcs7/certread.c index 15094f2d7..3091f9947 100644 --- a/libs/nss/src/lib/pkcs7/certread.c +++ b/libs/nss/src/lib/pkcs7/certread.c @@ -139,11 +139,6 @@ SEC_ReadPKCS7Certs(SECItem *pkcs7Item, CERTImportCertificateFunc f, void *arg) goto done; } - if (contentInfo.content.signedData == NULL) { - PORT_SetError(SEC_ERROR_BAD_DER); - goto done; - } - rv = SECSuccess; certs = contentInfo.content.signedData->certificates; diff --git a/libs/nss/src/lib/pkcs7/config.mk b/libs/nss/src/lib/pkcs7/config.mk deleted file mode 100644 index 36f063f1d..000000000 --- a/libs/nss/src/lib/pkcs7/config.mk +++ /dev/null @@ -1,14 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = diff --git a/libs/nss/src/lib/pkcs7/manifest.mn b/libs/nss/src/lib/pkcs7/manifest.mn index 1a6cad0f7..9ca2d4de5 100644 --- a/libs/nss/src/lib/pkcs7/manifest.mn +++ b/libs/nss/src/lib/pkcs7/manifest.mn @@ -28,6 +28,7 @@ CSRCS = \ $(NULL) LIBRARY_NAME = pkcs7 +SHARED_LIBRARY = $(NULL) # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/pki/Makefile b/libs/nss/src/lib/pki/Makefile index fc78ae92c..3f49eaa45 100644 --- a/libs/nss/src/lib/pki/Makefile +++ b/libs/nss/src/lib/pki/Makefile @@ -4,8 +4,11 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. include manifest.mn + include $(CORE_DEPTH)/coreconf/config.mk -include config.mk -include $(CORE_DEPTH)/coreconf/rules.mk -export:: private_export +ifdef BUILD_IDG +DEFINES += -DNSSDEBUG +endif + +include $(CORE_DEPTH)/coreconf/rules.mk diff --git a/libs/nss/src/lib/pki/config.mk b/libs/nss/src/lib/pki/config.mk deleted file mode 100644 index 2676cd537..000000000 --- a/libs/nss/src/lib/pki/config.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -ifdef BUILD_IDG -DEFINES += -DNSSDEBUG -endif - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - diff --git a/libs/nss/src/lib/pki/manifest.mn b/libs/nss/src/lib/pki/manifest.mn index a7efb8938..98af6b8a7 100644 --- a/libs/nss/src/lib/pki/manifest.mn +++ b/libs/nss/src/lib/pki/manifest.mn @@ -16,9 +16,6 @@ PRIVATE_EXPORTS = \ pkim.h \ $(NULL) -EXPORTS = \ - $(NULL) - MODULE = nss CSRCS = \ @@ -39,7 +36,7 @@ CSRCS = \ REQUIRES = nspr LIBRARY_NAME = nsspki -LIBRARY_VERSION = 3 +SHARED_LIBRARY = $(NULL) # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/pki/pki3hack.c b/libs/nss/src/lib/pki/pki3hack.c index eac4a5705..7fe9113e4 100644 --- a/libs/nss/src/lib/pki/pki3hack.c +++ b/libs/nss/src/lib/pki/pki3hack.c @@ -866,9 +866,9 @@ fill_CERTCertificateFields(NSSCertificate *c, CERTCertificate *cc, PRBool forced CERT_LockCertTempPerm(cc); cc->istemp = PR_FALSE; /* CERT_NewTemp will override this */ cc->isperm = PR_TRUE; /* by default */ - CERT_UnlockCertTempPerm(cc); /* pointer back */ cc->nssCertificate = c; + CERT_UnlockCertTempPerm(cc); if (trust) { /* force the cert type to be recomputed to include trust info */ PRUint32 nsCertType = cert_ComputeCertType(cc); @@ -919,7 +919,10 @@ stan_GetCERTCertificate(NSSCertificate *c, PRBool forceUpdate) nss_SetError(NSS_ERROR_INTERNAL_ERROR); goto loser; } - if (!cc->nssCertificate || forceUpdate) { + CERT_LockCertTempPerm(cc); + NSSCertificate *nssCert = cc->nssCertificate; + CERT_UnlockCertTempPerm(cc); + if (!nssCert || forceUpdate) { fill_CERTCertificateFields(c, cc, forceUpdate); } else if (CERT_GetCertTrust(cc, &certTrust) != SECSuccess) { CERTCertTrust *trust; @@ -1018,7 +1021,9 @@ STAN_GetNSSCertificate(CERTCertificate *cc) nssCryptokiInstance *instance; nssPKIObject *pkiob; NSSArena *arena; + CERT_LockCertTempPerm(cc); c = cc->nssCertificate; + CERT_UnlockCertTempPerm(cc); if (c) { return c; } @@ -1083,7 +1088,9 @@ STAN_GetNSSCertificate(CERTCertificate *cc) nssPKIObject_AddInstance(&c->object, instance); } c->decoding = create_decoded_pkix_cert_from_nss3cert(NULL, cc); + CERT_LockCertTempPerm(cc); cc->nssCertificate = c; + CERT_UnlockCertTempPerm(cc); return c; } diff --git a/libs/nss/src/lib/pki/tdcache.c b/libs/nss/src/lib/pki/tdcache.c index 385b8e4bc..8fb263b7d 100644 --- a/libs/nss/src/lib/pki/tdcache.c +++ b/libs/nss/src/lib/pki/tdcache.c @@ -74,7 +74,7 @@ log_cert_ref(const char *msg, NSSCertificate *c) /* should it live in its own arena? */ struct nssTDCertificateCacheStr { - PZLock *lock; + PZLock *lock; /* Must not be held when calling nssSlot_IsTokenPresent. See bug 1625791. */ NSSArena *arena; nssHash *issuerAndSN; nssHash *subject; @@ -713,6 +713,14 @@ add_cert_to_cache( NSSCertificate *rvCert = NULL; NSSUTF8 *certNickname = nssCertificate_GetNickname(cert, NULL); + /* Set cc->trust and cc->nssCertificate before taking td->cache->lock. + * Otherwise, the sorter in add_subject_entry may eventually call + * nssSlot_IsTokenPresent, which must not occur while the cache lock + * is held. See bugs 1625791 and 1651564 for details. */ + if (cert->type == NSSCertificateType_PKIX) { + (void)STAN_GetCERTCertificate(cert); + } + PZ_Lock(td->cache->lock); /* If it exists in the issuer/serial hash, it's already in all */ ce = (cache_entry *)nssHash_Lookup(td->cache->issuerAndSN, cert); diff --git a/libs/nss/src/lib/smime/config.mk b/libs/nss/src/lib/smime/config.mk index 85d39e825..76aab7544 100644 --- a/libs/nss/src/lib/smime/config.mk +++ b/libs/nss/src/lib/smime/config.mk @@ -7,13 +7,6 @@ RELEASE_LIBS = $(TARGETS) ifeq (,$(filter-out WIN%,$(OS_TARGET))) -# don't want the 32 in the shared library name -SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) - -RES = $(OBJDIR)/smime.res -RESNAME = smime.rc - ifdef NS_USE_GCC EXTRA_SHARED_LIBS += \ -L$(DIST)/lib \ diff --git a/libs/nss/src/lib/smime/manifest.mn b/libs/nss/src/lib/smime/manifest.mn index e049d8873..f453d2594 100644 --- a/libs/nss/src/lib/smime/manifest.mn +++ b/libs/nss/src/lib/smime/manifest.mn @@ -17,7 +17,6 @@ PRIVATE_EXPORTS = \ $(NULL) MODULE = nss -MAPFILE = $(OBJDIR)/smime.def CSRCS = \ cmsarray.c \ @@ -46,6 +45,7 @@ CSRCS = \ LIBRARY_NAME = smime LIBRARY_VERSION = 3 +MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/softoken/Makefile b/libs/nss/src/lib/softoken/Makefile index 90a9da263..68ad05753 100644 --- a/libs/nss/src/lib/softoken/Makefile +++ b/libs/nss/src/lib/softoken/Makefile @@ -56,7 +56,6 @@ endif # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export # indicates dependency on freebl static lib $(SHARED_LIBRARY): $(CRYPTOLIB) @@ -67,11 +66,10 @@ $(SHARED_LIBRARY): $(CRYPTOLIB) ifeq ($(OS_TARGET)$(OS_RELEASE),AIX4.3) ifeq ($(USE_64),1) ifndef BUILD_OPT -$(OBJDIR)/pkcs11.o: pkcs11.c - @$(MAKE_OBJDIR) +$(OBJDIR)/pkcs11.o: pkcs11.c | $$(@D)/d $(CC) -o $@ -c -O2 $(CFLAGS) $< -$(OBJDIR)/pkcs11c.o: pkcs11c.c - @$(MAKE_OBJDIR) + +$(OBJDIR)/pkcs11c.o: pkcs11c.c | $$(@D)/d $(CC) -o $@ -c -O2 $(CFLAGS) $< endif endif diff --git a/libs/nss/src/lib/softoken/config.mk b/libs/nss/src/lib/softoken/config.mk index 2924b24f8..14ea5d6e4 100644 --- a/libs/nss/src/lib/softoken/config.mk +++ b/libs/nss/src/lib/softoken/config.mk @@ -13,13 +13,6 @@ EXTRA_LIBS += \ # can't do this in manifest.mn because OS_TARGET isn't defined there. ifeq (,$(filter-out WIN%,$(OS_TARGET))) -# don't want the 32 in the shared library name -SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) - -RES = $(OBJDIR)/$(LIBRARY_NAME).res -RESNAME = $(LIBRARY_NAME).rc - ifdef NS_USE_GCC EXTRA_SHARED_LIBS += \ -L$(SQLITE_LIB_DIR) \ diff --git a/libs/nss/src/lib/softoken/fipstest.c b/libs/nss/src/lib/softoken/fipstest.c index e765cde4c..aa4992cd2 100644 --- a/libs/nss/src/lib/softoken/fipstest.c +++ b/libs/nss/src/lib/softoken/fipstest.c @@ -13,6 +13,7 @@ #include "secoid.h" #include "secerr.h" #include "pkcs11i.h" +#include "lowpbe.h" /* * different platforms have different ways of calling and initial entry point @@ -581,6 +582,106 @@ rsa_loser: return (SECFailure); } +static SECStatus +sftk_fips_HKDF_PowerUpSelfTest(void) +{ + SECStatus status; + static const unsigned char base_key[] = { + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, + 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, + 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, + 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, + 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, + 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, + 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, + 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f + }; + static const unsigned char known_hkdf_sha256_key[] = { + 0xdd, 0xdb, 0xeb, 0xe5, 0x6d, 0xd2, 0x96, 0xa4, + 0x07, 0xc5, 0x7d, 0xda, 0x31, 0x56, 0x8d, 0xa5, + 0x41, 0x3e, 0x90, 0xd4, 0xe6, 0x98, 0xeb, 0xf8, + 0x5a, 0x49, 0x7f, 0x38, 0xef, 0x01, 0x8a, 0xe5, + 0xda, 0x36, 0xe5, 0xcf, 0x21, 0xe3, 0x9f, 0xc3, + 0x32, 0xb3, 0x1e, 0xf6, 0xc5, 0x10, 0x4c, 0x86, + 0x53, 0x5e, 0x6f, 0xe0, 0x63, 0x6e, 0x43, 0x33, + 0x61, 0x35, 0xf4, 0x17, 0x10, 0x77, 0x75, 0x2a + }; +/* current NIST IG's say we only need to test one instance + * of kdfs, keep these others around in case the guidance + * changes */ +#ifdef NSS_FULL_POST + static const unsigned char known_hkdf_sha384_key[] = { + 0x35, 0x64, 0xc4, 0xa1, 0xcc, 0xc1, 0xdc, 0xe4, + 0xe2, 0xca, 0x51, 0xae, 0xe8, 0x92, 0x88, 0x30, + 0x8b, 0xb0, 0x2b, 0xac, 0x00, 0x15, 0xac, 0x15, + 0x97, 0xc9, 0xf4, 0x6b, 0xf6, 0x3f, 0x97, 0xea, + 0x48, 0x55, 0x38, 0x25, 0x06, 0x5d, 0x91, 0x64, + 0xbd, 0x09, 0xf3, 0x44, 0xbc, 0x82, 0xbe, 0xdb, + 0x5c, 0xd7, 0xf2, 0x24, 0xa5, 0x55, 0x8d, 0xa9, + 0xa8, 0x85, 0xde, 0x8c, 0x33, 0xe0, 0x4d, 0xc3 + }; + static const unsigned char known_hkdf_sha512_key[] = { + 0x63, 0x4e, 0xbc, 0x42, 0xb3, 0x56, 0x74, 0x7d, + 0x1b, 0x55, 0xf0, 0x34, 0x54, 0xcb, 0x6d, 0x58, + 0x39, 0x96, 0x10, 0xda, 0x03, 0x20, 0x8f, 0x77, + 0x0d, 0xb4, 0xf7, 0xf6, 0x67, 0x0d, 0x5b, 0x6b, + 0xd0, 0x30, 0xc4, 0xdd, 0x67, 0x61, 0x5d, 0x9a, + 0xf5, 0x18, 0x6e, 0x1b, 0x60, 0x97, 0xc2, 0x4d, + 0x23, 0x43, 0x69, 0xe6, 0x3b, 0xa5, 0xdf, 0xe9, + 0x7c, 0xf1, 0x87, 0x48, 0x6f, 0xb9, 0xd3, 0x02 + }; +#endif + unsigned char outBytes[64] = { 0 }; + + CK_HKDF_PARAMS hkdf_params; + + hkdf_params.bExpand = CK_TRUE; + hkdf_params.bExtract = CK_TRUE; + hkdf_params.ulSaltType = CKF_HKDF_SALT_DATA; + hkdf_params.pSalt = (CK_BYTE_PTR)base_key; + hkdf_params.ulSaltLen = sizeof(base_key); + hkdf_params.pInfo = (CK_BYTE_PTR)base_key; + hkdf_params.ulInfoLen = sizeof(base_key); + + /**************************************************/ + /* HKDF tests */ + /**************************************************/ + + hkdf_params.prfHashMechanism = CKM_SHA256_HMAC; + status = sftk_HKDF(&hkdf_params, CK_INVALID_HANDLE, NULL, + base_key, 32, NULL, outBytes, sizeof(outBytes), + PR_TRUE, PR_TRUE); + if ((status != SECSuccess) || + PORT_Memcmp(outBytes, known_hkdf_sha256_key, sizeof(outBytes)) != 0) { + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return (SECFailure); + } + +#ifdef NSS_FULL_POST + hkdf_params.prfHashMechanism = CKM_SHA384_HMAC; + status = sftk_HKDF(&hkdf_params, CK_INVALID_HANDLE, NULL, + base_key, 48, NULL, outBytes, sizeof(outBytes), + PR_TRUE, PR_TRUE); + if ((status != SECSuccess) || + PORT_Memcmp(outBytes, known_hkdf_sha384_key, sizeof(outBytes)) != 0) { + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return (SECFailure); + } + + hkdf_params.prfHashMechanism = CKM_SHA512_HMAC; + status = sftk_HKDF(&hkdf_params, CK_INVALID_HANDLE, NULL, + base_key, 64, NULL, outBytes, sizeof(outBytes), + PR_TRUE, PR_TRUE); + if ((status != SECSuccess) || + PORT_Memcmp(outBytes, known_hkdf_sha512_key, sizeof(outBytes)) != 0) { + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return (SECFailure); + } +#endif + + return (SECSuccess); +} + static PRBool sftk_self_tests_ran = PR_FALSE; static PRBool sftk_self_tests_success = PR_FALSE; @@ -631,6 +732,22 @@ sftk_startup_tests(void) if (rv != SECSuccess) { return; } + + rv = sftk_fips_SP800_108_PowerUpSelfTests(); + if (rv != SECSuccess) { + return; + } + + rv = sftk_fips_HKDF_PowerUpSelfTest(); + if (rv != SECSuccess) { + return; + } + + rv = sftk_fips_pbkdf_PowerUpSelfTests(); + if (rv != SECSuccess) { + return; + } + sftk_self_tests_success = PR_TRUE; } diff --git a/libs/nss/src/lib/softoken/kbkdf.c b/libs/nss/src/lib/softoken/kbkdf.c index 15761601a..b4544c432 100644 --- a/libs/nss/src/lib/softoken/kbkdf.c +++ b/libs/nss/src/lib/softoken/kbkdf.c @@ -90,7 +90,7 @@ kbkdf_LoadParameters(CK_MECHANISM_TYPE mech, CK_MECHANISM_PTR pMechanism, CK_SP8 } static CK_RV -kbkdf_ValidateParameter(CK_MECHANISM_TYPE mech, CK_PRF_DATA_PARAM_PTR data) +kbkdf_ValidateParameter(CK_MECHANISM_TYPE mech, const CK_PRF_DATA_PARAM *data) { /* This function validates that the passed data parameter (data) conforms * to PKCS#11 v3.0's expectations for KDF parameters. This depends both on @@ -265,7 +265,7 @@ failure: } static CK_RV -kbkdf_ValidateParameters(CK_MECHANISM_TYPE mech, CK_SP800_108_KDF_PARAMS_PTR params, CK_ULONG keySize) +kbkdf_ValidateParameters(CK_MECHANISM_TYPE mech, const CK_SP800_108_KDF_PARAMS *params, CK_ULONG keySize) { CK_RV ret = CKR_MECHANISM_PARAM_INVALID; int param_type_count[5] = { 0, 0, 0, 0, 0 }; @@ -344,7 +344,7 @@ kbkdf_ValidateParameters(CK_MECHANISM_TYPE mech, CK_SP800_108_KDF_PARAMS_PTR par /* [ section: parameter helpers ] */ static CK_VOID_PTR -kbkdf_FindParameter(CK_SP800_108_KDF_PARAMS_PTR params, CK_PRF_DATA_TYPE type) +kbkdf_FindParameter(const CK_SP800_108_KDF_PARAMS *params, CK_PRF_DATA_TYPE type) { for (size_t offset = 0; offset < params->ulNumberOfDataParams; offset++) { if (params->pDataParams[offset].type == type) { @@ -392,7 +392,7 @@ kbkdf_GetDerivedKeySize(CK_DERIVED_KEY_PTR derived_key) } static CK_RV -kbkdf_CalculateLength(CK_SP800_108_KDF_PARAMS_PTR params, sftk_MACCtx *ctx, CK_ULONG ret_key_size, PRUint64 *output_bitlen, size_t *buffer_length) +kbkdf_CalculateLength(const CK_SP800_108_KDF_PARAMS *params, sftk_MACCtx *ctx, CK_ULONG ret_key_size, PRUint64 *output_bitlen, size_t *buffer_length) { /* Two cases: either we have additional derived keys or we don't. In the * case that we don't, the length of the derivation is the size of the @@ -465,7 +465,7 @@ kbkdf_CalculateLength(CK_SP800_108_KDF_PARAMS_PTR params, sftk_MACCtx *ctx, CK_U } static CK_RV -kbkdf_CalculateIterations(CK_MECHANISM_TYPE mech, CK_SP800_108_KDF_PARAMS_PTR params, sftk_MACCtx *ctx, size_t buffer_length, PRUint32 *num_iterations) +kbkdf_CalculateIterations(CK_MECHANISM_TYPE mech, const CK_SP800_108_KDF_PARAMS *params, sftk_MACCtx *ctx, size_t buffer_length, PRUint32 *num_iterations) { CK_SP800_108_COUNTER_FORMAT_PTR param_ptr = NULL; PRUint64 iteration_count; @@ -519,7 +519,7 @@ kbkdf_CalculateIterations(CK_MECHANISM_TYPE mech, CK_SP800_108_KDF_PARAMS_PTR pa } static CK_RV -kbkdf_AddParameters(CK_MECHANISM_TYPE mech, sftk_MACCtx *ctx, CK_SP800_108_KDF_PARAMS *params, PRUint32 counter, PRUint64 length, unsigned char *chaining_prf, size_t chaining_prf_len, CK_PRF_DATA_TYPE exclude) +kbkdf_AddParameters(CK_MECHANISM_TYPE mech, sftk_MACCtx *ctx, const CK_SP800_108_KDF_PARAMS *params, PRUint32 counter, PRUint64 length, const unsigned char *chaining_prf, size_t chaining_prf_len, CK_PRF_DATA_TYPE exclude) { size_t offset = 0; CK_RV ret = CKR_OK; @@ -749,7 +749,7 @@ kbkdf_SaveKeys(CK_MECHANISM_TYPE mech, CK_SESSION_HANDLE hSession, CK_SP800_108_ /* [ section: KDFs ] */ static CK_RV -kbkdf_CounterRaw(CK_SP800_108_KDF_PARAMS_PTR params, sftk_MACCtx *ctx, unsigned char *ret_buffer, size_t buffer_length, PRUint64 output_bitlen) +kbkdf_CounterRaw(const CK_SP800_108_KDF_PARAMS *params, sftk_MACCtx *ctx, unsigned char *ret_buffer, size_t buffer_length, PRUint64 output_bitlen) { CK_RV ret = CKR_OK; @@ -837,7 +837,7 @@ kbkdf_CounterRaw(CK_SP800_108_KDF_PARAMS_PTR params, sftk_MACCtx *ctx, unsigned } static CK_RV -kbkdf_FeedbackRaw(CK_SP800_108_KDF_PARAMS_PTR params, unsigned char *initial_value, CK_ULONG initial_value_length, sftk_MACCtx *ctx, unsigned char *ret_buffer, size_t buffer_length, PRUint64 output_bitlen) +kbkdf_FeedbackRaw(const CK_SP800_108_KDF_PARAMS *params, const unsigned char *initial_value, CK_ULONG initial_value_length, sftk_MACCtx *ctx, unsigned char *ret_buffer, size_t buffer_length, PRUint64 output_bitlen) { CK_RV ret = CKR_OK; @@ -859,7 +859,7 @@ kbkdf_FeedbackRaw(CK_SP800_108_KDF_PARAMS_PTR params, unsigned char *initial_val * chaining in this KDF. Note that we have to make it large enough to * fit the output of the PRF, but we can delay its actual creation until * the first PRF invocation. Until then, point to the IV value. */ - unsigned char *chaining_value = initial_value; + unsigned char *chaining_value = (unsigned char *)initial_value; /* Size of the chaining value discussed above. Defaults to the size of * the IV value. */ @@ -962,7 +962,7 @@ finish: } static CK_RV -kbkdf_PipelineRaw(CK_SP800_108_KDF_PARAMS_PTR params, sftk_MACCtx *ctx, unsigned char *ret_buffer, size_t buffer_length, PRUint64 output_bitlen) +kbkdf_PipelineRaw(const CK_SP800_108_KDF_PARAMS *params, sftk_MACCtx *ctx, unsigned char *ret_buffer, size_t buffer_length, PRUint64 output_bitlen) { CK_RV ret = CKR_OK; @@ -1109,31 +1109,17 @@ finish: return ret; } -/* [ section: PKCS#11 entry ] */ - -CK_RV -kbkdf_Dispatch(CK_MECHANISM_TYPE mech, CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, SFTKObject *prf_key, SFTKObject *ret_key, CK_ULONG ret_key_size) +static CK_RV +kbkdf_RawDispatch(CK_MECHANISM_TYPE mech, + const CK_SP800_108_KDF_PARAMS *kdf_params, + const CK_BYTE *initial_value, + CK_ULONG initial_value_length, + SFTKObject *prf_key, const unsigned char *prf_key_bytes, + unsigned int prf_key_length, unsigned char **out_key_bytes, + size_t *out_key_length, unsigned int *mac_size, + CK_ULONG ret_key_size) { - /* This handles boilerplate common to all KBKDF types. Instead of placing - * this in pkcs11c.c, place it here to reduce clutter. */ - CK_RV ret; - - /* Assumptions about our calling environment. */ - PR_ASSERT(pMechanism != NULL && prf_key != NULL && ret_key != NULL); - - /* Validate that the caller passed parameters. */ - if (pMechanism->pParameter == NULL) { - return CKR_MECHANISM_PARAM_INVALID; - } - - /* Create a common set of parameters to use for all KDF types. This - * separates out the KDF parameters from the Feedback-specific IV, - * allowing us to use a common type for all calls. */ - CK_SP800_108_KDF_PARAMS kdf_params = { 0 }; - CK_BYTE_PTR initial_value = NULL; - CK_ULONG initial_value_length = 0; - /* Context for our underlying PRF function. * * Zeroing context required unconditional call of sftk_MAC_Destroy. @@ -1168,28 +1154,27 @@ kbkdf_Dispatch(CK_MECHANISM_TYPE mech, CK_SESSION_HANDLE hSession, CK_MECHANISM_ */ PRUint64 output_bitlen = 0; - /* Split Feedback-specific IV from remaining KDF parameters. */ - ret = kbkdf_LoadParameters(mech, pMechanism, &kdf_params, &initial_value, &initial_value_length); - if (ret != CKR_OK) { - goto finish; - } - /* First validate our passed input parameters against PKCS#11 v3.0 * and NIST SP800-108 requirements. */ - ret = kbkdf_ValidateParameters(mech, &kdf_params, ret_key_size); + ret = kbkdf_ValidateParameters(mech, kdf_params, ret_key_size); if (ret != CKR_OK) { goto finish; } /* Initialize the underlying PRF state. */ - ret = sftk_MAC_Init(&ctx, kdf_params.prfType, prf_key); + if (prf_key) { + ret = sftk_MAC_Init(&ctx, kdf_params->prfType, prf_key); + } else { + ret = sftk_MAC_InitRaw(&ctx, kdf_params->prfType, prf_key_bytes, + prf_key_length, PR_TRUE); + } if (ret != CKR_OK) { goto finish; } /* Compute the size of our output buffer based on passed parameters and * the output size of the underlying PRF. */ - ret = kbkdf_CalculateLength(&kdf_params, &ctx, ret_key_size, &output_bitlen, &buffer_length); + ret = kbkdf_CalculateLength(kdf_params, &ctx, ret_key_size, &output_bitlen, &buffer_length); if (ret != CKR_OK) { goto finish; } @@ -1205,15 +1190,15 @@ kbkdf_Dispatch(CK_MECHANISM_TYPE mech, CK_SESSION_HANDLE hSession, CK_MECHANISM_ switch (mech) { case CKM_NSS_SP800_108_COUNTER_KDF_DERIVE_DATA: /* fall through */ case CKM_SP800_108_COUNTER_KDF: - ret = kbkdf_CounterRaw(&kdf_params, &ctx, output_buffer, buffer_length, output_bitlen); + ret = kbkdf_CounterRaw(kdf_params, &ctx, output_buffer, buffer_length, output_bitlen); break; case CKM_NSS_SP800_108_FEEDBACK_KDF_DERIVE_DATA: /* fall through */ case CKM_SP800_108_FEEDBACK_KDF: - ret = kbkdf_FeedbackRaw(&kdf_params, initial_value, initial_value_length, &ctx, output_buffer, buffer_length, output_bitlen); + ret = kbkdf_FeedbackRaw(kdf_params, initial_value, initial_value_length, &ctx, output_buffer, buffer_length, output_bitlen); break; case CKM_NSS_SP800_108_DOUBLE_PIPELINE_KDF_DERIVE_DATA: /* fall through */ case CKM_SP800_108_DOUBLE_PIPELINE_KDF: - ret = kbkdf_PipelineRaw(&kdf_params, &ctx, output_buffer, buffer_length, output_bitlen); + ret = kbkdf_PipelineRaw(kdf_params, &ctx, output_buffer, buffer_length, output_bitlen); break; default: /* Shouldn't happen unless NIST introduces a new KBKDF type. */ @@ -1226,8 +1211,65 @@ kbkdf_Dispatch(CK_MECHANISM_TYPE mech, CK_SESSION_HANDLE hSession, CK_MECHANISM_ goto finish; } + *out_key_bytes = output_buffer; + *out_key_length = buffer_length; + *mac_size = ctx.mac_size; + + output_buffer = NULL; /* returning the buffer, don't zero and free it */ + +finish: + PORT_ZFree(output_buffer, buffer_length); + + /* Free the PRF. This should handle clearing all sensitive information. */ + sftk_MAC_Destroy(&ctx, PR_FALSE); + return ret; +} + +/* [ section: PKCS#11 entry ] */ + +CK_RV +kbkdf_Dispatch(CK_MECHANISM_TYPE mech, CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, SFTKObject *prf_key, SFTKObject *ret_key, CK_ULONG ret_key_size) +{ + /* This handles boilerplate common to all KBKDF types. Instead of placing + * this in pkcs11c.c, place it here to reduce clutter. */ + + CK_RV ret; + + /* Assumptions about our calling environment. */ + PR_ASSERT(pMechanism != NULL && prf_key != NULL && ret_key != NULL); + + /* Validate that the caller passed parameters. */ + if (pMechanism->pParameter == NULL) { + return CKR_MECHANISM_PARAM_INVALID; + } + + /* Create a common set of parameters to use for all KDF types. This + * separates out the KDF parameters from the Feedback-specific IV, + * allowing us to use a common type for all calls. */ + CK_SP800_108_KDF_PARAMS kdf_params = { 0 }; + CK_BYTE_PTR initial_value = NULL; + CK_ULONG initial_value_length = 0; + unsigned char *output_buffer = NULL; + size_t buffer_length = 0; + unsigned int mac_size = 0; + + /* Split Feedback-specific IV from remaining KDF parameters. */ + ret = kbkdf_LoadParameters(mech, pMechanism, &kdf_params, &initial_value, &initial_value_length); + if (ret != CKR_OK) { + goto finish; + } + /* let rawDispatch handle the rest. We split this out so we could + * handle the POST test without accessing pkcs #11 objects. */ + ret = kbkdf_RawDispatch(mech, &kdf_params, initial_value, + initial_value_length, prf_key, NULL, 0, + &output_buffer, &buffer_length, &mac_size, + ret_key_size); + if (ret != CKR_OK) { + goto finish; + } + /* Write the output of the PRF into the appropriate keys. */ - ret = kbkdf_SaveKeys(mech, hSession, &kdf_params, output_buffer, buffer_length, ctx.mac_size, ret_key, ret_key_size); + ret = kbkdf_SaveKeys(mech, hSession, &kdf_params, output_buffer, buffer_length, mac_size, ret_key, ret_key_size); if (ret != CKR_OK) { goto finish; } @@ -1235,8 +1277,242 @@ kbkdf_Dispatch(CK_MECHANISM_TYPE mech, CK_SESSION_HANDLE hSession, CK_MECHANISM_ finish: PORT_ZFree(output_buffer, buffer_length); - /* Free the PRF. This should handle clearing all sensitive information. */ - sftk_MAC_Destroy(&ctx, PR_FALSE); - return ret; } + +struct sftk_SP800_Test_struct { + CK_MECHANISM_TYPE mech; + CK_SP800_108_KDF_PARAMS kdf_params; + unsigned int expected_mac_size; + unsigned int ret_key_length; + const unsigned char expected_key_bytes[64]; +}; + +static const CK_SP800_108_COUNTER_FORMAT counter_32 = { 0, 32 }; +static const CK_PRF_DATA_PARAM counter_32_data = + { CK_SP800_108_ITERATION_VARIABLE, (CK_VOID_PTR)&counter_32, sizeof(counter_32) }; + +#ifdef NSS_FULL_POST +static const CK_SP800_108_COUNTER_FORMAT counter_16 = { 0, 16 }; +static const CK_PRF_DATA_PARAM counter_16_data = + { CK_SP800_108_ITERATION_VARIABLE, (CK_VOID_PTR)&counter_16, sizeof(counter_16) }; +static const CK_PRF_DATA_PARAM counter_null_data = + { CK_SP800_108_ITERATION_VARIABLE, NULL, 0 }; +#endif + +static const struct sftk_SP800_Test_struct sftk_SP800_Tests[] = + { +#ifdef NSS_FULL_POST + { + CKM_SP800_108_COUNTER_KDF, + { CKM_AES_CMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_16_data, 0, NULL }, + 16, + 64, + { 0x7b, 0x1c, 0xe7, 0xf3, 0x14, 0x67, 0x15, 0xdd, + 0xde, 0x0c, 0x09, 0x46, 0x3f, 0x47, 0x7b, 0xa6, + 0xb8, 0xba, 0x40, 0x07, 0x7c, 0xe3, 0x19, 0x53, + 0x26, 0xac, 0x4c, 0x2e, 0x2b, 0x37, 0x41, 0xe4, + 0x1b, 0x01, 0x3f, 0x2f, 0x2d, 0x16, 0x95, 0xee, + 0xeb, 0x7e, 0x72, 0x7d, 0xa4, 0xab, 0x2e, 0x67, + 0x1d, 0xef, 0x6f, 0xa2, 0xc6, 0xee, 0x3c, 0xcf, + 0xef, 0x88, 0xfd, 0x5c, 0x1d, 0x7b, 0xa0, 0x5a }, + }, + { + CKM_SP800_108_COUNTER_KDF, + { CKM_SHA384_HMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_32_data, 0, NULL }, + 48, + 64, + { 0xe6, 0x62, 0xa4, 0x32, 0x5c, 0xe4, 0xc2, 0x28, + 0x73, 0x8a, 0x5d, 0x94, 0xe7, 0x05, 0xe0, 0x5a, + 0x71, 0x61, 0xb2, 0x3c, 0x51, 0x28, 0x03, 0x1d, + 0xa7, 0xf5, 0x10, 0x83, 0x34, 0xdb, 0x11, 0x73, + 0x92, 0xa6, 0x79, 0x74, 0x81, 0x5d, 0x22, 0x7e, + 0x8d, 0xf2, 0x59, 0x14, 0x56, 0x60, 0xcf, 0xb2, + 0xb3, 0xfd, 0x46, 0xfd, 0x9b, 0x74, 0xfe, 0x4a, + 0x09, 0x30, 0x4a, 0xdf, 0x07, 0x43, 0xfe, 0x85 }, + }, + { + CKM_SP800_108_COUNTER_KDF, + { CKM_SHA512_HMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_32_data, 0, NULL }, + 64, + 64, + { 0xb0, 0x78, 0x36, 0xe1, 0x15, 0xd6, 0xf0, 0xac, + 0x68, 0x7b, 0x42, 0xd3, 0xb6, 0x82, 0x51, 0xad, + 0x95, 0x0a, 0x69, 0x88, 0x84, 0xc2, 0x2e, 0x07, + 0x34, 0x62, 0x8d, 0x42, 0x72, 0x0f, 0x22, 0xe6, + 0xd5, 0x7f, 0x80, 0x15, 0xe6, 0x84, 0x00, 0x65, + 0xef, 0x64, 0x77, 0x29, 0xd6, 0x3b, 0xc7, 0x9a, + 0x15, 0x6d, 0x36, 0xf3, 0x96, 0xc9, 0x14, 0x3f, + 0x2d, 0x4a, 0x7c, 0xdb, 0xc3, 0x6c, 0x3d, 0x6a }, + }, + { + CKM_SP800_108_FEEDBACK_KDF, + { CKM_AES_CMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_null_data, 0, NULL }, + 16, + 64, + { 0xc0, 0xa0, 0x23, 0x96, 0x16, 0x4d, 0xd6, 0xbd, + 0x2a, 0x75, 0x8e, 0x72, 0xf5, 0xc3, 0xa0, 0xb8, + 0x78, 0x83, 0x15, 0x21, 0x34, 0xd3, 0xd8, 0x71, + 0xc9, 0xe7, 0x4b, 0x20, 0xb7, 0x65, 0x5b, 0x13, + 0xbc, 0x85, 0x54, 0xe3, 0xb6, 0xee, 0x73, 0xd5, + 0xf2, 0xa0, 0x94, 0x1a, 0x79, 0x66, 0x3b, 0x1e, + 0x67, 0x3e, 0x69, 0xa4, 0x12, 0x40, 0xa9, 0xda, + 0x8d, 0x14, 0xb1, 0xce, 0xf1, 0x4b, 0x79, 0x4e }, + }, + { + CKM_SP800_108_FEEDBACK_KDF, + { CKM_SHA256_HMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_null_data, 0, NULL }, + 32, + 64, + { 0x99, 0x9b, 0x08, 0x79, 0x14, 0x2e, 0x58, 0x34, + 0xd7, 0x92, 0xa7, 0x7e, 0x7f, 0xc2, 0xf0, 0x34, + 0xa3, 0x4e, 0x33, 0xf0, 0x63, 0x95, 0x2d, 0xad, + 0xbf, 0x3b, 0xcb, 0x6d, 0x4e, 0x07, 0xd9, 0xe9, + 0xbd, 0xbd, 0x77, 0x54, 0xe1, 0xa3, 0x36, 0x26, + 0xcd, 0xb1, 0xf9, 0x2d, 0x80, 0x68, 0xa2, 0x01, + 0x4e, 0xbf, 0x35, 0xec, 0x65, 0xae, 0xfd, 0x71, + 0xa6, 0xd7, 0x62, 0x26, 0x2c, 0x3f, 0x73, 0x63 }, + }, + { + CKM_SP800_108_FEEDBACK_KDF, + { CKM_SHA384_HMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_null_data, 0, NULL }, + 48, + 64, + { 0xc8, 0x7a, 0xf8, 0xd9, 0x6b, 0x90, 0x82, 0x35, + 0xea, 0xf5, 0x2c, 0x8f, 0xce, 0xaa, 0x3b, 0xa5, + 0x68, 0xd3, 0x7f, 0xae, 0x31, 0x93, 0xe6, 0x69, + 0x0c, 0xd1, 0x74, 0x7f, 0x8f, 0xc2, 0xe2, 0x33, + 0x93, 0x45, 0x23, 0xba, 0xb3, 0x73, 0xc9, 0x2c, + 0xd6, 0xd2, 0x10, 0x16, 0xe9, 0x9f, 0x9e, 0xe8, + 0xc1, 0x0e, 0x29, 0x95, 0x3d, 0x16, 0x68, 0x24, + 0x40, 0x4d, 0x40, 0x21, 0x41, 0xa6, 0xc8, 0xdb }, + }, + { + CKM_SP800_108_FEEDBACK_KDF, + { CKM_SHA512_HMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_null_data, 0, NULL }, + 64, + 64, + { 0x81, 0x39, 0x12, 0xc2, 0xf9, 0x31, 0x24, 0x7c, + 0x71, 0x12, 0x97, 0x08, 0x82, 0x76, 0x83, 0x55, + 0x8c, 0x82, 0xf3, 0x09, 0xd6, 0x1b, 0x7a, 0xa2, + 0x6e, 0x71, 0x6b, 0xad, 0x46, 0x57, 0x60, 0x89, + 0x38, 0xcf, 0x63, 0xfa, 0xf4, 0x38, 0x27, 0xef, + 0xf0, 0xaf, 0x75, 0x4e, 0xc2, 0xe0, 0x31, 0xdb, + 0x59, 0x7d, 0x19, 0xc9, 0x6d, 0xbb, 0xed, 0x95, + 0xaf, 0x3e, 0xd8, 0x33, 0x76, 0xab, 0xec, 0xfa }, + }, + { + CKM_SP800_108_DOUBLE_PIPELINE_KDF, + { CKM_AES_CMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_null_data, 0, NULL }, + 16, + 64, + { 0x3e, 0xa8, 0xbf, 0x77, 0x84, 0x90, 0xb0, 0x3a, + 0x89, 0x16, 0x32, 0x01, 0x92, 0xd3, 0x1f, 0x1b, + 0xc1, 0x06, 0xc5, 0x32, 0x62, 0x03, 0x50, 0x16, + 0x3b, 0xb9, 0xa7, 0xdc, 0xb5, 0x68, 0x6a, 0xbb, + 0xbb, 0x7d, 0x63, 0x69, 0x24, 0x6e, 0x09, 0xd6, + 0x6f, 0x80, 0x57, 0x65, 0xc5, 0x62, 0x33, 0x96, + 0x69, 0xe6, 0xab, 0x65, 0x36, 0xd0, 0xe2, 0x5c, + 0xd7, 0xbd, 0xe4, 0x68, 0x13, 0xd6, 0xb1, 0x46 }, + }, + { + CKM_SP800_108_DOUBLE_PIPELINE_KDF, + { CKM_SHA256_HMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_null_data, 0, NULL }, + 32, + 64, + { 0xeb, 0x28, 0xd9, 0x2c, 0x19, 0x33, 0xb9, 0x2a, + 0xf9, 0xac, 0x85, 0xbd, 0xf4, 0xdb, 0xfa, 0x88, + 0x73, 0xf4, 0x36, 0x08, 0xdb, 0xfe, 0x13, 0xd1, + 0x5a, 0xec, 0x7b, 0x68, 0x13, 0x53, 0xb3, 0xd1, + 0x31, 0xf2, 0x83, 0xae, 0x9f, 0x75, 0x47, 0xb6, + 0x6d, 0x3c, 0x20, 0x16, 0x47, 0x9c, 0x27, 0x66, + 0xec, 0xa9, 0xdf, 0x0c, 0xda, 0x2a, 0xf9, 0xf4, + 0x55, 0x74, 0xde, 0x9d, 0x3f, 0xe3, 0x5e, 0x14 }, + }, + { + CKM_SP800_108_DOUBLE_PIPELINE_KDF, + { CKM_SHA384_HMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_null_data, 0, NULL }, + 48, + 64, + { 0xa5, 0xca, 0x32, 0x40, 0x00, 0x93, 0xb2, 0xcc, + 0x78, 0x3c, 0xa6, 0xc4, 0xaf, 0xa8, 0xb3, 0xd0, + 0xa4, 0x6b, 0xb5, 0x31, 0x35, 0x87, 0x33, 0xa2, + 0x6a, 0x6b, 0xe1, 0xff, 0xea, 0x1d, 0x6e, 0x9e, + 0x0b, 0xde, 0x8b, 0x92, 0x15, 0xd6, 0x56, 0x2f, + 0xb6, 0x1a, 0xd7, 0xd2, 0x01, 0x3e, 0x28, 0x2e, + 0xfa, 0x84, 0x3c, 0xc0, 0xe8, 0xbe, 0x94, 0xc0, + 0x06, 0xbd, 0xbf, 0x87, 0x1f, 0xb8, 0x64, 0xc2 }, + }, + { + CKM_SP800_108_DOUBLE_PIPELINE_KDF, + { CKM_SHA512_HMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_null_data, 0, NULL }, + 64, + 64, + { 0x3f, 0xd9, 0x4e, 0x80, 0x58, 0x21, 0xc8, 0xea, + 0x22, 0x17, 0xcf, 0x7d, 0xce, 0xfd, 0xec, 0x03, + 0xb9, 0xe4, 0xa2, 0xf7, 0xc0, 0xf1, 0x68, 0x81, + 0x53, 0x71, 0xb7, 0x42, 0x14, 0x4e, 0x5b, 0x09, + 0x05, 0x31, 0xb9, 0x27, 0x18, 0x2d, 0x23, 0xf8, + 0x9c, 0x3d, 0x4e, 0xd0, 0xdd, 0xf3, 0x1e, 0x4b, + 0xf2, 0xf9, 0x1a, 0x5d, 0x00, 0x66, 0x22, 0x83, + 0xae, 0x3c, 0x53, 0xd2, 0x54, 0x4b, 0x06, 0x4c }, + }, +#endif + { + CKM_SP800_108_COUNTER_KDF, + { CKM_SHA256_HMAC, 1, (CK_PRF_DATA_PARAM_PTR)&counter_32_data, 0, NULL }, + 32, + 64, + { 0xfb, 0x2b, 0xb5, 0xde, 0xce, 0x5a, 0x2b, 0xdc, + 0x25, 0x8f, 0x54, 0x17, 0x4b, 0x5a, 0xa7, 0x90, + 0x64, 0x36, 0xeb, 0x43, 0x1f, 0x1d, 0xf9, 0x23, + 0xb2, 0x22, 0x29, 0xa0, 0xfa, 0x2e, 0x21, 0xb6, + 0xb7, 0xfb, 0x27, 0x0a, 0x1c, 0xa6, 0x58, 0x43, + 0xa1, 0x16, 0x44, 0x29, 0x4b, 0x1c, 0xb3, 0x72, + 0xd5, 0x98, 0x9d, 0x27, 0xd5, 0x75, 0x25, 0xbf, + 0x23, 0x61, 0x40, 0x48, 0xbb, 0x0b, 0x49, 0x8e }, + } + }; + +SECStatus +sftk_fips_SP800_108_PowerUpSelfTests(void) +{ + int i; + CK_RV crv; + + const unsigned char prf_key[] = { + 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, + 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, + 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, + 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, + 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, + 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, + 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, + 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78 + }; + for (i = 0; i < PR_ARRAY_SIZE(sftk_SP800_Tests); i++) { + const struct sftk_SP800_Test_struct *test = &sftk_SP800_Tests[i]; + unsigned char *output_buffer; + size_t buffer_length; + unsigned int mac_size; + + crv = kbkdf_RawDispatch(test->mech, &test->kdf_params, + prf_key, test->expected_mac_size, + NULL, prf_key, test->expected_mac_size, + &output_buffer, &buffer_length, &mac_size, + test->ret_key_length); + if (crv != CKR_OK) { + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return SECFailure; + } + if ((mac_size != test->expected_mac_size) || + (buffer_length != test->ret_key_length) || + (output_buffer == NULL) || + (PORT_Memcmp(output_buffer, test->expected_key_bytes, buffer_length) != 0)) { + PORT_ZFree(output_buffer, buffer_length); + return SECFailure; + } + PORT_ZFree(output_buffer, buffer_length); + } + return SECSuccess; +} diff --git a/libs/nss/src/lib/softoken/legacydb/Makefile b/libs/nss/src/lib/softoken/legacydb/Makefile index b7e94cae3..1b860a335 100644 --- a/libs/nss/src/lib/softoken/legacydb/Makefile +++ b/libs/nss/src/lib/softoken/legacydb/Makefile @@ -56,7 +56,5 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export - # indicates dependency on freebl static lib $(SHARED_LIBRARY): $(CRYPTOLIB) diff --git a/libs/nss/src/lib/softoken/legacydb/config.mk b/libs/nss/src/lib/softoken/legacydb/config.mk index ac7240e4b..54a23c3b0 100644 --- a/libs/nss/src/lib/softoken/legacydb/config.mk +++ b/libs/nss/src/lib/softoken/legacydb/config.mk @@ -14,13 +14,6 @@ EXTRA_LIBS += \ # can't do this in manifest.mn because OS_TARGET isn't defined there. ifeq (,$(filter-out WIN%,$(OS_TARGET))) -# don't want the 32 in the shared library name -SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) - -RES = $(OBJDIR)/$(LIBRARY_NAME).res -RESNAME = $(LIBRARY_NAME).rc - ifdef NS_USE_GCC EXTRA_SHARED_LIBS += \ -L$(DIST)/lib \ diff --git a/libs/nss/src/lib/softoken/legacydb/manifest.mn b/libs/nss/src/lib/softoken/legacydb/manifest.mn index 9cce849f6..caac524be 100644 --- a/libs/nss/src/lib/softoken/legacydb/manifest.mn +++ b/libs/nss/src/lib/softoken/legacydb/manifest.mn @@ -10,7 +10,7 @@ REQUIRES = dbm LIBRARY_NAME = nssdbm LIBRARY_VERSION = 3 -MAPFILE = $(OBJDIR)/nssdbm.def +MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def DEFINES += -DSHLIB_SUFFIX=\"$(DLL_SUFFIX)\" -DSHLIB_PREFIX=\"$(DLL_PREFIX)\" -DLG_LIB_NAME=\"$(notdir $(SHARED_LIBRARY))\" diff --git a/libs/nss/src/lib/softoken/lowpbe.c b/libs/nss/src/lib/softoken/lowpbe.c index bc3b73c1f..0d8e02ddf 100644 --- a/libs/nss/src/lib/softoken/lowpbe.c +++ b/libs/nss/src/lib/softoken/lowpbe.c @@ -889,6 +889,7 @@ nsspkcs5_FillInParam(SECOidTag algorithm, HASH_HashType hashType, pbe_param->encAlg = SEC_OID_DES_CBC; break; +#ifndef NSS_DISABLE_DEPRECATED_RC2 /* RC2 Algorithms */ case SEC_OID_PKCS12_V2_PBE_WITH_SHA1_AND_128_BIT_RC2_CBC: pbe_param->keyLen = 16; @@ -901,6 +902,7 @@ nsspkcs5_FillInParam(SECOidTag algorithm, HASH_HashType hashType, /* fall through */ case SEC_OID_PKCS12_PBE_WITH_SHA1_AND_40_BIT_RC2_CBC: break; +#endif /* RC4 algorithms */ case SEC_OID_PKCS12_PBE_WITH_SHA1_AND_128_BIT_RC4: @@ -1408,6 +1410,7 @@ loser: return dest; } +#ifndef NSS_DISABLE_DEPRECATED_RC2 /* perform rc2 encryption/decryption if an error occurs, NULL is returned */ static SECItem * @@ -1485,6 +1488,7 @@ sec_pkcs5_rc2(SECItem *key, SECItem *iv, SECItem *src, PRBool dummy, return dest; } +#endif /* NSS_DISABLE_DEPRECATED_RC2 */ /* perform rc4 encryption and decryption */ static SECItem * @@ -1580,9 +1584,11 @@ nsspkcs5_CipherData(NSSPKCS5PBEParameter *pbe_param, SECItem *pwitem, cryptof = sec_pkcs5_des; tripleDES = PR_FALSE; break; +#ifndef NSS_DISABLE_DEPRECATED_RC2 case SEC_OID_RC2_CBC: cryptof = sec_pkcs5_rc2; break; +#endif case SEC_OID_RC4: cryptof = sec_pkcs5_rc4; break; @@ -1737,3 +1743,67 @@ loser: return ret_algid; } + +#define TEST_KEY "pbkdf test key" +SECStatus +sftk_fips_pbkdf_PowerUpSelfTests(void) +{ + SECItem *result; + SECItem inKey; + NSSPKCS5PBEParameter pbe_params; + unsigned char iteration_count = 5; + unsigned char keyLen = 64; + char *inKeyData = TEST_KEY; + static const unsigned char saltData[] = + { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 }; + static const unsigned char pbkdf_known_answer[] = { + 0x31, 0xf0, 0xe5, 0x39, 0x9f, 0x39, 0xb9, 0x29, + 0x68, 0xac, 0xf2, 0xe9, 0x53, 0x9b, 0xb4, 0x9c, + 0x28, 0x59, 0x8b, 0x5c, 0xd8, 0xd4, 0x02, 0x37, + 0x18, 0x22, 0xc1, 0x92, 0xd0, 0xfa, 0x72, 0x90, + 0x2c, 0x8d, 0x19, 0xd4, 0x56, 0xfb, 0x16, 0xfa, + 0x8d, 0x5c, 0x06, 0x33, 0xd1, 0x5f, 0x17, 0xb1, + 0x22, 0xd9, 0x9c, 0xaf, 0x5e, 0x3f, 0xf3, 0x66, + 0xc6, 0x14, 0xfe, 0x83, 0xfa, 0x1a, 0x2a, 0xc5 + }; + + sftk_PBELockInit(); + + inKey.data = (unsigned char *)inKeyData; + inKey.len = sizeof(TEST_KEY) - 1; + + pbe_params.salt.data = (unsigned char *)saltData; + pbe_params.salt.len = sizeof(saltData); + /* the interation and keyLength are used as intermediate + * values when decoding the Algorithm ID, set them for completeness, + * but they are not used */ + pbe_params.iteration.data = &iteration_count; + pbe_params.iteration.len = 1; + pbe_params.keyLength.data = &keyLen; + pbe_params.keyLength.len = 1; + /* pkcs5v2 stores the key in the AlgorithmID, so we don't need to + * generate it here */ + pbe_params.ivLen = 0; + pbe_params.ivData = NULL; + /* keyID is only used by pkcs12 extensions to pkcs5v1 */ + pbe_params.keyID = pbeBitGenCipherKey; + /* Algorithm is used by the decryption code after get get our key */ + pbe_params.encAlg = SEC_OID_AES_256_CBC; + /* these are the fields actually used in nsspkcs5_ComputeKeyAndIV + * for NSSPKCS5_PBKDF2 */ + pbe_params.iter = iteration_count; + pbe_params.keyLen = keyLen; + pbe_params.hashType = HASH_AlgSHA256; + pbe_params.pbeType = NSSPKCS5_PBKDF2; + pbe_params.is2KeyDES = PR_FALSE; + + result = nsspkcs5_ComputeKeyAndIV(&pbe_params, &inKey, NULL, PR_FALSE); + if ((result == NULL) || (result->len != sizeof(pbkdf_known_answer)) || + (PORT_Memcmp(result->data, pbkdf_known_answer, sizeof(pbkdf_known_answer)) != 0)) { + SECITEM_FreeItem(result, PR_TRUE); + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return SECFailure; + } + SECITEM_FreeItem(result, PR_TRUE); + return SECSuccess; +} diff --git a/libs/nss/src/lib/softoken/lowpbe.h b/libs/nss/src/lib/softoken/lowpbe.h index 3ace0795a..b567c5968 100644 --- a/libs/nss/src/lib/softoken/lowpbe.h +++ b/libs/nss/src/lib/softoken/lowpbe.h @@ -103,6 +103,10 @@ nsspkcs5_DestroyPBEParameter(NSSPKCS5PBEParameter *param); HASH_HashType HASH_FromHMACOid(SECOidTag oid); SECOidTag HASH_HMACOidFromHash(HASH_HashType); +/* fips selftest */ +extern SECStatus +sftk_fips_pbkdf_PowerUpSelfTests(void); + SEC_END_PROTOS #endif diff --git a/libs/nss/src/lib/softoken/manifest.mn b/libs/nss/src/lib/softoken/manifest.mn index 62c5d35cf..34daf1c4a 100644 --- a/libs/nss/src/lib/softoken/manifest.mn +++ b/libs/nss/src/lib/softoken/manifest.mn @@ -5,11 +5,13 @@ CORE_DEPTH = ../.. MODULE = nss +ifndef NSS_DISABLE_DBM DIRS = legacydb +endif LIBRARY_NAME = softokn LIBRARY_VERSION = 3 -MAPFILE = $(OBJDIR)/softokn.def +MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def DEFINES += -DSHLIB_SUFFIX=\"$(DLL_SUFFIX)\" -DSHLIB_PREFIX=\"$(DLL_PREFIX)\" -DSOFTOKEN_LIB_NAME=\"$(notdir $(SHARED_LIBRARY))\" -DSHLIB_VERSION=\"$(LIBRARY_VERSION)\" @@ -44,6 +46,7 @@ CSRCS = \ pkcs11u.c \ sdb.c \ sftkdb.c \ + sftkdhverify.c \ sftkhmac.c \ sftkike.c \ sftkmessage.c \ diff --git a/libs/nss/src/lib/softoken/pkcs11.c b/libs/nss/src/lib/softoken/pkcs11.c index 93150cd78..216c5ac18 100644 --- a/libs/nss/src/lib/softoken/pkcs11.c +++ b/libs/nss/src/lib/softoken/pkcs11.c @@ -392,15 +392,17 @@ static const struct mechanismList mechanisms[] = { { CKM_CAMELLIA_MAC, { 16, 32, CKF_SN_VR }, PR_TRUE }, { CKM_CAMELLIA_MAC_GENERAL, { 16, 32, CKF_SN_VR }, PR_TRUE }, { CKM_CAMELLIA_CBC_PAD, { 16, 32, CKF_EN_DE_WR_UN }, PR_TRUE }, - /* ------------------------- SEED Operations --------------------------- */ +/* ------------------------- SEED Operations --------------------------- */ +#ifndef NSS_DISABLE_DEPRECATED_SEED { CKM_SEED_KEY_GEN, { 16, 16, CKF_GENERATE }, PR_TRUE }, { CKM_SEED_ECB, { 16, 16, CKF_EN_DE_WR_UN }, PR_TRUE }, { CKM_SEED_CBC, { 16, 16, CKF_EN_DE_WR_UN }, PR_TRUE }, { CKM_SEED_MAC, { 16, 16, CKF_SN_VR }, PR_TRUE }, { CKM_SEED_MAC_GENERAL, { 16, 16, CKF_SN_VR }, PR_TRUE }, { CKM_SEED_CBC_PAD, { 16, 16, CKF_EN_DE_WR_UN }, PR_TRUE }, +#endif +/* ------------------------- ChaCha20 Operations ---------------------- */ #ifndef NSS_DISABLE_CHACHAPOLY - /* ------------------------- ChaCha20 Operations ---------------------- */ { CKM_NSS_CHACHA20_KEY_GEN, { 32, 32, CKF_GENERATE }, PR_TRUE }, { CKM_NSS_CHACHA20_POLY1305, { 32, 32, CKF_EN_DE }, PR_TRUE }, { CKM_NSS_CHACHA20_CTR, { 32, 32, CKF_EN_DE }, PR_TRUE }, @@ -495,9 +497,10 @@ static const struct mechanismList mechanisms[] = { { CKM_AES_CBC_ENCRYPT_DATA, { 1, 32, CKF_DERIVE }, PR_FALSE }, { CKM_CAMELLIA_ECB_ENCRYPT_DATA, { 1, 32, CKF_DERIVE }, PR_FALSE }, { CKM_CAMELLIA_CBC_ENCRYPT_DATA, { 1, 32, CKF_DERIVE }, PR_FALSE }, +#ifndef NSS_DISABLE_DEPRECATED_SEED { CKM_SEED_ECB_ENCRYPT_DATA, { 1, 32, CKF_DERIVE }, PR_FALSE }, { CKM_SEED_CBC_ENCRYPT_DATA, { 1, 32, CKF_DERIVE }, PR_FALSE }, - +#endif /* ---------------------- SSL Key Derivations ------------------------- */ { CKM_SSL3_PRE_MASTER_KEY_GEN, { 48, 48, CKF_GENERATE }, PR_FALSE }, { CKM_SSL3_MASTER_KEY_DERIVE, { 48, 48, CKF_DERIVE }, PR_FALSE }, @@ -1193,6 +1196,11 @@ sftk_handlePrivateKeyObject(SFTKSession *session, SFTKObject *object, CK_KEY_TYP if (!sftk_hasAttribute(object, CKA_VALUE)) { return CKR_TEMPLATE_INCOMPLETE; } + /* allow subprime to be set after the fact */ + crv = sftk_defaultAttribute(object, CKA_SUBPRIME, NULL, 0); + if (crv != CKR_OK) { + return crv; + } encrypt = CK_FALSE; recover = CK_FALSE; wrap = CK_FALSE; @@ -2605,7 +2613,7 @@ SFTKSlot * sftk_SlotFromID(CK_SLOT_ID slotID, PRBool all) { SFTKSlot *slot; - int index = sftk_GetModuleIndex(slotID); + unsigned int index = sftk_GetModuleIndex(slotID); if (nscSlotHashTable[index] == NULL) return NULL; @@ -2636,7 +2644,7 @@ sftk_SlotFromSessionHandle(CK_SESSION_HANDLE handle) } static CK_RV -sftk_RegisterSlot(SFTKSlot *slot, int moduleIndex) +sftk_RegisterSlot(SFTKSlot *slot, unsigned int moduleIndex) { PLHashEntry *entry; unsigned int index; @@ -2712,7 +2720,8 @@ sftk_RegisterSlot(SFTKSlot *slot, int moduleIndex) */ CK_RV SFTK_SlotReInit(SFTKSlot *slot, char *configdir, char *updatedir, - char *updateID, sftk_token_parameters *params, int moduleIndex) + char *updateID, sftk_token_parameters *params, + unsigned int moduleIndex) { PRBool needLogin = !params->noKeyDB; CK_RV crv; @@ -2788,7 +2797,7 @@ loser: */ CK_RV SFTK_SlotInit(char *configdir, char *updatedir, char *updateID, - sftk_token_parameters *params, int moduleIndex) + sftk_token_parameters *params, unsigned int moduleIndex) { unsigned int i; CK_SLOT_ID slotID = params->slotID; @@ -3169,7 +3178,7 @@ loser: } static void -nscFreeAllSlots(int moduleIndex) +nscFreeAllSlots(unsigned int moduleIndex) { /* free all the slots */ SFTKSlot *slot = NULL; @@ -3213,7 +3222,7 @@ sftk_closePeer(PRBool isFIPS) { CK_SLOT_ID slotID = isFIPS ? PRIVATE_KEY_SLOT_ID : FIPS_SLOT_ID; SFTKSlot *slot; - int moduleIndex = isFIPS ? NSC_NON_FIPS_MODULE : NSC_FIPS_MODULE; + unsigned int moduleIndex = isFIPS ? NSC_NON_FIPS_MODULE : NSC_FIPS_MODULE; PLHashTable *tmpSlotHashTable = nscSlotHashTable[moduleIndex]; slot = (SFTKSlot *)PL_HashTableLookup(tmpSlotHashTable, (void *)slotID); @@ -3235,7 +3244,7 @@ nsc_CommonInitialize(CK_VOID_PTR pReserved, PRBool isFIPS) SECStatus rv; CK_C_INITIALIZE_ARGS *init_args = (CK_C_INITIALIZE_ARGS *)pReserved; int i; - int moduleIndex = isFIPS ? NSC_FIPS_MODULE : NSC_NON_FIPS_MODULE; + unsigned int moduleIndex = isFIPS ? NSC_FIPS_MODULE : NSC_NON_FIPS_MODULE; if (isFIPS) { loginWaitTime = PR_SecondsToInterval(1); @@ -3539,7 +3548,8 @@ NSC_GetInfoV2(CK_INFO_PTR pInfo) /* NSC_GetSlotList obtains a list of slots in the system. */ CK_RV nsc_CommonGetSlotList(CK_BBOOL tokenPresent, - CK_SLOT_ID_PTR pSlotList, CK_ULONG_PTR pulCount, int moduleIndex) + CK_SLOT_ID_PTR pSlotList, CK_ULONG_PTR pulCount, + unsigned int moduleIndex) { *pulCount = nscSlotCount[moduleIndex]; if (pSlotList != NULL) { @@ -3657,11 +3667,11 @@ NSC_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo) PORT_Memcpy(pInfo->serialNumber, "0000000000000000", 16); PORT_Memcpy(pInfo->utcTime, "0000000000000000", 16); pInfo->ulMaxSessionCount = 0; /* arbitrarily large */ - pInfo->ulMaxRwSessionCount = 0; /* arbitrarily large */ + pInfo->ulMaxRwSessionCount = 0; /* arbitarily large */ PZ_Lock(slot->slotLock); /* Protect sessionCount / rwSessioncount */ pInfo->ulSessionCount = slot->sessionCount; pInfo->ulRwSessionCount = slot->rwSessionCount; - PZ_Unlock(slot->slotLock); /* Unlock before sftk_getKeyDB */ + PZ_Unlock(slot->slotLock); /* Unlock before sftk_getKeyDB */ pInfo->firmwareVersion.major = 0; pInfo->firmwareVersion.minor = 0; PORT_Memcpy(pInfo->label, slot->tokDescription, sizeof(pInfo->label)); @@ -4481,7 +4491,7 @@ sftk_CreateNewSlot(SFTKSlot *slot, CK_OBJECT_CLASS class, PRBool isValidFIPSUserSlot = PR_FALSE; PRBool isValidSlot = PR_FALSE; PRBool isFIPS = PR_FALSE; - unsigned long moduleIndex = NSC_NON_FIPS_MODULE; + unsigned int moduleIndex = NSC_NON_FIPS_MODULE; SFTKAttribute *attribute; sftk_parameters paramStrings; char *paramString; diff --git a/libs/nss/src/lib/softoken/pkcs11c.c b/libs/nss/src/lib/softoken/pkcs11c.c index 65c94d0a8..b54d28de9 100644 --- a/libs/nss/src/lib/softoken/pkcs11c.c +++ b/libs/nss/src/lib/softoken/pkcs11c.c @@ -749,7 +749,10 @@ sftk_CryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, SFTKObject *key; SFTKSessionContext *context; SFTKAttribute *att; +#ifndef NSS_DISABLE_DEPRECATED_RC2 CK_RC2_CBC_PARAMS *rc2_param; + unsigned effectiveKeyLength; +#endif #if NSS_SOFTOKEN_DOES_RC5 CK_RC5_CBC_PARAMS *rc5_param; SECItem rc5Key; @@ -760,7 +763,6 @@ sftk_CryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_NSS_AEAD_PARAMS *nss_aead_params_ptr = NULL; CK_KEY_TYPE key_type; CK_RV crv = CKR_OK; - unsigned effectiveKeyLength; unsigned char newdeskey[24]; PRBool useNewKey = PR_FALSE; int t; @@ -867,6 +869,7 @@ sftk_CryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, } context->destroy = (SFTKDestroy)sftk_Space; break; +#ifndef NSS_DISABLE_DEPRECATED_RC2 case CKM_RC2_CBC_PAD: context->doPad = PR_TRUE; /* fall thru */ @@ -901,6 +904,8 @@ sftk_CryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, context->update = (SFTKCipher)(isEncrypt ? RC2_Encrypt : RC2_Decrypt); context->destroy = (SFTKDestroy)RC2_DestroyContext; break; +#endif /* NSS_DISABLE_DEPRECATED_RC2 */ + #if NSS_SOFTOKEN_DOES_RC5 case CKM_RC5_CBC_PAD: context->doPad = PR_TRUE; @@ -984,10 +989,6 @@ sftk_CryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, crv = CKR_KEY_TYPE_INCONSISTENT; break; } - if (pMechanism->ulParameterLen < 8) { - crv = CKR_DOMAIN_PARAMS_INVALID; - break; - } t = NSS_DES_CBC; goto finish_des; case CKM_DES3_ECB: @@ -1005,12 +1006,13 @@ sftk_CryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, crv = CKR_KEY_TYPE_INCONSISTENT; break; } - if (pMechanism->ulParameterLen < 8) { + t = NSS_DES_EDE3_CBC; + finish_des: + if ((t != NSS_DES && t != NSS_DES_EDE3) && (pMechanism->pParameter == NULL || + pMechanism->ulParameterLen < 8)) { crv = CKR_DOMAIN_PARAMS_INVALID; break; } - t = NSS_DES_EDE3_CBC; - finish_des: context->blockSize = 8; att = sftk_FindAttribute(key, CKA_VALUE); if (att == NULL) { @@ -1044,6 +1046,7 @@ sftk_CryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, context->update = (SFTKCipher)(isEncrypt ? DES_Encrypt : DES_Decrypt); context->destroy = (SFTKDestroy)DES_DestroyContext; break; +#ifndef NSS_DISABLE_DEPRECATED_SEED case CKM_SEED_CBC_PAD: context->doPad = PR_TRUE; /* fall thru */ @@ -1078,7 +1081,7 @@ sftk_CryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, context->update = (SFTKCipher)(isEncrypt ? SEED_Encrypt : SEED_Decrypt); context->destroy = (SFTKDestroy)SEED_DestroyContext; break; - +#endif /* NSS_DISABLE_DEPRECATED_SEED */ case CKM_CAMELLIA_CBC_PAD: context->doPad = PR_TRUE; /* fall thru */ @@ -1258,6 +1261,7 @@ sftk_CryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, unsigned char *nonce; unsigned long counter_len; unsigned long nonce_len; + context->multi = PR_FALSE; if (pMechanism->mechanism == CKM_NSS_CHACHA20_CTR) { if (key_type != CKK_NSS_CHACHA20) { crv = CKR_KEY_TYPE_INCONSISTENT; @@ -2230,7 +2234,9 @@ sftk_InitCBCMac(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, { CK_MECHANISM cbc_mechanism; CK_ULONG mac_bytes = SFTK_INVALID_MAC_SIZE; +#ifndef NSS_DISABLE_DEPRECATED_RC2 CK_RC2_CBC_PARAMS rc2_params; +#endif #if NSS_SOFTOKEN_DOES_RC5 CK_RC5_CBC_PARAMS rc5_params; CK_RC5_MAC_GENERAL_PARAMS *rc5_mac; @@ -2248,6 +2254,7 @@ sftk_InitCBCMac(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, } switch (pMechanism->mechanism) { +#ifndef NSS_DISABLE_DEPRECATED_RC2 case CKM_RC2_MAC_GENERAL: if (BAD_PARAM_CAST(pMechanism, sizeof(CK_RC2_MAC_GENERAL_PARAMS))) { return CKR_MECHANISM_PARAM_INVALID; @@ -2267,6 +2274,8 @@ sftk_InitCBCMac(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, cbc_mechanism.ulParameterLen = sizeof(rc2_params); blockSize = 8; break; +#endif /* NSS_DISABLE_DEPRECATED_RC2 */ + #if NSS_SOFTOKEN_DOES_RC5 case CKM_RC5_MAC_GENERAL: if (BAD_PARAM_CAST(pMechanism, sizeof(CK_RC5_MAC_GENERAL_PARAMS))) { @@ -2325,6 +2334,7 @@ sftk_InitCBCMac(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, cbc_mechanism.pParameter = &ivBlock; cbc_mechanism.ulParameterLen = blockSize; break; +#ifndef NSS_DISABLE_DEPRECATED_SEED case CKM_SEED_MAC_GENERAL: mac_bytes = *(CK_ULONG *)pMechanism->pParameter; /* fall through */ @@ -2335,6 +2345,7 @@ sftk_InitCBCMac(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, cbc_mechanism.pParameter = &ivBlock; cbc_mechanism.ulParameterLen = blockSize; break; +#endif /* NSS_DISABLE_DEPRECATED_SEED */ case CKM_CAMELLIA_MAC_GENERAL: mac_bytes = *(CK_ULONG *)pMechanism->pParameter; /* fall through */ @@ -4177,11 +4188,13 @@ nsc_SetupBulkKeyGen(CK_MECHANISM_TYPE mechanism, CK_KEY_TYPE *key_type, CK_RV crv = CKR_OK; switch (mechanism) { +#ifndef NSS_DISABLE_DEPRECATED_RC2 case CKM_RC2_KEY_GEN: *key_type = CKK_RC2; if (*key_length == 0) crv = CKR_TEMPLATE_INCOMPLETE; break; +#endif /* NSS_DISABLE_DEPRECATED_RC2 */ #if NSS_SOFTOKEN_DOES_RC5 case CKM_RC5_KEY_GEN: *key_type = CKK_RC5; @@ -4215,10 +4228,12 @@ nsc_SetupBulkKeyGen(CK_MECHANISM_TYPE mechanism, CK_KEY_TYPE *key_type, *key_type = CKK_DES3; *key_length = 24; break; +#ifndef NSS_DISABLE_DEPRECATED_SEED case CKM_SEED_KEY_GEN: *key_type = CKK_SEED; *key_length = 16; break; +#endif /* NSS_DISABLE_DEPRECATED_SEED */ case CKM_CAMELLIA_KEY_GEN: *key_type = CKK_CAMELLIA; if (*key_length == 0) @@ -4408,10 +4423,12 @@ nsc_SetupPBEKeyGen(CK_MECHANISM_PTR pMechanism, NSSPKCS5PBEParameter **pbe, *key_type = params->is2KeyDES ? CKK_DES2 : CKK_DES3; *key_length = params->keyLen; break; +#ifndef NSS_DISABLE_DEPRECATED_RC2 case SEC_OID_RC2_CBC: *key_type = CKK_RC2; *key_length = params->keyLen; break; +#endif /* NSS_DISABLE_DEPRECATED_RC2 */ case SEC_OID_RC4: *key_type = CKK_RC4; *key_length = params->keyLen; @@ -4459,6 +4476,7 @@ NSC_GenerateKey(CK_SESSION_HANDLE hSession, CK_OBJECT_CLASS objclass = CKO_SECRET_KEY; CK_RV crv = CKR_OK; CK_BBOOL cktrue = CK_TRUE; + NSSPKCS5PBEParameter *pbe_param = NULL; int i; SFTKSlot *slot = sftk_SlotFromSessionHandle(hSession); unsigned char buf[MAX_KEY_LEN]; @@ -4467,7 +4485,6 @@ NSC_GenerateKey(CK_SESSION_HANDLE hSession, nsc_bulk, nsc_param, nsc_jpake } key_gen_type; - NSSPKCS5PBEParameter *pbe_param; SSL3RSAPreMasterSecret *rsa_pms; CK_VERSION *version; /* in very old versions of NSS, there were implementation errors with key @@ -4526,11 +4543,15 @@ NSC_GenerateKey(CK_SESSION_HANDLE hSession, case CKM_DES2_KEY_GEN: case CKM_DES3_KEY_GEN: checkWeak = PR_TRUE; - /* fall through */ +/* fall through */ +#ifndef NSS_DISABLE_DEPRECATED_RC2 case CKM_RC2_KEY_GEN: +#endif case CKM_RC4_KEY_GEN: case CKM_GENERIC_SECRET_KEY_GEN: +#ifndef NSS_DISABLE_DEPRECATED_SEED case CKM_SEED_KEY_GEN: +#endif case CKM_CAMELLIA_KEY_GEN: case CKM_AES_KEY_GEN: case CKM_NSS_CHACHA20_KEY_GEN: @@ -4561,15 +4582,17 @@ NSC_GenerateKey(CK_SESSION_HANDLE hSession, faultyPBE3DES = PR_TRUE; /* fall through */ case CKM_NSS_PBE_SHA1_TRIPLE_DES_CBC: +#ifndef NSS_DISABLE_DEPRECATED_RC2 case CKM_NSS_PBE_SHA1_40_BIT_RC2_CBC: - case CKM_NSS_PBE_SHA1_DES_CBC: case CKM_NSS_PBE_SHA1_128_BIT_RC2_CBC: + case CKM_PBE_SHA1_RC2_128_CBC: + case CKM_PBE_SHA1_RC2_40_CBC: +#endif + case CKM_NSS_PBE_SHA1_DES_CBC: case CKM_NSS_PBE_SHA1_40_BIT_RC4: case CKM_NSS_PBE_SHA1_128_BIT_RC4: case CKM_PBE_SHA1_DES3_EDE_CBC: case CKM_PBE_SHA1_DES2_EDE_CBC: - case CKM_PBE_SHA1_RC2_128_CBC: - case CKM_PBE_SHA1_RC2_40_CBC: case CKM_PBE_SHA1_RC4_128: case CKM_PBE_SHA1_RC4_40: case CKM_PBE_MD5_DES_CBC: @@ -4736,7 +4759,7 @@ loser: * performed, for example, CKR_HOST_MEMORY. */ static CK_RV -sftk_PairwiseConsistencyCheck(CK_SESSION_HANDLE hSession, +sftk_PairwiseConsistencyCheck(CK_SESSION_HANDLE hSession, SFTKSlot *slot, SFTKObject *publicKey, SFTKObject *privateKey, CK_KEY_TYPE keyType) { /* @@ -4751,6 +4774,12 @@ sftk_PairwiseConsistencyCheck(CK_SESSION_HANDLE hSession, * others => CKM_INVALID_MECHANISM * * None of these mechanisms has a parameter. + * + * For derive CKK_DH => CKM_DH_PKCS_DERIVE + * CKK_EC => CKM_ECDH1_DERIVE + * others => CKM_INVALID_MECHANISM + * + * The parameters for these mechanisms is the public key. */ CK_MECHANISM mech = { 0, NULL, 0 }; @@ -5010,24 +5039,106 @@ sftk_PairwiseConsistencyCheck(CK_SESSION_HANDLE hSession, isDerivable = sftk_isTrue(privateKey, CKA_DERIVE); if (isDerivable) { - /* - * We are not doing consistency check for Diffie-Hellman Key - - * otherwise it would be here - * This is also true for Elliptic Curve Diffie-Hellman keys - * NOTE: EC keys are currently subjected to pairwise - * consistency check for signing/verification. - */ - /* - * FIPS 140-2 had the following pairwise consistency test for - * public and private keys used for key agreement: - * If the keys are used to perform key agreement, then the - * cryptographic module shall create a second, compatible - * key pair. The cryptographic module shall perform both - * sides of the key agreement algorithm and shall compare - * the resulting shared values. If the shared values are - * not equal, the test shall fail. - * This test was removed in Change Notice 3. - */ + SFTKAttribute *pubAttribute = NULL; + CK_OBJECT_HANDLE newKey; + PRBool isFIPS = (slot->slotID == FIPS_SLOT_ID); + CK_RV crv2; + CK_OBJECT_CLASS secret = CKO_SECRET_KEY; + CK_KEY_TYPE generic = CKK_GENERIC_SECRET; + CK_ULONG keyLen = 128; + CK_BBOOL ckTrue = CK_TRUE; + CK_ATTRIBUTE template[] = { + { CKA_CLASS, &secret, sizeof(secret) }, + { CKA_KEY_TYPE, &generic, sizeof(generic) }, + { CKA_VALUE_LEN, &keyLen, sizeof(keyLen) }, + { CKA_DERIVE, &ckTrue, sizeof(ckTrue) } + }; + CK_ULONG templateCount = PR_ARRAY_SIZE(template); + CK_ECDH1_DERIVE_PARAMS ecParams; + + crv = CKR_OK; /*paranoia, already get's set before we drop to the end */ + /* FIPS 140-2 requires we verify that the resulting key is a valid key. + * The easiest way to do this is to do a derive operation, which checks + * the validity of the key */ + + switch (keyType) { + case CKK_DH: + mech.mechanism = CKM_DH_PKCS_DERIVE; + pubAttribute = sftk_FindAttribute(publicKey, CKA_VALUE); + if (pubAttribute == NULL) { + return CKR_DEVICE_ERROR; + } + mech.pParameter = pubAttribute->attrib.pValue; + mech.ulParameterLen = pubAttribute->attrib.ulValueLen; + break; + case CKK_EC: + mech.mechanism = CKM_ECDH1_DERIVE; + pubAttribute = sftk_FindAttribute(publicKey, CKA_EC_POINT); + if (pubAttribute == NULL) { + return CKR_DEVICE_ERROR; + } + ecParams.kdf = CKD_NULL; + ecParams.ulSharedDataLen = 0; + ecParams.pSharedData = NULL; + ecParams.ulPublicDataLen = pubAttribute->attrib.ulValueLen; + ecParams.pPublicData = pubAttribute->attrib.pValue; + mech.pParameter = &ecParams; + mech.ulParameterLen = sizeof(ecParams); + break; + default: + return CKR_DEVICE_ERROR; + } + + crv = NSC_DeriveKey(hSession, &mech, privateKey->handle, template, templateCount, &newKey); + if (crv != CKR_OK) { + sftk_FreeAttribute(pubAttribute); + return crv; + } + /* FIPS requires full validation, but in fipx mode NSC_Derive + * only does partial validation with approved primes, now handle + * full validation */ + if (isFIPS && keyType == CKK_DH) { + SECItem pubKey; + SECItem prime; + SECItem subPrime; + const SECItem *subPrimePtr = &subPrime; + + pubKey.data = pubAttribute->attrib.pValue; + pubKey.len = pubAttribute->attrib.ulValueLen; + prime.data = subPrime.data = NULL; + prime.len = subPrime.len = 0; + crv = sftk_Attribute2SecItem(NULL, &prime, privateKey, CKA_PRIME); + if (crv != CKR_OK) { + goto done; + } + crv = sftk_Attribute2SecItem(NULL, &prime, privateKey, CKA_PRIME); + /* we ignore the return code an only look at the length */ + if (subPrime.len == 0) { + /* subprime not supplied, In this case look it up. + * This only works with approved primes, but in FIPS mode + * that's the only kine of prime that will get here */ + subPrimePtr = sftk_VerifyDH_Prime(&prime); + if (subPrimePtr == NULL) { + crv = CKR_GENERAL_ERROR; + goto done; + } + } + if (!KEA_Verify(&pubKey, &prime, (SECItem *)subPrimePtr)) { + crv = CKR_GENERAL_ERROR; + } + done: + PORT_Free(subPrime.data); + PORT_Free(prime.data); + } + /* clean up before we return */ + sftk_FreeAttribute(pubAttribute); + crv2 = NSC_DestroyObject(hSession, newKey); + if (crv != CKR_OK) { + return crv; + } + if (crv2 != CKR_OK) { + return crv2; + } } return CKR_OK; @@ -5571,7 +5682,7 @@ NSC_GenerateKeyPair(CK_SESSION_HANDLE hSession, if (crv == CKR_OK) { /* Perform FIPS 140-2 pairwise consistency check. */ - crv = sftk_PairwiseConsistencyCheck(hSession, + crv = sftk_PairwiseConsistencyCheck(hSession, slot, publicKey, privateKey, key_type); if (crv != CKR_OK) { if (sftk_audit_enabled) { @@ -6745,9 +6856,9 @@ sftk_DeriveEncrypt(SFTKCipher encrypt, void *cipherInfo, CK_RV sftk_HKDF(CK_HKDF_PARAMS_PTR params, CK_SESSION_HANDLE hSession, - SFTKObject *sourceKey, unsigned char *sourceKeyBytes, - int sourceKeyLen, SFTKObject *key, int keySize, - PRBool canBeData, PRBool isFIPS) + SFTKObject *sourceKey, const unsigned char *sourceKeyBytes, + int sourceKeyLen, SFTKObject *key, unsigned char *outKeyBytes, + int keySize, PRBool canBeData, PRBool isFIPS) { SFTKSession *session; SFTKAttribute *saltKey_att = NULL; @@ -6758,9 +6869,9 @@ sftk_HKDF(CK_HKDF_PARAMS_PTR params, CK_SESSION_HANDLE hSession, unsigned char keyBlock[9 * SFTK_MAX_MAC_LENGTH]; unsigned char *keyBlockAlloc = NULL; /* allocated keyBlock */ unsigned char *keyBlockData = keyBlock; /* pointer to current keyBlock */ - unsigned char *prk; /* psuedo-random key */ + const unsigned char *prk; /* psuedo-random key */ CK_ULONG prkLen; - unsigned char *okm; /* output keying material */ + const unsigned char *okm; /* output keying material */ HASH_HashType hashType = GetHashTypeFromMechanism(params->prfHashMechanism); SFTKObject *saltKey = NULL; CK_RV crv = CKR_OK; @@ -6785,9 +6896,14 @@ sftk_HKDF(CK_HKDF_PARAMS_PTR params, CK_SESSION_HANDLE hSession, (params->bExpand && keySize > 255 * hashLen)) { return CKR_TEMPLATE_INCONSISTENT; } - crv = sftk_DeriveSensitiveCheck(sourceKey, key, canBeData); - if (crv != CKR_OK) - return crv; + + /* sourceKey is NULL if we are called from the POST, skip the + * sensitiveCheck */ + if (sourceKey != NULL) { + crv = sftk_DeriveSensitiveCheck(sourceKey, key, canBeData); + if (crv != CKR_OK) + return crv; + } /* HKDF-Extract(salt, base key value) */ if (params->bExtract) { @@ -6903,12 +7019,18 @@ sftk_HKDF(CK_HKDF_PARAMS_PTR params, CK_SESSION_HANDLE hSession, HMAC_Destroy(hmac, PR_TRUE); okm = &keyBlockData[0]; } - /* key material = prk */ - crv = sftk_forceAttribute(key, CKA_VALUE, okm, keySize); - PORT_Memset(okm, 0, genLen); + /* key material = okm */ + crv = CKR_OK; + if (key) { + crv = sftk_forceAttribute(key, CKA_VALUE, okm, keySize); + } else { + PORT_Assert(outKeyBytes != NULL); + PORT_Memcpy(outKeyBytes, okm, keySize); + } + PORT_Memset(keyBlockData, 0, genLen); PORT_Memset(hashbuf, 0, sizeof(hashbuf)); PORT_Free(keyBlockAlloc); - return CKR_OK; + return crv; } /* @@ -7823,6 +7945,7 @@ NSC_DeriveKey(CK_SESSION_HANDLE hSession, break; } +#ifndef NSS_DISABLE_DEPRECATED_SEED case CKM_SEED_ECB_ENCRYPT_DATA: case CKM_SEED_CBC_ENCRYPT_DATA: { void *cipherInfo; @@ -7869,6 +7992,7 @@ NSC_DeriveKey(CK_SESSION_HANDLE hSession, SEED_DestroyContext(cipherInfo, PR_TRUE); break; } +#endif /* NSS_DISABLE_DEPRECATED_SEED */ case CKM_CONCATENATE_BASE_AND_KEY: { SFTKObject *newKey; @@ -8172,40 +8296,101 @@ NSC_DeriveKey(CK_SESSION_HANDLE hSession, case CKM_DH_PKCS_DERIVE: { SECItem derived, dhPublic; - SECItem dhPrime, dhSubPrime, dhValue; + SECItem dhPrime, dhValue; + const SECItem *subPrime; /* sourceKey - values for the local existing low key */ /* get prime and value attributes */ crv = sftk_Attribute2SecItem(NULL, &dhPrime, sourceKey, CKA_PRIME); if (crv != CKR_OK) break; - crv = sftk_Attribute2SecItem(NULL, &dhValue, sourceKey, CKA_VALUE); - if (crv != CKR_OK) { - PORT_Free(dhPrime.data); - break; - } dhPublic.data = pMechanism->pParameter; dhPublic.len = pMechanism->ulParameterLen; - /* If the caller bothered to provide Q, use Q to validate - * the public key. */ - crv = sftk_Attribute2SecItem(NULL, &dhSubPrime, sourceKey, CKA_SUBPRIME); - if (crv == CKR_OK) { - rv = KEA_Verify(&dhPublic, &dhPrime, &dhSubPrime); - PORT_Free(dhSubPrime.data); - if (rv != SECSuccess) { + /* if the prime is an approved prime, we can skip all the other + * checks. */ + subPrime = sftk_VerifyDH_Prime(&dhPrime); + if (subPrime == NULL) { + SECItem dhSubPrime; + /* If the caller set the subprime value, it means that + * either the caller knows the subprime value and wants us + * to validate the key against the subprime, or that the + * caller wants us to verify that the prime is a safe prime + * by passing in subprime = (prime-1)/2 */ + dhSubPrime.data = NULL; + dhSubPrime.len = 0; + crv = sftk_Attribute2SecItem(NULL, &dhSubPrime, + sourceKey, CKA_SUBPRIME); + /* we ignore the value of crv here, We treat a valid + * return of len = 0 and a failure to find a subrime the same + * NOTE: we free the subprime in both cases depending on + * PORT_Free of NULL to be a noop */ + if (dhSubPrime.len != 0) { + PRBool isSafe = PR_FALSE; + + /* Callers can set dhSubPrime to q=(p-1)/2 to force + * checks for safe primes. If so we only need to check + * q and p for primality and skip the group test. */ + rv = sftk_IsSafePrime(&dhPrime, &dhSubPrime, &isSafe); + if (rv != SECSuccess) { + /* either p or q was even and therefore not prime, + * we can stop processing here and fail now */ + crv = CKR_ARGUMENTS_BAD; + PORT_Free(dhPrime.data); + PORT_Free(dhSubPrime.data); + break; + } + + /* first make sure the primes are really prime */ + if (!KEA_PrimeCheck(&dhPrime)) { + crv = CKR_ARGUMENTS_BAD; + PORT_Free(dhPrime.data); + PORT_Free(dhSubPrime.data); + break; + } + if (!KEA_PrimeCheck(&dhSubPrime)) { + crv = CKR_ARGUMENTS_BAD; + PORT_Free(dhPrime.data); + PORT_Free(dhSubPrime.data); + break; + } + if (isFIPS || !isSafe) { + /* With safe primes, there is only one other small + * subgroup. As long as y isn't 0, 1, or -1 mod p, + * any other y is safe. Only do the full check for + * non-safe primes, except in FIPS mode we need + * to do this check on all primes in which + * we receive the subprime value */ + if (!KEA_Verify(&dhPublic, &dhPrime, &dhSubPrime)) { + crv = CKR_ARGUMENTS_BAD; + PORT_Free(dhPrime.data); + PORT_Free(dhSubPrime.data); + break; + } + } + } else if (isFIPS) { + /* In FIPS mode we only accept approved primes, or + * primes with the full subprime value */ crv = CKR_ARGUMENTS_BAD; PORT_Free(dhPrime.data); - PORT_Free(dhValue.data); break; } + /* checks are complete, no need for the subPrime any longer */ + PORT_Free(dhSubPrime.data); + } + + /* now that the prime is validated, get the private value */ + crv = sftk_Attribute2SecItem(NULL, &dhValue, sourceKey, CKA_VALUE); + if (crv != CKR_OK) { + PORT_Free(dhPrime.data); + break; } /* calculate private value - oct */ rv = DH_Derive(&dhPublic, &dhPrime, &dhValue, &derived, keySize); PORT_Free(dhPrime.data); - PORT_Free(dhValue.data); + PORT_ZFree(dhValue.data, dhValue.len); if (rv == SECSuccess) { sftk_forceAttribute(key, CKA_VALUE, derived.data, derived.len); @@ -8394,7 +8579,7 @@ NSC_DeriveKey(CK_SESSION_HANDLE hSession, crv = sftk_HKDF(&hkdfParams, hSession, sourceKey, att->attrib.pValue, att->attrib.ulValueLen, - key, keySize, PR_FALSE, isFIPS); + key, NULL, keySize, PR_FALSE, isFIPS); } break; case CKM_HKDF_DERIVE: case CKM_HKDF_DATA: /* only difference is the class of key */ @@ -8405,7 +8590,7 @@ NSC_DeriveKey(CK_SESSION_HANDLE hSession, } crv = sftk_HKDF((CK_HKDF_PARAMS_PTR)pMechanism->pParameter, hSession, sourceKey, att->attrib.pValue, - att->attrib.ulValueLen, key, keySize, PR_TRUE, + att->attrib.ulValueLen, key, NULL, keySize, PR_TRUE, isFIPS); break; case CKM_NSS_JPAKE_ROUND2_SHA1: diff --git a/libs/nss/src/lib/softoken/pkcs11i.h b/libs/nss/src/lib/softoken/pkcs11i.h index 1630442c9..2aabb37e4 100644 --- a/libs/nss/src/lib/softoken/pkcs11i.h +++ b/libs/nss/src/lib/softoken/pkcs11i.h @@ -683,14 +683,18 @@ extern CK_RV nsc_CommonInitialize(CK_VOID_PTR pReserved, PRBool isFIPS); extern CK_RV nsc_CommonFinalize(CK_VOID_PTR pReserved, PRBool isFIPS); extern PRBool sftk_ForkReset(CK_VOID_PTR pReserved, CK_RV *crv); extern CK_RV nsc_CommonGetSlotList(CK_BBOOL tokPresent, - CK_SLOT_ID_PTR pSlotList, CK_ULONG_PTR pulCount, int moduleIndex); + CK_SLOT_ID_PTR pSlotList, + CK_ULONG_PTR pulCount, + unsigned int moduleIndex); /* slot initialization, reinit, shutdown and destruction */ extern CK_RV SFTK_SlotInit(char *configdir, char *updatedir, char *updateID, - sftk_token_parameters *params, int moduleIndex); + sftk_token_parameters *params, + unsigned int moduleIndex); extern CK_RV SFTK_SlotReInit(SFTKSlot *slot, char *configdir, char *updatedir, char *updateID, - sftk_token_parameters *params, int moduleIndex); + sftk_token_parameters *params, + unsigned int moduleIndex); extern CK_RV SFTK_DestroySlotData(SFTKSlot *slot); extern CK_RV SFTK_ShutdownSlot(SFTKSlot *slot); extern CK_RV sftk_CloseAllSessions(SFTKSlot *slot, PRBool logout); @@ -824,7 +828,7 @@ extern CK_RV sftk_aes_xcbc_new_keys(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hKey, CK_OBJECT_HANDLE_PTR phKey, unsigned char *k2, unsigned char *k3); extern CK_RV sftk_xcbc_mac_pad(unsigned char *padBuf, unsigned int bufLen, - int blockSize, const unsigned char *k2, + unsigned int blockSize, const unsigned char *k2, const unsigned char *k3); extern SECStatus sftk_fips_IKE_PowerUpSelfTests(void); @@ -896,7 +900,7 @@ HASH_HashType sftk_HMACMechanismToHash(CK_MECHANISM_TYPE mech); CK_RV sftk_MAC_Create(CK_MECHANISM_TYPE mech, SFTKObject *key, sftk_MACCtx **ret_ctx); CK_RV sftk_MAC_Init(sftk_MACCtx *ctx, CK_MECHANISM_TYPE mech, SFTKObject *key); CK_RV sftk_MAC_InitRaw(sftk_MACCtx *ctx, CK_MECHANISM_TYPE mech, const unsigned char *key, unsigned int key_len, PRBool isFIPS); -CK_RV sftk_MAC_Update(sftk_MACCtx *ctx, CK_BYTE_PTR data, unsigned int data_len); +CK_RV sftk_MAC_Update(sftk_MACCtx *ctx, const CK_BYTE *data, unsigned int data_len); CK_RV sftk_MAC_Finish(sftk_MACCtx *ctx, CK_BYTE_PTR result, unsigned int *result_len, unsigned int max_result_len); CK_RV sftk_MAC_Reset(sftk_MACCtx *ctx); void sftk_MAC_Destroy(sftk_MACCtx *ctx, PRBool free_it); @@ -908,8 +912,24 @@ CK_RV sftk_CheckCBCPadding(CK_BYTE_PTR pBuf, unsigned int bufLen, /* NIST 800-108 (kbkdf.c) implementations */ extern CK_RV kbkdf_Dispatch(CK_MECHANISM_TYPE mech, CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, SFTKObject *base_key, SFTKObject *ret_key, CK_ULONG keySize); +extern SECStatus sftk_fips_SP800_108_PowerUpSelfTests(void); + +/* export the HKDF function for use in PowerupSelfTests */ +CK_RV sftk_HKDF(CK_HKDF_PARAMS_PTR params, CK_SESSION_HANDLE hSession, + SFTKObject *sourceKey, const unsigned char *sourceKeyBytes, + int sourceKeyLen, SFTKObject *key, + unsigned char *outKeyBytes, int keySize, + PRBool canBeData, PRBool isFIPS); + char **NSC_ModuleDBFunc(unsigned long function, char *parameters, void *args); +/* dh verify functions */ +/* verify that dhPrime matches one of our known primes, and if so return + * it's subprime value */ +const SECItem *sftk_VerifyDH_Prime(SECItem *dhPrime); +/* check if dhSubPrime claims dhPrime is a safe prime. */ +SECStatus sftk_IsSafePrime(SECItem *dhPrime, SECItem *dhSubPrime, PRBool *isSafe); + SEC_END_PROTOS #endif /* _PKCS11I_H_ */ diff --git a/libs/nss/src/lib/softoken/pkcs11u.c b/libs/nss/src/lib/softoken/pkcs11u.c index 8ee69617b..7d969a1bc 100644 --- a/libs/nss/src/lib/softoken/pkcs11u.c +++ b/libs/nss/src/lib/softoken/pkcs11u.c @@ -716,7 +716,6 @@ sftk_modifyType(CK_ATTRIBUTE_TYPE type, CK_OBJECT_CLASS inClass) case CKA_PUBLIC_EXPONENT: case CKA_PRIVATE_EXPONENT: case CKA_PRIME: - case CKA_SUBPRIME: case CKA_BASE: case CKA_PRIME_1: case CKA_PRIME_2: @@ -767,6 +766,11 @@ sftk_modifyType(CK_ATTRIBUTE_TYPE type, CK_OBJECT_CLASS inClass) mtype = (inClass == CKO_DATA) ? SFTK_ALWAYS : SFTK_NEVER; break; + case CKA_SUBPRIME: + /* allow the CKA_SUBPRIME to be added to dh private keys */ + mtype = (inClass == CKO_PRIVATE_KEY) ? SFTK_ALWAYS : SFTK_NEVER; + break; + case CKA_SUBJECT: mtype = (inClass == CKO_CERTIFICATE) ? SFTK_NEVER : SFTK_ALWAYS; break; diff --git a/libs/nss/src/lib/softoken/sdb.c b/libs/nss/src/lib/softoken/sdb.c index de0fd1f12..50625ab94 100644 --- a/libs/nss/src/lib/softoken/sdb.c +++ b/libs/nss/src/lib/softoken/sdb.c @@ -2233,7 +2233,7 @@ sdb_init(char *dbname, char *table, sdbDataType type, int *inUpdate, goto loser; } unsigned int schemaAttrsCapacity = known_attributes_size; - sdb_p->schemaAttrs = malloc(schemaAttrsCapacity * sizeof(CK_ATTRIBUTE)); + sdb_p->schemaAttrs = malloc(schemaAttrsCapacity * sizeof(CK_ATTRIBUTE_TYPE)); if (!sdb_p->schemaAttrs) { error = CKR_HOST_MEMORY; goto loser; @@ -2247,7 +2247,7 @@ sdb_init(char *dbname, char *table, sdbDataType type, int *inUpdate, if (backedAttrs == schemaAttrsCapacity) { schemaAttrsCapacity += known_attributes_size; sdb_p->schemaAttrs = realloc(sdb_p->schemaAttrs, - schemaAttrsCapacity * sizeof(CK_ATTRIBUTE)); + schemaAttrsCapacity * sizeof(CK_ATTRIBUTE_TYPE)); if (!sdb_p->schemaAttrs) { error = CKR_HOST_MEMORY; goto loser; diff --git a/libs/nss/src/lib/softoken/sftkdhverify.c b/libs/nss/src/lib/softoken/sftkdhverify.c new file mode 100644 index 000000000..d85fba94f --- /dev/null +++ b/libs/nss/src/lib/softoken/sftkdhverify.c @@ -0,0 +1,1282 @@ + +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +/* + * This file makes sure a prime given to us matches one of the known + * approved primes for diffie-helman. + * + * It also checks if a prime is a safe prime for the case + * where we don't match an approved prime. + */ +#include "seccomon.h" +#include "secitem.h" +#include "secerr.h" +#include "blapi.h" + +/* IKE 1536 prime is: 2^1536 - 2^1472 - 1 + 2^64 * { [2^1406 pi] + 741804 } */ +static const unsigned char prime_ike_1536[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC9, 0x0F, 0xDA, 0xA2, + 0x21, 0x68, 0xC2, 0x34, 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, + 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, 0x02, 0x0B, 0xBE, 0xA6, + 0x3B, 0x13, 0x9B, 0x22, 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, + 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, 0x30, 0x2B, 0x0A, 0x6D, + 0xF2, 0x5F, 0x14, 0x37, 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, + 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, 0xF4, 0x4C, 0x42, 0xE9, + 0xA6, 0x37, 0xED, 0x6B, 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, + 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, 0xAE, 0x9F, 0x24, 0x11, + 0x7C, 0x4B, 0x1F, 0xE6, 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, + 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, 0x98, 0xDA, 0x48, 0x36, + 0x1C, 0x55, 0xD3, 0x9A, 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, + 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, 0x1C, 0x62, 0xF3, 0x56, + 0x20, 0x85, 0x52, 0xBB, 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, + 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, 0xF1, 0x74, 0x6C, 0x08, + 0xCA, 0x23, 0x73, 0x27, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF +}; + +/* IKE 2048 prime is: 2^2048 - 2^1984 - 1 + 2^64 * { [2^1918 pi] + 124476 */ +static const unsigned char prime_ike_2048[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC9, 0x0F, 0xDA, 0xA2, + 0x21, 0x68, 0xC2, 0x34, 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, + 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, 0x02, 0x0B, 0xBE, 0xA6, + 0x3B, 0x13, 0x9B, 0x22, 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, + 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, 0x30, 0x2B, 0x0A, 0x6D, + 0xF2, 0x5F, 0x14, 0x37, 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, + 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, 0xF4, 0x4C, 0x42, 0xE9, + 0xA6, 0x37, 0xED, 0x6B, 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, + 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, 0xAE, 0x9F, 0x24, 0x11, + 0x7C, 0x4B, 0x1F, 0xE6, 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, + 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, 0x98, 0xDA, 0x48, 0x36, + 0x1C, 0x55, 0xD3, 0x9A, 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, + 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, 0x1C, 0x62, 0xF3, 0x56, + 0x20, 0x85, 0x52, 0xBB, 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, + 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, 0xF1, 0x74, 0x6C, 0x08, + 0xCA, 0x18, 0x21, 0x7C, 0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, + 0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, 0x9B, 0x27, 0x83, 0xA2, + 0xEC, 0x07, 0xA2, 0x8F, 0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, + 0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, 0x39, 0x95, 0x49, 0x7C, + 0xEA, 0x95, 0x6A, 0xE5, 0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, + 0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAC, 0xAA, 0x68, 0xFF, 0xFF, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF +}; + +/* TLS 2048 prime is: 2^2048 - 2^1984 + {[2^1918 * e] + 560316 } * 2^64 - 1 */ +static const unsigned char prime_tls_2048[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xAD, 0xF8, 0x54, 0x58, + 0xA2, 0xBB, 0x4A, 0x9A, 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, + 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, 0xA9, 0xE1, 0x36, 0x41, + 0x14, 0x64, 0x33, 0xFB, 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, + 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, 0xF6, 0x81, 0xB2, 0x02, + 0xAE, 0xC4, 0x61, 0x7A, 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, + 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, 0x85, 0x63, 0x65, 0x55, + 0x3D, 0xED, 0x1A, 0xF3, 0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, + 0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, 0xE2, 0xA6, 0x89, 0xDA, + 0xF3, 0xEF, 0xE8, 0x72, 0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, + 0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, 0xBC, 0x0A, 0xB1, 0x82, + 0xB3, 0x24, 0xFB, 0x61, 0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, + 0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, 0x1D, 0x4F, 0x42, 0xA3, + 0xDE, 0x39, 0x4D, 0xF4, 0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, + 0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, 0x9E, 0x02, 0xFC, 0xE1, + 0xCD, 0xF7, 0xE2, 0xEC, 0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, + 0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, 0x8E, 0x4F, 0x12, 0x32, + 0xEE, 0xF2, 0x81, 0x83, 0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, + 0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, 0xC5, 0x8E, 0xF1, 0x83, + 0x7D, 0x16, 0x83, 0xB2, 0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, + 0x88, 0x6B, 0x42, 0x38, 0x61, 0x28, 0x5C, 0x97, 0xFF, 0xFF, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF +}; + +/* IKE 3072 prime is: 2^3072 - 2^3008 - 1 + 2^64 * { [2^2942 pi] + 1690314 } */ +static const unsigned char prime_ike_3072[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC9, 0x0F, 0xDA, 0xA2, + 0x21, 0x68, 0xC2, 0x34, 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, + 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, 0x02, 0x0B, 0xBE, 0xA6, + 0x3B, 0x13, 0x9B, 0x22, 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, + 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, 0x30, 0x2B, 0x0A, 0x6D, + 0xF2, 0x5F, 0x14, 0x37, 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, + 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, 0xF4, 0x4C, 0x42, 0xE9, + 0xA6, 0x37, 0xED, 0x6B, 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, + 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, 0xAE, 0x9F, 0x24, 0x11, + 0x7C, 0x4B, 0x1F, 0xE6, 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, + 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, 0x98, 0xDA, 0x48, 0x36, + 0x1C, 0x55, 0xD3, 0x9A, 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, + 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, 0x1C, 0x62, 0xF3, 0x56, + 0x20, 0x85, 0x52, 0xBB, 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, + 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, 0xF1, 0x74, 0x6C, 0x08, + 0xCA, 0x18, 0x21, 0x7C, 0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, + 0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, 0x9B, 0x27, 0x83, 0xA2, + 0xEC, 0x07, 0xA2, 0x8F, 0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, + 0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, 0x39, 0x95, 0x49, 0x7C, + 0xEA, 0x95, 0x6A, 0xE5, 0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, + 0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D, 0xAD, 0x33, 0x17, 0x0D, + 0x04, 0x50, 0x7A, 0x33, 0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64, + 0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A, 0x8A, 0xEA, 0x71, 0x57, + 0x5D, 0x06, 0x0C, 0x7D, 0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7, + 0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7, 0x1E, 0x8C, 0x94, 0xE0, + 0x4A, 0x25, 0x61, 0x9D, 0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B, + 0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64, 0xD8, 0x76, 0x02, 0x73, + 0x3E, 0xC8, 0x6A, 0x64, 0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C, + 0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C, 0x77, 0x09, 0x88, 0xC0, + 0xBA, 0xD9, 0x46, 0xE2, 0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31, + 0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E, 0x4B, 0x82, 0xD1, 0x20, + 0xA9, 0x3A, 0xD2, 0xCA, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF +}; + +/* TLS 3072 prime is: 2^3072 - 2^3008 + {[2^2942 * e] + 2625351} * 2^64 - 1 */ +static const unsigned char prime_tls_3072[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xAD, 0xF8, 0x54, 0x58, + 0xA2, 0xBB, 0x4A, 0x9A, 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, + 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, 0xA9, 0xE1, 0x36, 0x41, + 0x14, 0x64, 0x33, 0xFB, 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, + 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, 0xF6, 0x81, 0xB2, 0x02, + 0xAE, 0xC4, 0x61, 0x7A, 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, + 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, 0x85, 0x63, 0x65, 0x55, + 0x3D, 0xED, 0x1A, 0xF3, 0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, + 0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, 0xE2, 0xA6, 0x89, 0xDA, + 0xF3, 0xEF, 0xE8, 0x72, 0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, + 0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, 0xBC, 0x0A, 0xB1, 0x82, + 0xB3, 0x24, 0xFB, 0x61, 0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, + 0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, 0x1D, 0x4F, 0x42, 0xA3, + 0xDE, 0x39, 0x4D, 0xF4, 0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, + 0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, 0x9E, 0x02, 0xFC, 0xE1, + 0xCD, 0xF7, 0xE2, 0xEC, 0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, + 0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, 0x8E, 0x4F, 0x12, 0x32, + 0xEE, 0xF2, 0x81, 0x83, 0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, + 0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, 0xC5, 0x8E, 0xF1, 0x83, + 0x7D, 0x16, 0x83, 0xB2, 0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, + 0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, 0xDE, 0x35, 0x5B, 0x3B, + 0x65, 0x19, 0x03, 0x5B, 0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, + 0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, 0x7A, 0xD9, 0x1D, 0x26, + 0x91, 0xF7, 0xF7, 0xEE, 0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, + 0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, 0xB4, 0x13, 0x0C, 0x93, + 0xBC, 0x43, 0x79, 0x44, 0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, + 0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, 0x5C, 0xAE, 0x82, 0xAB, + 0x9C, 0x9D, 0xF6, 0x9E, 0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, + 0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, 0x1D, 0xBF, 0x9A, 0x42, + 0xD5, 0xC4, 0x48, 0x4E, 0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, + 0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, 0x25, 0xE4, 0x1D, 0x2B, + 0x66, 0xC6, 0x2E, 0x37, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF +}; + +/* IKE 4096 prime is: 2^4096 - 2^4032 - 1 + 2^64 * { [2^3966 pi] + 240904 } */ +static const unsigned char prime_ike_4096[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC9, 0x0F, 0xDA, 0xA2, + 0x21, 0x68, 0xC2, 0x34, 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, + 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, 0x02, 0x0B, 0xBE, 0xA6, + 0x3B, 0x13, 0x9B, 0x22, 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, + 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, 0x30, 0x2B, 0x0A, 0x6D, + 0xF2, 0x5F, 0x14, 0x37, 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, + 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, 0xF4, 0x4C, 0x42, 0xE9, + 0xA6, 0x37, 0xED, 0x6B, 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, + 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, 0xAE, 0x9F, 0x24, 0x11, + 0x7C, 0x4B, 0x1F, 0xE6, 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, + 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, 0x98, 0xDA, 0x48, 0x36, + 0x1C, 0x55, 0xD3, 0x9A, 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, + 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, 0x1C, 0x62, 0xF3, 0x56, + 0x20, 0x85, 0x52, 0xBB, 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, + 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, 0xF1, 0x74, 0x6C, 0x08, + 0xCA, 0x18, 0x21, 0x7C, 0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, + 0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, 0x9B, 0x27, 0x83, 0xA2, + 0xEC, 0x07, 0xA2, 0x8F, 0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, + 0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, 0x39, 0x95, 0x49, 0x7C, + 0xEA, 0x95, 0x6A, 0xE5, 0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, + 0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D, 0xAD, 0x33, 0x17, 0x0D, + 0x04, 0x50, 0x7A, 0x33, 0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64, + 0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A, 0x8A, 0xEA, 0x71, 0x57, + 0x5D, 0x06, 0x0C, 0x7D, 0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7, + 0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7, 0x1E, 0x8C, 0x94, 0xE0, + 0x4A, 0x25, 0x61, 0x9D, 0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B, + 0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64, 0xD8, 0x76, 0x02, 0x73, + 0x3E, 0xC8, 0x6A, 0x64, 0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C, + 0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C, 0x77, 0x09, 0x88, 0xC0, + 0xBA, 0xD9, 0x46, 0xE2, 0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31, + 0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E, 0x4B, 0x82, 0xD1, 0x20, + 0xA9, 0x21, 0x08, 0x01, 0x1A, 0x72, 0x3C, 0x12, 0xA7, 0x87, 0xE6, 0xD7, + 0x88, 0x71, 0x9A, 0x10, 0xBD, 0xBA, 0x5B, 0x26, 0x99, 0xC3, 0x27, 0x18, + 0x6A, 0xF4, 0xE2, 0x3C, 0x1A, 0x94, 0x68, 0x34, 0xB6, 0x15, 0x0B, 0xDA, + 0x25, 0x83, 0xE9, 0xCA, 0x2A, 0xD4, 0x4C, 0xE8, 0xDB, 0xBB, 0xC2, 0xDB, + 0x04, 0xDE, 0x8E, 0xF9, 0x2E, 0x8E, 0xFC, 0x14, 0x1F, 0xBE, 0xCA, 0xA6, + 0x28, 0x7C, 0x59, 0x47, 0x4E, 0x6B, 0xC0, 0x5D, 0x99, 0xB2, 0x96, 0x4F, + 0xA0, 0x90, 0xC3, 0xA2, 0x23, 0x3B, 0xA1, 0x86, 0x51, 0x5B, 0xE7, 0xED, + 0x1F, 0x61, 0x29, 0x70, 0xCE, 0xE2, 0xD7, 0xAF, 0xB8, 0x1B, 0xDD, 0x76, + 0x21, 0x70, 0x48, 0x1C, 0xD0, 0x06, 0x91, 0x27, 0xD5, 0xB0, 0x5A, 0xA9, + 0x93, 0xB4, 0xEA, 0x98, 0x8D, 0x8F, 0xDD, 0xC1, 0x86, 0xFF, 0xB7, 0xDC, + 0x90, 0xA6, 0xC0, 0x8F, 0x4D, 0xF4, 0x35, 0xC9, 0x34, 0x06, 0x31, 0x99, + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF +}; + +/* TLS 4096 prime is: 2^4096 - 2^4032 + {[2^3966 * e] + 5736041} * 2^64 - 1 */ +static const unsigned char prime_tls_4096[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xAD, 0xF8, 0x54, 0x58, + 0xA2, 0xBB, 0x4A, 0x9A, 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, + 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, 0xA9, 0xE1, 0x36, 0x41, + 0x14, 0x64, 0x33, 0xFB, 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, + 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, 0xF6, 0x81, 0xB2, 0x02, + 0xAE, 0xC4, 0x61, 0x7A, 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, + 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, 0x85, 0x63, 0x65, 0x55, + 0x3D, 0xED, 0x1A, 0xF3, 0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, + 0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, 0xE2, 0xA6, 0x89, 0xDA, + 0xF3, 0xEF, 0xE8, 0x72, 0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, + 0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, 0xBC, 0x0A, 0xB1, 0x82, + 0xB3, 0x24, 0xFB, 0x61, 0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, + 0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, 0x1D, 0x4F, 0x42, 0xA3, + 0xDE, 0x39, 0x4D, 0xF4, 0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, + 0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, 0x9E, 0x02, 0xFC, 0xE1, + 0xCD, 0xF7, 0xE2, 0xEC, 0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, + 0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, 0x8E, 0x4F, 0x12, 0x32, + 0xEE, 0xF2, 0x81, 0x83, 0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, + 0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, 0xC5, 0x8E, 0xF1, 0x83, + 0x7D, 0x16, 0x83, 0xB2, 0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, + 0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, 0xDE, 0x35, 0x5B, 0x3B, + 0x65, 0x19, 0x03, 0x5B, 0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, + 0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, 0x7A, 0xD9, 0x1D, 0x26, + 0x91, 0xF7, 0xF7, 0xEE, 0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, + 0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, 0xB4, 0x13, 0x0C, 0x93, + 0xBC, 0x43, 0x79, 0x44, 0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, + 0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, 0x5C, 0xAE, 0x82, 0xAB, + 0x9C, 0x9D, 0xF6, 0x9E, 0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, + 0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, 0x1D, 0xBF, 0x9A, 0x42, + 0xD5, 0xC4, 0x48, 0x4E, 0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, + 0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, 0x25, 0xE4, 0x1D, 0x2B, + 0x66, 0x9E, 0x1E, 0xF1, 0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, + 0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, 0xAC, 0x7D, 0x5F, 0x42, + 0xD6, 0x9F, 0x6D, 0x18, 0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, + 0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, 0x71, 0x35, 0xC8, 0x86, + 0xEF, 0xB4, 0x31, 0x8A, 0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, + 0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, 0x6D, 0xC7, 0x78, 0xF9, + 0x71, 0xAD, 0x00, 0x38, 0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, + 0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, 0x2A, 0x4E, 0xCE, 0xA9, + 0xF9, 0x8D, 0x0A, 0xCC, 0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, + 0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, 0x4D, 0xB5, 0xA8, 0x51, + 0xF4, 0x41, 0x82, 0xE1, 0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x65, 0x5F, 0x6A, + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF +}; + +/* IKE 6144 prime is: 2^6144 - 2^6080 - 1 + 2^64 * { [2^6014 pi] + 929484 } */ +static const unsigned char prime_ike_6144[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC9, 0x0F, 0xDA, 0xA2, + 0x21, 0x68, 0xC2, 0x34, 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, + 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, 0x02, 0x0B, 0xBE, 0xA6, + 0x3B, 0x13, 0x9B, 0x22, 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, + 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, 0x30, 0x2B, 0x0A, 0x6D, + 0xF2, 0x5F, 0x14, 0x37, 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, + 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, 0xF4, 0x4C, 0x42, 0xE9, + 0xA6, 0x37, 0xED, 0x6B, 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, + 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, 0xAE, 0x9F, 0x24, 0x11, + 0x7C, 0x4B, 0x1F, 0xE6, 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, + 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, 0x98, 0xDA, 0x48, 0x36, + 0x1C, 0x55, 0xD3, 0x9A, 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, + 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, 0x1C, 0x62, 0xF3, 0x56, + 0x20, 0x85, 0x52, 0xBB, 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, + 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, 0xF1, 0x74, 0x6C, 0x08, + 0xCA, 0x18, 0x21, 0x7C, 0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, + 0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, 0x9B, 0x27, 0x83, 0xA2, + 0xEC, 0x07, 0xA2, 0x8F, 0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, + 0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, 0x39, 0x95, 0x49, 0x7C, + 0xEA, 0x95, 0x6A, 0xE5, 0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, + 0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D, 0xAD, 0x33, 0x17, 0x0D, + 0x04, 0x50, 0x7A, 0x33, 0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64, + 0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A, 0x8A, 0xEA, 0x71, 0x57, + 0x5D, 0x06, 0x0C, 0x7D, 0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7, + 0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7, 0x1E, 0x8C, 0x94, 0xE0, + 0x4A, 0x25, 0x61, 0x9D, 0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B, + 0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64, 0xD8, 0x76, 0x02, 0x73, + 0x3E, 0xC8, 0x6A, 0x64, 0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C, + 0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C, 0x77, 0x09, 0x88, 0xC0, + 0xBA, 0xD9, 0x46, 0xE2, 0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31, + 0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E, 0x4B, 0x82, 0xD1, 0x20, + 0xA9, 0x21, 0x08, 0x01, 0x1A, 0x72, 0x3C, 0x12, 0xA7, 0x87, 0xE6, 0xD7, + 0x88, 0x71, 0x9A, 0x10, 0xBD, 0xBA, 0x5B, 0x26, 0x99, 0xC3, 0x27, 0x18, + 0x6A, 0xF4, 0xE2, 0x3C, 0x1A, 0x94, 0x68, 0x34, 0xB6, 0x15, 0x0B, 0xDA, + 0x25, 0x83, 0xE9, 0xCA, 0x2A, 0xD4, 0x4C, 0xE8, 0xDB, 0xBB, 0xC2, 0xDB, + 0x04, 0xDE, 0x8E, 0xF9, 0x2E, 0x8E, 0xFC, 0x14, 0x1F, 0xBE, 0xCA, 0xA6, + 0x28, 0x7C, 0x59, 0x47, 0x4E, 0x6B, 0xC0, 0x5D, 0x99, 0xB2, 0x96, 0x4F, + 0xA0, 0x90, 0xC3, 0xA2, 0x23, 0x3B, 0xA1, 0x86, 0x51, 0x5B, 0xE7, 0xED, + 0x1F, 0x61, 0x29, 0x70, 0xCE, 0xE2, 0xD7, 0xAF, 0xB8, 0x1B, 0xDD, 0x76, + 0x21, 0x70, 0x48, 0x1C, 0xD0, 0x06, 0x91, 0x27, 0xD5, 0xB0, 0x5A, 0xA9, + 0x93, 0xB4, 0xEA, 0x98, 0x8D, 0x8F, 0xDD, 0xC1, 0x86, 0xFF, 0xB7, 0xDC, + 0x90, 0xA6, 0xC0, 0x8F, 0x4D, 0xF4, 0x35, 0xC9, 0x34, 0x02, 0x84, 0x92, + 0x36, 0xC3, 0xFA, 0xB4, 0xD2, 0x7C, 0x70, 0x26, 0xC1, 0xD4, 0xDC, 0xB2, + 0x60, 0x26, 0x46, 0xDE, 0xC9, 0x75, 0x1E, 0x76, 0x3D, 0xBA, 0x37, 0xBD, + 0xF8, 0xFF, 0x94, 0x06, 0xAD, 0x9E, 0x53, 0x0E, 0xE5, 0xDB, 0x38, 0x2F, + 0x41, 0x30, 0x01, 0xAE, 0xB0, 0x6A, 0x53, 0xED, 0x90, 0x27, 0xD8, 0x31, + 0x17, 0x97, 0x27, 0xB0, 0x86, 0x5A, 0x89, 0x18, 0xDA, 0x3E, 0xDB, 0xEB, + 0xCF, 0x9B, 0x14, 0xED, 0x44, 0xCE, 0x6C, 0xBA, 0xCE, 0xD4, 0xBB, 0x1B, + 0xDB, 0x7F, 0x14, 0x47, 0xE6, 0xCC, 0x25, 0x4B, 0x33, 0x20, 0x51, 0x51, + 0x2B, 0xD7, 0xAF, 0x42, 0x6F, 0xB8, 0xF4, 0x01, 0x37, 0x8C, 0xD2, 0xBF, + 0x59, 0x83, 0xCA, 0x01, 0xC6, 0x4B, 0x92, 0xEC, 0xF0, 0x32, 0xEA, 0x15, + 0xD1, 0x72, 0x1D, 0x03, 0xF4, 0x82, 0xD7, 0xCE, 0x6E, 0x74, 0xFE, 0xF6, + 0xD5, 0x5E, 0x70, 0x2F, 0x46, 0x98, 0x0C, 0x82, 0xB5, 0xA8, 0x40, 0x31, + 0x90, 0x0B, 0x1C, 0x9E, 0x59, 0xE7, 0xC9, 0x7F, 0xBE, 0xC7, 0xE8, 0xF3, + 0x23, 0xA9, 0x7A, 0x7E, 0x36, 0xCC, 0x88, 0xBE, 0x0F, 0x1D, 0x45, 0xB7, + 0xFF, 0x58, 0x5A, 0xC5, 0x4B, 0xD4, 0x07, 0xB2, 0x2B, 0x41, 0x54, 0xAA, + 0xCC, 0x8F, 0x6D, 0x7E, 0xBF, 0x48, 0xE1, 0xD8, 0x14, 0xCC, 0x5E, 0xD2, + 0x0F, 0x80, 0x37, 0xE0, 0xA7, 0x97, 0x15, 0xEE, 0xF2, 0x9B, 0xE3, 0x28, + 0x06, 0xA1, 0xD5, 0x8B, 0xB7, 0xC5, 0xDA, 0x76, 0xF5, 0x50, 0xAA, 0x3D, + 0x8A, 0x1F, 0xBF, 0xF0, 0xEB, 0x19, 0xCC, 0xB1, 0xA3, 0x13, 0xD5, 0x5C, + 0xDA, 0x56, 0xC9, 0xEC, 0x2E, 0xF2, 0x96, 0x32, 0x38, 0x7F, 0xE8, 0xD7, + 0x6E, 0x3C, 0x04, 0x68, 0x04, 0x3E, 0x8F, 0x66, 0x3F, 0x48, 0x60, 0xEE, + 0x12, 0xBF, 0x2D, 0x5B, 0x0B, 0x74, 0x74, 0xD6, 0xE6, 0x94, 0xF9, 0x1E, + 0x6D, 0xCC, 0x40, 0x24, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF +}; + +/* TLS 6144 prime is: 2^6144 - 2^6080 + {[2^6014 * e] + 15705020} * 2^64 - 1 */ +static const unsigned char prime_tls_6144[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xAD, 0xF8, 0x54, 0x58, + 0xA2, 0xBB, 0x4A, 0x9A, 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, + 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, 0xA9, 0xE1, 0x36, 0x41, + 0x14, 0x64, 0x33, 0xFB, 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, + 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, 0xF6, 0x81, 0xB2, 0x02, + 0xAE, 0xC4, 0x61, 0x7A, 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, + 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, 0x85, 0x63, 0x65, 0x55, + 0x3D, 0xED, 0x1A, 0xF3, 0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, + 0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, 0xE2, 0xA6, 0x89, 0xDA, + 0xF3, 0xEF, 0xE8, 0x72, 0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, + 0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, 0xBC, 0x0A, 0xB1, 0x82, + 0xB3, 0x24, 0xFB, 0x61, 0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, + 0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, 0x1D, 0x4F, 0x42, 0xA3, + 0xDE, 0x39, 0x4D, 0xF4, 0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, + 0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, 0x9E, 0x02, 0xFC, 0xE1, + 0xCD, 0xF7, 0xE2, 0xEC, 0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, + 0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, 0x8E, 0x4F, 0x12, 0x32, + 0xEE, 0xF2, 0x81, 0x83, 0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, + 0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, 0xC5, 0x8E, 0xF1, 0x83, + 0x7D, 0x16, 0x83, 0xB2, 0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, + 0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, 0xDE, 0x35, 0x5B, 0x3B, + 0x65, 0x19, 0x03, 0x5B, 0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, + 0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, 0x7A, 0xD9, 0x1D, 0x26, + 0x91, 0xF7, 0xF7, 0xEE, 0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, + 0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, 0xB4, 0x13, 0x0C, 0x93, + 0xBC, 0x43, 0x79, 0x44, 0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, + 0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, 0x5C, 0xAE, 0x82, 0xAB, + 0x9C, 0x9D, 0xF6, 0x9E, 0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, + 0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, 0x1D, 0xBF, 0x9A, 0x42, + 0xD5, 0xC4, 0x48, 0x4E, 0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, + 0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, 0x25, 0xE4, 0x1D, 0x2B, + 0x66, 0x9E, 0x1E, 0xF1, 0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, + 0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, 0xAC, 0x7D, 0x5F, 0x42, + 0xD6, 0x9F, 0x6D, 0x18, 0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, + 0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, 0x71, 0x35, 0xC8, 0x86, + 0xEF, 0xB4, 0x31, 0x8A, 0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, + 0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, 0x6D, 0xC7, 0x78, 0xF9, + 0x71, 0xAD, 0x00, 0x38, 0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, + 0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, 0x2A, 0x4E, 0xCE, 0xA9, + 0xF9, 0x8D, 0x0A, 0xCC, 0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, + 0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, 0x4D, 0xB5, 0xA8, 0x51, + 0xF4, 0x41, 0x82, 0xE1, 0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x0D, 0xD9, 0x02, + 0x0B, 0xFD, 0x64, 0xB6, 0x45, 0x03, 0x6C, 0x7A, 0x4E, 0x67, 0x7D, 0x2C, + 0x38, 0x53, 0x2A, 0x3A, 0x23, 0xBA, 0x44, 0x42, 0xCA, 0xF5, 0x3E, 0xA6, + 0x3B, 0xB4, 0x54, 0x32, 0x9B, 0x76, 0x24, 0xC8, 0x91, 0x7B, 0xDD, 0x64, + 0xB1, 0xC0, 0xFD, 0x4C, 0xB3, 0x8E, 0x8C, 0x33, 0x4C, 0x70, 0x1C, 0x3A, + 0xCD, 0xAD, 0x06, 0x57, 0xFC, 0xCF, 0xEC, 0x71, 0x9B, 0x1F, 0x5C, 0x3E, + 0x4E, 0x46, 0x04, 0x1F, 0x38, 0x81, 0x47, 0xFB, 0x4C, 0xFD, 0xB4, 0x77, + 0xA5, 0x24, 0x71, 0xF7, 0xA9, 0xA9, 0x69, 0x10, 0xB8, 0x55, 0x32, 0x2E, + 0xDB, 0x63, 0x40, 0xD8, 0xA0, 0x0E, 0xF0, 0x92, 0x35, 0x05, 0x11, 0xE3, + 0x0A, 0xBE, 0xC1, 0xFF, 0xF9, 0xE3, 0xA2, 0x6E, 0x7F, 0xB2, 0x9F, 0x8C, + 0x18, 0x30, 0x23, 0xC3, 0x58, 0x7E, 0x38, 0xDA, 0x00, 0x77, 0xD9, 0xB4, + 0x76, 0x3E, 0x4E, 0x4B, 0x94, 0xB2, 0xBB, 0xC1, 0x94, 0xC6, 0x65, 0x1E, + 0x77, 0xCA, 0xF9, 0x92, 0xEE, 0xAA, 0xC0, 0x23, 0x2A, 0x28, 0x1B, 0xF6, + 0xB3, 0xA7, 0x39, 0xC1, 0x22, 0x61, 0x16, 0x82, 0x0A, 0xE8, 0xDB, 0x58, + 0x47, 0xA6, 0x7C, 0xBE, 0xF9, 0xC9, 0x09, 0x1B, 0x46, 0x2D, 0x53, 0x8C, + 0xD7, 0x2B, 0x03, 0x74, 0x6A, 0xE7, 0x7F, 0x5E, 0x62, 0x29, 0x2C, 0x31, + 0x15, 0x62, 0xA8, 0x46, 0x50, 0x5D, 0xC8, 0x2D, 0xB8, 0x54, 0x33, 0x8A, + 0xE4, 0x9F, 0x52, 0x35, 0xC9, 0x5B, 0x91, 0x17, 0x8C, 0xCF, 0x2D, 0xD5, + 0xCA, 0xCE, 0xF4, 0x03, 0xEC, 0x9D, 0x18, 0x10, 0xC6, 0x27, 0x2B, 0x04, + 0x5B, 0x3B, 0x71, 0xF9, 0xDC, 0x6B, 0x80, 0xD6, 0x3F, 0xDD, 0x4A, 0x8E, + 0x9A, 0xDB, 0x1E, 0x69, 0x62, 0xA6, 0x95, 0x26, 0xD4, 0x31, 0x61, 0xC1, + 0xA4, 0x1D, 0x57, 0x0D, 0x79, 0x38, 0xDA, 0xD4, 0xA4, 0x0E, 0x32, 0x9C, + 0xD0, 0xE4, 0x0E, 0x65, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF +}; + +/* IKE 8192 prime is: 2^8192 - 2^8128 - 1 + 2^64 * { [2^8062 pi] + 4743158 } */ +static const unsigned char prime_ike_8192[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC9, 0x0F, 0xDA, 0xA2, + 0x21, 0x68, 0xC2, 0x34, 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, + 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, 0x02, 0x0B, 0xBE, 0xA6, + 0x3B, 0x13, 0x9B, 0x22, 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, + 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, 0x30, 0x2B, 0x0A, 0x6D, + 0xF2, 0x5F, 0x14, 0x37, 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, + 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, 0xF4, 0x4C, 0x42, 0xE9, + 0xA6, 0x37, 0xED, 0x6B, 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, + 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, 0xAE, 0x9F, 0x24, 0x11, + 0x7C, 0x4B, 0x1F, 0xE6, 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, + 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, 0x98, 0xDA, 0x48, 0x36, + 0x1C, 0x55, 0xD3, 0x9A, 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, + 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, 0x1C, 0x62, 0xF3, 0x56, + 0x20, 0x85, 0x52, 0xBB, 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, + 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, 0xF1, 0x74, 0x6C, 0x08, + 0xCA, 0x18, 0x21, 0x7C, 0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, + 0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, 0x9B, 0x27, 0x83, 0xA2, + 0xEC, 0x07, 0xA2, 0x8F, 0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, + 0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, 0x39, 0x95, 0x49, 0x7C, + 0xEA, 0x95, 0x6A, 0xE5, 0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, + 0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D, 0xAD, 0x33, 0x17, 0x0D, + 0x04, 0x50, 0x7A, 0x33, 0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64, + 0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A, 0x8A, 0xEA, 0x71, 0x57, + 0x5D, 0x06, 0x0C, 0x7D, 0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7, + 0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7, 0x1E, 0x8C, 0x94, 0xE0, + 0x4A, 0x25, 0x61, 0x9D, 0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B, + 0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64, 0xD8, 0x76, 0x02, 0x73, + 0x3E, 0xC8, 0x6A, 0x64, 0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C, + 0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C, 0x77, 0x09, 0x88, 0xC0, + 0xBA, 0xD9, 0x46, 0xE2, 0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31, + 0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E, 0x4B, 0x82, 0xD1, 0x20, + 0xA9, 0x21, 0x08, 0x01, 0x1A, 0x72, 0x3C, 0x12, 0xA7, 0x87, 0xE6, 0xD7, + 0x88, 0x71, 0x9A, 0x10, 0xBD, 0xBA, 0x5B, 0x26, 0x99, 0xC3, 0x27, 0x18, + 0x6A, 0xF4, 0xE2, 0x3C, 0x1A, 0x94, 0x68, 0x34, 0xB6, 0x15, 0x0B, 0xDA, + 0x25, 0x83, 0xE9, 0xCA, 0x2A, 0xD4, 0x4C, 0xE8, 0xDB, 0xBB, 0xC2, 0xDB, + 0x04, 0xDE, 0x8E, 0xF9, 0x2E, 0x8E, 0xFC, 0x14, 0x1F, 0xBE, 0xCA, 0xA6, + 0x28, 0x7C, 0x59, 0x47, 0x4E, 0x6B, 0xC0, 0x5D, 0x99, 0xB2, 0x96, 0x4F, + 0xA0, 0x90, 0xC3, 0xA2, 0x23, 0x3B, 0xA1, 0x86, 0x51, 0x5B, 0xE7, 0xED, + 0x1F, 0x61, 0x29, 0x70, 0xCE, 0xE2, 0xD7, 0xAF, 0xB8, 0x1B, 0xDD, 0x76, + 0x21, 0x70, 0x48, 0x1C, 0xD0, 0x06, 0x91, 0x27, 0xD5, 0xB0, 0x5A, 0xA9, + 0x93, 0xB4, 0xEA, 0x98, 0x8D, 0x8F, 0xDD, 0xC1, 0x86, 0xFF, 0xB7, 0xDC, + 0x90, 0xA6, 0xC0, 0x8F, 0x4D, 0xF4, 0x35, 0xC9, 0x34, 0x02, 0x84, 0x92, + 0x36, 0xC3, 0xFA, 0xB4, 0xD2, 0x7C, 0x70, 0x26, 0xC1, 0xD4, 0xDC, 0xB2, + 0x60, 0x26, 0x46, 0xDE, 0xC9, 0x75, 0x1E, 0x76, 0x3D, 0xBA, 0x37, 0xBD, + 0xF8, 0xFF, 0x94, 0x06, 0xAD, 0x9E, 0x53, 0x0E, 0xE5, 0xDB, 0x38, 0x2F, + 0x41, 0x30, 0x01, 0xAE, 0xB0, 0x6A, 0x53, 0xED, 0x90, 0x27, 0xD8, 0x31, + 0x17, 0x97, 0x27, 0xB0, 0x86, 0x5A, 0x89, 0x18, 0xDA, 0x3E, 0xDB, 0xEB, + 0xCF, 0x9B, 0x14, 0xED, 0x44, 0xCE, 0x6C, 0xBA, 0xCE, 0xD4, 0xBB, 0x1B, + 0xDB, 0x7F, 0x14, 0x47, 0xE6, 0xCC, 0x25, 0x4B, 0x33, 0x20, 0x51, 0x51, + 0x2B, 0xD7, 0xAF, 0x42, 0x6F, 0xB8, 0xF4, 0x01, 0x37, 0x8C, 0xD2, 0xBF, + 0x59, 0x83, 0xCA, 0x01, 0xC6, 0x4B, 0x92, 0xEC, 0xF0, 0x32, 0xEA, 0x15, + 0xD1, 0x72, 0x1D, 0x03, 0xF4, 0x82, 0xD7, 0xCE, 0x6E, 0x74, 0xFE, 0xF6, + 0xD5, 0x5E, 0x70, 0x2F, 0x46, 0x98, 0x0C, 0x82, 0xB5, 0xA8, 0x40, 0x31, + 0x90, 0x0B, 0x1C, 0x9E, 0x59, 0xE7, 0xC9, 0x7F, 0xBE, 0xC7, 0xE8, 0xF3, + 0x23, 0xA9, 0x7A, 0x7E, 0x36, 0xCC, 0x88, 0xBE, 0x0F, 0x1D, 0x45, 0xB7, + 0xFF, 0x58, 0x5A, 0xC5, 0x4B, 0xD4, 0x07, 0xB2, 0x2B, 0x41, 0x54, 0xAA, + 0xCC, 0x8F, 0x6D, 0x7E, 0xBF, 0x48, 0xE1, 0xD8, 0x14, 0xCC, 0x5E, 0xD2, + 0x0F, 0x80, 0x37, 0xE0, 0xA7, 0x97, 0x15, 0xEE, 0xF2, 0x9B, 0xE3, 0x28, + 0x06, 0xA1, 0xD5, 0x8B, 0xB7, 0xC5, 0xDA, 0x76, 0xF5, 0x50, 0xAA, 0x3D, + 0x8A, 0x1F, 0xBF, 0xF0, 0xEB, 0x19, 0xCC, 0xB1, 0xA3, 0x13, 0xD5, 0x5C, + 0xDA, 0x56, 0xC9, 0xEC, 0x2E, 0xF2, 0x96, 0x32, 0x38, 0x7F, 0xE8, 0xD7, + 0x6E, 0x3C, 0x04, 0x68, 0x04, 0x3E, 0x8F, 0x66, 0x3F, 0x48, 0x60, 0xEE, + 0x12, 0xBF, 0x2D, 0x5B, 0x0B, 0x74, 0x74, 0xD6, 0xE6, 0x94, 0xF9, 0x1E, + 0x6D, 0xBE, 0x11, 0x59, 0x74, 0xA3, 0x92, 0x6F, 0x12, 0xFE, 0xE5, 0xE4, + 0x38, 0x77, 0x7C, 0xB6, 0xA9, 0x32, 0xDF, 0x8C, 0xD8, 0xBE, 0xC4, 0xD0, + 0x73, 0xB9, 0x31, 0xBA, 0x3B, 0xC8, 0x32, 0xB6, 0x8D, 0x9D, 0xD3, 0x00, + 0x74, 0x1F, 0xA7, 0xBF, 0x8A, 0xFC, 0x47, 0xED, 0x25, 0x76, 0xF6, 0x93, + 0x6B, 0xA4, 0x24, 0x66, 0x3A, 0xAB, 0x63, 0x9C, 0x5A, 0xE4, 0xF5, 0x68, + 0x34, 0x23, 0xB4, 0x74, 0x2B, 0xF1, 0xC9, 0x78, 0x23, 0x8F, 0x16, 0xCB, + 0xE3, 0x9D, 0x65, 0x2D, 0xE3, 0xFD, 0xB8, 0xBE, 0xFC, 0x84, 0x8A, 0xD9, + 0x22, 0x22, 0x2E, 0x04, 0xA4, 0x03, 0x7C, 0x07, 0x13, 0xEB, 0x57, 0xA8, + 0x1A, 0x23, 0xF0, 0xC7, 0x34, 0x73, 0xFC, 0x64, 0x6C, 0xEA, 0x30, 0x6B, + 0x4B, 0xCB, 0xC8, 0x86, 0x2F, 0x83, 0x85, 0xDD, 0xFA, 0x9D, 0x4B, 0x7F, + 0xA2, 0xC0, 0x87, 0xE8, 0x79, 0x68, 0x33, 0x03, 0xED, 0x5B, 0xDD, 0x3A, + 0x06, 0x2B, 0x3C, 0xF5, 0xB3, 0xA2, 0x78, 0xA6, 0x6D, 0x2A, 0x13, 0xF8, + 0x3F, 0x44, 0xF8, 0x2D, 0xDF, 0x31, 0x0E, 0xE0, 0x74, 0xAB, 0x6A, 0x36, + 0x45, 0x97, 0xE8, 0x99, 0xA0, 0x25, 0x5D, 0xC1, 0x64, 0xF3, 0x1C, 0xC5, + 0x08, 0x46, 0x85, 0x1D, 0xF9, 0xAB, 0x48, 0x19, 0x5D, 0xED, 0x7E, 0xA1, + 0xB1, 0xD5, 0x10, 0xBD, 0x7E, 0xE7, 0x4D, 0x73, 0xFA, 0xF3, 0x6B, 0xC3, + 0x1E, 0xCF, 0xA2, 0x68, 0x35, 0x90, 0x46, 0xF4, 0xEB, 0x87, 0x9F, 0x92, + 0x40, 0x09, 0x43, 0x8B, 0x48, 0x1C, 0x6C, 0xD7, 0x88, 0x9A, 0x00, 0x2E, + 0xD5, 0xEE, 0x38, 0x2B, 0xC9, 0x19, 0x0D, 0xA6, 0xFC, 0x02, 0x6E, 0x47, + 0x95, 0x58, 0xE4, 0x47, 0x56, 0x77, 0xE9, 0xAA, 0x9E, 0x30, 0x50, 0xE2, + 0x76, 0x56, 0x94, 0xDF, 0xC8, 0x1F, 0x56, 0xE8, 0x80, 0xB9, 0x6E, 0x71, + 0x60, 0xC9, 0x80, 0xDD, 0x98, 0xED, 0xD3, 0xDF, 0xFF, 0xFF, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF +}; + +/* TLS 8192 prime is: 2^8192 - 2^8128 + {[2^8062 * e] + 10965728} * 2^64 - 1 */ +static const unsigned char prime_tls_8192[] = { + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xAD, 0xF8, 0x54, 0x58, + 0xA2, 0xBB, 0x4A, 0x9A, 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, + 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, 0xA9, 0xE1, 0x36, 0x41, + 0x14, 0x64, 0x33, 0xFB, 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, + 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, 0xF6, 0x81, 0xB2, 0x02, + 0xAE, 0xC4, 0x61, 0x7A, 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, + 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, 0x85, 0x63, 0x65, 0x55, + 0x3D, 0xED, 0x1A, 0xF3, 0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, + 0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, 0xE2, 0xA6, 0x89, 0xDA, + 0xF3, 0xEF, 0xE8, 0x72, 0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, + 0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, 0xBC, 0x0A, 0xB1, 0x82, + 0xB3, 0x24, 0xFB, 0x61, 0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, + 0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, 0x1D, 0x4F, 0x42, 0xA3, + 0xDE, 0x39, 0x4D, 0xF4, 0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, + 0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, 0x9E, 0x02, 0xFC, 0xE1, + 0xCD, 0xF7, 0xE2, 0xEC, 0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, + 0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, 0x8E, 0x4F, 0x12, 0x32, + 0xEE, 0xF2, 0x81, 0x83, 0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, + 0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, 0xC5, 0x8E, 0xF1, 0x83, + 0x7D, 0x16, 0x83, 0xB2, 0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, + 0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, 0xDE, 0x35, 0x5B, 0x3B, + 0x65, 0x19, 0x03, 0x5B, 0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, + 0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, 0x7A, 0xD9, 0x1D, 0x26, + 0x91, 0xF7, 0xF7, 0xEE, 0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, + 0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, 0xB4, 0x13, 0x0C, 0x93, + 0xBC, 0x43, 0x79, 0x44, 0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, + 0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, 0x5C, 0xAE, 0x82, 0xAB, + 0x9C, 0x9D, 0xF6, 0x9E, 0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, + 0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, 0x1D, 0xBF, 0x9A, 0x42, + 0xD5, 0xC4, 0x48, 0x4E, 0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, + 0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, 0x25, 0xE4, 0x1D, 0x2B, + 0x66, 0x9E, 0x1E, 0xF1, 0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, + 0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, 0xAC, 0x7D, 0x5F, 0x42, + 0xD6, 0x9F, 0x6D, 0x18, 0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, + 0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, 0x71, 0x35, 0xC8, 0x86, + 0xEF, 0xB4, 0x31, 0x8A, 0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, + 0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, 0x6D, 0xC7, 0x78, 0xF9, + 0x71, 0xAD, 0x00, 0x38, 0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, + 0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, 0x2A, 0x4E, 0xCE, 0xA9, + 0xF9, 0x8D, 0x0A, 0xCC, 0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, + 0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, 0x4D, 0xB5, 0xA8, 0x51, + 0xF4, 0x41, 0x82, 0xE1, 0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x0D, 0xD9, 0x02, + 0x0B, 0xFD, 0x64, 0xB6, 0x45, 0x03, 0x6C, 0x7A, 0x4E, 0x67, 0x7D, 0x2C, + 0x38, 0x53, 0x2A, 0x3A, 0x23, 0xBA, 0x44, 0x42, 0xCA, 0xF5, 0x3E, 0xA6, + 0x3B, 0xB4, 0x54, 0x32, 0x9B, 0x76, 0x24, 0xC8, 0x91, 0x7B, 0xDD, 0x64, + 0xB1, 0xC0, 0xFD, 0x4C, 0xB3, 0x8E, 0x8C, 0x33, 0x4C, 0x70, 0x1C, 0x3A, + 0xCD, 0xAD, 0x06, 0x57, 0xFC, 0xCF, 0xEC, 0x71, 0x9B, 0x1F, 0x5C, 0x3E, + 0x4E, 0x46, 0x04, 0x1F, 0x38, 0x81, 0x47, 0xFB, 0x4C, 0xFD, 0xB4, 0x77, + 0xA5, 0x24, 0x71, 0xF7, 0xA9, 0xA9, 0x69, 0x10, 0xB8, 0x55, 0x32, 0x2E, + 0xDB, 0x63, 0x40, 0xD8, 0xA0, 0x0E, 0xF0, 0x92, 0x35, 0x05, 0x11, 0xE3, + 0x0A, 0xBE, 0xC1, 0xFF, 0xF9, 0xE3, 0xA2, 0x6E, 0x7F, 0xB2, 0x9F, 0x8C, + 0x18, 0x30, 0x23, 0xC3, 0x58, 0x7E, 0x38, 0xDA, 0x00, 0x77, 0xD9, 0xB4, + 0x76, 0x3E, 0x4E, 0x4B, 0x94, 0xB2, 0xBB, 0xC1, 0x94, 0xC6, 0x65, 0x1E, + 0x77, 0xCA, 0xF9, 0x92, 0xEE, 0xAA, 0xC0, 0x23, 0x2A, 0x28, 0x1B, 0xF6, + 0xB3, 0xA7, 0x39, 0xC1, 0x22, 0x61, 0x16, 0x82, 0x0A, 0xE8, 0xDB, 0x58, + 0x47, 0xA6, 0x7C, 0xBE, 0xF9, 0xC9, 0x09, 0x1B, 0x46, 0x2D, 0x53, 0x8C, + 0xD7, 0x2B, 0x03, 0x74, 0x6A, 0xE7, 0x7F, 0x5E, 0x62, 0x29, 0x2C, 0x31, + 0x15, 0x62, 0xA8, 0x46, 0x50, 0x5D, 0xC8, 0x2D, 0xB8, 0x54, 0x33, 0x8A, + 0xE4, 0x9F, 0x52, 0x35, 0xC9, 0x5B, 0x91, 0x17, 0x8C, 0xCF, 0x2D, 0xD5, + 0xCA, 0xCE, 0xF4, 0x03, 0xEC, 0x9D, 0x18, 0x10, 0xC6, 0x27, 0x2B, 0x04, + 0x5B, 0x3B, 0x71, 0xF9, 0xDC, 0x6B, 0x80, 0xD6, 0x3F, 0xDD, 0x4A, 0x8E, + 0x9A, 0xDB, 0x1E, 0x69, 0x62, 0xA6, 0x95, 0x26, 0xD4, 0x31, 0x61, 0xC1, + 0xA4, 0x1D, 0x57, 0x0D, 0x79, 0x38, 0xDA, 0xD4, 0xA4, 0x0E, 0x32, 0x9C, + 0xCF, 0xF4, 0x6A, 0xAA, 0x36, 0xAD, 0x00, 0x4C, 0xF6, 0x00, 0xC8, 0x38, + 0x1E, 0x42, 0x5A, 0x31, 0xD9, 0x51, 0xAE, 0x64, 0xFD, 0xB2, 0x3F, 0xCE, + 0xC9, 0x50, 0x9D, 0x43, 0x68, 0x7F, 0xEB, 0x69, 0xED, 0xD1, 0xCC, 0x5E, + 0x0B, 0x8C, 0xC3, 0xBD, 0xF6, 0x4B, 0x10, 0xEF, 0x86, 0xB6, 0x31, 0x42, + 0xA3, 0xAB, 0x88, 0x29, 0x55, 0x5B, 0x2F, 0x74, 0x7C, 0x93, 0x26, 0x65, + 0xCB, 0x2C, 0x0F, 0x1C, 0xC0, 0x1B, 0xD7, 0x02, 0x29, 0x38, 0x88, 0x39, + 0xD2, 0xAF, 0x05, 0xE4, 0x54, 0x50, 0x4A, 0xC7, 0x8B, 0x75, 0x82, 0x82, + 0x28, 0x46, 0xC0, 0xBA, 0x35, 0xC3, 0x5F, 0x5C, 0x59, 0x16, 0x0C, 0xC0, + 0x46, 0xFD, 0x82, 0x51, 0x54, 0x1F, 0xC6, 0x8C, 0x9C, 0x86, 0xB0, 0x22, + 0xBB, 0x70, 0x99, 0x87, 0x6A, 0x46, 0x0E, 0x74, 0x51, 0xA8, 0xA9, 0x31, + 0x09, 0x70, 0x3F, 0xEE, 0x1C, 0x21, 0x7E, 0x6C, 0x38, 0x26, 0xE5, 0x2C, + 0x51, 0xAA, 0x69, 0x1E, 0x0E, 0x42, 0x3C, 0xFC, 0x99, 0xE9, 0xE3, 0x16, + 0x50, 0xC1, 0x21, 0x7B, 0x62, 0x48, 0x16, 0xCD, 0xAD, 0x9A, 0x95, 0xF9, + 0xD5, 0xB8, 0x01, 0x94, 0x88, 0xD9, 0xC0, 0xA0, 0xA1, 0xFE, 0x30, 0x75, + 0xA5, 0x77, 0xE2, 0x31, 0x83, 0xF8, 0x1D, 0x4A, 0x3F, 0x2F, 0xA4, 0x57, + 0x1E, 0xFC, 0x8C, 0xE0, 0xBA, 0x8A, 0x4F, 0xE8, 0xB6, 0x85, 0x5D, 0xFE, + 0x72, 0xB0, 0xA6, 0x6E, 0xDE, 0xD2, 0xFB, 0xAB, 0xFB, 0xE5, 0x8A, 0x30, + 0xFA, 0xFA, 0xBE, 0x1C, 0x5D, 0x71, 0xA8, 0x7E, 0x2F, 0x74, 0x1E, 0xF8, + 0xC1, 0xFE, 0x86, 0xFE, 0xA6, 0xBB, 0xFD, 0xE5, 0x30, 0x67, 0x7F, 0x0D, + 0x97, 0xD1, 0x1D, 0x49, 0xF7, 0xA8, 0x44, 0x3D, 0x08, 0x22, 0xE5, 0x06, + 0xA9, 0xF4, 0x61, 0x4E, 0x01, 0x1E, 0x2A, 0x94, 0x83, 0x8F, 0xF8, 0x8C, + 0xD6, 0x8C, 0x8B, 0xB7, 0xC5, 0xC6, 0x42, 0x4C, 0xFF, 0xFF, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF +}; + +/* q=(p-1)/2 for prime prime_ike_1536 */ +static const unsigned char subprime_ike_1536_data[] = { + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe4, 0x87, 0xed, 0x51, + 0x10, 0xb4, 0x61, 0x1a, 0x62, 0x63, 0x31, 0x45, 0xc0, 0x6e, 0x0e, 0x68, + 0x94, 0x81, 0x27, 0x04, 0x45, 0x33, 0xe6, 0x3a, 0x01, 0x05, 0xdf, 0x53, + 0x1d, 0x89, 0xcd, 0x91, 0x28, 0xa5, 0x04, 0x3c, 0xc7, 0x1a, 0x02, 0x6e, + 0xf7, 0xca, 0x8c, 0xd9, 0xe6, 0x9d, 0x21, 0x8d, 0x98, 0x15, 0x85, 0x36, + 0xf9, 0x2f, 0x8a, 0x1b, 0xa7, 0xf0, 0x9a, 0xb6, 0xb6, 0xa8, 0xe1, 0x22, + 0xf2, 0x42, 0xda, 0xbb, 0x31, 0x2f, 0x3f, 0x63, 0x7a, 0x26, 0x21, 0x74, + 0xd3, 0x1b, 0xf6, 0xb5, 0x85, 0xff, 0xae, 0x5b, 0x7a, 0x03, 0x5b, 0xf6, + 0xf7, 0x1c, 0x35, 0xfd, 0xad, 0x44, 0xcf, 0xd2, 0xd7, 0x4f, 0x92, 0x08, + 0xbe, 0x25, 0x8f, 0xf3, 0x24, 0x94, 0x33, 0x28, 0xf6, 0x72, 0x2d, 0x9e, + 0xe1, 0x00, 0x3e, 0x5c, 0x50, 0xb1, 0xdf, 0x82, 0xcc, 0x6d, 0x24, 0x1b, + 0x0e, 0x2a, 0xe9, 0xcd, 0x34, 0x8b, 0x1f, 0xd4, 0x7e, 0x92, 0x67, 0xaf, + 0xc1, 0xb2, 0xae, 0x91, 0xee, 0x51, 0xd6, 0xcb, 0x0e, 0x31, 0x79, 0xab, + 0x10, 0x42, 0xa9, 0x5d, 0xcf, 0x6a, 0x94, 0x83, 0xb8, 0x4b, 0x4b, 0x36, + 0xb3, 0x86, 0x1a, 0xa7, 0x25, 0x5e, 0x4c, 0x02, 0x78, 0xba, 0x36, 0x04, + 0x65, 0x11, 0xb9, 0x93, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, +}; + +/* q=(p-1)/2 for prime prime_ike_2048 */ +static const unsigned char subprime_ike_2048_data[] = { + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe4, 0x87, 0xed, 0x51, + 0x10, 0xb4, 0x61, 0x1a, 0x62, 0x63, 0x31, 0x45, 0xc0, 0x6e, 0x0e, 0x68, + 0x94, 0x81, 0x27, 0x04, 0x45, 0x33, 0xe6, 0x3a, 0x01, 0x05, 0xdf, 0x53, + 0x1d, 0x89, 0xcd, 0x91, 0x28, 0xa5, 0x04, 0x3c, 0xc7, 0x1a, 0x02, 0x6e, + 0xf7, 0xca, 0x8c, 0xd9, 0xe6, 0x9d, 0x21, 0x8d, 0x98, 0x15, 0x85, 0x36, + 0xf9, 0x2f, 0x8a, 0x1b, 0xa7, 0xf0, 0x9a, 0xb6, 0xb6, 0xa8, 0xe1, 0x22, + 0xf2, 0x42, 0xda, 0xbb, 0x31, 0x2f, 0x3f, 0x63, 0x7a, 0x26, 0x21, 0x74, + 0xd3, 0x1b, 0xf6, 0xb5, 0x85, 0xff, 0xae, 0x5b, 0x7a, 0x03, 0x5b, 0xf6, + 0xf7, 0x1c, 0x35, 0xfd, 0xad, 0x44, 0xcf, 0xd2, 0xd7, 0x4f, 0x92, 0x08, + 0xbe, 0x25, 0x8f, 0xf3, 0x24, 0x94, 0x33, 0x28, 0xf6, 0x72, 0x2d, 0x9e, + 0xe1, 0x00, 0x3e, 0x5c, 0x50, 0xb1, 0xdf, 0x82, 0xcc, 0x6d, 0x24, 0x1b, + 0x0e, 0x2a, 0xe9, 0xcd, 0x34, 0x8b, 0x1f, 0xd4, 0x7e, 0x92, 0x67, 0xaf, + 0xc1, 0xb2, 0xae, 0x91, 0xee, 0x51, 0xd6, 0xcb, 0x0e, 0x31, 0x79, 0xab, + 0x10, 0x42, 0xa9, 0x5d, 0xcf, 0x6a, 0x94, 0x83, 0xb8, 0x4b, 0x4b, 0x36, + 0xb3, 0x86, 0x1a, 0xa7, 0x25, 0x5e, 0x4c, 0x02, 0x78, 0xba, 0x36, 0x04, + 0x65, 0x0c, 0x10, 0xbe, 0x19, 0x48, 0x2f, 0x23, 0x17, 0x1b, 0x67, 0x1d, + 0xf1, 0xcf, 0x3b, 0x96, 0x0c, 0x07, 0x43, 0x01, 0xcd, 0x93, 0xc1, 0xd1, + 0x76, 0x03, 0xd1, 0x47, 0xda, 0xe2, 0xae, 0xf8, 0x37, 0xa6, 0x29, 0x64, + 0xef, 0x15, 0xe5, 0xfb, 0x4a, 0xac, 0x0b, 0x8c, 0x1c, 0xca, 0xa4, 0xbe, + 0x75, 0x4a, 0xb5, 0x72, 0x8a, 0xe9, 0x13, 0x0c, 0x4c, 0x7d, 0x02, 0x88, + 0x0a, 0xb9, 0x47, 0x2d, 0x45, 0x56, 0x55, 0x34, 0x7f, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, +}; + +/* q=(p-1)/2 for prime prime_tls_2048 */ +static const unsigned char subprime_tls_2048_data[] = { + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd6, 0xfc, 0x2a, 0x2c, + 0x51, 0x5d, 0xa5, 0x4d, 0x57, 0xee, 0x2b, 0x10, 0x13, 0x9e, 0x9e, 0x78, + 0xec, 0x5c, 0xe2, 0xc1, 0xe7, 0x16, 0x9b, 0x4a, 0xd4, 0xf0, 0x9b, 0x20, + 0x8a, 0x32, 0x19, 0xfd, 0xe6, 0x49, 0xce, 0xe7, 0x12, 0x4d, 0x9f, 0x7c, + 0xbe, 0x97, 0xf1, 0xb1, 0xb1, 0x86, 0x3a, 0xec, 0x7b, 0x40, 0xd9, 0x01, + 0x57, 0x62, 0x30, 0xbd, 0x69, 0xef, 0x8f, 0x6a, 0xea, 0xfe, 0xb2, 0xb0, + 0x92, 0x19, 0xfa, 0x8f, 0xaf, 0x83, 0x37, 0x68, 0x42, 0xb1, 0xb2, 0xaa, + 0x9e, 0xf6, 0x8d, 0x79, 0xda, 0xab, 0x89, 0xaf, 0x3f, 0xab, 0xe4, 0x9a, + 0xcc, 0x27, 0x86, 0x38, 0x70, 0x73, 0x45, 0xbb, 0xf1, 0x53, 0x44, 0xed, + 0x79, 0xf7, 0xf4, 0x39, 0x0e, 0xf8, 0xac, 0x50, 0x9b, 0x56, 0xf3, 0x9a, + 0x98, 0x56, 0x65, 0x27, 0xa4, 0x1d, 0x3c, 0xbd, 0x5e, 0x05, 0x58, 0xc1, + 0x59, 0x92, 0x7d, 0xb0, 0xe8, 0x84, 0x54, 0xa5, 0xd9, 0x64, 0x71, 0xfd, + 0xdc, 0xb5, 0x6d, 0x5b, 0xb0, 0x6b, 0xfa, 0x34, 0x0e, 0xa7, 0xa1, 0x51, + 0xef, 0x1c, 0xa6, 0xfa, 0x57, 0x2b, 0x76, 0xf3, 0xb1, 0xb9, 0x5d, 0x8c, + 0x85, 0x83, 0xd3, 0xe4, 0x77, 0x05, 0x36, 0xb8, 0x4f, 0x01, 0x7e, 0x70, + 0xe6, 0xfb, 0xf1, 0x76, 0x60, 0x1a, 0x02, 0x66, 0x94, 0x1a, 0x17, 0xb0, + 0xc8, 0xb9, 0x7f, 0x4e, 0x74, 0xc2, 0xc1, 0xff, 0xc7, 0x27, 0x89, 0x19, + 0x77, 0x79, 0x40, 0xc1, 0xe1, 0xff, 0x1d, 0x8d, 0xa6, 0x37, 0xd6, 0xb9, + 0x9d, 0xda, 0xfe, 0x5e, 0x17, 0x61, 0x10, 0x02, 0xe2, 0xc7, 0x78, 0xc1, + 0xbe, 0x8b, 0x41, 0xd9, 0x63, 0x79, 0xa5, 0x13, 0x60, 0xd9, 0x77, 0xfd, + 0x44, 0x35, 0xa1, 0x1c, 0x30, 0x94, 0x2e, 0x4b, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, +}; + +/* q=(p-1)/2 for prime prime_ike_3072 */ +static const unsigned char subprime_ike_3072_data[] = { + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe4, 0x87, 0xed, 0x51, + 0x10, 0xb4, 0x61, 0x1a, 0x62, 0x63, 0x31, 0x45, 0xc0, 0x6e, 0x0e, 0x68, + 0x94, 0x81, 0x27, 0x04, 0x45, 0x33, 0xe6, 0x3a, 0x01, 0x05, 0xdf, 0x53, + 0x1d, 0x89, 0xcd, 0x91, 0x28, 0xa5, 0x04, 0x3c, 0xc7, 0x1a, 0x02, 0x6e, + 0xf7, 0xca, 0x8c, 0xd9, 0xe6, 0x9d, 0x21, 0x8d, 0x98, 0x15, 0x85, 0x36, + 0xf9, 0x2f, 0x8a, 0x1b, 0xa7, 0xf0, 0x9a, 0xb6, 0xb6, 0xa8, 0xe1, 0x22, + 0xf2, 0x42, 0xda, 0xbb, 0x31, 0x2f, 0x3f, 0x63, 0x7a, 0x26, 0x21, 0x74, + 0xd3, 0x1b, 0xf6, 0xb5, 0x85, 0xff, 0xae, 0x5b, 0x7a, 0x03, 0x5b, 0xf6, + 0xf7, 0x1c, 0x35, 0xfd, 0xad, 0x44, 0xcf, 0xd2, 0xd7, 0x4f, 0x92, 0x08, + 0xbe, 0x25, 0x8f, 0xf3, 0x24, 0x94, 0x33, 0x28, 0xf6, 0x72, 0x2d, 0x9e, + 0xe1, 0x00, 0x3e, 0x5c, 0x50, 0xb1, 0xdf, 0x82, 0xcc, 0x6d, 0x24, 0x1b, + 0x0e, 0x2a, 0xe9, 0xcd, 0x34, 0x8b, 0x1f, 0xd4, 0x7e, 0x92, 0x67, 0xaf, + 0xc1, 0xb2, 0xae, 0x91, 0xee, 0x51, 0xd6, 0xcb, 0x0e, 0x31, 0x79, 0xab, + 0x10, 0x42, 0xa9, 0x5d, 0xcf, 0x6a, 0x94, 0x83, 0xb8, 0x4b, 0x4b, 0x36, + 0xb3, 0x86, 0x1a, 0xa7, 0x25, 0x5e, 0x4c, 0x02, 0x78, 0xba, 0x36, 0x04, + 0x65, 0x0c, 0x10, 0xbe, 0x19, 0x48, 0x2f, 0x23, 0x17, 0x1b, 0x67, 0x1d, + 0xf1, 0xcf, 0x3b, 0x96, 0x0c, 0x07, 0x43, 0x01, 0xcd, 0x93, 0xc1, 0xd1, + 0x76, 0x03, 0xd1, 0x47, 0xda, 0xe2, 0xae, 0xf8, 0x37, 0xa6, 0x29, 0x64, + 0xef, 0x15, 0xe5, 0xfb, 0x4a, 0xac, 0x0b, 0x8c, 0x1c, 0xca, 0xa4, 0xbe, + 0x75, 0x4a, 0xb5, 0x72, 0x8a, 0xe9, 0x13, 0x0c, 0x4c, 0x7d, 0x02, 0x88, + 0x0a, 0xb9, 0x47, 0x2d, 0x45, 0x55, 0x62, 0x16, 0xd6, 0x99, 0x8b, 0x86, + 0x82, 0x28, 0x3d, 0x19, 0xd4, 0x2a, 0x90, 0xd5, 0xef, 0x8e, 0x5d, 0x32, + 0x76, 0x7d, 0xc2, 0x82, 0x2c, 0x6d, 0xf7, 0x85, 0x45, 0x75, 0x38, 0xab, + 0xae, 0x83, 0x06, 0x3e, 0xd9, 0xcb, 0x87, 0xc2, 0xd3, 0x70, 0xf2, 0x63, + 0xd5, 0xfa, 0xd7, 0x46, 0x6d, 0x84, 0x99, 0xeb, 0x8f, 0x46, 0x4a, 0x70, + 0x25, 0x12, 0xb0, 0xce, 0xe7, 0x71, 0xe9, 0x13, 0x0d, 0x69, 0x77, 0x35, + 0xf8, 0x97, 0xfd, 0x03, 0x6c, 0xc5, 0x04, 0x32, 0x6c, 0x3b, 0x01, 0x39, + 0x9f, 0x64, 0x35, 0x32, 0x29, 0x0f, 0x95, 0x8c, 0x0b, 0xbd, 0x90, 0x06, + 0x5d, 0xf0, 0x8b, 0xab, 0xbd, 0x30, 0xae, 0xb6, 0x3b, 0x84, 0xc4, 0x60, + 0x5d, 0x6c, 0xa3, 0x71, 0x04, 0x71, 0x27, 0xd0, 0x3a, 0x72, 0xd5, 0x98, + 0xa1, 0xed, 0xad, 0xfe, 0x70, 0x7e, 0x88, 0x47, 0x25, 0xc1, 0x68, 0x90, + 0x54, 0x9d, 0x69, 0x65, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, +}; + +/* q=(p-1)/2 for prime prime_tls_3072 */ +static const unsigned char subprime_tls_3072_data[] = { + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd6, 0xfc, 0x2a, 0x2c, + 0x51, 0x5d, 0xa5, 0x4d, 0x57, 0xee, 0x2b, 0x10, 0x13, 0x9e, 0x9e, 0x78, + 0xec, 0x5c, 0xe2, 0xc1, 0xe7, 0x16, 0x9b, 0x4a, 0xd4, 0xf0, 0x9b, 0x20, + 0x8a, 0x32, 0x19, 0xfd, 0xe6, 0x49, 0xce, 0xe7, 0x12, 0x4d, 0x9f, 0x7c, + 0xbe, 0x97, 0xf1, 0xb1, 0xb1, 0x86, 0x3a, 0xec, 0x7b, 0x40, 0xd9, 0x01, + 0x57, 0x62, 0x30, 0xbd, 0x69, 0xef, 0x8f, 0x6a, 0xea, 0xfe, 0xb2, 0xb0, + 0x92, 0x19, 0xfa, 0x8f, 0xaf, 0x83, 0x37, 0x68, 0x42, 0xb1, 0xb2, 0xaa, + 0x9e, 0xf6, 0x8d, 0x79, 0xda, 0xab, 0x89, 0xaf, 0x3f, 0xab, 0xe4, 0x9a, + 0xcc, 0x27, 0x86, 0x38, 0x70, 0x73, 0x45, 0xbb, 0xf1, 0x53, 0x44, 0xed, + 0x79, 0xf7, 0xf4, 0x39, 0x0e, 0xf8, 0xac, 0x50, 0x9b, 0x56, 0xf3, 0x9a, + 0x98, 0x56, 0x65, 0x27, 0xa4, 0x1d, 0x3c, 0xbd, 0x5e, 0x05, 0x58, 0xc1, + 0x59, 0x92, 0x7d, 0xb0, 0xe8, 0x84, 0x54, 0xa5, 0xd9, 0x64, 0x71, 0xfd, + 0xdc, 0xb5, 0x6d, 0x5b, 0xb0, 0x6b, 0xfa, 0x34, 0x0e, 0xa7, 0xa1, 0x51, + 0xef, 0x1c, 0xa6, 0xfa, 0x57, 0x2b, 0x76, 0xf3, 0xb1, 0xb9, 0x5d, 0x8c, + 0x85, 0x83, 0xd3, 0xe4, 0x77, 0x05, 0x36, 0xb8, 0x4f, 0x01, 0x7e, 0x70, + 0xe6, 0xfb, 0xf1, 0x76, 0x60, 0x1a, 0x02, 0x66, 0x94, 0x1a, 0x17, 0xb0, + 0xc8, 0xb9, 0x7f, 0x4e, 0x74, 0xc2, 0xc1, 0xff, 0xc7, 0x27, 0x89, 0x19, + 0x77, 0x79, 0x40, 0xc1, 0xe1, 0xff, 0x1d, 0x8d, 0xa6, 0x37, 0xd6, 0xb9, + 0x9d, 0xda, 0xfe, 0x5e, 0x17, 0x61, 0x10, 0x02, 0xe2, 0xc7, 0x78, 0xc1, + 0xbe, 0x8b, 0x41, 0xd9, 0x63, 0x79, 0xa5, 0x13, 0x60, 0xd9, 0x77, 0xfd, + 0x44, 0x35, 0xa1, 0x1c, 0x30, 0x8f, 0xe7, 0xee, 0x6f, 0x1a, 0xad, 0x9d, + 0xb2, 0x8c, 0x81, 0xad, 0xde, 0x1a, 0x7a, 0x6f, 0x7c, 0xce, 0x01, 0x1c, + 0x30, 0xda, 0x37, 0xe4, 0xeb, 0x73, 0x64, 0x83, 0xbd, 0x6c, 0x8e, 0x93, + 0x48, 0xfb, 0xfb, 0xf7, 0x2c, 0xc6, 0x58, 0x7d, 0x60, 0xc3, 0x6c, 0x8e, + 0x57, 0x7f, 0x09, 0x84, 0xc2, 0x89, 0xc9, 0x38, 0x5a, 0x09, 0x86, 0x49, + 0xde, 0x21, 0xbc, 0xa2, 0x7a, 0x7e, 0xa2, 0x29, 0x71, 0x6b, 0xa6, 0xe9, + 0xb2, 0x79, 0x71, 0x0f, 0x38, 0xfa, 0xa5, 0xff, 0xae, 0x57, 0x41, 0x55, + 0xce, 0x4e, 0xfb, 0x4f, 0x74, 0x36, 0x95, 0xe2, 0x91, 0x1b, 0x1d, 0x06, + 0xd5, 0xe2, 0x90, 0xcb, 0xcd, 0x86, 0xf5, 0x6d, 0x0e, 0xdf, 0xcd, 0x21, + 0x6a, 0xe2, 0x24, 0x27, 0x05, 0x5e, 0x68, 0x35, 0xfd, 0x29, 0xee, 0xf7, + 0x9e, 0x0d, 0x90, 0x77, 0x1f, 0xea, 0xce, 0xbe, 0x12, 0xf2, 0x0e, 0x95, + 0xb3, 0x63, 0x17, 0x1b, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, +}; + +/* q=(p-1)/2 for prime prime_ike_4096 */ +static const unsigned char subprime_ike_4096_data[] = { + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe4, 0x87, 0xed, 0x51, + 0x10, 0xb4, 0x61, 0x1a, 0x62, 0x63, 0x31, 0x45, 0xc0, 0x6e, 0x0e, 0x68, + 0x94, 0x81, 0x27, 0x04, 0x45, 0x33, 0xe6, 0x3a, 0x01, 0x05, 0xdf, 0x53, + 0x1d, 0x89, 0xcd, 0x91, 0x28, 0xa5, 0x04, 0x3c, 0xc7, 0x1a, 0x02, 0x6e, + 0xf7, 0xca, 0x8c, 0xd9, 0xe6, 0x9d, 0x21, 0x8d, 0x98, 0x15, 0x85, 0x36, + 0xf9, 0x2f, 0x8a, 0x1b, 0xa7, 0xf0, 0x9a, 0xb6, 0xb6, 0xa8, 0xe1, 0x22, + 0xf2, 0x42, 0xda, 0xbb, 0x31, 0x2f, 0x3f, 0x63, 0x7a, 0x26, 0x21, 0x74, + 0xd3, 0x1b, 0xf6, 0xb5, 0x85, 0xff, 0xae, 0x5b, 0x7a, 0x03, 0x5b, 0xf6, + 0xf7, 0x1c, 0x35, 0xfd, 0xad, 0x44, 0xcf, 0xd2, 0xd7, 0x4f, 0x92, 0x08, + 0xbe, 0x25, 0x8f, 0xf3, 0x24, 0x94, 0x33, 0x28, 0xf6, 0x72, 0x2d, 0x9e, + 0xe1, 0x00, 0x3e, 0x5c, 0x50, 0xb1, 0xdf, 0x82, 0xcc, 0x6d, 0x24, 0x1b, + 0x0e, 0x2a, 0xe9, 0xcd, 0x34, 0x8b, 0x1f, 0xd4, 0x7e, 0x92, 0x67, 0xaf, + 0xc1, 0xb2, 0xae, 0x91, 0xee, 0x51, 0xd6, 0xcb, 0x0e, 0x31, 0x79, 0xab, + 0x10, 0x42, 0xa9, 0x5d, 0xcf, 0x6a, 0x94, 0x83, 0xb8, 0x4b, 0x4b, 0x36, + 0xb3, 0x86, 0x1a, 0xa7, 0x25, 0x5e, 0x4c, 0x02, 0x78, 0xba, 0x36, 0x04, + 0x65, 0x0c, 0x10, 0xbe, 0x19, 0x48, 0x2f, 0x23, 0x17, 0x1b, 0x67, 0x1d, + 0xf1, 0xcf, 0x3b, 0x96, 0x0c, 0x07, 0x43, 0x01, 0xcd, 0x93, 0xc1, 0xd1, + 0x76, 0x03, 0xd1, 0x47, 0xda, 0xe2, 0xae, 0xf8, 0x37, 0xa6, 0x29, 0x64, + 0xef, 0x15, 0xe5, 0xfb, 0x4a, 0xac, 0x0b, 0x8c, 0x1c, 0xca, 0xa4, 0xbe, + 0x75, 0x4a, 0xb5, 0x72, 0x8a, 0xe9, 0x13, 0x0c, 0x4c, 0x7d, 0x02, 0x88, + 0x0a, 0xb9, 0x47, 0x2d, 0x45, 0x55, 0x62, 0x16, 0xd6, 0x99, 0x8b, 0x86, + 0x82, 0x28, 0x3d, 0x19, 0xd4, 0x2a, 0x90, 0xd5, 0xef, 0x8e, 0x5d, 0x32, + 0x76, 0x7d, 0xc2, 0x82, 0x2c, 0x6d, 0xf7, 0x85, 0x45, 0x75, 0x38, 0xab, + 0xae, 0x83, 0x06, 0x3e, 0xd9, 0xcb, 0x87, 0xc2, 0xd3, 0x70, 0xf2, 0x63, + 0xd5, 0xfa, 0xd7, 0x46, 0x6d, 0x84, 0x99, 0xeb, 0x8f, 0x46, 0x4a, 0x70, + 0x25, 0x12, 0xb0, 0xce, 0xe7, 0x71, 0xe9, 0x13, 0x0d, 0x69, 0x77, 0x35, + 0xf8, 0x97, 0xfd, 0x03, 0x6c, 0xc5, 0x04, 0x32, 0x6c, 0x3b, 0x01, 0x39, + 0x9f, 0x64, 0x35, 0x32, 0x29, 0x0f, 0x95, 0x8c, 0x0b, 0xbd, 0x90, 0x06, + 0x5d, 0xf0, 0x8b, 0xab, 0xbd, 0x30, 0xae, 0xb6, 0x3b, 0x84, 0xc4, 0x60, + 0x5d, 0x6c, 0xa3, 0x71, 0x04, 0x71, 0x27, 0xd0, 0x3a, 0x72, 0xd5, 0x98, + 0xa1, 0xed, 0xad, 0xfe, 0x70, 0x7e, 0x88, 0x47, 0x25, 0xc1, 0x68, 0x90, + 0x54, 0x90, 0x84, 0x00, 0x8d, 0x39, 0x1e, 0x09, 0x53, 0xc3, 0xf3, 0x6b, + 0xc4, 0x38, 0xcd, 0x08, 0x5e, 0xdd, 0x2d, 0x93, 0x4c, 0xe1, 0x93, 0x8c, + 0x35, 0x7a, 0x71, 0x1e, 0x0d, 0x4a, 0x34, 0x1a, 0x5b, 0x0a, 0x85, 0xed, + 0x12, 0xc1, 0xf4, 0xe5, 0x15, 0x6a, 0x26, 0x74, 0x6d, 0xdd, 0xe1, 0x6d, + 0x82, 0x6f, 0x47, 0x7c, 0x97, 0x47, 0x7e, 0x0a, 0x0f, 0xdf, 0x65, 0x53, + 0x14, 0x3e, 0x2c, 0xa3, 0xa7, 0x35, 0xe0, 0x2e, 0xcc, 0xd9, 0x4b, 0x27, + 0xd0, 0x48, 0x61, 0xd1, 0x11, 0x9d, 0xd0, 0xc3, 0x28, 0xad, 0xf3, 0xf6, + 0x8f, 0xb0, 0x94, 0xb8, 0x67, 0x71, 0x6b, 0xd7, 0xdc, 0x0d, 0xee, 0xbb, + 0x10, 0xb8, 0x24, 0x0e, 0x68, 0x03, 0x48, 0x93, 0xea, 0xd8, 0x2d, 0x54, + 0xc9, 0xda, 0x75, 0x4c, 0x46, 0xc7, 0xee, 0xe0, 0xc3, 0x7f, 0xdb, 0xee, + 0x48, 0x53, 0x60, 0x47, 0xa6, 0xfa, 0x1a, 0xe4, 0x9a, 0x03, 0x18, 0xcc, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, +}; + +/* q=(p-1)/2 for prime prime_tls_4096 */ +static const unsigned char subprime_tls_4096_data[] = { + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd6, 0xfc, 0x2a, 0x2c, + 0x51, 0x5d, 0xa5, 0x4d, 0x57, 0xee, 0x2b, 0x10, 0x13, 0x9e, 0x9e, 0x78, + 0xec, 0x5c, 0xe2, 0xc1, 0xe7, 0x16, 0x9b, 0x4a, 0xd4, 0xf0, 0x9b, 0x20, + 0x8a, 0x32, 0x19, 0xfd, 0xe6, 0x49, 0xce, 0xe7, 0x12, 0x4d, 0x9f, 0x7c, + 0xbe, 0x97, 0xf1, 0xb1, 0xb1, 0x86, 0x3a, 0xec, 0x7b, 0x40, 0xd9, 0x01, + 0x57, 0x62, 0x30, 0xbd, 0x69, 0xef, 0x8f, 0x6a, 0xea, 0xfe, 0xb2, 0xb0, + 0x92, 0x19, 0xfa, 0x8f, 0xaf, 0x83, 0x37, 0x68, 0x42, 0xb1, 0xb2, 0xaa, + 0x9e, 0xf6, 0x8d, 0x79, 0xda, 0xab, 0x89, 0xaf, 0x3f, 0xab, 0xe4, 0x9a, + 0xcc, 0x27, 0x86, 0x38, 0x70, 0x73, 0x45, 0xbb, 0xf1, 0x53, 0x44, 0xed, + 0x79, 0xf7, 0xf4, 0x39, 0x0e, 0xf8, 0xac, 0x50, 0x9b, 0x56, 0xf3, 0x9a, + 0x98, 0x56, 0x65, 0x27, 0xa4, 0x1d, 0x3c, 0xbd, 0x5e, 0x05, 0x58, 0xc1, + 0x59, 0x92, 0x7d, 0xb0, 0xe8, 0x84, 0x54, 0xa5, 0xd9, 0x64, 0x71, 0xfd, + 0xdc, 0xb5, 0x6d, 0x5b, 0xb0, 0x6b, 0xfa, 0x34, 0x0e, 0xa7, 0xa1, 0x51, + 0xef, 0x1c, 0xa6, 0xfa, 0x57, 0x2b, 0x76, 0xf3, 0xb1, 0xb9, 0x5d, 0x8c, + 0x85, 0x83, 0xd3, 0xe4, 0x77, 0x05, 0x36, 0xb8, 0x4f, 0x01, 0x7e, 0x70, + 0xe6, 0xfb, 0xf1, 0x76, 0x60, 0x1a, 0x02, 0x66, 0x94, 0x1a, 0x17, 0xb0, + 0xc8, 0xb9, 0x7f, 0x4e, 0x74, 0xc2, 0xc1, 0xff, 0xc7, 0x27, 0x89, 0x19, + 0x77, 0x79, 0x40, 0xc1, 0xe1, 0xff, 0x1d, 0x8d, 0xa6, 0x37, 0xd6, 0xb9, + 0x9d, 0xda, 0xfe, 0x5e, 0x17, 0x61, 0x10, 0x02, 0xe2, 0xc7, 0x78, 0xc1, + 0xbe, 0x8b, 0x41, 0xd9, 0x63, 0x79, 0xa5, 0x13, 0x60, 0xd9, 0x77, 0xfd, + 0x44, 0x35, 0xa1, 0x1c, 0x30, 0x8f, 0xe7, 0xee, 0x6f, 0x1a, 0xad, 0x9d, + 0xb2, 0x8c, 0x81, 0xad, 0xde, 0x1a, 0x7a, 0x6f, 0x7c, 0xce, 0x01, 0x1c, + 0x30, 0xda, 0x37, 0xe4, 0xeb, 0x73, 0x64, 0x83, 0xbd, 0x6c, 0x8e, 0x93, + 0x48, 0xfb, 0xfb, 0xf7, 0x2c, 0xc6, 0x58, 0x7d, 0x60, 0xc3, 0x6c, 0x8e, + 0x57, 0x7f, 0x09, 0x84, 0xc2, 0x89, 0xc9, 0x38, 0x5a, 0x09, 0x86, 0x49, + 0xde, 0x21, 0xbc, 0xa2, 0x7a, 0x7e, 0xa2, 0x29, 0x71, 0x6b, 0xa6, 0xe9, + 0xb2, 0x79, 0x71, 0x0f, 0x38, 0xfa, 0xa5, 0xff, 0xae, 0x57, 0x41, 0x55, + 0xce, 0x4e, 0xfb, 0x4f, 0x74, 0x36, 0x95, 0xe2, 0x91, 0x1b, 0x1d, 0x06, + 0xd5, 0xe2, 0x90, 0xcb, 0xcd, 0x86, 0xf5, 0x6d, 0x0e, 0xdf, 0xcd, 0x21, + 0x6a, 0xe2, 0x24, 0x27, 0x05, 0x5e, 0x68, 0x35, 0xfd, 0x29, 0xee, 0xf7, + 0x9e, 0x0d, 0x90, 0x77, 0x1f, 0xea, 0xce, 0xbe, 0x12, 0xf2, 0x0e, 0x95, + 0xb3, 0x4f, 0x0f, 0x78, 0xb7, 0x37, 0xa9, 0x61, 0x8b, 0x26, 0xfa, 0x7d, + 0xbc, 0x98, 0x74, 0xf2, 0x72, 0xc4, 0x2b, 0xdb, 0x56, 0x3e, 0xaf, 0xa1, + 0x6b, 0x4f, 0xb6, 0x8c, 0x3b, 0xb1, 0xe7, 0x8e, 0xaa, 0x81, 0xa0, 0x02, + 0x43, 0xfa, 0xad, 0xd2, 0xbf, 0x18, 0xe6, 0x3d, 0x38, 0x9a, 0xe4, 0x43, + 0x77, 0xda, 0x18, 0xc5, 0x76, 0xb5, 0x0f, 0x00, 0x96, 0xcf, 0x34, 0x19, + 0x54, 0x83, 0xb0, 0x05, 0x48, 0xc0, 0x98, 0x62, 0x36, 0xe3, 0xbc, 0x7c, + 0xb8, 0xd6, 0x80, 0x1c, 0x04, 0x94, 0xcc, 0xd1, 0x99, 0xe5, 0xc5, 0xbd, + 0x0d, 0x0e, 0xdc, 0x9e, 0xb8, 0xa0, 0x00, 0x1e, 0x15, 0x27, 0x67, 0x54, + 0xfc, 0xc6, 0x85, 0x66, 0x05, 0x41, 0x48, 0xe6, 0xe7, 0x64, 0xbe, 0xe7, + 0xc7, 0x64, 0xda, 0xad, 0x3f, 0xc4, 0x52, 0x35, 0xa6, 0xda, 0xd4, 0x28, + 0xfa, 0x20, 0xc1, 0x70, 0xe3, 0x45, 0x00, 0x3f, 0x2f, 0x32, 0xaf, 0xb5, + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, +}; + +/* q=(p-1)/2 for prime prime_ike_6144 */ +static const unsigned char subprime_ike_6144_data[] = { + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe4, 0x87, 0xed, 0x51, + 0x10, 0xb4, 0x61, 0x1a, 0x62, 0x63, 0x31, 0x45, 0xc0, 0x6e, 0x0e, 0x68, + 0x94, 0x81, 0x27, 0x04, 0x45, 0x33, 0xe6, 0x3a, 0x01, 0x05, 0xdf, 0x53, + 0x1d, 0x89, 0xcd, 0x91, 0x28, 0xa5, 0x04, 0x3c, 0xc7, 0x1a, 0x02, 0x6e, + 0xf7, 0xca, 0x8c, 0xd9, 0xe6, 0x9d, 0x21, 0x8d, 0x98, 0x15, 0x85, 0x36, + 0xf9, 0x2f, 0x8a, 0x1b, 0xa7, 0xf0, 0x9a, 0xb6, 0xb6, 0xa8, 0xe1, 0x22, + 0xf2, 0x42, 0xda, 0xbb, 0x31, 0x2f, 0x3f, 0x63, 0x7a, 0x26, 0x21, 0x74, + 0xd3, 0x1b, 0xf6, 0xb5, 0x85, 0xff, 0xae, 0x5b, 0x7a, 0x03, 0x5b, 0xf6, + 0xf7, 0x1c, 0x35, 0xfd, 0xad, 0x44, 0xcf, 0xd2, 0xd7, 0x4f, 0x92, 0x08, + 0xbe, 0x25, 0x8f, 0xf3, 0x24, 0x94, 0x33, 0x28, 0xf6, 0x72, 0x2d, 0x9e, + 0xe1, 0x00, 0x3e, 0x5c, 0x50, 0xb1, 0xdf, 0x82, 0xcc, 0x6d, 0x24, 0x1b, + 0x0e, 0x2a, 0xe9, 0xcd, 0x34, 0x8b, 0x1f, 0xd4, 0x7e, 0x92, 0x67, 0xaf, + 0xc1, 0xb2, 0xae, 0x91, 0xee, 0x51, 0xd6, 0xcb, 0x0e, 0x31, 0x79, 0xab, + 0x10, 0x42, 0xa9, 0x5d, 0xcf, 0x6a, 0x94, 0x83, 0xb8, 0x4b, 0x4b, 0x36, + 0xb3, 0x86, 0x1a, 0xa7, 0x25, 0x5e, 0x4c, 0x02, 0x78, 0xba, 0x36, 0x04, + 0x65, 0x0c, 0x10, 0xbe, 0x19, 0x48, 0x2f, 0x23, 0x17, 0x1b, 0x67, 0x1d, + 0xf1, 0xcf, 0x3b, 0x96, 0x0c, 0x07, 0x43, 0x01, 0xcd, 0x93, 0xc1, 0xd1, + 0x76, 0x03, 0xd1, 0x47, 0xda, 0xe2, 0xae, 0xf8, 0x37, 0xa6, 0x29, 0x64, + 0xef, 0x15, 0xe5, 0xfb, 0x4a, 0xac, 0x0b, 0x8c, 0x1c, 0xca, 0xa4, 0xbe, + 0x75, 0x4a, 0xb5, 0x72, 0x8a, 0xe9, 0x13, 0x0c, 0x4c, 0x7d, 0x02, 0x88, + 0x0a, 0xb9, 0x47, 0x2d, 0x45, 0x55, 0x62, 0x16, 0xd6, 0x99, 0x8b, 0x86, + 0x82, 0x28, 0x3d, 0x19, 0xd4, 0x2a, 0x90, 0xd5, 0xef, 0x8e, 0x5d, 0x32, + 0x76, 0x7d, 0xc2, 0x82, 0x2c, 0x6d, 0xf7, 0x85, 0x45, 0x75, 0x38, 0xab, + 0xae, 0x83, 0x06, 0x3e, 0xd9, 0xcb, 0x87, 0xc2, 0xd3, 0x70, 0xf2, 0x63, + 0xd5, 0xfa, 0xd7, 0x46, 0x6d, 0x84, 0x99, 0xeb, 0x8f, 0x46, 0x4a, 0x70, + 0x25, 0x12, 0xb0, 0xce, 0xe7, 0x71, 0xe9, 0x13, 0x0d, 0x69, 0x77, 0x35, + 0xf8, 0x97, 0xfd, 0x03, 0x6c, 0xc5, 0x04, 0x32, 0x6c, 0x3b, 0x01, 0x39, + 0x9f, 0x64, 0x35, 0x32, 0x29, 0x0f, 0x95, 0x8c, 0x0b, 0xbd, 0x90, 0x06, + 0x5d, 0xf0, 0x8b, 0xab, 0xbd, 0x30, 0xae, 0xb6, 0x3b, 0x84, 0xc4, 0x60, + 0x5d, 0x6c, 0xa3, 0x71, 0x04, 0x71, 0x27, 0xd0, 0x3a, 0x72, 0xd5, 0x98, + 0xa1, 0xed, 0xad, 0xfe, 0x70, 0x7e, 0x88, 0x47, 0x25, 0xc1, 0x68, 0x90, + 0x54, 0x90, 0x84, 0x00, 0x8d, 0x39, 0x1e, 0x09, 0x53, 0xc3, 0xf3, 0x6b, + 0xc4, 0x38, 0xcd, 0x08, 0x5e, 0xdd, 0x2d, 0x93, 0x4c, 0xe1, 0x93, 0x8c, + 0x35, 0x7a, 0x71, 0x1e, 0x0d, 0x4a, 0x34, 0x1a, 0x5b, 0x0a, 0x85, 0xed, + 0x12, 0xc1, 0xf4, 0xe5, 0x15, 0x6a, 0x26, 0x74, 0x6d, 0xdd, 0xe1, 0x6d, + 0x82, 0x6f, 0x47, 0x7c, 0x97, 0x47, 0x7e, 0x0a, 0x0f, 0xdf, 0x65, 0x53, + 0x14, 0x3e, 0x2c, 0xa3, 0xa7, 0x35, 0xe0, 0x2e, 0xcc, 0xd9, 0x4b, 0x27, + 0xd0, 0x48, 0x61, 0xd1, 0x11, 0x9d, 0xd0, 0xc3, 0x28, 0xad, 0xf3, 0xf6, + 0x8f, 0xb0, 0x94, 0xb8, 0x67, 0x71, 0x6b, 0xd7, 0xdc, 0x0d, 0xee, 0xbb, + 0x10, 0xb8, 0x24, 0x0e, 0x68, 0x03, 0x48, 0x93, 0xea, 0xd8, 0x2d, 0x54, + 0xc9, 0xda, 0x75, 0x4c, 0x46, 0xc7, 0xee, 0xe0, 0xc3, 0x7f, 0xdb, 0xee, + 0x48, 0x53, 0x60, 0x47, 0xa6, 0xfa, 0x1a, 0xe4, 0x9a, 0x01, 0x42, 0x49, + 0x1b, 0x61, 0xfd, 0x5a, 0x69, 0x3e, 0x38, 0x13, 0x60, 0xea, 0x6e, 0x59, + 0x30, 0x13, 0x23, 0x6f, 0x64, 0xba, 0x8f, 0x3b, 0x1e, 0xdd, 0x1b, 0xde, + 0xfc, 0x7f, 0xca, 0x03, 0x56, 0xcf, 0x29, 0x87, 0x72, 0xed, 0x9c, 0x17, + 0xa0, 0x98, 0x00, 0xd7, 0x58, 0x35, 0x29, 0xf6, 0xc8, 0x13, 0xec, 0x18, + 0x8b, 0xcb, 0x93, 0xd8, 0x43, 0x2d, 0x44, 0x8c, 0x6d, 0x1f, 0x6d, 0xf5, + 0xe7, 0xcd, 0x8a, 0x76, 0xa2, 0x67, 0x36, 0x5d, 0x67, 0x6a, 0x5d, 0x8d, + 0xed, 0xbf, 0x8a, 0x23, 0xf3, 0x66, 0x12, 0xa5, 0x99, 0x90, 0x28, 0xa8, + 0x95, 0xeb, 0xd7, 0xa1, 0x37, 0xdc, 0x7a, 0x00, 0x9b, 0xc6, 0x69, 0x5f, + 0xac, 0xc1, 0xe5, 0x00, 0xe3, 0x25, 0xc9, 0x76, 0x78, 0x19, 0x75, 0x0a, + 0xe8, 0xb9, 0x0e, 0x81, 0xfa, 0x41, 0x6b, 0xe7, 0x37, 0x3a, 0x7f, 0x7b, + 0x6a, 0xaf, 0x38, 0x17, 0xa3, 0x4c, 0x06, 0x41, 0x5a, 0xd4, 0x20, 0x18, + 0xc8, 0x05, 0x8e, 0x4f, 0x2c, 0xf3, 0xe4, 0xbf, 0xdf, 0x63, 0xf4, 0x79, + 0x91, 0xd4, 0xbd, 0x3f, 0x1b, 0x66, 0x44, 0x5f, 0x07, 0x8e, 0xa2, 0xdb, + 0xff, 0xac, 0x2d, 0x62, 0xa5, 0xea, 0x03, 0xd9, 0x15, 0xa0, 0xaa, 0x55, + 0x66, 0x47, 0xb6, 0xbf, 0x5f, 0xa4, 0x70, 0xec, 0x0a, 0x66, 0x2f, 0x69, + 0x07, 0xc0, 0x1b, 0xf0, 0x53, 0xcb, 0x8a, 0xf7, 0x79, 0x4d, 0xf1, 0x94, + 0x03, 0x50, 0xea, 0xc5, 0xdb, 0xe2, 0xed, 0x3b, 0x7a, 0xa8, 0x55, 0x1e, + 0xc5, 0x0f, 0xdf, 0xf8, 0x75, 0x8c, 0xe6, 0x58, 0xd1, 0x89, 0xea, 0xae, + 0x6d, 0x2b, 0x64, 0xf6, 0x17, 0x79, 0x4b, 0x19, 0x1c, 0x3f, 0xf4, 0x6b, + 0xb7, 0x1e, 0x02, 0x34, 0x02, 0x1f, 0x47, 0xb3, 0x1f, 0xa4, 0x30, 0x77, + 0x09, 0x5f, 0x96, 0xad, 0x85, 0xba, 0x3a, 0x6b, 0x73, 0x4a, 0x7c, 0x8f, + 0x36, 0xe6, 0x20, 0x12, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, +}; + +/* q=(p-1)/2 for prime prime_tls_6144 */ +static const unsigned char subprime_tls_6144_data[] = { + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd6, 0xfc, 0x2a, 0x2c, + 0x51, 0x5d, 0xa5, 0x4d, 0x57, 0xee, 0x2b, 0x10, 0x13, 0x9e, 0x9e, 0x78, + 0xec, 0x5c, 0xe2, 0xc1, 0xe7, 0x16, 0x9b, 0x4a, 0xd4, 0xf0, 0x9b, 0x20, + 0x8a, 0x32, 0x19, 0xfd, 0xe6, 0x49, 0xce, 0xe7, 0x12, 0x4d, 0x9f, 0x7c, + 0xbe, 0x97, 0xf1, 0xb1, 0xb1, 0x86, 0x3a, 0xec, 0x7b, 0x40, 0xd9, 0x01, + 0x57, 0x62, 0x30, 0xbd, 0x69, 0xef, 0x8f, 0x6a, 0xea, 0xfe, 0xb2, 0xb0, + 0x92, 0x19, 0xfa, 0x8f, 0xaf, 0x83, 0x37, 0x68, 0x42, 0xb1, 0xb2, 0xaa, + 0x9e, 0xf6, 0x8d, 0x79, 0xda, 0xab, 0x89, 0xaf, 0x3f, 0xab, 0xe4, 0x9a, + 0xcc, 0x27, 0x86, 0x38, 0x70, 0x73, 0x45, 0xbb, 0xf1, 0x53, 0x44, 0xed, + 0x79, 0xf7, 0xf4, 0x39, 0x0e, 0xf8, 0xac, 0x50, 0x9b, 0x56, 0xf3, 0x9a, + 0x98, 0x56, 0x65, 0x27, 0xa4, 0x1d, 0x3c, 0xbd, 0x5e, 0x05, 0x58, 0xc1, + 0x59, 0x92, 0x7d, 0xb0, 0xe8, 0x84, 0x54, 0xa5, 0xd9, 0x64, 0x71, 0xfd, + 0xdc, 0xb5, 0x6d, 0x5b, 0xb0, 0x6b, 0xfa, 0x34, 0x0e, 0xa7, 0xa1, 0x51, + 0xef, 0x1c, 0xa6, 0xfa, 0x57, 0x2b, 0x76, 0xf3, 0xb1, 0xb9, 0x5d, 0x8c, + 0x85, 0x83, 0xd3, 0xe4, 0x77, 0x05, 0x36, 0xb8, 0x4f, 0x01, 0x7e, 0x70, + 0xe6, 0xfb, 0xf1, 0x76, 0x60, 0x1a, 0x02, 0x66, 0x94, 0x1a, 0x17, 0xb0, + 0xc8, 0xb9, 0x7f, 0x4e, 0x74, 0xc2, 0xc1, 0xff, 0xc7, 0x27, 0x89, 0x19, + 0x77, 0x79, 0x40, 0xc1, 0xe1, 0xff, 0x1d, 0x8d, 0xa6, 0x37, 0xd6, 0xb9, + 0x9d, 0xda, 0xfe, 0x5e, 0x17, 0x61, 0x10, 0x02, 0xe2, 0xc7, 0x78, 0xc1, + 0xbe, 0x8b, 0x41, 0xd9, 0x63, 0x79, 0xa5, 0x13, 0x60, 0xd9, 0x77, 0xfd, + 0x44, 0x35, 0xa1, 0x1c, 0x30, 0x8f, 0xe7, 0xee, 0x6f, 0x1a, 0xad, 0x9d, + 0xb2, 0x8c, 0x81, 0xad, 0xde, 0x1a, 0x7a, 0x6f, 0x7c, 0xce, 0x01, 0x1c, + 0x30, 0xda, 0x37, 0xe4, 0xeb, 0x73, 0x64, 0x83, 0xbd, 0x6c, 0x8e, 0x93, + 0x48, 0xfb, 0xfb, 0xf7, 0x2c, 0xc6, 0x58, 0x7d, 0x60, 0xc3, 0x6c, 0x8e, + 0x57, 0x7f, 0x09, 0x84, 0xc2, 0x89, 0xc9, 0x38, 0x5a, 0x09, 0x86, 0x49, + 0xde, 0x21, 0xbc, 0xa2, 0x7a, 0x7e, 0xa2, 0x29, 0x71, 0x6b, 0xa6, 0xe9, + 0xb2, 0x79, 0x71, 0x0f, 0x38, 0xfa, 0xa5, 0xff, 0xae, 0x57, 0x41, 0x55, + 0xce, 0x4e, 0xfb, 0x4f, 0x74, 0x36, 0x95, 0xe2, 0x91, 0x1b, 0x1d, 0x06, + 0xd5, 0xe2, 0x90, 0xcb, 0xcd, 0x86, 0xf5, 0x6d, 0x0e, 0xdf, 0xcd, 0x21, + 0x6a, 0xe2, 0x24, 0x27, 0x05, 0x5e, 0x68, 0x35, 0xfd, 0x29, 0xee, 0xf7, + 0x9e, 0x0d, 0x90, 0x77, 0x1f, 0xea, 0xce, 0xbe, 0x12, 0xf2, 0x0e, 0x95, + 0xb3, 0x4f, 0x0f, 0x78, 0xb7, 0x37, 0xa9, 0x61, 0x8b, 0x26, 0xfa, 0x7d, + 0xbc, 0x98, 0x74, 0xf2, 0x72, 0xc4, 0x2b, 0xdb, 0x56, 0x3e, 0xaf, 0xa1, + 0x6b, 0x4f, 0xb6, 0x8c, 0x3b, 0xb1, 0xe7, 0x8e, 0xaa, 0x81, 0xa0, 0x02, + 0x43, 0xfa, 0xad, 0xd2, 0xbf, 0x18, 0xe6, 0x3d, 0x38, 0x9a, 0xe4, 0x43, + 0x77, 0xda, 0x18, 0xc5, 0x76, 0xb5, 0x0f, 0x00, 0x96, 0xcf, 0x34, 0x19, + 0x54, 0x83, 0xb0, 0x05, 0x48, 0xc0, 0x98, 0x62, 0x36, 0xe3, 0xbc, 0x7c, + 0xb8, 0xd6, 0x80, 0x1c, 0x04, 0x94, 0xcc, 0xd1, 0x99, 0xe5, 0xc5, 0xbd, + 0x0d, 0x0e, 0xdc, 0x9e, 0xb8, 0xa0, 0x00, 0x1e, 0x15, 0x27, 0x67, 0x54, + 0xfc, 0xc6, 0x85, 0x66, 0x05, 0x41, 0x48, 0xe6, 0xe7, 0x64, 0xbe, 0xe7, + 0xc7, 0x64, 0xda, 0xad, 0x3f, 0xc4, 0x52, 0x35, 0xa6, 0xda, 0xd4, 0x28, + 0xfa, 0x20, 0xc1, 0x70, 0xe3, 0x45, 0x00, 0x3f, 0x2f, 0x06, 0xec, 0x81, + 0x05, 0xfe, 0xb2, 0x5b, 0x22, 0x81, 0xb6, 0x3d, 0x27, 0x33, 0xbe, 0x96, + 0x1c, 0x29, 0x95, 0x1d, 0x11, 0xdd, 0x22, 0x21, 0x65, 0x7a, 0x9f, 0x53, + 0x1d, 0xda, 0x2a, 0x19, 0x4d, 0xbb, 0x12, 0x64, 0x48, 0xbd, 0xee, 0xb2, + 0x58, 0xe0, 0x7e, 0xa6, 0x59, 0xc7, 0x46, 0x19, 0xa6, 0x38, 0x0e, 0x1d, + 0x66, 0xd6, 0x83, 0x2b, 0xfe, 0x67, 0xf6, 0x38, 0xcd, 0x8f, 0xae, 0x1f, + 0x27, 0x23, 0x02, 0x0f, 0x9c, 0x40, 0xa3, 0xfd, 0xa6, 0x7e, 0xda, 0x3b, + 0xd2, 0x92, 0x38, 0xfb, 0xd4, 0xd4, 0xb4, 0x88, 0x5c, 0x2a, 0x99, 0x17, + 0x6d, 0xb1, 0xa0, 0x6c, 0x50, 0x07, 0x78, 0x49, 0x1a, 0x82, 0x88, 0xf1, + 0x85, 0x5f, 0x60, 0xff, 0xfc, 0xf1, 0xd1, 0x37, 0x3f, 0xd9, 0x4f, 0xc6, + 0x0c, 0x18, 0x11, 0xe1, 0xac, 0x3f, 0x1c, 0x6d, 0x00, 0x3b, 0xec, 0xda, + 0x3b, 0x1f, 0x27, 0x25, 0xca, 0x59, 0x5d, 0xe0, 0xca, 0x63, 0x32, 0x8f, + 0x3b, 0xe5, 0x7c, 0xc9, 0x77, 0x55, 0x60, 0x11, 0x95, 0x14, 0x0d, 0xfb, + 0x59, 0xd3, 0x9c, 0xe0, 0x91, 0x30, 0x8b, 0x41, 0x05, 0x74, 0x6d, 0xac, + 0x23, 0xd3, 0x3e, 0x5f, 0x7c, 0xe4, 0x84, 0x8d, 0xa3, 0x16, 0xa9, 0xc6, + 0x6b, 0x95, 0x81, 0xba, 0x35, 0x73, 0xbf, 0xaf, 0x31, 0x14, 0x96, 0x18, + 0x8a, 0xb1, 0x54, 0x23, 0x28, 0x2e, 0xe4, 0x16, 0xdc, 0x2a, 0x19, 0xc5, + 0x72, 0x4f, 0xa9, 0x1a, 0xe4, 0xad, 0xc8, 0x8b, 0xc6, 0x67, 0x96, 0xea, + 0xe5, 0x67, 0x7a, 0x01, 0xf6, 0x4e, 0x8c, 0x08, 0x63, 0x13, 0x95, 0x82, + 0x2d, 0x9d, 0xb8, 0xfc, 0xee, 0x35, 0xc0, 0x6b, 0x1f, 0xee, 0xa5, 0x47, + 0x4d, 0x6d, 0x8f, 0x34, 0xb1, 0x53, 0x4a, 0x93, 0x6a, 0x18, 0xb0, 0xe0, + 0xd2, 0x0e, 0xab, 0x86, 0xbc, 0x9c, 0x6d, 0x6a, 0x52, 0x07, 0x19, 0x4e, + 0x68, 0x72, 0x07, 0x32, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, +}; + +/* q=(p-1)/2 for prime prime_ike_8192 */ +static const unsigned char subprime_ike_8192_data[] = { + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe4, 0x87, 0xed, 0x51, + 0x10, 0xb4, 0x61, 0x1a, 0x62, 0x63, 0x31, 0x45, 0xc0, 0x6e, 0x0e, 0x68, + 0x94, 0x81, 0x27, 0x04, 0x45, 0x33, 0xe6, 0x3a, 0x01, 0x05, 0xdf, 0x53, + 0x1d, 0x89, 0xcd, 0x91, 0x28, 0xa5, 0x04, 0x3c, 0xc7, 0x1a, 0x02, 0x6e, + 0xf7, 0xca, 0x8c, 0xd9, 0xe6, 0x9d, 0x21, 0x8d, 0x98, 0x15, 0x85, 0x36, + 0xf9, 0x2f, 0x8a, 0x1b, 0xa7, 0xf0, 0x9a, 0xb6, 0xb6, 0xa8, 0xe1, 0x22, + 0xf2, 0x42, 0xda, 0xbb, 0x31, 0x2f, 0x3f, 0x63, 0x7a, 0x26, 0x21, 0x74, + 0xd3, 0x1b, 0xf6, 0xb5, 0x85, 0xff, 0xae, 0x5b, 0x7a, 0x03, 0x5b, 0xf6, + 0xf7, 0x1c, 0x35, 0xfd, 0xad, 0x44, 0xcf, 0xd2, 0xd7, 0x4f, 0x92, 0x08, + 0xbe, 0x25, 0x8f, 0xf3, 0x24, 0x94, 0x33, 0x28, 0xf6, 0x72, 0x2d, 0x9e, + 0xe1, 0x00, 0x3e, 0x5c, 0x50, 0xb1, 0xdf, 0x82, 0xcc, 0x6d, 0x24, 0x1b, + 0x0e, 0x2a, 0xe9, 0xcd, 0x34, 0x8b, 0x1f, 0xd4, 0x7e, 0x92, 0x67, 0xaf, + 0xc1, 0xb2, 0xae, 0x91, 0xee, 0x51, 0xd6, 0xcb, 0x0e, 0x31, 0x79, 0xab, + 0x10, 0x42, 0xa9, 0x5d, 0xcf, 0x6a, 0x94, 0x83, 0xb8, 0x4b, 0x4b, 0x36, + 0xb3, 0x86, 0x1a, 0xa7, 0x25, 0x5e, 0x4c, 0x02, 0x78, 0xba, 0x36, 0x04, + 0x65, 0x0c, 0x10, 0xbe, 0x19, 0x48, 0x2f, 0x23, 0x17, 0x1b, 0x67, 0x1d, + 0xf1, 0xcf, 0x3b, 0x96, 0x0c, 0x07, 0x43, 0x01, 0xcd, 0x93, 0xc1, 0xd1, + 0x76, 0x03, 0xd1, 0x47, 0xda, 0xe2, 0xae, 0xf8, 0x37, 0xa6, 0x29, 0x64, + 0xef, 0x15, 0xe5, 0xfb, 0x4a, 0xac, 0x0b, 0x8c, 0x1c, 0xca, 0xa4, 0xbe, + 0x75, 0x4a, 0xb5, 0x72, 0x8a, 0xe9, 0x13, 0x0c, 0x4c, 0x7d, 0x02, 0x88, + 0x0a, 0xb9, 0x47, 0x2d, 0x45, 0x55, 0x62, 0x16, 0xd6, 0x99, 0x8b, 0x86, + 0x82, 0x28, 0x3d, 0x19, 0xd4, 0x2a, 0x90, 0xd5, 0xef, 0x8e, 0x5d, 0x32, + 0x76, 0x7d, 0xc2, 0x82, 0x2c, 0x6d, 0xf7, 0x85, 0x45, 0x75, 0x38, 0xab, + 0xae, 0x83, 0x06, 0x3e, 0xd9, 0xcb, 0x87, 0xc2, 0xd3, 0x70, 0xf2, 0x63, + 0xd5, 0xfa, 0xd7, 0x46, 0x6d, 0x84, 0x99, 0xeb, 0x8f, 0x46, 0x4a, 0x70, + 0x25, 0x12, 0xb0, 0xce, 0xe7, 0x71, 0xe9, 0x13, 0x0d, 0x69, 0x77, 0x35, + 0xf8, 0x97, 0xfd, 0x03, 0x6c, 0xc5, 0x04, 0x32, 0x6c, 0x3b, 0x01, 0x39, + 0x9f, 0x64, 0x35, 0x32, 0x29, 0x0f, 0x95, 0x8c, 0x0b, 0xbd, 0x90, 0x06, + 0x5d, 0xf0, 0x8b, 0xab, 0xbd, 0x30, 0xae, 0xb6, 0x3b, 0x84, 0xc4, 0x60, + 0x5d, 0x6c, 0xa3, 0x71, 0x04, 0x71, 0x27, 0xd0, 0x3a, 0x72, 0xd5, 0x98, + 0xa1, 0xed, 0xad, 0xfe, 0x70, 0x7e, 0x88, 0x47, 0x25, 0xc1, 0x68, 0x90, + 0x54, 0x90, 0x84, 0x00, 0x8d, 0x39, 0x1e, 0x09, 0x53, 0xc3, 0xf3, 0x6b, + 0xc4, 0x38, 0xcd, 0x08, 0x5e, 0xdd, 0x2d, 0x93, 0x4c, 0xe1, 0x93, 0x8c, + 0x35, 0x7a, 0x71, 0x1e, 0x0d, 0x4a, 0x34, 0x1a, 0x5b, 0x0a, 0x85, 0xed, + 0x12, 0xc1, 0xf4, 0xe5, 0x15, 0x6a, 0x26, 0x74, 0x6d, 0xdd, 0xe1, 0x6d, + 0x82, 0x6f, 0x47, 0x7c, 0x97, 0x47, 0x7e, 0x0a, 0x0f, 0xdf, 0x65, 0x53, + 0x14, 0x3e, 0x2c, 0xa3, 0xa7, 0x35, 0xe0, 0x2e, 0xcc, 0xd9, 0x4b, 0x27, + 0xd0, 0x48, 0x61, 0xd1, 0x11, 0x9d, 0xd0, 0xc3, 0x28, 0xad, 0xf3, 0xf6, + 0x8f, 0xb0, 0x94, 0xb8, 0x67, 0x71, 0x6b, 0xd7, 0xdc, 0x0d, 0xee, 0xbb, + 0x10, 0xb8, 0x24, 0x0e, 0x68, 0x03, 0x48, 0x93, 0xea, 0xd8, 0x2d, 0x54, + 0xc9, 0xda, 0x75, 0x4c, 0x46, 0xc7, 0xee, 0xe0, 0xc3, 0x7f, 0xdb, 0xee, + 0x48, 0x53, 0x60, 0x47, 0xa6, 0xfa, 0x1a, 0xe4, 0x9a, 0x01, 0x42, 0x49, + 0x1b, 0x61, 0xfd, 0x5a, 0x69, 0x3e, 0x38, 0x13, 0x60, 0xea, 0x6e, 0x59, + 0x30, 0x13, 0x23, 0x6f, 0x64, 0xba, 0x8f, 0x3b, 0x1e, 0xdd, 0x1b, 0xde, + 0xfc, 0x7f, 0xca, 0x03, 0x56, 0xcf, 0x29, 0x87, 0x72, 0xed, 0x9c, 0x17, + 0xa0, 0x98, 0x00, 0xd7, 0x58, 0x35, 0x29, 0xf6, 0xc8, 0x13, 0xec, 0x18, + 0x8b, 0xcb, 0x93, 0xd8, 0x43, 0x2d, 0x44, 0x8c, 0x6d, 0x1f, 0x6d, 0xf5, + 0xe7, 0xcd, 0x8a, 0x76, 0xa2, 0x67, 0x36, 0x5d, 0x67, 0x6a, 0x5d, 0x8d, + 0xed, 0xbf, 0x8a, 0x23, 0xf3, 0x66, 0x12, 0xa5, 0x99, 0x90, 0x28, 0xa8, + 0x95, 0xeb, 0xd7, 0xa1, 0x37, 0xdc, 0x7a, 0x00, 0x9b, 0xc6, 0x69, 0x5f, + 0xac, 0xc1, 0xe5, 0x00, 0xe3, 0x25, 0xc9, 0x76, 0x78, 0x19, 0x75, 0x0a, + 0xe8, 0xb9, 0x0e, 0x81, 0xfa, 0x41, 0x6b, 0xe7, 0x37, 0x3a, 0x7f, 0x7b, + 0x6a, 0xaf, 0x38, 0x17, 0xa3, 0x4c, 0x06, 0x41, 0x5a, 0xd4, 0x20, 0x18, + 0xc8, 0x05, 0x8e, 0x4f, 0x2c, 0xf3, 0xe4, 0xbf, 0xdf, 0x63, 0xf4, 0x79, + 0x91, 0xd4, 0xbd, 0x3f, 0x1b, 0x66, 0x44, 0x5f, 0x07, 0x8e, 0xa2, 0xdb, + 0xff, 0xac, 0x2d, 0x62, 0xa5, 0xea, 0x03, 0xd9, 0x15, 0xa0, 0xaa, 0x55, + 0x66, 0x47, 0xb6, 0xbf, 0x5f, 0xa4, 0x70, 0xec, 0x0a, 0x66, 0x2f, 0x69, + 0x07, 0xc0, 0x1b, 0xf0, 0x53, 0xcb, 0x8a, 0xf7, 0x79, 0x4d, 0xf1, 0x94, + 0x03, 0x50, 0xea, 0xc5, 0xdb, 0xe2, 0xed, 0x3b, 0x7a, 0xa8, 0x55, 0x1e, + 0xc5, 0x0f, 0xdf, 0xf8, 0x75, 0x8c, 0xe6, 0x58, 0xd1, 0x89, 0xea, 0xae, + 0x6d, 0x2b, 0x64, 0xf6, 0x17, 0x79, 0x4b, 0x19, 0x1c, 0x3f, 0xf4, 0x6b, + 0xb7, 0x1e, 0x02, 0x34, 0x02, 0x1f, 0x47, 0xb3, 0x1f, 0xa4, 0x30, 0x77, + 0x09, 0x5f, 0x96, 0xad, 0x85, 0xba, 0x3a, 0x6b, 0x73, 0x4a, 0x7c, 0x8f, + 0x36, 0xdf, 0x08, 0xac, 0xba, 0x51, 0xc9, 0x37, 0x89, 0x7f, 0x72, 0xf2, + 0x1c, 0x3b, 0xbe, 0x5b, 0x54, 0x99, 0x6f, 0xc6, 0x6c, 0x5f, 0x62, 0x68, + 0x39, 0xdc, 0x98, 0xdd, 0x1d, 0xe4, 0x19, 0x5b, 0x46, 0xce, 0xe9, 0x80, + 0x3a, 0x0f, 0xd3, 0xdf, 0xc5, 0x7e, 0x23, 0xf6, 0x92, 0xbb, 0x7b, 0x49, + 0xb5, 0xd2, 0x12, 0x33, 0x1d, 0x55, 0xb1, 0xce, 0x2d, 0x72, 0x7a, 0xb4, + 0x1a, 0x11, 0xda, 0x3a, 0x15, 0xf8, 0xe4, 0xbc, 0x11, 0xc7, 0x8b, 0x65, + 0xf1, 0xce, 0xb2, 0x96, 0xf1, 0xfe, 0xdc, 0x5f, 0x7e, 0x42, 0x45, 0x6c, + 0x91, 0x11, 0x17, 0x02, 0x52, 0x01, 0xbe, 0x03, 0x89, 0xf5, 0xab, 0xd4, + 0x0d, 0x11, 0xf8, 0x63, 0x9a, 0x39, 0xfe, 0x32, 0x36, 0x75, 0x18, 0x35, + 0xa5, 0xe5, 0xe4, 0x43, 0x17, 0xc1, 0xc2, 0xee, 0xfd, 0x4e, 0xa5, 0xbf, + 0xd1, 0x60, 0x43, 0xf4, 0x3c, 0xb4, 0x19, 0x81, 0xf6, 0xad, 0xee, 0x9d, + 0x03, 0x15, 0x9e, 0x7a, 0xd9, 0xd1, 0x3c, 0x53, 0x36, 0x95, 0x09, 0xfc, + 0x1f, 0xa2, 0x7c, 0x16, 0xef, 0x98, 0x87, 0x70, 0x3a, 0x55, 0xb5, 0x1b, + 0x22, 0xcb, 0xf4, 0x4c, 0xd0, 0x12, 0xae, 0xe0, 0xb2, 0x79, 0x8e, 0x62, + 0x84, 0x23, 0x42, 0x8e, 0xfc, 0xd5, 0xa4, 0x0c, 0xae, 0xf6, 0xbf, 0x50, + 0xd8, 0xea, 0x88, 0x5e, 0xbf, 0x73, 0xa6, 0xb9, 0xfd, 0x79, 0xb5, 0xe1, + 0x8f, 0x67, 0xd1, 0x34, 0x1a, 0xc8, 0x23, 0x7a, 0x75, 0xc3, 0xcf, 0xc9, + 0x20, 0x04, 0xa1, 0xc5, 0xa4, 0x0e, 0x36, 0x6b, 0xc4, 0x4d, 0x00, 0x17, + 0x6a, 0xf7, 0x1c, 0x15, 0xe4, 0x8c, 0x86, 0xd3, 0x7e, 0x01, 0x37, 0x23, + 0xca, 0xac, 0x72, 0x23, 0xab, 0x3b, 0xf4, 0xd5, 0x4f, 0x18, 0x28, 0x71, + 0x3b, 0x2b, 0x4a, 0x6f, 0xe4, 0x0f, 0xab, 0x74, 0x40, 0x5c, 0xb7, 0x38, + 0xb0, 0x64, 0xc0, 0x6e, 0xcc, 0x76, 0xe9, 0xef, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, +}; + +/* q=(p-1)/2 for prime prime_tls_8192 */ +static const unsigned char subprime_tls_8192_data[] = { + 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd6, 0xfc, 0x2a, 0x2c, + 0x51, 0x5d, 0xa5, 0x4d, 0x57, 0xee, 0x2b, 0x10, 0x13, 0x9e, 0x9e, 0x78, + 0xec, 0x5c, 0xe2, 0xc1, 0xe7, 0x16, 0x9b, 0x4a, 0xd4, 0xf0, 0x9b, 0x20, + 0x8a, 0x32, 0x19, 0xfd, 0xe6, 0x49, 0xce, 0xe7, 0x12, 0x4d, 0x9f, 0x7c, + 0xbe, 0x97, 0xf1, 0xb1, 0xb1, 0x86, 0x3a, 0xec, 0x7b, 0x40, 0xd9, 0x01, + 0x57, 0x62, 0x30, 0xbd, 0x69, 0xef, 0x8f, 0x6a, 0xea, 0xfe, 0xb2, 0xb0, + 0x92, 0x19, 0xfa, 0x8f, 0xaf, 0x83, 0x37, 0x68, 0x42, 0xb1, 0xb2, 0xaa, + 0x9e, 0xf6, 0x8d, 0x79, 0xda, 0xab, 0x89, 0xaf, 0x3f, 0xab, 0xe4, 0x9a, + 0xcc, 0x27, 0x86, 0x38, 0x70, 0x73, 0x45, 0xbb, 0xf1, 0x53, 0x44, 0xed, + 0x79, 0xf7, 0xf4, 0x39, 0x0e, 0xf8, 0xac, 0x50, 0x9b, 0x56, 0xf3, 0x9a, + 0x98, 0x56, 0x65, 0x27, 0xa4, 0x1d, 0x3c, 0xbd, 0x5e, 0x05, 0x58, 0xc1, + 0x59, 0x92, 0x7d, 0xb0, 0xe8, 0x84, 0x54, 0xa5, 0xd9, 0x64, 0x71, 0xfd, + 0xdc, 0xb5, 0x6d, 0x5b, 0xb0, 0x6b, 0xfa, 0x34, 0x0e, 0xa7, 0xa1, 0x51, + 0xef, 0x1c, 0xa6, 0xfa, 0x57, 0x2b, 0x76, 0xf3, 0xb1, 0xb9, 0x5d, 0x8c, + 0x85, 0x83, 0xd3, 0xe4, 0x77, 0x05, 0x36, 0xb8, 0x4f, 0x01, 0x7e, 0x70, + 0xe6, 0xfb, 0xf1, 0x76, 0x60, 0x1a, 0x02, 0x66, 0x94, 0x1a, 0x17, 0xb0, + 0xc8, 0xb9, 0x7f, 0x4e, 0x74, 0xc2, 0xc1, 0xff, 0xc7, 0x27, 0x89, 0x19, + 0x77, 0x79, 0x40, 0xc1, 0xe1, 0xff, 0x1d, 0x8d, 0xa6, 0x37, 0xd6, 0xb9, + 0x9d, 0xda, 0xfe, 0x5e, 0x17, 0x61, 0x10, 0x02, 0xe2, 0xc7, 0x78, 0xc1, + 0xbe, 0x8b, 0x41, 0xd9, 0x63, 0x79, 0xa5, 0x13, 0x60, 0xd9, 0x77, 0xfd, + 0x44, 0x35, 0xa1, 0x1c, 0x30, 0x8f, 0xe7, 0xee, 0x6f, 0x1a, 0xad, 0x9d, + 0xb2, 0x8c, 0x81, 0xad, 0xde, 0x1a, 0x7a, 0x6f, 0x7c, 0xce, 0x01, 0x1c, + 0x30, 0xda, 0x37, 0xe4, 0xeb, 0x73, 0x64, 0x83, 0xbd, 0x6c, 0x8e, 0x93, + 0x48, 0xfb, 0xfb, 0xf7, 0x2c, 0xc6, 0x58, 0x7d, 0x60, 0xc3, 0x6c, 0x8e, + 0x57, 0x7f, 0x09, 0x84, 0xc2, 0x89, 0xc9, 0x38, 0x5a, 0x09, 0x86, 0x49, + 0xde, 0x21, 0xbc, 0xa2, 0x7a, 0x7e, 0xa2, 0x29, 0x71, 0x6b, 0xa6, 0xe9, + 0xb2, 0x79, 0x71, 0x0f, 0x38, 0xfa, 0xa5, 0xff, 0xae, 0x57, 0x41, 0x55, + 0xce, 0x4e, 0xfb, 0x4f, 0x74, 0x36, 0x95, 0xe2, 0x91, 0x1b, 0x1d, 0x06, + 0xd5, 0xe2, 0x90, 0xcb, 0xcd, 0x86, 0xf5, 0x6d, 0x0e, 0xdf, 0xcd, 0x21, + 0x6a, 0xe2, 0x24, 0x27, 0x05, 0x5e, 0x68, 0x35, 0xfd, 0x29, 0xee, 0xf7, + 0x9e, 0x0d, 0x90, 0x77, 0x1f, 0xea, 0xce, 0xbe, 0x12, 0xf2, 0x0e, 0x95, + 0xb3, 0x4f, 0x0f, 0x78, 0xb7, 0x37, 0xa9, 0x61, 0x8b, 0x26, 0xfa, 0x7d, + 0xbc, 0x98, 0x74, 0xf2, 0x72, 0xc4, 0x2b, 0xdb, 0x56, 0x3e, 0xaf, 0xa1, + 0x6b, 0x4f, 0xb6, 0x8c, 0x3b, 0xb1, 0xe7, 0x8e, 0xaa, 0x81, 0xa0, 0x02, + 0x43, 0xfa, 0xad, 0xd2, 0xbf, 0x18, 0xe6, 0x3d, 0x38, 0x9a, 0xe4, 0x43, + 0x77, 0xda, 0x18, 0xc5, 0x76, 0xb5, 0x0f, 0x00, 0x96, 0xcf, 0x34, 0x19, + 0x54, 0x83, 0xb0, 0x05, 0x48, 0xc0, 0x98, 0x62, 0x36, 0xe3, 0xbc, 0x7c, + 0xb8, 0xd6, 0x80, 0x1c, 0x04, 0x94, 0xcc, 0xd1, 0x99, 0xe5, 0xc5, 0xbd, + 0x0d, 0x0e, 0xdc, 0x9e, 0xb8, 0xa0, 0x00, 0x1e, 0x15, 0x27, 0x67, 0x54, + 0xfc, 0xc6, 0x85, 0x66, 0x05, 0x41, 0x48, 0xe6, 0xe7, 0x64, 0xbe, 0xe7, + 0xc7, 0x64, 0xda, 0xad, 0x3f, 0xc4, 0x52, 0x35, 0xa6, 0xda, 0xd4, 0x28, + 0xfa, 0x20, 0xc1, 0x70, 0xe3, 0x45, 0x00, 0x3f, 0x2f, 0x06, 0xec, 0x81, + 0x05, 0xfe, 0xb2, 0x5b, 0x22, 0x81, 0xb6, 0x3d, 0x27, 0x33, 0xbe, 0x96, + 0x1c, 0x29, 0x95, 0x1d, 0x11, 0xdd, 0x22, 0x21, 0x65, 0x7a, 0x9f, 0x53, + 0x1d, 0xda, 0x2a, 0x19, 0x4d, 0xbb, 0x12, 0x64, 0x48, 0xbd, 0xee, 0xb2, + 0x58, 0xe0, 0x7e, 0xa6, 0x59, 0xc7, 0x46, 0x19, 0xa6, 0x38, 0x0e, 0x1d, + 0x66, 0xd6, 0x83, 0x2b, 0xfe, 0x67, 0xf6, 0x38, 0xcd, 0x8f, 0xae, 0x1f, + 0x27, 0x23, 0x02, 0x0f, 0x9c, 0x40, 0xa3, 0xfd, 0xa6, 0x7e, 0xda, 0x3b, + 0xd2, 0x92, 0x38, 0xfb, 0xd4, 0xd4, 0xb4, 0x88, 0x5c, 0x2a, 0x99, 0x17, + 0x6d, 0xb1, 0xa0, 0x6c, 0x50, 0x07, 0x78, 0x49, 0x1a, 0x82, 0x88, 0xf1, + 0x85, 0x5f, 0x60, 0xff, 0xfc, 0xf1, 0xd1, 0x37, 0x3f, 0xd9, 0x4f, 0xc6, + 0x0c, 0x18, 0x11, 0xe1, 0xac, 0x3f, 0x1c, 0x6d, 0x00, 0x3b, 0xec, 0xda, + 0x3b, 0x1f, 0x27, 0x25, 0xca, 0x59, 0x5d, 0xe0, 0xca, 0x63, 0x32, 0x8f, + 0x3b, 0xe5, 0x7c, 0xc9, 0x77, 0x55, 0x60, 0x11, 0x95, 0x14, 0x0d, 0xfb, + 0x59, 0xd3, 0x9c, 0xe0, 0x91, 0x30, 0x8b, 0x41, 0x05, 0x74, 0x6d, 0xac, + 0x23, 0xd3, 0x3e, 0x5f, 0x7c, 0xe4, 0x84, 0x8d, 0xa3, 0x16, 0xa9, 0xc6, + 0x6b, 0x95, 0x81, 0xba, 0x35, 0x73, 0xbf, 0xaf, 0x31, 0x14, 0x96, 0x18, + 0x8a, 0xb1, 0x54, 0x23, 0x28, 0x2e, 0xe4, 0x16, 0xdc, 0x2a, 0x19, 0xc5, + 0x72, 0x4f, 0xa9, 0x1a, 0xe4, 0xad, 0xc8, 0x8b, 0xc6, 0x67, 0x96, 0xea, + 0xe5, 0x67, 0x7a, 0x01, 0xf6, 0x4e, 0x8c, 0x08, 0x63, 0x13, 0x95, 0x82, + 0x2d, 0x9d, 0xb8, 0xfc, 0xee, 0x35, 0xc0, 0x6b, 0x1f, 0xee, 0xa5, 0x47, + 0x4d, 0x6d, 0x8f, 0x34, 0xb1, 0x53, 0x4a, 0x93, 0x6a, 0x18, 0xb0, 0xe0, + 0xd2, 0x0e, 0xab, 0x86, 0xbc, 0x9c, 0x6d, 0x6a, 0x52, 0x07, 0x19, 0x4e, + 0x67, 0xfa, 0x35, 0x55, 0x1b, 0x56, 0x80, 0x26, 0x7b, 0x00, 0x64, 0x1c, + 0x0f, 0x21, 0x2d, 0x18, 0xec, 0xa8, 0xd7, 0x32, 0x7e, 0xd9, 0x1f, 0xe7, + 0x64, 0xa8, 0x4e, 0xa1, 0xb4, 0x3f, 0xf5, 0xb4, 0xf6, 0xe8, 0xe6, 0x2f, + 0x05, 0xc6, 0x61, 0xde, 0xfb, 0x25, 0x88, 0x77, 0xc3, 0x5b, 0x18, 0xa1, + 0x51, 0xd5, 0xc4, 0x14, 0xaa, 0xad, 0x97, 0xba, 0x3e, 0x49, 0x93, 0x32, + 0xe5, 0x96, 0x07, 0x8e, 0x60, 0x0d, 0xeb, 0x81, 0x14, 0x9c, 0x44, 0x1c, + 0xe9, 0x57, 0x82, 0xf2, 0x2a, 0x28, 0x25, 0x63, 0xc5, 0xba, 0xc1, 0x41, + 0x14, 0x23, 0x60, 0x5d, 0x1a, 0xe1, 0xaf, 0xae, 0x2c, 0x8b, 0x06, 0x60, + 0x23, 0x7e, 0xc1, 0x28, 0xaa, 0x0f, 0xe3, 0x46, 0x4e, 0x43, 0x58, 0x11, + 0x5d, 0xb8, 0x4c, 0xc3, 0xb5, 0x23, 0x07, 0x3a, 0x28, 0xd4, 0x54, 0x98, + 0x84, 0xb8, 0x1f, 0xf7, 0x0e, 0x10, 0xbf, 0x36, 0x1c, 0x13, 0x72, 0x96, + 0x28, 0xd5, 0x34, 0x8f, 0x07, 0x21, 0x1e, 0x7e, 0x4c, 0xf4, 0xf1, 0x8b, + 0x28, 0x60, 0x90, 0xbd, 0xb1, 0x24, 0x0b, 0x66, 0xd6, 0xcd, 0x4a, 0xfc, + 0xea, 0xdc, 0x00, 0xca, 0x44, 0x6c, 0xe0, 0x50, 0x50, 0xff, 0x18, 0x3a, + 0xd2, 0xbb, 0xf1, 0x18, 0xc1, 0xfc, 0x0e, 0xa5, 0x1f, 0x97, 0xd2, 0x2b, + 0x8f, 0x7e, 0x46, 0x70, 0x5d, 0x45, 0x27, 0xf4, 0x5b, 0x42, 0xae, 0xff, + 0x39, 0x58, 0x53, 0x37, 0x6f, 0x69, 0x7d, 0xd5, 0xfd, 0xf2, 0xc5, 0x18, + 0x7d, 0x7d, 0x5f, 0x0e, 0x2e, 0xb8, 0xd4, 0x3f, 0x17, 0xba, 0x0f, 0x7c, + 0x60, 0xff, 0x43, 0x7f, 0x53, 0x5d, 0xfe, 0xf2, 0x98, 0x33, 0xbf, 0x86, + 0xcb, 0xe8, 0x8e, 0xa4, 0xfb, 0xd4, 0x22, 0x1e, 0x84, 0x11, 0x72, 0x83, + 0x54, 0xfa, 0x30, 0xa7, 0x00, 0x8f, 0x15, 0x4a, 0x41, 0xc7, 0xfc, 0x46, + 0x6b, 0x46, 0x45, 0xdb, 0xe2, 0xe3, 0x21, 0x26, 0x7f, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, +}; + +static const SECItem subprime_ike_1536 = + { siBuffer, + (unsigned char *)subprime_ike_1536_data, + sizeof(subprime_ike_1536_data) }; +static const SECItem subprime_ike_2048 = + { siBuffer, + (unsigned char *)subprime_ike_2048_data, + sizeof(subprime_ike_2048_data) }; +static const SECItem subprime_ike_3072 = + { siBuffer, + (unsigned char *)subprime_ike_3072_data, + sizeof(subprime_ike_3072_data) }; +static const SECItem subprime_ike_4096 = + { siBuffer, + (unsigned char *)subprime_ike_4096_data, + sizeof(subprime_ike_4096_data) }; +static const SECItem subprime_ike_6144 = + { siBuffer, + (unsigned char *)subprime_ike_6144_data, + sizeof(subprime_ike_6144_data) }; +static const SECItem subprime_ike_8192 = + { siBuffer, + (unsigned char *)subprime_ike_8192_data, + sizeof(subprime_ike_8192_data) }; +static const SECItem subprime_tls_2048 = + { siBuffer, + (unsigned char *)subprime_tls_2048_data, + sizeof(subprime_tls_2048_data) }; +static const SECItem subprime_tls_3072 = + { siBuffer, + (unsigned char *)subprime_tls_3072_data, + sizeof(subprime_tls_3072_data) }; +static const SECItem subprime_tls_4096 = + { siBuffer, + (unsigned char *)subprime_tls_4096_data, + sizeof(subprime_tls_4096_data) }; +static const SECItem subprime_tls_6144 = + { siBuffer, + (unsigned char *)subprime_tls_6144_data, + sizeof(subprime_tls_6144_data) }; +static const SECItem subprime_tls_8192 = + { siBuffer, + (unsigned char *)subprime_tls_8192_data, + sizeof(subprime_tls_8192_data) }; + +/* + * verify that dhPrime matches one of our known primes + */ +const SECItem * +sftk_VerifyDH_Prime(SECItem *dhPrime) +{ + /* use the length to decide which primes to check */ + switch (dhPrime->len) { + case 1536 / PR_BITS_PER_BYTE: + if (PORT_Memcmp(dhPrime->data, prime_ike_1536, + sizeof(prime_ike_1536)) == 0) { + return &subprime_ike_1536; + } + break; + case 2048 / PR_BITS_PER_BYTE: + if (PORT_Memcmp(dhPrime->data, prime_tls_2048, + sizeof(prime_tls_2048)) == 0) { + return &subprime_tls_2048; + } + if (PORT_Memcmp(dhPrime->data, prime_ike_2048, + sizeof(prime_ike_2048)) == 0) { + return &subprime_ike_2048; + } + break; + case 3072 / PR_BITS_PER_BYTE: + if (PORT_Memcmp(dhPrime->data, prime_tls_3072, + sizeof(prime_tls_3072)) == 0) { + return &subprime_tls_3072; + } + if (PORT_Memcmp(dhPrime->data, prime_ike_3072, + sizeof(prime_ike_3072)) == 0) { + return &subprime_ike_3072; + } + break; + case 4096 / PR_BITS_PER_BYTE: + if (PORT_Memcmp(dhPrime->data, prime_tls_4096, + sizeof(prime_tls_4096)) == 0) { + return &subprime_tls_4096; + } + if (PORT_Memcmp(dhPrime->data, prime_ike_4096, + sizeof(prime_ike_4096)) == 0) { + return &subprime_ike_4096; + } + break; + case 6144 / PR_BITS_PER_BYTE: + if (PORT_Memcmp(dhPrime->data, prime_tls_6144, + sizeof(prime_tls_6144)) == 0) { + return &subprime_tls_6144; + } + if (PORT_Memcmp(dhPrime->data, prime_ike_6144, + sizeof(prime_ike_6144)) == 0) { + return &subprime_ike_6144; + } + break; + case 8192 / PR_BITS_PER_BYTE: + if (PORT_Memcmp(dhPrime->data, prime_tls_8192, + sizeof(prime_tls_8192)) == 0) { + return &subprime_tls_8192; + } + if (PORT_Memcmp(dhPrime->data, prime_ike_8192, + sizeof(prime_ike_8192)) == 0) { + return &subprime_ike_8192; + } + break; + } + /* no match found, return an error */ + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return NULL; +} + +/* Use the provided subPrime to see if dhPrime is a safe prime. We'll check + * primality of those values later. */ +SECStatus +sftk_IsSafePrime(const SECItem *dhPrime, const SECItem *dhSubPrime, PRBool *isSafe) +{ + int i; + unsigned char carry = 0; + int offset = 0, subPrimeLen = dhPrime->len; + *isSafe = PR_FALSE; + + /* Both dhPrime and dhSubPrime should be odd */ + if (((dhPrime->data[dhPrime->len - 1] & 0x1) != 1) && ((dhSubPrime->data[dhSubPrime->len - 1] & 0x1) != 1)) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + + /* subPrime is p-1/2, which means subPrime is 1 bit shorter than p. + * It's length in bytes is the same unless the high byte of p == 1 or 0. + */ + if (dhPrime->data[0] <= 1) { + subPrimeLen--; + offset++; + carry = (dhPrime->data[0]) << 7; + } + + /* if subprime len is not long enough it is not a strong prime */ + if (dhSubPrime->len != subPrimeLen) { + return SECSuccess; + } + + /* does the subprime match q == (p-1)/2 */ + for (i = 0; i < subPrimeLen; i++) { + if (dhSubPrime->data[i] != + (carry | ((dhPrime->data[i + offset] >> 1) & 0x7f))) { + return SECSuccess; + } + carry = ((dhPrime->data[i + offset] & 1) << 7) & 0x80; + } + /* subPrime for p claims to be q=(p-1)/2. So the caller thinks p + * is a strong prime, just need to check primality of p and q to verify */ + *isSafe = PR_TRUE; + return SECSuccess; +} diff --git a/libs/nss/src/lib/softoken/sftkhmac.c b/libs/nss/src/lib/softoken/sftkhmac.c index 2f7b65562..b9ee7d054 100644 --- a/libs/nss/src/lib/softoken/sftkhmac.c +++ b/libs/nss/src/lib/softoken/sftkhmac.c @@ -355,7 +355,7 @@ sftk_MAC_Reset(sftk_MACCtx *ctx) } CK_RV -sftk_MAC_Update(sftk_MACCtx *ctx, CK_BYTE_PTR data, unsigned int data_len) +sftk_MAC_Update(sftk_MACCtx *ctx, const CK_BYTE *data, unsigned int data_len) { switch (ctx->mech) { case CKM_MD2_HMAC: diff --git a/libs/nss/src/lib/softoken/sftkike.c b/libs/nss/src/lib/softoken/sftkike.c index 85a745dd0..27eacc087 100644 --- a/libs/nss/src/lib/softoken/sftkike.c +++ b/libs/nss/src/lib/softoken/sftkike.c @@ -189,10 +189,11 @@ fail: /* encode the final pad block of aes xcbc, padBuf is modified */ CK_RV -sftk_xcbc_mac_pad(unsigned char *padBuf, unsigned int bufLen, int blockSize, - const unsigned char *k2, const unsigned char *k3) +sftk_xcbc_mac_pad(unsigned char *padBuf, unsigned int bufLen, + unsigned int blockSize, const unsigned char *k2, + const unsigned char *k3) { - int i; + unsigned int i; if (bufLen == blockSize) { for (i = 0; i < blockSize; i++) { padBuf[i] ^= k2[i]; @@ -854,10 +855,12 @@ fail: * K = inKey, S = seedKey | seedData */ -CK_RV -sftk_ike_prf_plus(CK_SESSION_HANDLE hSession, const SFTKAttribute *inKey, - const CK_NSS_IKE_PRF_PLUS_DERIVE_PARAMS *params, SFTKObject *outKey, - unsigned int keySize) +static CK_RV +sftk_ike_prf_plus_raw(CK_SESSION_HANDLE hSession, + const unsigned char *inKeyData, CK_ULONG inKeyLen, + const CK_NSS_IKE_PRF_PLUS_DERIVE_PARAMS *params, + unsigned char **outKeyDataPtr, unsigned int *outKeySizePtr, + unsigned int keySize) { SFTKAttribute *seedValue = NULL; SFTKObject *seedKeyObj = NULL; @@ -923,8 +926,7 @@ sftk_ike_prf_plus(CK_SESSION_HANDLE hSession, const SFTKAttribute *inKey, crv = CKR_KEY_SIZE_RANGE; goto fail; } - crv = prf_init(&context, inKey->attrib.pValue, - inKey->attrib.ulValueLen); + crv = prf_init(&context, inKeyData, inKeyLen); if (crv != CKR_OK) { goto fail; } @@ -963,7 +965,9 @@ sftk_ike_prf_plus(CK_SESSION_HANDLE hSession, const SFTKAttribute *inKey, lastKey = thisKey; thisKey += macSize; } - crv = sftk_forceAttribute(outKey, CKA_VALUE, outKeyData, keySize); + *outKeyDataPtr = outKeyData; + *outKeySizePtr = outKeySize; + outKeyData = NULL; /* don't free it here, our caller will free it */ fail: if (outKeyData) { PORT_ZFree(outKeyData, outKeySize); @@ -978,6 +982,30 @@ fail: return crv; } +/* + * ike prf + with code to deliever results tosoftoken objects. + */ +CK_RV +sftk_ike_prf_plus(CK_SESSION_HANDLE hSession, const SFTKAttribute *inKey, + const CK_NSS_IKE_PRF_PLUS_DERIVE_PARAMS *params, SFTKObject *outKey, + unsigned int keySize) +{ + unsigned char *outKeyData = NULL; + unsigned int outKeySize; + CK_RV crv; + + crv = sftk_ike_prf_plus_raw(hSession, inKey->attrib.pValue, + inKey->attrib.ulValueLen, params, + &outKeyData, &outKeySize, keySize); + if (crv != CKR_OK) { + return crv; + } + + crv = sftk_forceAttribute(outKey, CKA_VALUE, outKeyData, keySize); + PORT_ZFree(outKeyData, outKeySize); + return crv; +} + /* sftk_aes_xcbc_new_keys: * * aes xcbc creates 3 new keys from the input key. The first key will be the @@ -1293,7 +1321,21 @@ sftk_fips_IKE_PowerUpSelfTests(void) 0x7f, 0x6f, 0x77, 0x2e, 0x5d, 0x65, 0xb5, 0x8e, 0xb1, 0x13, 0x40, 0x96, 0xe8, 0x47, 0x8d, 0x2b }; + static const PRUint8 ike_known_sha256_prf_plus[] = { + 0xe6, 0xf1, 0x9b, 0x4a, 0x02, 0xe9, 0x73, 0x72, + 0x93, 0x9f, 0xdb, 0x46, 0x1d, 0xb1, 0x49, 0xcb, + 0x53, 0x08, 0x98, 0x3d, 0x41, 0x36, 0xfa, 0x8b, + 0x47, 0x04, 0x49, 0x11, 0x0d, 0x6e, 0x96, 0x1d, + 0xab, 0xbe, 0x94, 0x28, 0xa0, 0xb7, 0x9c, 0xa3, + 0x29, 0xe1, 0x40, 0xf8, 0xf8, 0x88, 0xb9, 0xb5, + 0x40, 0xd4, 0x54, 0x4d, 0x25, 0xab, 0x94, 0xd4, + 0x98, 0xd8, 0x00, 0xbf, 0x6f, 0xef, 0xe8, 0x39 + }; SECStatus rv; + CK_RV crv; + unsigned char *outKeyData = NULL; + unsigned int outKeySize; + CK_NSS_IKE_PRF_PLUS_DERIVE_PARAMS ike_params; rv = prf_test(CKM_AES_XCBC_MAC, ike_xcbc_known_key, sizeof(ike_xcbc_known_key), @@ -1344,5 +1386,23 @@ sftk_fips_IKE_PowerUpSelfTests(void) ike_sha512_known_plain_text, sizeof(ike_sha512_known_plain_text), ike_sha512_known_mac, sizeof(ike_sha512_known_mac)); + + ike_params.prfMechanism = CKM_SHA256_HMAC; + ike_params.bHasSeedKey = PR_FALSE; + ike_params.hSeedKey = CK_INVALID_HANDLE; + ike_params.pSeedData = (CK_BYTE_PTR)ike_sha256_known_plain_text; + ike_params.ulSeedDataLen = sizeof(ike_sha256_known_plain_text); + crv = sftk_ike_prf_plus_raw(CK_INVALID_HANDLE, ike_sha256_known_key, + sizeof(ike_sha256_known_key), &ike_params, + &outKeyData, &outKeySize, 64); + if ((crv != CKR_OK) || + (outKeySize != sizeof(ike_known_sha256_prf_plus)) || + (PORT_Memcmp(outKeyData, ike_known_sha256_prf_plus, + sizeof(ike_known_sha256_prf_plus)) != 0)) { + PORT_ZFree(outKeyData, outKeySize); + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return SECFailure; + } + PORT_ZFree(outKeyData, outKeySize); return rv; } diff --git a/libs/nss/src/lib/softoken/sftkpwd.c b/libs/nss/src/lib/softoken/sftkpwd.c index 83e881f1d..b41cf9dab 100644 --- a/libs/nss/src/lib/softoken/sftkpwd.c +++ b/libs/nss/src/lib/softoken/sftkpwd.c @@ -92,6 +92,11 @@ sftkdb_passwordToKey(SFTKDBHandle *keydb, SECItem *salt, SHA1Context *cx = NULL; SECStatus rv = SECFailure; + if (!pw) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + key->data = PORT_Alloc(SHA1_LENGTH); if (key->data == NULL) { goto loser; diff --git a/libs/nss/src/lib/softoken/softkver.h b/libs/nss/src/lib/softoken/softkver.h index 9c1a6bdb0..e772202a0 100644 --- a/libs/nss/src/lib/softoken/softkver.h +++ b/libs/nss/src/lib/softoken/softkver.h @@ -17,10 +17,10 @@ * The format of the version string should be * "<major version>.<minor version>[.<patch level>[.<build number>]][ <ECC>][ <Beta>]" */ -#define SOFTOKEN_VERSION "3.52.3" SOFTOKEN_ECC_STRING +#define SOFTOKEN_VERSION "3.59.1" SOFTOKEN_ECC_STRING #define SOFTOKEN_VMAJOR 3 -#define SOFTOKEN_VMINOR 52 -#define SOFTOKEN_VPATCH 3 +#define SOFTOKEN_VMINOR 59 +#define SOFTOKEN_VPATCH 1 #define SOFTOKEN_VBUILD 0 #define SOFTOKEN_BETA PR_FALSE diff --git a/libs/nss/src/lib/softoken/softoken.gyp b/libs/nss/src/lib/softoken/softoken.gyp index 96942cd4a..1ff5286d7 100644 --- a/libs/nss/src/lib/softoken/softoken.gyp +++ b/libs/nss/src/lib/softoken/softoken.gyp @@ -56,6 +56,7 @@ 'pkcs11c.c', 'pkcs11u.c', 'sdb.c', + 'sftkdhverify.c', 'sftkdb.c', 'sftkhmac.c', 'sftkike.c', diff --git a/libs/nss/src/lib/sqlite/Makefile b/libs/nss/src/lib/sqlite/Makefile index adae8e0ca..960482d3f 100644 --- a/libs/nss/src/lib/sqlite/Makefile +++ b/libs/nss/src/lib/sqlite/Makefile @@ -27,7 +27,7 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### --include config.mk +include config.mk ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -47,8 +47,6 @@ include $(CORE_DEPTH)/coreconf/rules.mk WARNING_CFLAGS = $(NULL) -export:: private_export - ifeq (WINNT,$(OS_ARCH)) # sqlite calls the deprecated GetVersionExA method OS_CFLAGS += -w44996 diff --git a/libs/nss/src/lib/sqlite/config.mk b/libs/nss/src/lib/sqlite/config.mk index b0e9390f1..a3b52bd4b 100644 --- a/libs/nss/src/lib/sqlite/config.mk +++ b/libs/nss/src/lib/sqlite/config.mk @@ -3,18 +3,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# can't do this in manifest.mn because OS_TARGET isn't defined there. -ifeq (,$(filter-out WIN%,$(OS_TARGET))) - -# don't want the 32 in the shared library name -SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) - -#RES = $(OBJDIR)/$(LIBRARY_NAME).res -#RESNAME = $(LIBRARY_NAME).rc -endif - ifeq ($(OS_TARGET),AIX) EXTRA_LIBS += -lpthreads ifdef BUILD_OPT diff --git a/libs/nss/src/lib/sqlite/manifest.mn b/libs/nss/src/lib/sqlite/manifest.mn index 022749b6e..44422affd 100644 --- a/libs/nss/src/lib/sqlite/manifest.mn +++ b/libs/nss/src/lib/sqlite/manifest.mn @@ -8,23 +8,19 @@ MODULE = nss LIBRARY_NAME = sqlite LIBRARY_VERSION = 3 -MAPFILE = $(OBJDIR)/sqlite.def -DEFINES += -DSQLITE_THREADSAFE=1 +MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def +RES = $(NULL) -EXPORTS = \ - $(NULL) +DEFINES += -DSQLITE_THREADSAFE=1 PRIVATE_EXPORTS = \ sqlite3.h \ $(NULL) - CSRCS = \ sqlite3.c \ $(NULL) - - # only add module debugging in opt builds if DEBUG_PKCS11 is set ifdef DEBUG_PKCS11 DEFINES += -DDEBUG_MODULE diff --git a/libs/nss/src/lib/ssl/Makefile b/libs/nss/src/lib/ssl/Makefile index 24fccc590..8a8b06f4b 100644 --- a/libs/nss/src/lib/ssl/Makefile +++ b/libs/nss/src/lib/ssl/Makefile @@ -61,5 +61,3 @@ include $(CORE_DEPTH)/coreconf/rules.mk ####################################################################### # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### - -export:: private_export diff --git a/libs/nss/src/lib/ssl/config.mk b/libs/nss/src/lib/ssl/config.mk index d13613f78..df4ab35e6 100644 --- a/libs/nss/src/lib/ssl/config.mk +++ b/libs/nss/src/lib/ssl/config.mk @@ -9,13 +9,6 @@ endif ifeq (,$(filter-out WIN%,$(OS_TARGET))) -# don't want the 32 in the shared library name -SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) - -RES = $(OBJDIR)/ssl.res -RESNAME = ssl.rc - ifdef NS_USE_GCC EXTRA_SHARED_LIBS += \ -L$(DIST)/lib \ diff --git a/libs/nss/src/lib/ssl/dtls13con.c b/libs/nss/src/lib/ssl/dtls13con.c index daa5e2c7c..5307419b6 100644 --- a/libs/nss/src/lib/ssl/dtls13con.c +++ b/libs/nss/src/lib/ssl/dtls13con.c @@ -185,6 +185,27 @@ dtls13_SendAckCb(sslSocket *ss) (void)dtls13_SendAck(ss); } +/* Limits from draft-ietf-tls-dtls13-38; section 4.5.3. */ +PRBool +dtls13_AeadLimitReached(ssl3CipherSpec *spec) +{ + if (spec->version >= SSL_LIBRARY_VERSION_TLS_1_3) { + switch (spec->cipherDef->calg) { + case ssl_calg_chacha20: + case ssl_calg_aes_gcm: + return spec->deprotectionFailures >= (1ULL << 36); +#ifdef UNSAFE_FUZZER_MODE + case ssl_calg_null: + return PR_FALSE; +#endif + default: + PORT_Assert(0); + break; + } + } + return PR_FALSE; +} + /* Zero length messages are very simple to check. */ static PRBool dtls_IsEmptyMessageAcknowledged(sslSocket *ss, PRUint16 msgSeq, PRUint32 offset) @@ -392,8 +413,7 @@ dtls13_HandleOutOfEpochRecord(sslSocket *ss, const ssl3CipherSpec *spec, * server, we might have processed the client's Finished and * moved on to application data keys, but the client has * retransmitted Finished (e.g., because our ACK got lost.) - * We just retransmit the previous Finished to let the client - * complete. */ + * We just retransmit the ACK to let the client complete. */ if (rType == ssl_ct_handshake) { if ((ss->sec.isServer) && (ss->ssl3.hs.ws == idle_handshake)) { diff --git a/libs/nss/src/lib/ssl/dtls13con.h b/libs/nss/src/lib/ssl/dtls13con.h index 057d63efb..bfe8d4020 100644 --- a/libs/nss/src/lib/ssl/dtls13con.h +++ b/libs/nss/src/lib/ssl/dtls13con.h @@ -31,6 +31,7 @@ void dtls13_HolddownTimerCb(sslSocket *ss); void dtls_ReceivedFirstMessageInFlight(sslSocket *ss); SECStatus dtls13_MaskSequenceNumber(sslSocket *ss, ssl3CipherSpec *spec, PRUint8 *hdr, PRUint8 *cipherText, PRUint32 cipherTextLen); +PRBool dtls13_AeadLimitReached(ssl3CipherSpec *spec); CK_MECHANISM_TYPE tls13_SequenceNumberEncryptionMechanism(SSLCipherAlgorithm bulkAlgorithm); diff --git a/libs/nss/src/lib/ssl/dtlscon.c b/libs/nss/src/lib/ssl/dtlscon.c index 51530de82..10e550e0f 100644 --- a/libs/nss/src/lib/ssl/dtlscon.c +++ b/libs/nss/src/lib/ssl/dtlscon.c @@ -270,12 +270,6 @@ SECStatus dtls_HandleHandshake(sslSocket *ss, DTLSEpoch epoch, sslSequenceNumber seqNum, sslBuffer *origBuf) { - /* XXX OK for now. - * This doesn't work properly with asynchronous certificate validation. - * because that returns a WOULDBLOCK error. The current DTLS - * applications do not need asynchronous validation, but in the - * future we will need to add this. - */ sslBuffer buf = *origBuf; SECStatus rv = SECSuccess; PRBool discarded = PR_FALSE; @@ -310,7 +304,8 @@ dtls_HandleHandshake(sslSocket *ss, DTLSEpoch epoch, sslSequenceNumber seqNum, if (message_length > MAX_HANDSHAKE_MSG_LEN) { (void)ssl3_DecodeError(ss); PORT_SetError(SSL_ERROR_RX_MALFORMED_HANDSHAKE); - return SECFailure; + rv = SECFailure; + goto loser; } #undef MAX_HANDSHAKE_MSG_LEN @@ -485,7 +480,7 @@ dtls_HandleHandshake(sslSocket *ss, DTLSEpoch epoch, sslSequenceNumber seqNum, } // This should never happen, but belt and suspenders. - if (rv == SECFailure) { + if (rv != SECSuccess) { PORT_Assert(0); goto loser; } @@ -505,9 +500,6 @@ dtls_HandleHandshake(sslSocket *ss, DTLSEpoch epoch, sslSequenceNumber seqNum, loser: origBuf->len = 0; /* So ssl3_GatherAppDataRecord will keep looping. */ - - /* XXX OK for now. In future handle rv == SECWouldBlock safely in order - * to deal with asynchronous certificate verification */ return rv; } diff --git a/libs/nss/src/lib/ssl/manifest.mn b/libs/nss/src/lib/ssl/manifest.mn index ac37c8648..5b3584ba9 100644 --- a/libs/nss/src/lib/ssl/manifest.mn +++ b/libs/nss/src/lib/ssl/manifest.mn @@ -19,7 +19,6 @@ EXPORTS = \ $(NULL) MODULE = nss -MAPFILE = $(OBJDIR)/ssl.def CSRCS = \ dtlscon.c \ @@ -56,6 +55,7 @@ CSRCS = \ tls13exthandle.c \ tls13hashstate.c \ tls13hkdf.c \ + tls13psk.c \ tls13replay.c \ sslcert.c \ sslgrp.c \ @@ -66,6 +66,7 @@ CSRCS = \ LIBRARY_NAME = ssl LIBRARY_VERSION = 3 +MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/ssl/ssl.gyp b/libs/nss/src/lib/ssl/ssl.gyp index 3e1b5531a..5c84a1f03 100644 --- a/libs/nss/src/lib/ssl/ssl.gyp +++ b/libs/nss/src/lib/ssl/ssl.gyp @@ -48,6 +48,7 @@ 'tls13exthandle.c', 'tls13hashstate.c', 'tls13hkdf.c', + 'tls13psk.c', 'tls13replay.c', 'tls13subcerts.c', ], diff --git a/libs/nss/src/lib/ssl/ssl.h b/libs/nss/src/lib/ssl/ssl.h index a55ffcddc..43a0f3228 100644 --- a/libs/nss/src/lib/ssl/ssl.h +++ b/libs/nss/src/lib/ssl/ssl.h @@ -327,6 +327,25 @@ SSL_IMPORT PRFileDesc *DTLS_ImportFD(PRFileDesc *model, PRFileDesc *fd); */ #define SSL_ENABLE_DELEGATED_CREDENTIALS 40 +/* Causes TLS (>=1.3) to suppress the EndOfEarlyData message in stream mode. + * + * This is not advisable in general, but the message only exists to delineate + * early data in a streamed connection. DTLS does not use this message as a + * result. The integration of TLS with QUIC, which uses a record/packet + * protection layer that is unreliable, also does not use this message. + * + * On the server, this requires that SSL_RecordLayerData be used. + * EndOfEarlyData is otherwise needed to drive key changes. Additionally, + * servers that use this API must check that handshake messages (Certificate, + * CertificateVerify, and Finished in particular) are only received in epoch 2 + * (Handshake). SSL_RecordLayerData will accept these handshake messages if + * they are passed as epoch 1 (Early Data) in a single call. + * + * Using this option will cause connections to fail if early data is attempted + * and the peer expects this message. + */ +#define SSL_SUPPRESS_END_OF_EARLY_DATA 41 + #ifdef SSL_DEPRECATED_FUNCTION /* Old deprecated function names */ SSL_IMPORT SECStatus SSL_Enable(PRFileDesc *fd, int option, PRIntn on); diff --git a/libs/nss/src/lib/ssl/ssl3con.c b/libs/nss/src/lib/ssl/ssl3con.c index 7f581e792..b652dcea3 100644 --- a/libs/nss/src/lib/ssl/ssl3con.c +++ b/libs/nss/src/lib/ssl/ssl3con.c @@ -21,6 +21,7 @@ #include "sslerr.h" #include "ssl3ext.h" #include "ssl3exthandle.h" +#include "tls13psk.h" #include "tls13subcerts.h" #include "prtime.h" #include "prinrval.h" @@ -518,7 +519,7 @@ ssl3_DecodeContentType(int msgType) rv = "application_data (23)"; break; case ssl_ct_ack: - rv = "ack (25)"; + rv = "ack (26)"; break; default: sprintf(line, "*UNKNOWN* record type! (%d)", msgType); @@ -783,15 +784,19 @@ ssl_HasCert(const sslSocket *ss, PRUint16 maxVersion, SSLAuthType authType) * Both by policy and by having a token that supports it. */ static PRBool ssl_SignatureSchemeAccepted(PRUint16 minVersion, - SSLSignatureScheme scheme) + SSLSignatureScheme scheme, + PRBool forCert) { /* Disable RSA-PSS schemes if there are no tokens to verify them. */ if (ssl_IsRsaPssSignatureScheme(scheme)) { if (!PK11_TokenExists(auth_alg_defs[ssl_auth_rsa_pss])) { return PR_FALSE; } - } else if (ssl_IsRsaPkcs1SignatureScheme(scheme)) { - /* Disable PKCS#1 signatures if we are limited to TLS 1.3. */ + } else if (!forCert && ssl_IsRsaPkcs1SignatureScheme(scheme)) { + /* Disable PKCS#1 signatures if we are limited to TLS 1.3. + * We still need to advertise PKCS#1 signatures in CH and CR + * for certificate signatures. + */ if (minVersion >= SSL_LIBRARY_VERSION_TLS_1_3) { return PR_FALSE; } @@ -850,7 +855,8 @@ ssl_CheckSignatureSchemes(sslSocket *ss) /* Ensure that there is a signature scheme that can be accepted.*/ for (unsigned int i = 0; i < ss->ssl3.signatureSchemeCount; ++i) { if (ssl_SignatureSchemeAccepted(ss->vrange.min, - ss->ssl3.signatureSchemes[i])) { + ss->ssl3.signatureSchemes[i], + PR_FALSE /* forCert */)) { return SECSuccess; } } @@ -879,7 +885,7 @@ ssl_HasSignatureScheme(const sslSocket *ss, SSLAuthType authType) PRBool acceptable = authType == schemeAuthType || (schemeAuthType == ssl_auth_rsa_pss && authType == ssl_auth_rsa_sign); - if (acceptable && ssl_SignatureSchemeAccepted(ss->version, scheme)) { + if (acceptable && ssl_SignatureSchemeAccepted(ss->version, scheme, PR_FALSE /* forCert */)) { return PR_TRUE; } } @@ -912,6 +918,13 @@ ssl3_config_match_init(sslSocket *ss) if (SSL_ALL_VERSIONS_DISABLED(&ss->vrange)) { return 0; } + if (ss->sec.isServer && ss->psk && + PR_CLIST_IS_EMPTY(&ss->serverCerts) && + (ss->opt.requestCertificate || ss->opt.requireCertificate)) { + /* PSK and certificate auth cannot be combined. */ + PORT_SetError(SSL_ERROR_NO_CERTIFICATE); + return 0; + } if (ssl_CheckSignatureSchemes(ss) != SECSuccess) { return 0; /* Code already set. */ } @@ -1009,6 +1022,16 @@ ssl3_config_match(const ssl3CipherSuiteCfg *suite, PRUint8 policy, return PR_FALSE; } + /* If a PSK is selected, disable suites that use a different hash than + * the PSK. We advertise non-PSK-compatible suites in the CH, as we could + * fallback to certificate auth. The client handler will check hash + * compatibility before committing to use the PSK. */ + if (ss->xtnData.selectedPsk) { + if (ss->xtnData.selectedPsk->hash != cipher_def->prf_hash) { + return PR_FALSE; + } + } + return ssl3_CipherSuiteAllowedForVersionRange(suite->cipher_suite, vrange); } @@ -5333,10 +5356,11 @@ ssl3_SendClientHello(sslSocket *ss, sslClientHelloType type) } if (extensionBuf.len) { - /* If we are sending a PSK binder, replace the dummy value. Note that - * we only set statelessResume on the client in TLS 1.3. */ - if (ss->statelessResume && - ss->xtnData.sentSessionTicketInClientHello) { + /* If we are sending a PSK binder, replace the dummy value. */ + if (ssl3_ExtensionAdvertised(ss, ssl_tls13_pre_shared_key_xtn)) { + PORT_Assert(ss->psk || + (ss->statelessResume && ss->xtnData.sentSessionTicketInClientHello)); + PORT_Assert(!PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks)); rv = tls13_WriteExtensionsWithBinder(ss, &extensionBuf); } else { rv = ssl3_AppendBufferToHandshakeVariable(ss, &extensionBuf, 2); @@ -6599,7 +6623,7 @@ ssl_CheckServerSessionIdCorrectness(sslSocket *ss, SECItem *sidBytes) * fake. Check for the real value. */ if (sentRealSid) { sidMatch = (sidBytes->len == sid->u.ssl3.sessionIDLength) && - PORT_Memcmp(sid->u.ssl3.sessionID, sidBytes->data, sidBytes->len) == 0; + (!sidBytes->len || PORT_Memcmp(sid->u.ssl3.sessionID, sidBytes->data, sidBytes->len) == 0); } else { /* Otherwise, the session ID was a fake if TLS 1.3 compat mode is * enabled. If so, check for the fake value. */ @@ -7629,16 +7653,6 @@ ssl3_CompleteHandleCertificateRequest(sslSocket *ss, /* check what the callback function returned */ if ((!ss->ssl3.clientCertificate) || (!ss->ssl3.clientPrivateKey)) { /* we are missing either the key or cert */ - if (ss->ssl3.clientCertificate) { - /* got a cert, but no key - free it */ - CERT_DestroyCertificate(ss->ssl3.clientCertificate); - ss->ssl3.clientCertificate = NULL; - } - if (ss->ssl3.clientPrivateKey) { - /* got a key, but no cert - free it */ - SECKEY_DestroyPrivateKey(ss->ssl3.clientPrivateKey); - ss->ssl3.clientPrivateKey = NULL; - } goto send_no_certificate; } /* Setting ssl3.clientCertChain non-NULL will cause @@ -7648,22 +7662,33 @@ ssl3_CompleteHandleCertificateRequest(sslSocket *ss, ss->ssl3.clientCertificate, certUsageSSLClient, PR_FALSE); if (ss->ssl3.clientCertChain == NULL) { - CERT_DestroyCertificate(ss->ssl3.clientCertificate); - ss->ssl3.clientCertificate = NULL; - SECKEY_DestroyPrivateKey(ss->ssl3.clientPrivateKey); - ss->ssl3.clientPrivateKey = NULL; goto send_no_certificate; } if (ss->ssl3.hs.hashType == handshake_hash_record || ss->ssl3.hs.hashType == handshake_hash_single) { rv = ssl_PickClientSignatureScheme(ss, signatureSchemes, signatureSchemeCount); + if (rv != SECSuccess) { + /* This should only happen if our schemes changed or + * if an RSA-PSS cert was selected, but the token + * does not support PSS schemes. */ + goto send_no_certificate; + } } break; /* not an error */ case SECFailure: default: send_no_certificate: + CERT_DestroyCertificate(ss->ssl3.clientCertificate); + SECKEY_DestroyPrivateKey(ss->ssl3.clientPrivateKey); + ss->ssl3.clientCertificate = NULL; + ss->ssl3.clientPrivateKey = NULL; + if (ss->ssl3.clientCertChain) { + CERT_DestroyCertificateList(ss->ssl3.clientCertChain); + ss->ssl3.clientCertChain = NULL; + } + if (ss->version > SSL_LIBRARY_VERSION_3_0) { ss->ssl3.sendEmptyCert = PR_TRUE; } else { @@ -8105,26 +8130,53 @@ ssl3_KEASupportsTickets(const ssl3KEADef *kea_def) return PR_TRUE; } +static PRBool +ssl3_PeerSupportsCipherSuite(const SECItem *peerSuites, uint16_t suite) +{ + for (unsigned int i = 0; i + 1 < peerSuites->len; i += 2) { + PRUint16 suite_i = (peerSuites->data[i] << 8) | peerSuites->data[i + 1]; + if (suite_i == suite) { + return PR_TRUE; + } + } + return PR_FALSE; +} + SECStatus ssl3_NegotiateCipherSuiteInner(sslSocket *ss, const SECItem *suites, PRUint16 version, PRUint16 *suitep) { - unsigned int j; unsigned int i; + SSLVersionRange vrange = { version, version }; - for (j = 0; j < ssl_V3_SUITES_IMPLEMENTED; j++) { - ssl3CipherSuiteCfg *suite = &ss->cipherSuites[j]; - SSLVersionRange vrange = { version, version }; + /* If we negotiated an External PSK and that PSK has a ciphersuite + * configured, we need to constrain our choice. If the client does + * not support it, negotiate a certificate auth suite and fall back. + */ + if (ss->version >= SSL_LIBRARY_VERSION_TLS_1_3 && + ss->xtnData.selectedPsk && + ss->xtnData.selectedPsk->type == ssl_psk_external && + ss->xtnData.selectedPsk->zeroRttSuite != TLS_NULL_WITH_NULL_NULL) { + PRUint16 pskSuite = ss->xtnData.selectedPsk->zeroRttSuite; + ssl3CipherSuiteCfg *pskSuiteCfg = ssl_LookupCipherSuiteCfgMutable(pskSuite, + ss->cipherSuites); + if (ssl3_config_match(pskSuiteCfg, ss->ssl3.policy, &vrange, ss) && + ssl3_PeerSupportsCipherSuite(suites, pskSuite)) { + *suitep = pskSuite; + return SECSuccess; + } + } + + for (i = 0; i < ssl_V3_SUITES_IMPLEMENTED; i++) { + ssl3CipherSuiteCfg *suite = &ss->cipherSuites[i]; if (!ssl3_config_match(suite, ss->ssl3.policy, &vrange, ss)) { continue; } - for (i = 0; i + 1 < suites->len; i += 2) { - PRUint16 suite_i = (suites->data[i] << 8) | suites->data[i + 1]; - if (suite_i == suite->cipher_suite) { - *suitep = suite_i; - return SECSuccess; - } + if (!ssl3_PeerSupportsCipherSuite(suites, suite->cipher_suite)) { + continue; } + *suitep = suite->cipher_suite; + return SECSuccess; } PORT_SetError(SSL_ERROR_NO_CYPHER_OVERLAP); return SECFailure; @@ -9757,12 +9809,13 @@ ssl3_SendServerKeyExchange(sslSocket *ss) } SECStatus -ssl3_EncodeSigAlgs(const sslSocket *ss, PRUint16 minVersion, sslBuffer *buf) +ssl3_EncodeSigAlgs(const sslSocket *ss, PRUint16 minVersion, PRBool forCert, + sslBuffer *buf) { SSLSignatureScheme filtered[MAX_SIGNATURE_SCHEMES] = { 0 }; unsigned int filteredCount = 0; - SECStatus rv = ssl3_FilterSigAlgs(ss, minVersion, PR_FALSE, + SECStatus rv = ssl3_FilterSigAlgs(ss, minVersion, PR_FALSE, forCert, PR_ARRAY_SIZE(filtered), filtered, &filteredCount); if (rv != SECSuccess) { @@ -9797,8 +9850,21 @@ ssl3_EncodeFilteredSigAlgs(const sslSocket *ss, const SSLSignatureScheme *scheme return sslBuffer_InsertLength(buf, lengthOffset, 2); } +/* + * In TLS 1.3 we are permitted to advertise support for PKCS#1 + * schemes. This doesn't affect the signatures in TLS itself, just + * those on certificates. Not advertising PKCS#1 signatures creates a + * serious compatibility risk as it excludes many certificate chains + * that include PKCS#1. Hence, forCert is used to enable advertising + * PKCS#1 support. Note that we include these in signature_algorithms + * because we don't yet support signature_algorithms_cert. TLS 1.3 + * requires that PKCS#1 schemes are placed last in the list if they + * are present. This sorting can be removed once we support + * signature_algorithms_cert. + */ SECStatus ssl3_FilterSigAlgs(const sslSocket *ss, PRUint16 minVersion, PRBool disableRsae, + PRBool forCert, unsigned int maxSchemes, SSLSignatureScheme *filteredSchemes, unsigned int *numFilteredSchemes) { @@ -9810,15 +9876,32 @@ ssl3_FilterSigAlgs(const sslSocket *ss, PRUint16 minVersion, PRBool disableRsae, } *numFilteredSchemes = 0; + PRBool allowUnsortedPkcs1 = forCert && minVersion < SSL_LIBRARY_VERSION_TLS_1_3; for (unsigned int i = 0; i < ss->ssl3.signatureSchemeCount; ++i) { if (disableRsae && ssl_IsRsaeSignatureScheme(ss->ssl3.signatureSchemes[i])) { continue; } if (ssl_SignatureSchemeAccepted(minVersion, - ss->ssl3.signatureSchemes[i])) { + ss->ssl3.signatureSchemes[i], + allowUnsortedPkcs1)) { filteredSchemes[(*numFilteredSchemes)++] = ss->ssl3.signatureSchemes[i]; } } + if (forCert && !allowUnsortedPkcs1) { + for (unsigned int i = 0; i < ss->ssl3.signatureSchemeCount; ++i) { + if (disableRsae && ssl_IsRsaeSignatureScheme(ss->ssl3.signatureSchemes[i])) { + continue; + } + if (!ssl_SignatureSchemeAccepted(minVersion, + ss->ssl3.signatureSchemes[i], + PR_FALSE) && + ssl_SignatureSchemeAccepted(minVersion, + ss->ssl3.signatureSchemes[i], + PR_TRUE)) { + filteredSchemes[(*numFilteredSchemes)++] = ss->ssl3.signatureSchemes[i]; + } + } + } return SECSuccess; } @@ -9855,7 +9938,7 @@ ssl3_SendCertificateRequest(sslSocket *ss) length = 1 + certTypesLength + 2 + calen; if (isTLS12) { - rv = ssl3_EncodeSigAlgs(ss, ss->version, &sigAlgsBuf); + rv = ssl3_EncodeSigAlgs(ss, ss->version, PR_TRUE /* forCert */, &sigAlgsBuf); if (rv != SECSuccess) { return rv; } @@ -11216,6 +11299,8 @@ static SECStatus ssl3_FinishHandshake(sslSocket *ss); static SECStatus ssl3_AlwaysFail(sslSocket *ss) { + /* The caller should have cleared the callback. */ + ss->ssl3.hs.restartTarget = ssl3_AlwaysFail; PORT_SetError(PR_INVALID_STATE_ERROR); return SECFailure; } @@ -11651,7 +11736,6 @@ ssl3_CacheWrappedSecret(sslSocket *ss, sslSessionID *sid, static SECStatus ssl3_HandleFinished(sslSocket *ss, PRUint8 *b, PRUint32 length) { - sslSessionID *sid = ss->sec.ci.sid; SECStatus rv = SECSuccess; PRBool isServer = ss->sec.isServer; PRBool isTLS; @@ -11795,15 +11879,6 @@ xmit_loser: return rv; } - if (sid->cached == never_cached && !ss->opt.noCache) { - rv = ssl3_FillInCachedSID(ss, sid, ss->ssl3.crSpec->masterSecret); - - /* If the wrap failed, we don't cache the sid. - * The connection continues normally however. - */ - ss->ssl3.hs.cacheSID = rv == SECSuccess; - } - if (ss->ssl3.hs.authCertificatePending) { if (ss->ssl3.hs.restartTarget) { PR_NOT_REACHED("ssl3_HandleFinished: unexpected restartTarget"); @@ -11868,33 +11943,45 @@ ssl3_FinishHandshake(sslSocket *ss) PORT_Assert(ss->opt.noLocks || ssl_HaveRecvBufLock(ss)); PORT_Assert(ss->opt.noLocks || ssl_HaveSSL3HandshakeLock(ss)); PORT_Assert(ss->ssl3.hs.restartTarget == NULL); + sslSessionID *sid = ss->sec.ci.sid; + SECStatus sidRv = SECFailure; /* The first handshake is now completed. */ ss->handshake = NULL; + if (sid->cached == never_cached && !ss->opt.noCache) { + /* If the wrap fails, don't cache the sid. The connection proceeds + * normally, so the rv is only used to determine whether we cache. */ + sidRv = ssl3_FillInCachedSID(ss, sid, ss->ssl3.crSpec->masterSecret); + } + /* RFC 5077 Section 3.3: "The client MUST NOT treat the ticket as valid - * until it has verified the server's Finished message." When the server - * sends a NewSessionTicket in a resumption handshake, we must wait until - * the handshake is finished (we have verified the server's Finished - * AND the server's certificate) before we update the ticket in the sid. - * - * This must be done before we call ssl_CacheSessionID(ss) - * because CacheSID requires the session ticket to already be set, and also - * because of the lazy lock creation scheme used by CacheSID and - * ssl3_SetSIDSessionTicket. - */ + * until it has verified the server's Finished message." When the server + * sends a NewSessionTicket in a resumption handshake, we must wait until + * the handshake is finished (we have verified the server's Finished + * AND the server's certificate) before we update the ticket in the sid. + * + * This must be done before we call ssl_CacheSessionID(ss) + * because CacheSID requires the session ticket to already be set, and also + * because of the lazy lock creation scheme used by CacheSID and + * ssl3_SetSIDSessionTicket. */ if (ss->ssl3.hs.receivedNewSessionTicket) { PORT_Assert(!ss->sec.isServer); - ssl3_SetSIDSessionTicket(ss->sec.ci.sid, &ss->ssl3.hs.newSessionTicket); - /* The sid took over the ticket data */ + if (sidRv == SECSuccess) { + /* The sid takes over the ticket data */ + ssl3_SetSIDSessionTicket(ss->sec.ci.sid, + &ss->ssl3.hs.newSessionTicket); + } else { + PORT_Assert(ss->ssl3.hs.newSessionTicket.ticket.data); + SECITEM_FreeItem(&ss->ssl3.hs.newSessionTicket.ticket, + PR_FALSE); + } PORT_Assert(!ss->ssl3.hs.newSessionTicket.ticket.data); ss->ssl3.hs.receivedNewSessionTicket = PR_FALSE; } - - if (ss->ssl3.hs.cacheSID) { + if (sidRv == SECSuccess) { PORT_Assert(ss->sec.ci.sid->cached == never_cached); ssl_CacheSessionID(ss); - ss->ssl3.hs.cacheSID = PR_FALSE; } ss->ssl3.hs.canFalseStart = PR_FALSE; /* False Start phase is complete */ @@ -12974,12 +13061,18 @@ ssl3_HandleRecord(sslSocket *ss, SSL3Ciphertext *cText) ss->ssl3.hs.ws != idle_handshake && cText->buf->len == 1 && cText->buf->buf[0] == change_cipher_spec_choice) { - /* Ignore the CCS. */ - return SECSuccess; + if (!ss->ssl3.hs.rejectCcs) { + /* Allow only the first CCS. */ + ss->ssl3.hs.rejectCcs = PR_TRUE; + return SECSuccess; + } else { + alert = unexpected_message; + PORT_SetError(SSL_ERROR_RX_MALFORMED_CHANGE_CIPHER); + } } - if (IS_DTLS(ss) || - (ss->sec.isServer && + if ((IS_DTLS(ss) && !dtls13_AeadLimitReached(spec)) || + (!IS_DTLS(ss) && ss->sec.isServer && ss->ssl3.hs.zeroRttIgnore == ssl_0rtt_ignore_trial)) { /* Silently drop the packet unless we sent a fatal alert. */ if (ss->ssl3.fatalAlertSent) { @@ -13102,7 +13195,6 @@ ssl3_InitState(sslSocket *ss) ss->ssl3.hs.currentSecret = NULL; ss->ssl3.hs.resumptionMasterSecret = NULL; ss->ssl3.hs.dheSecret = NULL; - ss->ssl3.hs.pskBinderKey = NULL; ss->ssl3.hs.clientEarlyTrafficSecret = NULL; ss->ssl3.hs.clientHsTrafficSecret = NULL; ss->ssl3.hs.serverHsTrafficSecret = NULL; @@ -13476,8 +13568,6 @@ ssl3_DestroySSL3Info(sslSocket *ss) PK11_FreeSymKey(ss->ssl3.hs.resumptionMasterSecret); if (ss->ssl3.hs.dheSecret) PK11_FreeSymKey(ss->ssl3.hs.dheSecret); - if (ss->ssl3.hs.pskBinderKey) - PK11_FreeSymKey(ss->ssl3.hs.pskBinderKey); if (ss->ssl3.hs.clientEarlyTrafficSecret) PK11_FreeSymKey(ss->ssl3.hs.clientEarlyTrafficSecret); if (ss->ssl3.hs.clientHsTrafficSecret) @@ -13496,6 +13586,63 @@ ssl3_DestroySSL3Info(sslSocket *ss) ss->ssl3.hs.zeroRttState = ssl_0rtt_none; /* Destroy TLS 1.3 buffered early data. */ tls13_DestroyEarlyData(&ss->ssl3.hs.bufferedEarlyData); + /* Destroy TLS 1.3 PSKs */ + tls13_DestroyPskList(&ss->ssl3.hs.psks); +} + +/* + * parse the policy value for a single algorithm in a cipher_suite, + * return TRUE if we disallow by the cipher suite by policy + * (we don't have to parse any more algorithm policies on this cipher suite), + * otherwise return FALSE. + * 1. If we don't have the required policy, disable by default, disallow by + * policy and return TRUE (no more processing needed). + * 2. If we have the required policy, and we are disabled, return FALSE, + * (if we are disabled, we only need to parse policy, not default). + * 3. If we have the required policy, and we aren't adjusting the defaults + * return FALSE. (only parsing the policy, not default). + * 4. We have the required policy and we are adjusting the defaults. + * If we are setting default = FALSE, set isDisabled to true so that + * we don't try to re-enable the cipher suite based on a different + * algorithm. + */ +PRBool +ssl_HandlePolicy(int cipher_suite, SECOidTag policyOid, + PRUint32 requiredPolicy, PRBool *isDisabled) +{ + PRUint32 policy; + SECStatus rv; + + /* first fetch the policy for this algorithm */ + rv = NSS_GetAlgorithmPolicy(policyOid, &policy); + if (rv != SECSuccess) { + return PR_FALSE; /* no policy value, continue to the next algorithm */ + } + /* first, are we allowed by policy, if not turn off allow and disable */ + if (!(policy & requiredPolicy)) { + ssl_CipherPrefSetDefault(cipher_suite, PR_FALSE); + ssl_CipherPolicySet(cipher_suite, SSL_NOT_ALLOWED); + return PR_TRUE; + } + /* If we are already disabled, or the policy isn't setting a default + * we are done processing this algorithm */ + if (*isDisabled || (policy & NSS_USE_DEFAULT_NOT_VALID)) { + return PR_FALSE; + } + /* set the default value for the cipher suite. If we disable the cipher + * suite, remember that so we don't process the next default. This has + * the effect of disabling the whole cipher suite if any of the + * algorithms it uses are disabled by default. We still have to + * process the upper level because the cipher suite is still allowed + * by policy, and we may still have to disallow it based on other + * algorithms in the cipher suite. */ + if (policy & NSS_USE_DEFAULT_SSL_ENABLE) { + ssl_CipherPrefSetDefault(cipher_suite, PR_TRUE); + } else { + *isDisabled = PR_TRUE; + ssl_CipherPrefSetDefault(cipher_suite, PR_FALSE); + } + return PR_FALSE; } #define MAP_NULL(x) (((x) != 0) ? (x) : SEC_OID_NULL_CIPHER) @@ -13516,30 +13663,30 @@ ssl3_ApplyNSSPolicy(void) for (i = 1; i < PR_ARRAY_SIZE(cipher_suite_defs); ++i) { const ssl3CipherSuiteDef *suite = &cipher_suite_defs[i]; SECOidTag policyOid; + PRBool isDisabled = PR_FALSE; + /* if we haven't explicitly disabled it below enable by policy */ + ssl_CipherPolicySet(suite->cipher_suite, SSL_ALLOWED); + + /* now check the various key exchange, ciphers and macs and + * if we ever disallow by policy, we are done, go to the next cipher + */ policyOid = MAP_NULL(kea_defs[suite->key_exchange_alg].oid); - rv = NSS_GetAlgorithmPolicy(policyOid, &policy); - if (rv == SECSuccess && !(policy & NSS_USE_ALG_IN_SSL_KX)) { - ssl_CipherPrefSetDefault(suite->cipher_suite, PR_FALSE); - ssl_CipherPolicySet(suite->cipher_suite, SSL_NOT_ALLOWED); + if (ssl_HandlePolicy(suite->cipher_suite, policyOid, + NSS_USE_ALG_IN_SSL_KX, &isDisabled)) { continue; } policyOid = MAP_NULL(ssl_GetBulkCipherDef(suite)->oid); - rv = NSS_GetAlgorithmPolicy(policyOid, &policy); - if (rv == SECSuccess && !(policy & NSS_USE_ALG_IN_SSL)) { - ssl_CipherPrefSetDefault(suite->cipher_suite, PR_FALSE); - ssl_CipherPolicySet(suite->cipher_suite, SSL_NOT_ALLOWED); + if (ssl_HandlePolicy(suite->cipher_suite, policyOid, + NSS_USE_ALG_IN_SSL, &isDisabled)) { continue; } if (ssl_GetBulkCipherDef(suite)->type != type_aead) { policyOid = MAP_NULL(ssl_GetMacDefByAlg(suite->mac_alg)->oid); - rv = NSS_GetAlgorithmPolicy(policyOid, &policy); - if (rv == SECSuccess && !(policy & NSS_USE_ALG_IN_SSL)) { - ssl_CipherPrefSetDefault(suite->cipher_suite, PR_FALSE); - ssl_CipherPolicySet(suite->cipher_suite, - SSL_NOT_ALLOWED); + if (ssl_HandlePolicy(suite->cipher_suite, policyOid, + NSS_USE_ALG_IN_SSL, &isDisabled)) { continue; } } diff --git a/libs/nss/src/lib/ssl/ssl3ext.c b/libs/nss/src/lib/ssl/ssl3ext.c index 1cad98a7f..65a69450d 100644 --- a/libs/nss/src/lib/ssl/ssl3ext.c +++ b/libs/nss/src/lib/ssl/ssl3ext.c @@ -10,6 +10,7 @@ #include "nssrenam.h" #include "nss.h" +#include "pk11pub.h" #include "ssl.h" #include "sslimpl.h" #include "sslproto.h" @@ -962,6 +963,7 @@ ssl3_InitExtensionData(TLSExtensionData *xtnData, const sslSocket *ss) xtnData->peerDelegCred = NULL; xtnData->peerRequestedDelegCred = PR_FALSE; xtnData->sendingDelegCredToPeer = PR_FALSE; + xtnData->selectedPsk = NULL; } void diff --git a/libs/nss/src/lib/ssl/ssl3ext.h b/libs/nss/src/lib/ssl/ssl3ext.h index 7f09e5fd7..ff2f7c211 100644 --- a/libs/nss/src/lib/ssl/ssl3ext.h +++ b/libs/nss/src/lib/ssl/ssl3ext.h @@ -134,6 +134,10 @@ struct TLSExtensionDataStr { * |tls13_MaybeSetDelegatedCredential|. */ PRBool sendingDelegCredToPeer; + + /* A non-owning reference to the selected PSKs. MUST NOT be freed directly, + * rather through tls13_DestoryPskList(). */ + sslPsk *selectedPsk; }; typedef struct TLSExtensionStr { diff --git a/libs/nss/src/lib/ssl/ssl3exthandle.c b/libs/nss/src/lib/ssl/ssl3exthandle.c index 07565ba00..cb4698253 100644 --- a/libs/nss/src/lib/ssl/ssl3exthandle.c +++ b/libs/nss/src/lib/ssl/ssl3exthandle.c @@ -796,7 +796,7 @@ ssl3_EncodeSessionTicket(sslSocket *ss, const NewSessionTicket *ticket, * This is compared to the expected time, which should differ only as a * result of clock errors or errors in the RTT estimate. */ - ticketAgeBaseline = (ssl_Time(ss) - ss->ssl3.hs.serverHelloTime) / PR_USEC_PER_MSEC; + ticketAgeBaseline = ss->ssl3.hs.rttEstimate / PR_USEC_PER_MSEC; ticketAgeBaseline -= ticket->ticket_age_add; rv = sslBuffer_AppendNumber(&plaintext, ticketAgeBaseline, 4); if (rv != SECSuccess) @@ -1652,7 +1652,7 @@ ssl3_SendSigAlgsXtn(const sslSocket *ss, TLSExtensionData *xtnData, minVersion = ss->vrange.min; /* ClientHello */ } - SECStatus rv = ssl3_EncodeSigAlgs(ss, minVersion, buf); + SECStatus rv = ssl3_EncodeSigAlgs(ss, minVersion, PR_TRUE /* forCert */, buf); if (rv != SECSuccess) { return SECFailure; } diff --git a/libs/nss/src/lib/ssl/ssl3gthr.c b/libs/nss/src/lib/ssl/ssl3gthr.c index 3bc6e8edc..45cfb31bc 100644 --- a/libs/nss/src/lib/ssl/ssl3gthr.c +++ b/libs/nss/src/lib/ssl/ssl3gthr.c @@ -611,6 +611,46 @@ ssl3_GatherAppDataRecord(sslSocket *ss, int flags) return rv; } +static SECStatus +ssl_HandleZeroRttRecordData(sslSocket *ss, const PRUint8 *data, unsigned int len) +{ + PORT_Assert(ss->sec.isServer); + if (ss->ssl3.hs.zeroRttState == ssl_0rtt_accepted) { + sslBuffer buf = { CONST_CAST(PRUint8, data), len, len, PR_TRUE }; + return tls13_HandleEarlyApplicationData(ss, &buf); + } + if (ss->ssl3.hs.zeroRttState == ssl_0rtt_ignored && + ss->ssl3.hs.zeroRttIgnore != ssl_0rtt_ignore_none) { + /* We're ignoring 0-RTT so drop this record quietly. */ + return SECSuccess; + } + PORT_SetError(SSL_ERROR_RX_UNEXPECTED_APPLICATION_DATA); + return SECFailure; +} + +/* Ensure that application data in the wrong epoch is blocked. */ +static PRBool +ssl_IsApplicationDataPermitted(sslSocket *ss, PRUint16 epoch) +{ + /* Epoch 0 is never OK. */ + if (epoch == 0) { + return PR_FALSE; + } + if (ss->version < SSL_LIBRARY_VERSION_TLS_1_3) { + return ss->firstHsDone; + } + /* TLS 1.3 application data. */ + if (epoch >= TrafficKeyApplicationData) { + return ss->firstHsDone; + } + /* TLS 1.3 early data is server only. Further checks aren't needed + * as those are handled in ssl_HandleZeroRttRecordData. */ + if (epoch == TrafficKeyEarlyApplicationData) { + return ss->sec.isServer; + } + return PR_FALSE; +} + SECStatus SSLExp_RecordLayerData(PRFileDesc *fd, PRUint16 epoch, SSLContentType contentType, @@ -637,8 +677,8 @@ SSLExp_RecordLayerData(PRFileDesc *fd, PRUint16 epoch, goto early_loser; /* Rely on the existing code. */ } - /* Don't allow application data before handshake completion. */ - if (contentType == ssl_ct_application_data && !ss->firstHsDone) { + if (contentType == ssl_ct_application_data && + !ssl_IsApplicationDataPermitted(ss, epoch)) { PORT_SetError(SEC_ERROR_INVALID_ARGS); goto early_loser; } @@ -649,7 +689,18 @@ SSLExp_RecordLayerData(PRFileDesc *fd, PRUint16 epoch, if (epoch < ss->ssl3.crSpec->epoch) { epochError = SEC_ERROR_INVALID_ARGS; /* Too c/old. */ } else if (epoch > ss->ssl3.crSpec->epoch) { - epochError = PR_WOULD_BLOCK_ERROR; /* Too warm/new. */ + /* If a TLS 1.3 server is not expecting EndOfEarlyData, + * moving from 1 to 2 is a signal to execute the code + * as though that message had been received. Let that pass. */ + if (ss->version >= SSL_LIBRARY_VERSION_TLS_1_3 && + ss->opt.suppressEndOfEarlyData && + ss->sec.isServer && + ss->ssl3.crSpec->epoch == TrafficKeyEarlyApplicationData && + epoch == TrafficKeyHandshake) { + epochError = 0; + } else { + epochError = PR_WOULD_BLOCK_ERROR; /* Too warm/new. */ + } } else { epochError = 0; /* Just right. */ } @@ -660,11 +711,18 @@ SSLExp_RecordLayerData(PRFileDesc *fd, PRUint16 epoch, } /* If the handshake is still running, we need to run that. */ - ssl_Get1stHandshakeLock(ss); rv = ssl_Do1stHandshake(ss); if (rv != SECSuccess && PORT_GetError() != PR_WOULD_BLOCK_ERROR) { + goto early_loser; + } + + /* 0-RTT needs its own special handling here. */ + if (ss->version >= SSL_LIBRARY_VERSION_TLS_1_3 && + epoch == TrafficKeyEarlyApplicationData && + contentType == ssl_ct_application_data) { + rv = ssl_HandleZeroRttRecordData(ss, data, len); ssl_Release1stHandshakeLock(ss); - return SECFailure; + return rv; } /* Finally, save the data... */ diff --git a/libs/nss/src/lib/ssl/ssl3prot.h b/libs/nss/src/lib/ssl/ssl3prot.h index d7375551f..edf459290 100644 --- a/libs/nss/src/lib/ssl/ssl3prot.h +++ b/libs/nss/src/lib/ssl/ssl3prot.h @@ -14,7 +14,7 @@ typedef PRUint16 SSL3ProtocolVersion; /* version numbers are defined in sslproto.h */ /* DTLS 1.3 is still a draft. */ -#define DTLS_1_3_DRAFT_VERSION 34 +#define DTLS_1_3_DRAFT_VERSION 38 typedef PRUint16 ssl3CipherSuite; /* The cipher suites are defined in sslproto.h */ diff --git a/libs/nss/src/lib/ssl/sslencode.c b/libs/nss/src/lib/ssl/sslencode.c index e59e758ff..d07b544ab 100644 --- a/libs/nss/src/lib/ssl/sslencode.c +++ b/libs/nss/src/lib/ssl/sslencode.c @@ -64,7 +64,10 @@ sslBuffer_Append(sslBuffer *b, const void *data, unsigned int len) if (rv != SECSuccess) { return SECFailure; /* Code already set. */ } - PORT_Memcpy(SSL_BUFFER_NEXT(b), data, len); + if (len > 0) { + PORT_Assert(data); + PORT_Memcpy(SSL_BUFFER_NEXT(b), data, len); + } b->len += len; return SECSuccess; } diff --git a/libs/nss/src/lib/ssl/sslerr.h b/libs/nss/src/lib/ssl/sslerr.h index bc2785f9a..eb8f7c2da 100644 --- a/libs/nss/src/lib/ssl/sslerr.h +++ b/libs/nss/src/lib/ssl/sslerr.h @@ -275,6 +275,7 @@ typedef enum { SSL_ERROR_DC_INVALID_KEY_USAGE = (SSL_ERROR_BASE + 184), SSL_ERROR_DC_EXPIRED = (SSL_ERROR_BASE + 185), SSL_ERROR_DC_INAPPROPRIATE_VALIDITY_PERIOD = (SSL_ERROR_BASE + 186), + SSL_ERROR_FEATURE_DISABLED = (SSL_ERROR_BASE + 187), SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */ } SSLErrorCodes; #endif /* NO_SECURITY_ERROR_ENUM */ diff --git a/libs/nss/src/lib/ssl/sslexp.h b/libs/nss/src/lib/ssl/sslexp.h index fb3d612c1..8a92a39ad 100644 --- a/libs/nss/src/lib/ssl/sslexp.h +++ b/libs/nss/src/lib/ssl/sslexp.h @@ -254,7 +254,8 @@ typedef struct SSLAntiReplayContextStr SSLAntiReplayContext; * * This function will fail unless the socket has an active TLS 1.3 session. * Earlier versions of TLS do not support the spontaneous sending of the - * NewSessionTicket message. + * NewSessionTicket message. It will also fail when external PSK + * authentication has been negotiated. */ #define SSL_SendSessionTicket(fd, appToken, appTokenLen) \ SSL_EXPERIMENTAL_API("SSL_SendSessionTicket", \ @@ -380,6 +381,10 @@ typedef SSLHelloRetryRequestAction(PR_CALLBACK *SSLHelloRetryRequestCallback)( * a server. This can be called once at a time, and is not allowed * until an answer is received. * + * This function is not allowed for use with DTLS or when external + * PSK authentication has been negotiated. SECFailure is returned + * in both cases. + * * The AuthCertificateCallback is called when the answer is received. * If the answer is accepted by the server, the value returned by * SSL_PeerCertificate() is replaced. If you need to remember all the @@ -947,6 +952,51 @@ typedef struct SSLMaskingContextStr { SSL_EXPERIMENTAL_API("SSL_SetDtls13VersionWorkaround", \ (PRFileDesc * _fd, PRBool _enabled), (fd, enabled)) +/* SSL_AddExternalPsk() and SSL_AddExternalPsk0Rtt() can be used to + * set an external PSK on a socket. If successful, this PSK will + * be used in all subsequent connection attempts for this socket. + * This has no effect if the maximum TLS version is < 1.3. + * + * This API currently only accepts a single PSK, so multiple calls to + * either function will fail. An EPSK can be replaced by calling + * SSL_RemoveExternalPsk followed by SSL_AddExternalPsk. + * For both functions, the label is expected to be a unique identifier + * for the external PSK. Should en external PSK have the same label + * as a configured resumption PSK identity, the external PSK will + * take precedence. + * + * If you want to enable early data, you need to also provide a + * cipher suite for 0-RTT and a limit for the early data using + * SSL_AddExternalPsk0Rtt(). If you want to explicitly disallow + * certificate authentication, use SSL_AuthCertificateHook to set + * a callback that rejects all certificate chains. + */ +#define SSL_AddExternalPsk(fd, psk, identity, identityLen, hash) \ + SSL_EXPERIMENTAL_API("SSL_AddExternalPsk", \ + (PRFileDesc * _fd, PK11SymKey * _psk, \ + const PRUint8 *_identity, unsigned int _identityLen, \ + SSLHashType _hash), \ + (fd, psk, identity, identityLen, hash)) + +#define SSL_AddExternalPsk0Rtt(fd, psk, identity, identityLen, hash, \ + zeroRttSuite, maxEarlyData) \ + SSL_EXPERIMENTAL_API("SSL_AddExternalPsk0Rtt", \ + (PRFileDesc * _fd, PK11SymKey * _psk, \ + const PRUint8 *_identity, unsigned int _identityLen, \ + SSLHashType _hash, PRUint16 _zeroRttSuite, \ + PRUint32 _maxEarlyData), \ + (fd, psk, identity, identityLen, hash, \ + zeroRttSuite, maxEarlyData)) + +/* SSLExp_RemoveExternalPsk() removes an external PSK from socket + * configuration. Returns SECSuccess if the PSK was removed + * successfully, and SECFailure otherwise. */ +#define SSL_RemoveExternalPsk(fd, identity, identityLen) \ + SSL_EXPERIMENTAL_API("SSL_RemoveExternalPsk", \ + (PRFileDesc * _fd, const PRUint8 *_identity, \ + unsigned int _identityLen), \ + (fd, identity, identityLen)) + /* Deprecated experimental APIs */ #define SSL_UseAltServerHelloType(fd, enable) SSL_DEPRECATED_EXPERIMENTAL_API #define SSL_SetupAntiReplay(a, b, c) SSL_DEPRECATED_EXPERIMENTAL_API diff --git a/libs/nss/src/lib/ssl/sslimpl.h b/libs/nss/src/lib/ssl/sslimpl.h index 62d253224..35d0c2d6b 100644 --- a/libs/nss/src/lib/ssl/sslimpl.h +++ b/libs/nss/src/lib/ssl/sslimpl.h @@ -37,6 +37,7 @@ typedef struct sslSocketStr sslSocket; typedef struct sslNamedGroupDefStr sslNamedGroupDef; typedef struct sslEsniKeysStr sslEsniKeys; +typedef struct sslPskStr sslPsk; typedef struct sslDelegatedCredentialStr sslDelegatedCredential; typedef struct sslEphemeralKeyPairStr sslEphemeralKeyPair; typedef struct TLS13KeyShareEntryStr TLS13KeyShareEntry; @@ -282,6 +283,7 @@ typedef struct sslOptionsStr { unsigned int enablePostHandshakeAuth : 1; unsigned int enableDelegatedCredentials : 1; unsigned int enableDtls13VersionCompat : 1; + unsigned int suppressEndOfEarlyData : 1; } sslOptions; typedef enum { sslHandshakingUndetermined = 0, @@ -654,8 +656,6 @@ typedef struct SSL3HandshakeStateStr { * One of NULL, ssl3_SendClientSecondRound, ssl3_FinishHandshake, * or ssl3_AlwaysFail */ sslRestartTarget restartTarget; - /* Shared state between ssl3_HandleFinished and ssl3_FinishHandshake */ - PRBool cacheSID; PRBool canFalseStart; /* Can/did we False Start */ /* Which preliminaryinfo values have been set. */ @@ -690,9 +690,8 @@ typedef struct SSL3HandshakeStateStr { /* This group of values is used for TLS 1.3 and above */ PK11SymKey *currentSecret; /* The secret down the "left hand side" * of the TLS 1.3 key schedule. */ - PK11SymKey *resumptionMasterSecret; /* The resumption PSK. */ + PK11SymKey *resumptionMasterSecret; /* The resumption_master_secret. */ PK11SymKey *dheSecret; /* The (EC)DHE shared secret. */ - PK11SymKey *pskBinderKey; /* Used to compute the PSK binder. */ PK11SymKey *clientEarlyTrafficSecret; /* The secret we use for 0-RTT. */ PK11SymKey *clientHsTrafficSecret; /* The source keys for handshake */ PK11SymKey *serverHsTrafficSecret; /* traffic keys. */ @@ -711,18 +710,26 @@ typedef struct SSL3HandshakeStateStr { * or received. */ PRBool receivedCcs; /* A server received ChangeCipherSpec * before the handshake started. */ + PRBool rejectCcs; /* Excessive ChangeCipherSpecs are rejected. */ PRBool clientCertRequested; /* True if CertificateRequest received. */ + PRBool endOfFlight; /* Processed a full flight (DTLS 1.3). */ ssl3KEADef kea_def_mutable; /* Used to hold the writable kea_def * we use for TLS 1.3 */ - PRTime serverHelloTime; /* Time the ServerHello flight was sent. */ PRUint16 ticketNonce; /* A counter we use for tickets. */ SECItem fakeSid; /* ... (server) the SID the client used. */ - PRBool endOfFlight; /* Processed a full flight (DTLS 1.3). */ + + /* rttEstimate is used to guess the round trip time between server and client. + * When the server sends ServerHello it sets this to the current time. + * Only after it receives a message from the client's second flight does it + * set the value to something resembling an RTT estimate. */ + PRTime rttEstimate; /* The following lists contain DTLSHandshakeRecordEntry */ PRCList dtlsSentHandshake; /* Used to map records to handshake fragments. */ PRCList dtlsRcvdHandshake; /* Handshake records we have received * used to generate ACKs. */ + + PRCList psks; /* A list of PSKs, resumption and/or external. */ } SSL3HandshakeState; #define SSL_ASSERT_HASHES_EMPTY(ss) \ @@ -1100,6 +1107,9 @@ struct sslSocketStr { /* Anti-replay for TLS 1.3 0-RTT. */ SSLAntiReplayContext *antiReplay; + + /* An out-of-band PSK. */ + sslPsk *psk; }; struct sslSelfEncryptKeysStr { @@ -1683,12 +1693,12 @@ SECStatus ssl3_HandleServerSpki(sslSocket *ss); SECStatus ssl3_AuthCertificate(sslSocket *ss); SECStatus ssl_ReadCertificateStatus(sslSocket *ss, PRUint8 *b, PRUint32 length); -SECStatus ssl3_EncodeSigAlgs(const sslSocket *ss, PRUint16 minVersion, +SECStatus ssl3_EncodeSigAlgs(const sslSocket *ss, PRUint16 minVersion, PRBool forCert, sslBuffer *buf); SECStatus ssl3_EncodeFilteredSigAlgs(const sslSocket *ss, const SSLSignatureScheme *schemes, PRUint32 numSchemes, sslBuffer *buf); -SECStatus ssl3_FilterSigAlgs(const sslSocket *ss, PRUint16 minVersion, PRBool disableRsae, +SECStatus ssl3_FilterSigAlgs(const sslSocket *ss, PRUint16 minVersion, PRBool disableRsae, PRBool forCert, unsigned int maxSchemes, SSLSignatureScheme *filteredSchemes, unsigned int *numFilteredSchemes); SECStatus ssl_GetCertificateRequestCAs(const sslSocket *ss, diff --git a/libs/nss/src/lib/ssl/sslinfo.c b/libs/nss/src/lib/ssl/sslinfo.c index 115c38dc1..a92ed1604 100644 --- a/libs/nss/src/lib/ssl/sslinfo.c +++ b/libs/nss/src/lib/ssl/sslinfo.c @@ -7,6 +7,7 @@ #include "sslimpl.h" #include "sslproto.h" #include "tls13hkdf.h" +#include "tls13psk.h" #include "tls13subcerts.h" SECStatus @@ -80,6 +81,13 @@ SSL_GetChannelInfo(PRFileDesc *fd, SSLChannelInfo *info, PRUintn len) inf.signatureScheme = sid->sigScheme; } inf.resumed = ss->statelessResume || ss->ssl3.hs.isResuming; + if (inf.resumed) { + inf.pskType = ssl_psk_resume; + } else if (inf.authType == ssl_auth_psk) { + inf.pskType = ssl_psk_external; + } else { + inf.pskType = ssl_psk_none; + } inf.peerDelegCred = tls13_IsVerifyingWithDelegatedCredential(ss); if (sid) { @@ -147,8 +155,14 @@ SSL_GetPreliminaryChannelInfo(PRFileDesc *fd, if (ss->sec.ci.sid && (ss->ssl3.hs.zeroRttState == ssl_0rtt_sent || ss->ssl3.hs.zeroRttState == ssl_0rtt_accepted)) { - inf.maxEarlyDataSize = - ss->sec.ci.sid->u.ssl3.locked.sessionTicket.max_early_data_size; + if (ss->statelessResume) { + inf.maxEarlyDataSize = + ss->sec.ci.sid->u.ssl3.locked.sessionTicket.max_early_data_size; + } else if (ss->psk) { + /* We may have cleared the handshake list, so check the socket. + * This is permissable since we only support one EPSK at a time. */ + inf.maxEarlyDataSize = ss->psk->maxEarlyData; + } } else { inf.maxEarlyDataSize = 0; } @@ -415,20 +429,33 @@ tls13_Exporter(sslSocket *ss, PK11SymKey *secret, return SECFailure; } + SSLHashType hashAlg; + /* Early export requires a PSK. As in 0-RTT, default + * to the first PSK if no suite is negotiated yet. */ + if (secret == ss->ssl3.hs.earlyExporterSecret && !ss->ssl3.hs.suite_def) { + if (PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks)) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + hashAlg = ((sslPsk *)PR_LIST_HEAD(&ss->ssl3.hs.psks))->hash; + } else { + hashAlg = tls13_GetHash(ss); + } + /* Pre-hash the context. */ - rv = tls13_ComputeHash(ss, &contextHash, context, contextLen); + rv = tls13_ComputeHash(ss, &contextHash, context, contextLen, hashAlg); if (rv != SECSuccess) { return rv; } rv = tls13_DeriveSecretNullHash(ss, secret, label, labelLen, - &innerSecret); + &innerSecret, hashAlg); if (rv != SECSuccess) { return rv; } rv = tls13_HkdfExpandLabelRaw(innerSecret, - tls13_GetHash(ss), + hashAlg, contextHash.u.raw, contextHash.len, kExporterInnerLabel, strlen(kExporterInnerLabel), diff --git a/libs/nss/src/lib/ssl/sslnonce.c b/libs/nss/src/lib/ssl/sslnonce.c index 3c30d3aa0..3daab4b75 100644 --- a/libs/nss/src/lib/ssl/sslnonce.c +++ b/libs/nss/src/lib/ssl/sslnonce.c @@ -1123,12 +1123,13 @@ ssl_CacheSessionID(sslSocket *ss) { sslSecurityInfo *sec = &ss->sec; PORT_Assert(sec); + PORT_Assert(sec->ci.sid->cached == never_cached); if (sec->ci.sid && !sec->ci.sid->u.ssl3.keys.resumable) { return; } - if (!ss->sec.isServer && ss->resumptionTokenCallback) { + if (!sec->isServer && ss->resumptionTokenCallback) { ssl_CacheExternalToken(ss); return; } diff --git a/libs/nss/src/lib/ssl/sslsecur.c b/libs/nss/src/lib/ssl/sslsecur.c index 14320fa19..ef978c90a 100644 --- a/libs/nss/src/lib/ssl/sslsecur.c +++ b/libs/nss/src/lib/ssl/sslsecur.c @@ -15,6 +15,7 @@ #include "pk11func.h" /* for PK11_GenerateRandom */ #include "nss.h" /* for NSS_RegisterShutdown */ #include "prinit.h" /* for PR_CallOnceWithArg */ +#include "tls13psk.h" /* Step through the handshake functions. * @@ -173,6 +174,7 @@ SSL_ResetHandshake(PRFileDesc *s, PRBool asServer) ssl3_DestroyRemoteExtensions(&ss->ssl3.hs.remoteExtensions); ssl3_ResetExtensionData(&ss->xtnData, ss); + tls13_ResetHandshakePsks(ss, &ss->ssl3.hs.psks); if (!ss->TCPconnected) ss->TCPconnected = (PR_SUCCESS == ssl_DefGetpeername(ss, &addr)); diff --git a/libs/nss/src/lib/ssl/sslsnce.c b/libs/nss/src/lib/ssl/sslsnce.c index 2f43c05c0..acb51a145 100644 --- a/libs/nss/src/lib/ssl/sslsnce.c +++ b/libs/nss/src/lib/ssl/sslsnce.c @@ -703,7 +703,7 @@ ServerSessionIDLookup(PRTime sslNow, const PRIPv6Addr *addr, /* what the ??. Didn't get the cert cache lock. ** Don't invalidate the SID cache entry, but don't find it. */ - PORT_Assert(!("Didn't get cert Cache Lock!")); + PORT_AssertNotReached("Didn't get cert Cache Lock!"); psce = 0; pcce = 0; } @@ -730,7 +730,7 @@ ServerSessionIDLookup(PRTime sslNow, const PRIPv6Addr *addr, /* what the ??. Didn't get the cert cache lock. ** Don't invalidate the SID cache entry, but don't find it. */ - PORT_Assert(!("Didn't get name Cache Lock!")); + PORT_AssertNotReached("Didn't get name Cache Lock!"); psce = 0; psnce = 0; } diff --git a/libs/nss/src/lib/ssl/sslsock.c b/libs/nss/src/lib/ssl/sslsock.c index e93201647..695f39c50 100644 --- a/libs/nss/src/lib/ssl/sslsock.c +++ b/libs/nss/src/lib/ssl/sslsock.c @@ -20,6 +20,7 @@ #include "pk11pqg.h" #include "pk11pub.h" #include "tls13esni.h" +#include "tls13psk.h" #include "tls13subcerts.h" static const sslSocketOps ssl_default_ops = { /* No SSL. */ @@ -90,7 +91,8 @@ static sslOptions ssl_defaults = { .enableDtlsShortHeader = PR_FALSE, .enableHelloDowngradeCheck = PR_FALSE, .enableV2CompatibleHello = PR_FALSE, - .enablePostHandshakeAuth = PR_FALSE + .enablePostHandshakeAuth = PR_FALSE, + .suppressEndOfEarlyData = PR_FALSE }; /* @@ -382,6 +384,12 @@ ssl_DupSocket(sslSocket *os) goto loser; } } + if (os->psk) { + ss->psk = tls13_CopyPsk(os->psk); + if (!ss->psk) { + goto loser; + } + } /* Create security data */ rv = ssl_CopySecurityInfo(ss, os); @@ -468,9 +476,15 @@ ssl_DestroySocketContents(sslSocket *ss) ssl_ClearPRCList(&ss->ssl3.hs.dtlsSentHandshake, NULL); ssl_ClearPRCList(&ss->ssl3.hs.dtlsRcvdHandshake, NULL); + tls13_DestroyPskList(&ss->ssl3.hs.psks); tls13_DestroyESNIKeys(ss->esniKeys); tls13_ReleaseAntiReplayContext(ss->antiReplay); + + if (ss->psk) { + tls13_DestroyPsk(ss->psk); + ss->psk = NULL; + } } /* @@ -864,6 +878,10 @@ SSL_OptionSet(PRFileDesc *fd, PRInt32 which, PRIntn val) ss->opt.enablePostHandshakeAuth = val; break; + case SSL_SUPPRESS_END_OF_EARLY_DATA: + ss->opt.suppressEndOfEarlyData = val; + break; + default: PORT_SetError(SEC_ERROR_INVALID_ARGS); rv = SECFailure; @@ -1018,6 +1036,9 @@ SSL_OptionGet(PRFileDesc *fd, PRInt32 which, PRIntn *pVal) case SSL_ENABLE_POST_HANDSHAKE_AUTH: val = ss->opt.enablePostHandshakeAuth; break; + case SSL_SUPPRESS_END_OF_EARLY_DATA: + val = ss->opt.suppressEndOfEarlyData; + break; default: PORT_SetError(SEC_ERROR_INVALID_ARGS); rv = SECFailure; @@ -1156,6 +1177,9 @@ SSL_OptionGetDefault(PRInt32 which, PRIntn *pVal) case SSL_ENABLE_POST_HANDSHAKE_AUTH: val = ssl_defaults.enablePostHandshakeAuth; break; + case SSL_SUPPRESS_END_OF_EARLY_DATA: + val = ssl_defaults.suppressEndOfEarlyData; + break; default: PORT_SetError(SEC_ERROR_INVALID_ARGS); rv = SECFailure; @@ -1367,6 +1391,10 @@ SSL_OptionSetDefault(PRInt32 which, PRIntn val) ssl_defaults.enablePostHandshakeAuth = val; break; + case SSL_SUPPRESS_END_OF_EARLY_DATA: + ssl_defaults.suppressEndOfEarlyData = val; + break; + default: PORT_SetError(SEC_ERROR_INVALID_ARGS); return SECFailure; @@ -1432,6 +1460,10 @@ SSL_CipherPolicySet(PRInt32 which, PRInt32 policy) if (rv != SECSuccess) { return rv; } + if (NSS_IsPolicyLocked()) { + PORT_SetError(SEC_ERROR_POLICY_LOCKED); + return SECFailure; + } return ssl_CipherPolicySet(which, policy); } @@ -1478,10 +1510,15 @@ SECStatus SSL_CipherPrefSetDefault(PRInt32 which, PRBool enabled) { SECStatus rv = ssl_Init(); + PRInt32 locks; if (rv != SECSuccess) { return rv; } + rv = NSS_OptionGet(NSS_DEFAULT_LOCKS, &locks); + if ((rv == SECSuccess) && (locks & NSS_DEFAULT_SSL_LOCK)) { + return SECSuccess; + } return ssl_CipherPrefSetDefault(which, enabled); } @@ -1507,11 +1544,17 @@ SECStatus SSL_CipherPrefSet(PRFileDesc *fd, PRInt32 which, PRBool enabled) { sslSocket *ss = ssl_FindSocket(fd); + PRInt32 locks; + SECStatus rv; if (!ss) { SSL_DBG(("%d: SSL[%d]: bad socket in CipherPrefSet", SSL_GETPID(), fd)); return SECFailure; } + rv = NSS_OptionGet(NSS_DEFAULT_LOCKS, &locks); + if ((rv == SECSuccess) && (locks & NSS_DEFAULT_SSL_LOCK)) { + return SECSuccess; + } if (ssl_IsRemovedCipherSuite(which)) return SECSuccess; return ssl3_CipherPrefSet(ss, (ssl3CipherSuite)which, enabled); @@ -2453,6 +2496,8 @@ SSL_ReconfigFD(PRFileDesc *model, PRFileDesc *fd) } } + tls13_ResetHandshakePsks(sm, &ss->ssl3.hs.psks); + if (sm->authCertificate) ss->authCertificate = sm->authCertificate; if (sm->authCertificateArg) @@ -4146,10 +4191,12 @@ ssl_NewSocket(PRBool makeLocks, SSLProtocolVariant protocolVariant) ssl3_InitExtensionData(&ss->xtnData, ss); PR_INIT_CLIST(&ss->ssl3.hs.dtlsSentHandshake); PR_INIT_CLIST(&ss->ssl3.hs.dtlsRcvdHandshake); + PR_INIT_CLIST(&ss->ssl3.hs.psks); dtls_InitTimers(ss); ss->esniKeys = NULL; ss->antiReplay = NULL; + ss->psk = NULL; if (makeLocks) { rv = ssl_MakeLocks(ss); @@ -4216,6 +4263,8 @@ struct { void *function; } ssl_experimental_functions[] = { #ifndef SSL_DISABLE_EXPERIMENTAL_API + EXP(AddExternalPsk), + EXP(AddExternalPsk0Rtt), EXP(AeadDecrypt), EXP(AeadEncrypt), EXP(CipherSuiteOrderGet), @@ -4246,6 +4295,7 @@ struct { EXP(RecordLayerData), EXP(RecordLayerWriteCallback), EXP(ReleaseAntiReplayContext), + EXP(RemoveExternalPsk), EXP(SecretCallback), EXP(SendCertificateRequest), EXP(SendSessionTicket), @@ -4457,8 +4507,11 @@ SSLExp_GetResumptionTokenInfo(const PRUint8 *tokenData, unsigned int tokenLen, if (!token.alpnSelection) { return SECFailure; } - PORT_Memcpy(token.alpnSelection, sid.u.ssl3.alpnSelection.data, - token.alpnSelectionLen); + if (token.alpnSelectionLen > 0) { + PORT_Assert(sid.u.ssl3.alpnSelection.data); + PORT_Memcpy(token.alpnSelection, sid.u.ssl3.alpnSelection.data, + token.alpnSelectionLen); + } if (sid.u.ssl3.locked.sessionTicket.flags & ticket_allow_early_data) { token.maxEarlyDataSize = diff --git a/libs/nss/src/lib/ssl/sslspec.h b/libs/nss/src/lib/ssl/sslspec.h index ad4176bb5..061d888ae 100644 --- a/libs/nss/src/lib/ssl/sslspec.h +++ b/libs/nss/src/lib/ssl/sslspec.h @@ -169,8 +169,11 @@ struct ssl3CipherSpecStr { * content type octet. */ PRUint16 recordSizeLimit; - /* Masking context used for DTLS 1.3 */ + /* DTLS 1.3: Sequence number masking context. */ SSLMaskingContext *maskContext; + + /* DTLS 1.3: Count of decryption failures for the given key. */ + PRUint64 deprotectionFailures; }; typedef void (*sslCipherSpecChangedFunc)(void *arg, diff --git a/libs/nss/src/lib/ssl/sslt.h b/libs/nss/src/lib/ssl/sslt.h index 63dc06c8a..eaf4133e3 100644 --- a/libs/nss/src/lib/ssl/sslt.h +++ b/libs/nss/src/lib/ssl/sslt.h @@ -41,7 +41,7 @@ typedef enum { ssl_ct_alert = 21, ssl_ct_handshake = 22, ssl_ct_application_data = 23, - ssl_ct_ack = 25 + ssl_ct_ack = 26 } SSLContentType; typedef enum { @@ -184,6 +184,12 @@ typedef enum { ssl_auth_size /* number of authentication types */ } SSLAuthType; +typedef enum { + ssl_psk_none = 0, + ssl_psk_resume = 1, + ssl_psk_external = 2, +} SSLPskType; + /* This is defined for backward compatibility reasons */ #define ssl_auth_rsa ssl_auth_rsa_decrypt @@ -358,6 +364,10 @@ typedef struct SSLChannelInfoStr { */ PRBool peerDelegCred; + /* The following fields were added in NSS 3.54. */ + /* Indicates what type of PSK, if any, was used in a handshake. */ + SSLPskType pskType; + /* When adding new fields to this structure, please document the * NSS version in which they were added. */ } SSLChannelInfo; diff --git a/libs/nss/src/lib/ssl/tls13con.c b/libs/nss/src/lib/ssl/tls13con.c index b8f31c3f0..5d51d3c5c 100644 --- a/libs/nss/src/lib/ssl/tls13con.c +++ b/libs/nss/src/lib/ssl/tls13con.c @@ -25,6 +25,7 @@ #include "tls13exthandle.h" #include "tls13hashstate.h" #include "tls13subcerts.h" +#include "tls13psk.h" static SECStatus tls13_SetCipherSpec(sslSocket *ss, PRUint16 epoch, SSLSecretDirection install, @@ -65,13 +66,15 @@ tls13_DeriveSecret(sslSocket *ss, PK11SymKey *key, const char *label, unsigned int labelLen, const SSL3Hashes *hashes, - PK11SymKey **dest); + PK11SymKey **dest, + SSLHashType hash); static SECStatus tls13_SendEndOfEarlyData(sslSocket *ss); -static SECStatus tls13_HandleEndOfEarlyData(sslSocket *ss, PRUint8 *b, +static SECStatus tls13_HandleEndOfEarlyData(sslSocket *ss, const PRUint8 *b, PRUint32 length); +static SECStatus tls13_MaybeHandleSuppressedEndOfEarlyData(sslSocket *ss); static SECStatus tls13_SendFinished(sslSocket *ss, PK11SymKey *baseKey); static SECStatus tls13_ComputePskBinderHash(sslSocket *ss, unsigned int prefix, - SSL3Hashes *hashes); + SSL3Hashes *hashes, SSLHashType type); static SECStatus tls13_VerifyFinished(sslSocket *ss, SSLHandshakeType message, PK11SymKey *secret, PRUint8 *b, PRUint32 length, @@ -85,14 +88,14 @@ static SECStatus tls13_SendNewSessionTicket(sslSocket *ss, unsigned int appTokenLen); static SECStatus tls13_HandleNewSessionTicket(sslSocket *ss, PRUint8 *b, PRUint32 length); -static SECStatus tls13_ComputeEarlySecrets(sslSocket *ss); +static SECStatus tls13_ComputeEarlySecretsWithPsk(sslSocket *ss); static SECStatus tls13_ComputeHandshakeSecrets(sslSocket *ss); static SECStatus tls13_ComputeApplicationSecrets(sslSocket *ss); static SECStatus tls13_ComputeFinalSecrets(sslSocket *ss); static SECStatus tls13_ComputeFinished( - sslSocket *ss, PK11SymKey *baseKey, const SSL3Hashes *hashes, - PRBool sending, PRUint8 *output, unsigned int *outputLen, - unsigned int maxOutputLen); + sslSocket *ss, PK11SymKey *baseKey, SSLHashType hashType, + const SSL3Hashes *hashes, PRBool sending, PRUint8 *output, + unsigned int *outputLen, unsigned int maxOutputLen); static SECStatus tls13_SendClientSecondRound(sslSocket *ss); static SECStatus tls13_SendClientSecondFlight(sslSocket *ss, PRBool sendClientCert, @@ -102,7 +105,8 @@ static SECStatus tls13_FinishHandshake(sslSocket *ss); const char kHkdfLabelClient[] = "c"; const char kHkdfLabelServer[] = "s"; const char kHkdfLabelDerivedSecret[] = "derived"; -const char kHkdfLabelPskBinderKey[] = "res binder"; +const char kHkdfLabelResPskBinderKey[] = "res binder"; +const char kHkdfLabelExtPskBinderKey[] = "ext binder"; const char kHkdfLabelEarlyTrafficSecret[] = "e traffic"; const char kHkdfLabelEarlyExporterSecret[] = "e exp master"; const char kHkdfLabelHandshakeTrafficSecret[] = "hs traffic"; @@ -264,6 +268,16 @@ tls13_GetHashForCipherSuite(ssl3CipherSuite suite) SSLHashType tls13_GetHash(const sslSocket *ss) { + /* suite_def may not be set yet when doing EPSK 0-Rtt. */ + if (!ss->ssl3.hs.suite_def) { + if (ss->xtnData.selectedPsk) { + return ss->xtnData.selectedPsk->hash; + } + /* This should never happen. */ + PORT_Assert(0); + return ssl_hash_none; + } + /* All TLS 1.3 cipher suites must have an explict PRF hash. */ PORT_Assert(ss->ssl3.hs.suite_def->prf_hash != ssl_hash_none); return ss->ssl3.hs.suite_def->prf_hash; @@ -318,9 +332,9 @@ tls13_GetHashSize(const sslSocket *ss) } static CK_MECHANISM_TYPE -tls13_GetHmacMechanism(sslSocket *ss) +tls13_GetHmacMechanismFromHash(SSLHashType hashType) { - switch (tls13_GetHash(ss)) { + switch (hashType) { case ssl_hash_sha256: return CKM_SHA256_HMAC; case ssl_hash_sha384: @@ -331,19 +345,25 @@ tls13_GetHmacMechanism(sslSocket *ss) return CKM_SHA256_HMAC; } +static CK_MECHANISM_TYPE +tls13_GetHmacMechanism(const sslSocket *ss) +{ + return tls13_GetHmacMechanismFromHash(tls13_GetHash(ss)); +} + SECStatus tls13_ComputeHash(sslSocket *ss, SSL3Hashes *hashes, - const PRUint8 *buf, unsigned int len) + const PRUint8 *buf, unsigned int len, + SSLHashType hash) { SECStatus rv; - rv = PK11_HashBuf(ssl3_HashTypeToOID(tls13_GetHash(ss)), - hashes->u.raw, buf, len); + rv = PK11_HashBuf(ssl3_HashTypeToOID(hash), hashes->u.raw, buf, len); if (rv != SECSuccess) { FATAL_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE, internal_error); return SECFailure; } - hashes->len = tls13_GetHashSize(ss); + hashes->len = tls13_GetHashSizeForHash(hash); return SECSuccess; } @@ -461,40 +481,50 @@ tls13_SetupClientHello(sslSocket *ss, sslClientHelloType chType) return SECFailure; } - /* Below here checks if we can do stateless resumption. */ - if (sid->cached == never_cached || - sid->version < SSL_LIBRARY_VERSION_TLS_1_3) { - return SECSuccess; - } + /* Try to do stateless resumption, if we can. */ + if (sid->cached != never_cached && + sid->version >= SSL_LIBRARY_VERSION_TLS_1_3) { + /* The caller must be holding sid->u.ssl3.lock for reading. */ + session_ticket = &sid->u.ssl3.locked.sessionTicket; + PORT_Assert(session_ticket && session_ticket->ticket.data); - /* The caller must be holding sid->u.ssl3.lock for reading. */ - session_ticket = &sid->u.ssl3.locked.sessionTicket; - PORT_Assert(session_ticket && session_ticket->ticket.data); + if (ssl_TicketTimeValid(ss, session_ticket)) { + ss->statelessResume = PR_TRUE; + } - if (ssl_TicketTimeValid(ss, session_ticket)) { - ss->statelessResume = PR_TRUE; - } + if (ss->statelessResume) { + PORT_Assert(ss->sec.ci.sid); + rv = tls13_RecoverWrappedSharedSecret(ss, ss->sec.ci.sid); + if (rv != SECSuccess) { + FATAL_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE, internal_error); + SSL_AtomicIncrementLong(&ssl3stats->sch_sid_cache_not_ok); + ssl_UncacheSessionID(ss); + ssl_FreeSID(ss->sec.ci.sid); + ss->sec.ci.sid = NULL; + return SECFailure; + } - if (ss->statelessResume) { - PORT_Assert(ss->sec.ci.sid); - rv = tls13_RecoverWrappedSharedSecret(ss, ss->sec.ci.sid); - if (rv != SECSuccess) { - FATAL_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE, internal_error); - SSL_AtomicIncrementLong(&ssl3stats->sch_sid_cache_not_ok); - ssl_UncacheSessionID(ss); - ssl_FreeSID(ss->sec.ci.sid); - ss->sec.ci.sid = NULL; - return SECFailure; + ss->ssl3.hs.cipher_suite = ss->sec.ci.sid->u.ssl3.cipherSuite; + rv = ssl3_SetupCipherSuite(ss, PR_FALSE); + if (rv != SECSuccess) { + FATAL_ERROR(ss, PORT_GetError(), internal_error); + return SECFailure; + } + PORT_Assert(!PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks)); } + } - ss->ssl3.hs.cipher_suite = ss->sec.ci.sid->u.ssl3.cipherSuite; - rv = ssl3_SetupCipherSuite(ss, PR_FALSE); - if (rv != SECSuccess) { - FATAL_ERROR(ss, PORT_GetError(), internal_error); - return SECFailure; + /* Derive the binder keys if any PSKs. */ + if (!PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks)) { + /* If an External PSK specified a suite, use that. */ + sslPsk *psk = (sslPsk *)PR_LIST_HEAD(&ss->ssl3.hs.psks); + if (!ss->statelessResume && + psk->type == ssl_psk_external && + psk->zeroRttSuite != TLS_NULL_WITH_NULL_NULL) { + ss->ssl3.hs.cipher_suite = psk->zeroRttSuite; } - rv = tls13_ComputeEarlySecrets(ss); + rv = tls13_ComputeEarlySecretsWithPsk(ss); if (rv != SECSuccess) { FATAL_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE, internal_error); return SECFailure; @@ -876,6 +906,12 @@ SSLExp_SendCertificateRequest(PRFileDesc *fd) return SECFailure; } + /* Disallow a CertificateRequest if this connection uses an external PSK. */ + if (ss->sec.authType == ssl_auth_psk) { + PORT_SetError(SSL_ERROR_FEATURE_DISABLED); + return SECFailure; + } + rv = TLS13_CHECK_HS_STATE(ss, SEC_ERROR_INVALID_ARGS, idle_handshake); if (rv != SECSuccess) { @@ -989,20 +1025,34 @@ tls13_RecoverWrappedSharedSecret(sslSocket *ss, sslSessionID *sid) wrappedMS.data = sid->u.ssl3.keys.wrapped_master_secret; wrappedMS.len = sid->u.ssl3.keys.wrapped_master_secret_len; - /* unwrap the "master secret" which is actually RMS. */ - ss->ssl3.hs.resumptionMasterSecret = ssl_unwrapSymKey( - wrapKey, sid->u.ssl3.masterWrapMech, - NULL, &wrappedMS, - CKM_SSL3_MASTER_KEY_DERIVE, - CKA_DERIVE, - tls13_GetHashSizeForHash(hashType), - CKF_SIGN | CKF_VERIFY, ss->pkcs11PinArg); + PK11SymKey *unwrappedPsk = ssl_unwrapSymKey(wrapKey, sid->u.ssl3.masterWrapMech, + NULL, &wrappedMS, CKM_SSL3_MASTER_KEY_DERIVE, + CKA_DERIVE, tls13_GetHashSizeForHash(hashType), + CKF_SIGN | CKF_VERIFY, ss->pkcs11PinArg); PK11_FreeSymKey(wrapKey); - if (!ss->ssl3.hs.resumptionMasterSecret) { + if (!unwrappedPsk) { return SECFailure; } + sslPsk *rpsk = tls13_MakePsk(unwrappedPsk, ssl_psk_resume, hashType, NULL); + if (!rpsk) { + PK11_FreeSymKey(unwrappedPsk); + return SECFailure; + } + if (sid->u.ssl3.locked.sessionTicket.flags & ticket_allow_early_data) { + rpsk->maxEarlyData = sid->u.ssl3.locked.sessionTicket.max_early_data_size; + rpsk->zeroRttSuite = sid->u.ssl3.cipherSuite; + } + PRINT_KEY(50, (ss, "Recovered RMS", rpsk->key)); + PORT_Assert(PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks) || + ((sslPsk *)PR_LIST_HEAD(&ss->ssl3.hs.psks))->type != ssl_psk_resume); - PRINT_KEY(50, (ss, "Recovered RMS", ss->ssl3.hs.resumptionMasterSecret)); + if (ss->sec.isServer) { + /* In server, we couldn't select the RPSK in the extension handler + * since it was not unwrapped yet. We're committed now, so select + * it and add it to the list (to ensure it is freed). */ + ss->xtnData.selectedPsk = rpsk; + } + PR_APPEND_LINK(&rpsk->link, &ss->ssl3.hs.psks); return SECSuccess; } @@ -1060,38 +1110,45 @@ tls13_RecoverWrappedSharedSecret(sslSocket *ss, sslSessionID *sid) * = resumption_master_secret * */ - static SECStatus -tls13_ComputeEarlySecrets(sslSocket *ss) +tls13_ComputeEarlySecretsWithPsk(sslSocket *ss) { - SECStatus rv = SECSuccess; + SECStatus rv; SSL_TRC(5, ("%d: TLS13[%d]: compute early secrets (%s)", SSL_GETPID(), ss->fd, SSL_ROLE(ss))); - /* Extract off the resumptionMasterSecret (if present), else pass the NULL - * resumptionMasterSecret which will be internally translated to zeroes. */ PORT_Assert(!ss->ssl3.hs.currentSecret); - rv = tls13_HkdfExtract(NULL, ss->ssl3.hs.resumptionMasterSecret, - tls13_GetHash(ss), &ss->ssl3.hs.currentSecret); + sslPsk *psk = NULL; + + if (ss->sec.isServer) { + psk = ss->xtnData.selectedPsk; + } else { + /* Client to use the first PSK for early secrets. */ + PORT_Assert(!PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks)); + psk = (sslPsk *)PR_LIST_HEAD(&ss->ssl3.hs.psks); + } + PORT_Assert(psk && psk->key); + PORT_Assert(psk->hash != ssl_hash_none); + + PK11SymKey *earlySecret = NULL; + rv = tls13_HkdfExtract(NULL, psk->key, psk->hash, &earlySecret); if (rv != SECSuccess) { return SECFailure; } - PORT_Assert(ss->statelessResume == (ss->ssl3.hs.resumptionMasterSecret != NULL)); - if (ss->statelessResume) { - PK11_FreeSymKey(ss->ssl3.hs.resumptionMasterSecret); - ss->ssl3.hs.resumptionMasterSecret = NULL; - - rv = tls13_DeriveSecretNullHash(ss, ss->ssl3.hs.currentSecret, - kHkdfLabelPskBinderKey, - strlen(kHkdfLabelPskBinderKey), - &ss->ssl3.hs.pskBinderKey); - if (rv != SECSuccess) { - return SECFailure; - } + /* No longer need the raw input key */ + PK11_FreeSymKey(psk->key); + psk->key = NULL; + const char *label = (psk->type == ssl_psk_resume) ? kHkdfLabelResPskBinderKey : kHkdfLabelExtPskBinderKey; + rv = tls13_DeriveSecretNullHash(ss, earlySecret, + label, strlen(label), + &psk->binderKey, psk->hash); + if (rv != SECSuccess) { + PK11_FreeSymKey(earlySecret); + return SECFailure; } - PORT_Assert(!ss->ssl3.hs.resumptionMasterSecret); + ss->ssl3.hs.currentSecret = earlySecret; return SECSuccess; } @@ -1101,7 +1158,7 @@ static SECStatus tls13_DeriveEarlySecrets(sslSocket *ss) { SECStatus rv; - + PORT_Assert(ss->ssl3.hs.currentSecret); rv = tls13_DeriveSecretWrap(ss, ss->ssl3.hs.currentSecret, kHkdfLabelClient, kHkdfLabelEarlyTrafficSecret, @@ -1139,7 +1196,15 @@ tls13_ComputeHandshakeSecrets(sslSocket *ss) SSL_TRC(5, ("%d: TLS13[%d]: compute handshake secrets (%s)", SSL_GETPID(), ss->fd, SSL_ROLE(ss))); - /* First update |currentSecret| to add |dheSecret|, if any. */ + /* If no PSK, generate the default early secret. */ + if (!ss->ssl3.hs.currentSecret) { + PORT_Assert(!ss->xtnData.selectedPsk); + rv = tls13_HkdfExtract(NULL, NULL, + tls13_GetHash(ss), &ss->ssl3.hs.currentSecret); + if (rv != SECSuccess) { + return SECFailure; + } + } PORT_Assert(ss->ssl3.hs.currentSecret); PORT_Assert(ss->ssl3.hs.dheSecret); @@ -1147,7 +1212,7 @@ tls13_ComputeHandshakeSecrets(sslSocket *ss) rv = tls13_DeriveSecretNullHash(ss, ss->ssl3.hs.currentSecret, kHkdfLabelDerivedSecret, strlen(kHkdfLabelDerivedSecret), - &derivedSecret); + &derivedSecret, tls13_GetHash(ss)); if (rv != SECSuccess) { LOG_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE); return rv; @@ -1206,7 +1271,7 @@ tls13_ComputeHandshakeSecrets(sslSocket *ss) rv = tls13_DeriveSecretNullHash(ss, ss->ssl3.hs.currentSecret, kHkdfLabelDerivedSecret, strlen(kHkdfLabelDerivedSecret), - &derivedSecret); + &derivedSecret, tls13_GetHash(ss)); if (rv != SECSuccess) { LOG_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE); return rv; @@ -1278,7 +1343,7 @@ tls13_ComputeFinalSecrets(sslSocket *ss) PORT_Assert(!ss->ssl3.crSpec->masterSecret); PORT_Assert(!ss->ssl3.cwSpec->masterSecret); - + PORT_Assert(ss->ssl3.hs.currentSecret); rv = tls13_DeriveSecretWrap(ss, ss->ssl3.hs.currentSecret, NULL, kHkdfLabelResumptionMasterSecret, NULL, @@ -1319,7 +1384,14 @@ tls13_CanResume(sslSocket *ss, const sslSessionID *sid) return PR_FALSE; } +#ifdef UNSAFE_FUZZER_MODE + /* When fuzzing, sid could contain garbage that will crash tls13_GetHashForCipherSuite. + * Do a direct comparison of cipher suites. This makes us refuse to resume when the + * protocol allows it, but resumption is discretionary anyway. */ + if (sid->u.ssl3.cipherSuite != ss->ssl3.hs.cipher_suite) { +#else if (tls13_GetHashForCipherSuite(sid->u.ssl3.cipherSuite) != tls13_GetHashForCipherSuite(ss->ssl3.hs.cipher_suite)) { +#endif return PR_FALSE; } @@ -1339,21 +1411,40 @@ static PRBool tls13_CanNegotiateZeroRtt(sslSocket *ss, const sslSessionID *sid) { PORT_Assert(ss->ssl3.hs.zeroRttState == ssl_0rtt_sent); + sslPsk *psk = ss->xtnData.selectedPsk; - if (!sid) + if (!ss->opt.enable0RttData) { return PR_FALSE; - PORT_Assert(ss->statelessResume); - if (!ss->statelessResume) + } + if (!psk) { return PR_FALSE; - if (ss->ssl3.hs.cipher_suite != sid->u.ssl3.cipherSuite) + } + if (psk->zeroRttSuite == TLS_NULL_WITH_NULL_NULL) { return PR_FALSE; - if (!ss->opt.enable0RttData) + } + if (!psk->maxEarlyData) { return PR_FALSE; - if (!(sid->u.ssl3.locked.sessionTicket.flags & ticket_allow_early_data)) + } + if (ss->ssl3.hs.cipher_suite != psk->zeroRttSuite) { return PR_FALSE; - if (SECITEM_CompareItem(&ss->xtnData.nextProto, - &sid->u.ssl3.alpnSelection) != 0) + } + if (psk->type == ssl_psk_resume) { + if (!sid) { + return PR_FALSE; + } + PORT_Assert(sid->u.ssl3.locked.sessionTicket.flags & ticket_allow_early_data); + PORT_Assert(ss->statelessResume); + if (!ss->statelessResume) { + return PR_FALSE; + } + if (SECITEM_CompareItem(&ss->xtnData.nextProto, + &sid->u.ssl3.alpnSelection) != 0) { + return PR_FALSE; + } + } else if (psk->type != ssl_psk_external) { + PORT_Assert(0); return PR_FALSE; + } if (tls13_IsReplay(ss, sid)) { return PR_FALSE; @@ -1406,7 +1497,7 @@ tls13_NegotiateZeroRtt(sslSocket *ss, const sslSessionID *sid) } SSL_TRC(3, ("%d: TLS13[%d]: enable 0-RTT", SSL_GETPID(), ss->fd)); - PORT_Assert(ss->statelessResume); + PORT_Assert(ss->xtnData.selectedPsk); ss->ssl3.hs.zeroRttState = ssl_0rtt_accepted; ss->ssl3.hs.zeroRttIgnore = ssl_0rtt_ignore_none; ss->ssl3.hs.zeroRttSuite = ss->ssl3.hs.cipher_suite; @@ -1458,7 +1549,7 @@ tls13_NegotiateKeyExchange(sslSocket *ss, const sslNamedGroupDef *preferredGroup = NULL; /* We insist on DHE. */ - if (ss->statelessResume) { + if (ssl3_ExtensionNegotiated(ss, ssl_tls13_pre_shared_key_xtn)) { if (!ssl3_ExtensionNegotiated(ss, ssl_tls13_psk_key_exchange_modes_xtn)) { FATAL_ERROR(ss, SSL_ERROR_MISSING_PSK_KEY_EXCHANGE_MODES, missing_extension); @@ -1482,8 +1573,8 @@ tls13_NegotiateKeyExchange(sslSocket *ss, return SECFailure; } - SSL_TRC(3, ("%d: TLS13[%d]: selected KE = %s", - SSL_GETPID(), ss->fd, ss->statelessResume ? "PSK + (EC)DHE" : "(EC)DHE")); + SSL_TRC(3, ("%d: TLS13[%d]: selected KE = %s", SSL_GETPID(), + ss->fd, ss->statelessResume || ss->xtnData.selectedPsk ? "PSK + (EC)DHE" : "(EC)DHE")); /* Find the preferred group and an according client key share available. */ for (index = 0; index < SSL_NAMED_GROUP_COUNT; ++index) { @@ -1671,26 +1762,42 @@ tls13_MaybeSendHelloRetry(sslSocket *ss, const sslNamedGroupDef *requestedGroup, static SECStatus tls13_NegotiateAuthentication(sslSocket *ss) { - SECStatus rv; - if (ss->statelessResume) { - SSL_TRC(3, ("%d: TLS13[%d]: selected PSK authentication", + SSL_TRC(3, ("%d: TLS13[%d]: selected resumption PSK authentication", SSL_GETPID(), ss->fd)); ss->ssl3.hs.signatureScheme = ssl_sig_none; ss->ssl3.hs.kea_def_mutable.authKeyType = ssl_auth_psk; + /* Overwritten by tls13_RestoreCipherInfo. */ + ss->sec.authType = ssl_auth_psk; return SECSuccess; + } else if (ss->xtnData.selectedPsk) { + /* If the EPSK doesn't specify a suite, use what was negotiated. + * Else, only use the EPSK if we negotiated that suite. */ + if (ss->xtnData.selectedPsk->zeroRttSuite == TLS_NULL_WITH_NULL_NULL || + ss->ssl3.hs.cipher_suite == ss->xtnData.selectedPsk->zeroRttSuite) { + SSL_TRC(3, ("%d: TLS13[%d]: selected external PSK authentication", + SSL_GETPID(), ss->fd)); + ss->ssl3.hs.signatureScheme = ssl_sig_none; + ss->ssl3.hs.kea_def_mutable.authKeyType = ssl_auth_psk; + ss->sec.authType = ssl_auth_psk; + return SECSuccess; + } + } + + /* If there were PSKs, they are no longer needed. */ + if (ss->xtnData.selectedPsk) { + tls13_DestroyPskList(&ss->ssl3.hs.psks); + ss->xtnData.selectedPsk = NULL; } SSL_TRC(3, ("%d: TLS13[%d]: selected certificate authentication", SSL_GETPID(), ss->fd)); - /* We've now established that we need to sign.... */ - rv = tls13_SelectServerCert(ss); + SECStatus rv = tls13_SelectServerCert(ss); if (rv != SECSuccess) { return SECFailure; } return SECSuccess; } - /* Called from ssl3_HandleClientHello after we have parsed the * ClientHello and are sure that we are going to do TLS 1.3 * or fail. */ @@ -1854,40 +1961,51 @@ tls13_HandleClientHelloPart2(sslSocket *ss, goto loser; } - if (ss->statelessResume) { - /* We are now committed to trying to resume. */ - PORT_Assert(sid); - - /* Check that the negotiated SNI and the cached SNI match. */ - if (SECITEM_CompareItem(&sid->u.ssl3.srvName, - &ss->ssl3.hs.srvVirtName) != SECEqual) { - FATAL_ERROR(ss, SSL_ERROR_RX_MALFORMED_CLIENT_HELLO, - handshake_failure); - goto loser; - } + if (ss->sec.authType == ssl_auth_psk) { + if (ss->statelessResume) { + /* We are now committed to trying to resume. */ + PORT_Assert(sid); + /* Check that the negotiated SNI and the cached SNI match. */ + if (SECITEM_CompareItem(&sid->u.ssl3.srvName, + &ss->ssl3.hs.srvVirtName) != SECEqual) { + FATAL_ERROR(ss, SSL_ERROR_RX_MALFORMED_CLIENT_HELLO, + handshake_failure); + goto loser; + } - ss->sec.serverCert = ssl_FindServerCert(ss, sid->authType, - sid->namedCurve); - PORT_Assert(ss->sec.serverCert); + ss->sec.serverCert = ssl_FindServerCert(ss, sid->authType, + sid->namedCurve); + PORT_Assert(ss->sec.serverCert); - rv = tls13_RecoverWrappedSharedSecret(ss, sid); - if (rv != SECSuccess) { - SSL_AtomicIncrementLong(&ssl3stats->hch_sid_cache_not_ok); - FATAL_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE, internal_error); - goto loser; - } - tls13_RestoreCipherInfo(ss, sid); + rv = tls13_RecoverWrappedSharedSecret(ss, sid); + if (rv != SECSuccess) { + SSL_AtomicIncrementLong(&ssl3stats->hch_sid_cache_not_ok); + FATAL_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE, internal_error); + goto loser; + } + tls13_RestoreCipherInfo(ss, sid); - ss->sec.localCert = CERT_DupCertificate(ss->sec.serverCert->serverCert); - if (sid->peerCert != NULL) { - ss->sec.peerCert = CERT_DupCertificate(sid->peerCert); + ss->sec.localCert = CERT_DupCertificate(ss->sec.serverCert->serverCert); + if (sid->peerCert != NULL) { + ss->sec.peerCert = CERT_DupCertificate(sid->peerCert); + } + } else if (sid) { + /* We should never have a SID in the non-resumption case. */ + PORT_Assert(0); + ssl_UncacheSessionID(ss); + ssl_FreeSID(sid); + sid = NULL; } - ssl3_RegisterExtensionSender( ss, &ss->xtnData, ssl_tls13_pre_shared_key_xtn, tls13_ServerSendPreSharedKeyXtn); - tls13_NegotiateZeroRtt(ss, sid); + + rv = tls13_ComputeEarlySecretsWithPsk(ss); + if (rv != SECSuccess) { + FATAL_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE, internal_error); + return SECFailure; + } } else { if (sid) { /* we had a sid, but it's no longer valid, free it */ SSL_AtomicIncrementLong(&ssl3stats->hch_sid_cache_not_ok); @@ -1898,35 +2016,34 @@ tls13_HandleClientHelloPart2(sslSocket *ss, tls13_NegotiateZeroRtt(ss, NULL); } - /* Need to compute early secrets. */ - rv = tls13_ComputeEarlySecrets(ss); - if (rv != SECSuccess) { - FATAL_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE, internal_error); - return SECFailure; + if (ss->statelessResume) { + PORT_Assert(ss->xtnData.selectedPsk); + PORT_Assert(ss->ssl3.hs.kea_def_mutable.authKeyType == ssl_auth_psk); } - /* Now that we have the binder key check the binder. */ - if (ss->statelessResume) { + /* Now that we have the binder key, check the binder. */ + if (ss->xtnData.selectedPsk) { SSL3Hashes hashes; - PORT_Assert(ss->ssl3.hs.messages.len > ss->xtnData.pskBindersLen); rv = tls13_ComputePskBinderHash( ss, ss->ssl3.hs.messages.len - ss->xtnData.pskBindersLen, - &hashes); + &hashes, tls13_GetHash(ss)); if (rv != SECSuccess) { FATAL_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE, internal_error); goto loser; } + PORT_Assert(ss->xtnData.selectedPsk->hash == tls13_GetHash(ss)); + PORT_Assert(ss->ssl3.hs.suite_def); rv = tls13_VerifyFinished(ss, ssl_hs_client_hello, - ss->ssl3.hs.pskBinderKey, + ss->xtnData.selectedPsk->binderKey, ss->xtnData.pskBinder.data, ss->xtnData.pskBinder.len, &hashes); - if (rv != SECSuccess) { - goto loser; - } + } + if (rv != SECSuccess) { + goto loser; } /* This needs to go after we verify the psk binder. */ @@ -1953,7 +2070,7 @@ tls13_HandleClientHelloPart2(sslSocket *ss, SSL_AtomicIncrementLong(&ssl3stats->hch_sid_cache_not_ok); ssl_UncacheSessionID(ss); ssl_FreeSID(sid); - } else { + } else if (!ss->xtnData.selectedPsk) { SSL_AtomicIncrementLong(&ssl3stats->hch_sid_cache_misses); } @@ -1983,6 +2100,10 @@ tls13_HandleClientHelloPart2(sslSocket *ss, return SECFailure; } + /* We're done with PSKs */ + tls13_DestroyPskList(&ss->ssl3.hs.psks); + ss->xtnData.selectedPsk = NULL; + return SECSuccess; loser: @@ -2314,7 +2435,8 @@ tls13_ReinjectHandshakeTranscript(sslSocket *ss) // First compute the hash. rv = tls13_ComputeHash(ss, &hashes, ss->ssl3.hs.messages.buf, - ss->ssl3.hs.messages.len); + ss->ssl3.hs.messages.len, + tls13_GetHash(ss)); if (rv != SECSuccess) { return SECFailure; } @@ -2331,7 +2453,6 @@ tls13_ReinjectHandshakeTranscript(sslSocket *ss) return SECSuccess; } - static unsigned int ssl_ListCount(PRCList *list) { @@ -2454,6 +2575,12 @@ tls13_HandleCertificateRequest(sslSocket *ss, PRUint8 *b, PRUint32 length) return SECFailure; } + /* MUST NOT combine external PSKs with certificate authentication. */ + if (ss->sec.authType == ssl_auth_psk) { + FATAL_ERROR(ss, SSL_ERROR_RX_UNEXPECTED_CERT_REQUEST, unexpected_message); + return SECFailure; + } + if (tls13_IsPostHandshake(ss)) { PORT_Assert(ss->ssl3.hs.shaPostHandshake == NULL); ss->ssl3.hs.shaPostHandshake = PK11_CloneContext(ss->ssl3.hs.sha); @@ -2569,6 +2696,8 @@ tls13_HandleCertificateRequest(sslSocket *ss, PRUint8 *b, PRUint32 length) PRBool tls13_ShouldRequestClientAuth(sslSocket *ss) { + /* Even if we are configured to request a certificate, we can't + * if this handshake used a PSK, even when we are resuming. */ return ss->opt.requestCertificate && ss->ssl3.hs.kea_def->authKeyType != ssl_auth_psk; } @@ -2737,7 +2866,9 @@ tls13_SendServerHelloSequence(sslSocket *ss) } } - ss->ssl3.hs.serverHelloTime = ssl_Time(ss); + /* Here we set a baseline value for our RTT estimation. + * This value is updated when we get a response from the client. */ + ss->ssl3.hs.rttEstimate = ssl_Time(ss); return SECSuccess; } @@ -2749,14 +2880,22 @@ tls13_HandleServerHelloPart2(sslSocket *ss) SSL3Statistics *ssl3stats = SSL_GetStatistics(); if (ssl3_ExtensionNegotiated(ss, ssl_tls13_pre_shared_key_xtn)) { - PORT_Assert(ss->statelessResume); + PORT_Assert(!PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks)); + PORT_Assert(ss->xtnData.selectedPsk); + + if (ss->xtnData.selectedPsk->type != ssl_psk_resume) { + ss->statelessResume = PR_FALSE; + } } else { + /* We may have offered a PSK. If the server didn't negotiate + * it, clear this state to re-extract the Early Secret. */ if (ss->ssl3.hs.currentSecret) { - PORT_Assert(ss->statelessResume); + PORT_Assert(ssl3_ExtensionAdvertised(ss, ssl_tls13_pre_shared_key_xtn)); PK11_FreeSymKey(ss->ssl3.hs.currentSecret); ss->ssl3.hs.currentSecret = NULL; } ss->statelessResume = PR_FALSE; + ss->xtnData.selectedPsk = NULL; } if (ss->statelessResume) { @@ -2773,19 +2912,22 @@ tls13_HandleServerHelloPart2(sslSocket *ss) ss->ssl3.hs.kea_def_mutable = *ss->ssl3.hs.kea_def; ss->ssl3.hs.kea_def = &ss->ssl3.hs.kea_def_mutable; - if (ss->statelessResume) { - /* PSK */ + if (ss->xtnData.selectedPsk) { ss->ssl3.hs.kea_def_mutable.authKeyType = ssl_auth_psk; - tls13_RestoreCipherInfo(ss, sid); - if (sid->peerCert) { - ss->sec.peerCert = CERT_DupCertificate(sid->peerCert); - } + if (ss->statelessResume) { + tls13_RestoreCipherInfo(ss, sid); + if (sid->peerCert) { + ss->sec.peerCert = CERT_DupCertificate(sid->peerCert); + } - SSL_AtomicIncrementLong(&ssl3stats->hsh_sid_cache_hits); - SSL_AtomicIncrementLong(&ssl3stats->hsh_sid_stateless_resumes); + SSL_AtomicIncrementLong(&ssl3stats->hsh_sid_cache_hits); + SSL_AtomicIncrementLong(&ssl3stats->hsh_sid_stateless_resumes); + } else { + ss->sec.authType = ssl_auth_psk; + } } else { - /* !PSK */ - if (ssl3_ExtensionAdvertised(ss, ssl_tls13_pre_shared_key_xtn)) { + if (ss->statelessResume && + ssl3_ExtensionAdvertised(ss, ssl_tls13_pre_shared_key_xtn)) { SSL_AtomicIncrementLong(&ssl3stats->hsh_sid_cache_misses); } if (sid->cached == in_client_cache) { @@ -2794,18 +2936,6 @@ tls13_HandleServerHelloPart2(sslSocket *ss) } } - if (!ss->ssl3.hs.currentSecret) { - PORT_Assert(!ss->statelessResume); - - /* If we don't already have the Early Secret we need to make it - * now. */ - rv = tls13_ComputeEarlySecrets(ss); - if (rv != SECSuccess) { - FATAL_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE, internal_error); - return SECFailure; - } - } - /* Discard current SID and make a new one, though it may eventually * end up looking a lot like the old one. */ @@ -3105,6 +3235,13 @@ tls13_HandleCertificate(sslSocket *ss, PRUint8 *b, PRUint32 length) PORT_Assert(ss->opt.noLocks || ssl_HaveSSL3HandshakeLock(ss)); if (ss->sec.isServer) { + /* Receiving this message might be the first sign we have that + * early data is over, so pretend we received EOED. */ + rv = tls13_MaybeHandleSuppressedEndOfEarlyData(ss); + if (rv != SECSuccess) { + return SECFailure; /* Code already set. */ + } + if (ss->ssl3.clientCertRequested) { rv = TLS13_CHECK_HS_STATE(ss, SSL_ERROR_RX_UNEXPECTED_CERTIFICATE, idle_handshake); @@ -3116,8 +3253,9 @@ tls13_HandleCertificate(sslSocket *ss, PRUint8 *b, PRUint32 length) rv = TLS13_CHECK_HS_STATE(ss, SSL_ERROR_RX_UNEXPECTED_CERTIFICATE, wait_cert_request, wait_server_cert); } - if (rv != SECSuccess) + if (rv != SECSuccess) { return SECFailure; + } /* We can ignore any other cleartext from the client. */ if (ss->sec.isServer && IS_DTLS(ss)) { @@ -3131,6 +3269,11 @@ tls13_HandleCertificate(sslSocket *ss, PRUint8 *b, PRUint32 length) PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); return SECFailure; } + } else if (ss->sec.isServer) { + /* Our first shot an getting an RTT estimate. If the client took extra + * time to fetch a certificate, this will be bad, but we can't do much + * about that. */ + ss->ssl3.hs.rttEstimate = ssl_Time(ss) - ss->ssl3.hs.rttEstimate; } /* Process the context string */ @@ -3302,15 +3445,14 @@ tls13_DeriveSecret(sslSocket *ss, PK11SymKey *key, const char *label, unsigned int labelLen, const SSL3Hashes *hashes, - PK11SymKey **dest) + PK11SymKey **dest, + SSLHashType hash) { SECStatus rv; - rv = tls13_HkdfExpandLabel(key, tls13_GetHash(ss), - hashes->u.raw, hashes->len, - label, labelLen, - CKM_HKDF_DERIVE, - tls13_GetHashSize(ss), + rv = tls13_HkdfExpandLabel(key, hash, hashes->u.raw, hashes->len, + label, labelLen, CKM_HKDF_DERIVE, + tls13_GetHashSizeForHash(hash), ss->protocolVariant, dest); if (rv != SECSuccess) { LOG_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE); @@ -3324,18 +3466,19 @@ SECStatus tls13_DeriveSecretNullHash(sslSocket *ss, PK11SymKey *key, const char *label, unsigned int labelLen, - PK11SymKey **dest) + PK11SymKey **dest, + SSLHashType hash) { SSL3Hashes hashes; SECStatus rv; PRUint8 buf[] = { 0 }; - rv = tls13_ComputeHash(ss, &hashes, buf, 0); + rv = tls13_ComputeHash(ss, &hashes, buf, 0, hash); if (rv != SECSuccess) { return SECFailure; } - return tls13_DeriveSecret(ss, key, label, labelLen, &hashes, dest); + return tls13_DeriveSecret(ss, key, label, labelLen, &hashes, dest, hash); } /* Convenience wrapper that lets us supply a separate prefix and suffix. */ @@ -3374,7 +3517,7 @@ tls13_DeriveSecretWrap(sslSocket *ss, PK11SymKey *key, } rv = tls13_DeriveSecret(ss, key, label, strlen(label), - &hashes, dest); + &hashes, dest, tls13_GetHash(ss)); if (rv != SECSuccess) { return SECFailure; } @@ -3538,8 +3681,10 @@ tls13_SetupPendingCipherSpec(sslSocket *ss, ssl3CipherSpec *spec) spec->cipherDef = ssl_GetBulkCipherDef(ssl_LookupCipherSuiteDef(suite)); if (spec->epoch == TrafficKeyEarlyApplicationData) { - spec->earlyDataRemaining = - ss->sec.ci.sid->u.ssl3.locked.sessionTicket.max_early_data_size; + if (ss->xtnData.selectedPsk && + ss->xtnData.selectedPsk->zeroRttSuite != TLS_NULL_WITH_NULL_NULL) { + spec->earlyDataRemaining = ss->xtnData.selectedPsk->maxEarlyData; + } } tls13_SetSpecRecordVersion(ss, spec); @@ -4005,7 +4150,7 @@ tls13_HandleEncryptedExtensions(sslSocket *ss, PRUint8 *b, PRUint32 length) /* We can only get here if we offered 0-RTT. */ if (ssl3_ExtensionNegotiated(ss, ssl_tls13_early_data_xtn)) { PORT_Assert(ss->ssl3.hs.zeroRttState == ssl_0rtt_sent); - if (!ss->statelessResume) { + if (!ss->xtnData.selectedPsk) { /* Illegal to accept 0-RTT without also accepting PSK. */ FATAL_ERROR(ss, SSL_ERROR_RX_MALFORMED_ENCRYPTED_EXTENSIONS, illegal_parameter); @@ -4043,6 +4188,10 @@ tls13_HandleEncryptedExtensions(sslSocket *ss, PRUint8 *b, PRUint32 length) TLS13_SET_HS_STATE(ss, wait_cert_request); } + /* Client is done with any PSKs */ + tls13_DestroyPskList(&ss->ssl3.hs.psks); + ss->xtnData.selectedPsk = NULL; + return SECSuccess; } @@ -4322,7 +4471,7 @@ loser: static SECStatus tls13_ComputePskBinderHash(sslSocket *ss, unsigned int prefixLength, - SSL3Hashes *hashes) + SSL3Hashes *hashes, SSLHashType hashType) { SECStatus rv; @@ -4332,14 +4481,14 @@ tls13_ComputePskBinderHash(sslSocket *ss, unsigned int prefixLength, PRINT_BUF(10, (NULL, "Handshake hash computed over ClientHello prefix", ss->ssl3.hs.messages.buf, prefixLength)); - rv = PK11_HashBuf(ssl3_HashTypeToOID(tls13_GetHash(ss)), + rv = PK11_HashBuf(ssl3_HashTypeToOID(hashType), hashes->u.raw, ss->ssl3.hs.messages.buf, prefixLength); if (rv != SECSuccess) { ssl_MapLowLevelError(SSL_ERROR_SHA_DIGEST_FAILURE); return SECFailure; } - hashes->len = tls13_GetHashSize(ss); + hashes->len = tls13_GetHashSizeForHash(hashType); PRINT_BUF(10, (NULL, "PSK Binder hash", hashes->u.raw, hashes->len)); return SECSuccess; @@ -4357,7 +4506,10 @@ tls13_WriteExtensionsWithBinder(sslSocket *ss, sslBuffer *extensions) { SSL3Hashes hashes; SECStatus rv; - unsigned int size = tls13_GetHashSize(ss); + + PORT_Assert(!PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks)); + sslPsk *psk = (sslPsk *)PR_LIST_HEAD(&ss->ssl3.hs.psks); + unsigned int size = tls13_GetHashSizeForHash(psk->hash); unsigned int prefixLen = extensions->len - size - 3; unsigned int finishedLen; @@ -4378,15 +4530,18 @@ tls13_WriteExtensionsWithBinder(sslSocket *ss, sslBuffer *extensions) } /* Calculate the binder based on what has been written out. */ - rv = tls13_ComputePskBinderHash(ss, ss->ssl3.hs.messages.len, &hashes); + rv = tls13_ComputePskBinderHash(ss, ss->ssl3.hs.messages.len, + &hashes, psk->hash); if (rv != SECSuccess) { return SECFailure; } /* Write the binder into the extensions buffer, over the zeros we reserved - * previously. This avoids an allocation and means that we don't need a + * previously. This avoids an allocation and means that we don't need a * separate write for the extra bits that precede the binder. */ - rv = tls13_ComputeFinished(ss, ss->ssl3.hs.pskBinderKey, &hashes, PR_TRUE, + PORT_Assert(psk->binderKey); + rv = tls13_ComputeFinished(ss, psk->binderKey, + psk->hash, &hashes, PR_TRUE, extensions->buf + extensions->len - size, &finishedLen, size); if (rv != SECSuccess) { @@ -4406,13 +4561,13 @@ tls13_WriteExtensionsWithBinder(sslSocket *ss, sslBuffer *extensions) static SECStatus tls13_ComputeFinished(sslSocket *ss, PK11SymKey *baseKey, - const SSL3Hashes *hashes, + SSLHashType hashType, const SSL3Hashes *hashes, PRBool sending, PRUint8 *output, unsigned int *outputLen, unsigned int maxOutputLen) { SECStatus rv; PK11Context *hmacCtx = NULL; - CK_MECHANISM_TYPE macAlg = tls13_GetHmacMechanism(ss); + CK_MECHANISM_TYPE macAlg = tls13_GetHmacMechanismFromHash(hashType); SECItem param = { siBuffer, NULL, 0 }; unsigned int outputLenUint; const char *label = kHkdfLabelFinishedSecret; @@ -4424,18 +4579,16 @@ tls13_ComputeFinished(sslSocket *ss, PK11SymKey *baseKey, PRINT_BUF(50, (ss, "Handshake hash", hashes->u.raw, hashes->len)); /* Now derive the appropriate finished secret from the base secret. */ - rv = tls13_HkdfExpandLabel(baseKey, - tls13_GetHash(ss), - NULL, 0, - label, strlen(label), - tls13_GetHmacMechanism(ss), - tls13_GetHashSize(ss), + rv = tls13_HkdfExpandLabel(baseKey, hashType, + NULL, 0, label, strlen(label), + tls13_GetHmacMechanismFromHash(hashType), + tls13_GetHashSizeForHash(hashType), ss->protocolVariant, &secret); if (rv != SECSuccess) { goto abort; } - PORT_Assert(hashes->len == tls13_GetHashSize(ss)); + PORT_Assert(hashes->len == tls13_GetHashSizeForHash(hashType)); hmacCtx = PK11_CreateContextBySymKey(macAlg, CKA_SIGN, secret, ¶m); if (!hmacCtx) { @@ -4450,7 +4603,7 @@ tls13_ComputeFinished(sslSocket *ss, PK11SymKey *baseKey, if (rv != SECSuccess) goto abort; - PORT_Assert(maxOutputLen >= tls13_GetHashSize(ss)); + PORT_Assert(maxOutputLen >= tls13_GetHashSizeForHash(hashType)); rv = PK11_DigestFinal(hmacCtx, output, &outputLenUint, maxOutputLen); if (rv != SECSuccess) goto abort; @@ -4494,7 +4647,7 @@ tls13_SendFinished(sslSocket *ss, PK11SymKey *baseKey) } ssl_GetSpecReadLock(ss); - rv = tls13_ComputeFinished(ss, baseKey, &hashes, PR_TRUE, + rv = tls13_ComputeFinished(ss, baseKey, tls13_GetHash(ss), &hashes, PR_TRUE, finishedBuf, &finishedLen, sizeof(finishedBuf)); ssl_ReleaseSpecReadLock(ss); if (rv != SECSuccess) { @@ -4531,7 +4684,7 @@ tls13_VerifyFinished(sslSocket *ss, SSLHandshakeType message, return SECFailure; } - rv = tls13_ComputeFinished(ss, secret, hashes, PR_FALSE, + rv = tls13_ComputeFinished(ss, secret, tls13_GetHash(ss), hashes, PR_FALSE, finishedBuf, &finishedLen, sizeof(finishedBuf)); if (rv != SECSuccess) { FATAL_ERROR(ss, SEC_ERROR_LIBRARY_FAILURE, internal_error); @@ -4621,6 +4774,20 @@ tls13_ServerHandleFinished(sslSocket *ss, PRUint8 *b, PRUint32 length) SSL_TRC(3, ("%d: TLS13[%d]: server handle finished handshake", SSL_GETPID(), ss->fd)); + if (!tls13_ShouldRequestClientAuth(ss)) { + /* Receiving this message might be the first sign we have that + * early data is over, so pretend we received EOED. */ + rv = tls13_MaybeHandleSuppressedEndOfEarlyData(ss); + if (rv != SECSuccess) { + return SECFailure; /* Code already set. */ + } + + if (!tls13_IsPostHandshake(ss)) { + /* Finalize the RTT estimate. */ + ss->ssl3.hs.rttEstimate = ssl_Time(ss) - ss->ssl3.hs.rttEstimate; + } + } + rv = tls13_CommonHandleFinished(ss, ss->firstHsDone ? ss->ssl3.hs.clientTrafficSecret : ss->ssl3.hs.clientHsTrafficSecret, b, length); @@ -4684,7 +4851,8 @@ tls13_ServerHandleFinished(sslSocket *ss, PRUint8 *b, PRUint32 length) } ssl_GetXmitBufLock(ss); - if (ss->opt.enableSessionTickets) { + /* If resumption, authType is the original value and not ssl_auth_psk. */ + if (ss->opt.enableSessionTickets && ss->sec.authType != ssl_auth_psk) { rv = tls13_SendNewSessionTicket(ss, NULL, 0); if (rv != SECSuccess) { goto loser; @@ -5067,6 +5235,14 @@ SSLExp_SendSessionTicket(PRFileDesc *fd, const PRUint8 *token, return SECFailure; } + /* Disable tickets if we can trace this connection back to a PSK. + * We aren't able to issue tickets (currently) without a certificate. + * As PSK =~ resumption, there is no reason to do this. */ + if (ss->sec.authType == ssl_auth_psk) { + PORT_SetError(SSL_ERROR_FEATURE_DISABLED); + return SECFailure; + } + ssl_GetSSL3HandshakeLock(ss); ssl_GetXmitBufLock(ss); rv = tls13_SendNewSessionTicket(ss, token, tokenLen); @@ -5541,6 +5717,10 @@ tls13_UnprotectRecord(sslSocket *ss, cText->buf->buf, /* in */ cText->buf->len); /* inlen */ if (rv != SECSuccess) { + if (IS_DTLS(ss)) { + spec->deprotectionFailures++; + } + SSL_TRC(3, ("%d: TLS13[%d]: record has bogus MAC", SSL_GETPID(), ss->fd)); @@ -5601,9 +5781,10 @@ tls13_UnprotectRecord(sslSocket *ss, * 1. We are doing TLS 1.3 * 2. This isn't a second ClientHello (in response to HelloRetryRequest) * 3. The 0-RTT option is set. - * 4. We have a valid ticket. - * 5. The server is willing to accept 0-RTT. - * 6. We have not changed our ALPN settings to disallow the ALPN tag + * 4. We have a valid ticket or an External PSK. + * 5. If resuming: + * 5a. The server is willing to accept 0-RTT. + * 5b. We have not changed our ALPN settings to disallow the ALPN tag * in the ticket. * * Called from tls13_ClientSendEarlyDataXtn(). @@ -5613,17 +5794,39 @@ tls13_ClientAllow0Rtt(const sslSocket *ss, const sslSessionID *sid) { /* We checked that the cipher suite was still allowed back in * ssl3_SendClientHello. */ - if (sid->version < SSL_LIBRARY_VERSION_TLS_1_3) + if (sid->version < SSL_LIBRARY_VERSION_TLS_1_3) { return PR_FALSE; - if (ss->ssl3.hs.helloRetry) + } + if (ss->ssl3.hs.helloRetry) { return PR_FALSE; - if (!ss->opt.enable0RttData) + } + if (!ss->opt.enable0RttData) { return PR_FALSE; - if (!ss->statelessResume) + } + if (PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks)) { return PR_FALSE; - if ((sid->u.ssl3.locked.sessionTicket.flags & ticket_allow_early_data) == 0) + } + sslPsk *psk = (sslPsk *)PR_LIST_HEAD(&ss->ssl3.hs.psks); + + if (psk->zeroRttSuite == TLS_NULL_WITH_NULL_NULL) { return PR_FALSE; - return ssl_AlpnTagAllowed(ss, &sid->u.ssl3.alpnSelection); + } + if (!psk->maxEarlyData) { + return PR_FALSE; + } + + if (psk->type == ssl_psk_external) { + return psk->hash == tls13_GetHashForCipherSuite(psk->zeroRttSuite); + } + if (psk->type == ssl_psk_resume) { + if (!ss->statelessResume) + return PR_FALSE; + if ((sid->u.ssl3.locked.sessionTicket.flags & ticket_allow_early_data) == 0) + return PR_FALSE; + return ssl_AlpnTagAllowed(ss, &sid->u.ssl3.alpnSelection); + } + PORT_Assert(0); + return PR_FALSE; } SECStatus @@ -5670,6 +5873,9 @@ tls13_MaybeDo0RTTHandshake(sslSocket *ss) } } + /* If we're trying 0-RTT, derive from the first PSK */ + PORT_Assert(!PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks) && !ss->xtnData.selectedPsk); + ss->xtnData.selectedPsk = (sslPsk *)PR_LIST_HEAD(&ss->ssl3.hs.psks); rv = tls13_DeriveEarlySecrets(ss); if (rv != SECSuccess) { return SECFailure; @@ -5681,6 +5887,7 @@ tls13_MaybeDo0RTTHandshake(sslSocket *ss) rv = tls13_SetCipherSpec(ss, TrafficKeyEarlyApplicationData, ssl_secret_write, PR_TRUE); + ss->xtnData.selectedPsk = NULL; if (rv != SECSuccess) { return SECFailure; } @@ -5735,12 +5942,14 @@ tls13_SendEndOfEarlyData(sslSocket *ss) { SECStatus rv; - SSL_TRC(3, ("%d: TLS13[%d]: send EndOfEarlyData", SSL_GETPID(), ss->fd)); PORT_Assert(ss->opt.noLocks || ssl_HaveXmitBufLock(ss)); - rv = ssl3_AppendHandshakeHeader(ss, ssl_hs_end_of_early_data, 0); - if (rv != SECSuccess) { - return rv; /* err set by AppendHandshake. */ + if (!ss->opt.suppressEndOfEarlyData) { + SSL_TRC(3, ("%d: TLS13[%d]: send EndOfEarlyData", SSL_GETPID(), ss->fd)); + rv = ssl3_AppendHandshakeHeader(ss, ssl_hs_end_of_early_data, 0); + if (rv != SECSuccess) { + return rv; /* err set by AppendHandshake. */ + } } ss->ssl3.hs.zeroRttState = ssl_0rtt_done; @@ -5748,7 +5957,7 @@ tls13_SendEndOfEarlyData(sslSocket *ss) } static SECStatus -tls13_HandleEndOfEarlyData(sslSocket *ss, PRUint8 *b, PRUint32 length) +tls13_HandleEndOfEarlyData(sslSocket *ss, const PRUint8 *b, PRUint32 length) { SECStatus rv; @@ -5791,6 +6000,18 @@ tls13_HandleEndOfEarlyData(sslSocket *ss, PRUint8 *b, PRUint32 length) return SECSuccess; } +static SECStatus +tls13_MaybeHandleSuppressedEndOfEarlyData(sslSocket *ss) +{ + PORT_Assert(ss->sec.isServer); + if (!ss->opt.suppressEndOfEarlyData || + ss->ssl3.hs.zeroRttState != ssl_0rtt_accepted) { + return SECSuccess; + } + + return tls13_HandleEndOfEarlyData(ss, NULL, 0); +} + SECStatus tls13_HandleEarlyApplicationData(sslSocket *ss, sslBuffer *origBuf) { diff --git a/libs/nss/src/lib/ssl/tls13con.h b/libs/nss/src/lib/ssl/tls13con.h index dd693b377..9a3cd14c1 100644 --- a/libs/nss/src/lib/ssl/tls13con.h +++ b/libs/nss/src/lib/ssl/tls13con.h @@ -51,13 +51,15 @@ SSLHashType tls13_GetHashForCipherSuite(ssl3CipherSuite suite); unsigned int tls13_GetHashSize(const sslSocket *ss); unsigned int tls13_GetHashSizeForHash(SSLHashType hash); SECStatus tls13_ComputeHash(sslSocket *ss, SSL3Hashes *hashes, - const PRUint8 *buf, unsigned int len); + const PRUint8 *buf, unsigned int len, + SSLHashType hash); SECStatus tls13_ComputeHandshakeHashes(sslSocket *ss, SSL3Hashes *hashes); SECStatus tls13_DeriveSecretNullHash(sslSocket *ss, PK11SymKey *key, const char *label, unsigned int labelLen, - PK11SymKey **dest); + PK11SymKey **dest, + SSLHashType hash); void tls13_FatalError(sslSocket *ss, PRErrorCode prError, SSL3AlertDescription desc); SECStatus tls13_SetupClientHello(sslSocket *ss, sslClientHelloType chType); diff --git a/libs/nss/src/lib/ssl/tls13exthandle.c b/libs/nss/src/lib/ssl/tls13exthandle.c index 5768fbce5..5c3930ac2 100644 --- a/libs/nss/src/lib/ssl/tls13exthandle.c +++ b/libs/nss/src/lib/ssl/tls13exthandle.c @@ -14,6 +14,7 @@ #include "ssl3exthandle.h" #include "tls13esni.h" #include "tls13exthandle.h" +#include "tls13psk.h" #include "tls13subcerts.h" SECStatus @@ -408,69 +409,92 @@ tls13_ServerSendKeyShareXtn(const sslSocket *ss, TLSExtensionData *xtnData, * }; * * } PreSharedKeyExtension; - - * Presently the only way to get a PSK is by resumption, so this is - * really a ticket label and there will be at most one. */ SECStatus tls13_ClientSendPreSharedKeyXtn(const sslSocket *ss, TLSExtensionData *xtnData, sslBuffer *buf, PRBool *added) { - NewSessionTicket *session_ticket; - PRTime age; const static PRUint8 binder[TLS13_MAX_FINISHED_SIZE] = { 0 }; unsigned int binderLen; + unsigned int identityLen = 0; + const PRUint8 *identity = NULL; + PRTime age; SECStatus rv; - /* We only set statelessResume on the client in TLS 1.3 code. */ - if (!ss->statelessResume) { + /* Exit early if no PSKs or max version < 1.3. */ + if (PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks) || + ss->vrange.max < SSL_LIBRARY_VERSION_TLS_1_3) { + return SECSuccess; + } + + /* ...or if PSK type is resumption, but we're not resuming. */ + sslPsk *psk = (sslPsk *)PR_LIST_HEAD(&ss->ssl3.hs.psks); + if (psk->type == ssl_psk_resume && !ss->statelessResume) { return SECSuccess; } /* Save where this extension starts so that if we have to add padding, it - * can be inserted before this extension. */ + * can be inserted before this extension. */ PORT_Assert(buf->len >= 4); xtnData->lastXtnOffset = buf->len - 4; + PORT_Assert(psk->type == ssl_psk_resume || psk->type == ssl_psk_external); + binderLen = tls13_GetHashSizeForHash(psk->hash); + if (psk->type == ssl_psk_resume) { + /* Send a single ticket identity. */ + NewSessionTicket *session_ticket = &ss->sec.ci.sid->u.ssl3.locked.sessionTicket; + identityLen = session_ticket->ticket.len; + identity = session_ticket->ticket.data; + + /* Obfuscated age. */ + age = ssl_Time(ss) - session_ticket->received_timestamp; + age /= PR_USEC_PER_MSEC; + age += session_ticket->ticket_age_add; + PRINT_BUF(50, (ss, "Sending Resumption PSK with identity", identity, identityLen)); + } else if (psk->type == ssl_psk_external) { + identityLen = psk->label.len; + identity = psk->label.data; + age = 0; + PRINT_BUF(50, (ss, "Sending External PSK with label", identity, identityLen)); + } else { + PORT_Assert(0); + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return SECFailure; + } - PORT_Assert(ss->vrange.max >= SSL_LIBRARY_VERSION_TLS_1_3); - PORT_Assert(ss->sec.ci.sid->version >= SSL_LIBRARY_VERSION_TLS_1_3); - - /* Send a single ticket identity. */ - session_ticket = &ss->sec.ci.sid->u.ssl3.locked.sessionTicket; - rv = sslBuffer_AppendNumber(buf, 2 + /* identity length */ - session_ticket->ticket.len + /* ticket */ - 4 /* obfuscated_ticket_age */, - 2); - if (rv != SECSuccess) + /* Length is len(identityLen) + identityLen + len(age) */ + rv = sslBuffer_AppendNumber(buf, 2 + identityLen + 4, 2); + if (rv != SECSuccess) { goto loser; - rv = sslBuffer_AppendVariable(buf, session_ticket->ticket.data, - session_ticket->ticket.len, 2); - if (rv != SECSuccess) + } + + rv = sslBuffer_AppendVariable(buf, identity, + identityLen, 2); + if (rv != SECSuccess) { goto loser; + } - /* Obfuscated age. */ - age = ssl_Time(ss) - session_ticket->received_timestamp; - age /= PR_USEC_PER_MSEC; - age += session_ticket->ticket_age_add; rv = sslBuffer_AppendNumber(buf, age, 4); - if (rv != SECSuccess) + if (rv != SECSuccess) { goto loser; + } /* Write out the binder list length. */ - binderLen = tls13_GetHashSize(ss); rv = sslBuffer_AppendNumber(buf, binderLen + 1, 2); - if (rv != SECSuccess) + if (rv != SECSuccess) { goto loser; - /* Write zeroes for the binder for the moment. */ + } + + /* Write zeroes for the binder for the moment. These + * are overwritten in tls13_WriteExtensionsWithBinder. */ rv = sslBuffer_AppendVariable(buf, binder, binderLen, 1); - if (rv != SECSuccess) + if (rv != SECSuccess) { goto loser; + } - PRINT_BUF(50, (ss, "Sending PreSharedKey value", - session_ticket->ticket.data, - session_ticket->ticket.len)); + if (psk->type == ssl_psk_resume) { + xtnData->sentSessionTicketInClientHello = PR_TRUE; + } - xtnData->sentSessionTicketInClientHello = PR_TRUE; *added = PR_TRUE; return SECSuccess; @@ -479,8 +503,7 @@ loser: return SECFailure; } -/* Handle a TLS 1.3 PreSharedKey Extension. We only accept PSKs - * that contain session tickets. */ +/* Handle a TLS 1.3 PreSharedKey Extension. */ SECStatus tls13_ServerHandlePreSharedKeyXtn(const sslSocket *ss, TLSExtensionData *xtnData, SECItem *data) @@ -534,28 +557,52 @@ tls13_ServerHandlePreSharedKeyXtn(const sslSocket *ss, TLSExtensionData *xtnData return rv; if (!numIdentities) { - PRINT_BUF(50, (ss, "Handling PreSharedKey value", - label.data, label.len)); - rv = ssl3_ProcessSessionTicketCommon( - CONST_CAST(sslSocket, ss), &label, appToken); - /* This only happens if we have an internal error, not - * a malformed ticket. Bogus tickets just don't resume - * and return SECSuccess. */ - if (rv != SECSuccess) - return SECFailure; + /* Check any configured external PSK for a matching label. + * If none exists, try to parse it as a ticket. */ + PORT_Assert(!xtnData->selectedPsk); + for (PRCList *cur_p = PR_LIST_HEAD(&ss->ssl3.hs.psks); + cur_p != &ss->ssl3.hs.psks; + cur_p = PR_NEXT_LINK(cur_p)) { + sslPsk *psk = (sslPsk *)cur_p; + if (psk->type != ssl_psk_external || + SECITEM_CompareItem(&psk->label, &label) != SECEqual) { + continue; + } + PRINT_BUF(50, (ss, "Using External PSK with label", + psk->label.data, psk->label.len)); + xtnData->selectedPsk = psk; + } - if (ss->sec.ci.sid) { - /* xtnData->ticketAge contains the baseline we use for - * calculating the ticket age (i.e., our RTT estimate less the - * value of ticket_age_add). - * - * Add that to the obfuscated ticket age to recover the client's - * view of the ticket age plus the estimated RTT. - * - * See ssl3_EncodeSessionTicket() for details. */ - xtnData->ticketAge += obfuscatedAge; + if (!xtnData->selectedPsk) { + PRINT_BUF(50, (ss, "Handling PreSharedKey value", + label.data, label.len)); + rv = ssl3_ProcessSessionTicketCommon( + CONST_CAST(sslSocket, ss), &label, appToken); + /* This only happens if we have an internal error, not + * a malformed ticket. Bogus tickets just don't resume + * and return SECSuccess. */ + if (rv != SECSuccess) { + return SECFailure; + } + + if (ss->sec.ci.sid) { + /* xtnData->ticketAge contains the baseline we use for + * calculating the ticket age (i.e., our RTT estimate less the + * value of ticket_age_add). + * + * Add that to the obfuscated ticket age to recover the client's + * view of the ticket age plus the estimated RTT. + * + * See ssl3_EncodeSessionTicket() for details. */ + xtnData->ticketAge += obfuscatedAge; + + /* We are not committed to resumption until after unwrapping the + * RMS in tls13_HandleClientHelloPart2. The RPSK will be stored + * in ss->xtnData.selectedPsk at that point, so continue. */ + } } } + ++numIdentities; } @@ -589,10 +636,14 @@ tls13_ServerHandlePreSharedKeyXtn(const sslSocket *ss, TLSExtensionData *xtnData if (numBinders != numIdentities) goto alert_loser; - /* Keep track of negotiated extensions. Note that this does not - * mean we are resuming. */ - xtnData->negotiated[xtnData->numNegotiated++] = ssl_tls13_pre_shared_key_xtn; + if (ss->statelessResume) { + PORT_Assert(!ss->xtnData.selectedPsk); + } else if (!xtnData->selectedPsk) { + /* No matching EPSK. */ + return SECSuccess; + } + xtnData->negotiated[xtnData->numNegotiated++] = ssl_tls13_pre_shared_key_xtn; return SECSuccess; alert_loser: @@ -618,8 +669,7 @@ tls13_ServerSendPreSharedKeyXtn(const sslSocket *ss, TLSExtensionData *xtnData, return SECSuccess; } -/* Handle a TLS 1.3 PreSharedKey Extension. We only accept PSKs - * that contain session tickets. */ +/* Handle a TLS 1.3 PreSharedKey Extension. */ SECStatus tls13_ClientHandlePreSharedKeyXtn(const sslSocket *ss, TLSExtensionData *xtnData, SECItem *data) @@ -648,12 +698,23 @@ tls13_ClientHandlePreSharedKeyXtn(const sslSocket *ss, TLSExtensionData *xtnData /* We only sent one PSK label so index must be equal to 0 */ if (index) { + ssl3_ExtSendAlert(ss, alert_fatal, illegal_parameter); PORT_SetError(SSL_ERROR_MALFORMED_PRE_SHARED_KEY); return SECFailure; } + PORT_Assert(!PR_CLIST_IS_EMPTY(&ss->ssl3.hs.psks)); + sslPsk *candidate = (sslPsk *)PR_LIST_HEAD(&ss->ssl3.hs.psks); + + /* Check that the server-selected ciphersuite hash and PSK hash match. */ + if (candidate->hash != tls13_GetHashForCipherSuite(ss->ssl3.hs.cipher_suite)) { + ssl3_ExtSendAlert(ss, alert_fatal, illegal_parameter); + return SECFailure; + } + /* Keep track of negotiated extensions. */ xtnData->negotiated[xtnData->numNegotiated++] = ssl_tls13_pre_shared_key_xtn; + xtnData->selectedPsk = candidate; return SECSuccess; } @@ -936,10 +997,13 @@ tls13_ClientSendPostHandshakeAuthXtn(const sslSocket *ss, TLSExtensionData *xtnData, sslBuffer *buf, PRBool *added) { - SSL_TRC(3, ("%d: TLS13[%d]: send post_handshake_auth extension", - SSL_GETPID(), ss->fd)); - - *added = ss->opt.enablePostHandshakeAuth; + /* Only one post-handshake message is supported: a single + * NST immediately following the client Finished. */ + if (!IS_DTLS(ss)) { + SSL_TRC(3, ("%d: TLS13[%d]: send post_handshake_auth extension", + SSL_GETPID(), ss->fd)); + *added = ss->opt.enablePostHandshakeAuth; + } return SECSuccess; } @@ -956,8 +1020,12 @@ tls13_ServerHandlePostHandshakeAuthXtn(const sslSocket *ss, return SECFailure; } - /* Keep track of negotiated extensions. */ - xtnData->negotiated[xtnData->numNegotiated++] = ssl_tls13_post_handshake_auth_xtn; + /* Only one post-handshake message is supported: a single + * NST immediately following the client Finished. */ + if (!IS_DTLS(ss)) { + /* Keep track of negotiated extensions. */ + xtnData->negotiated[xtnData->numNegotiated++] = ssl_tls13_post_handshake_auth_xtn; + } return SECSuccess; } @@ -1451,7 +1519,8 @@ tls13_ClientSendDelegatedCredentialsXtn(const sslSocket *ss, SSLSignatureScheme filtered[MAX_SIGNATURE_SCHEMES] = { 0 }; unsigned int filteredCount = 0; SECStatus rv = ssl3_FilterSigAlgs(ss, ss->vrange.max, - PR_TRUE, + PR_TRUE /* disableRsae */, + PR_FALSE /* forCert */, MAX_SIGNATURE_SCHEMES, filtered, &filteredCount); diff --git a/libs/nss/src/lib/ssl/tls13hkdf.c b/libs/nss/src/lib/ssl/tls13hkdf.c index 9cf4d0fc0..ed6cdd559 100644 --- a/libs/nss/src/lib/ssl/tls13hkdf.c +++ b/libs/nss/src/lib/ssl/tls13hkdf.c @@ -38,6 +38,7 @@ tls13_HkdfExtract(PK11SymKey *ikm1, PK11SymKey *ikm2, SSLHashType baseHash, SECItem paramsi; PK11SymKey *prk; static const PRUint8 zeroKeyBuf[HASH_LENGTH_MAX]; + SECItem zeroKeyItem = { siBuffer, CONST_CAST(PRUint8, zeroKeyBuf), kTlsHkdfInfo[baseHash].hashSize }; PK11SlotInfo *slot = NULL; PK11SymKey *newIkm2 = NULL; PK11SymKey *newIkm1 = NULL; @@ -102,44 +103,14 @@ tls13_HkdfExtract(PK11SymKey *ikm1, PK11SymKey *ikm2, SSLHashType baseHash, /* A zero ikm2 is a key of hash-length 0s. */ if (!ikm2) { - CK_OBJECT_CLASS ckoData = CKO_DATA; - CK_ATTRIBUTE template[2] = { - { CKA_CLASS, (CK_BYTE_PTR)&ckoData, sizeof(ckoData) }, - { CKA_VALUE, (CK_BYTE_PTR)zeroKeyBuf, kTlsHkdfInfo[baseHash].hashSize } - }; - CK_OBJECT_HANDLE handle; - PK11GenericObject *genObject; - /* if we have ikm1, put the zero key in the same slot */ slot = ikm1 ? PK11_GetSlotFromKey(ikm1) : PK11_GetBestSlot(CKM_HKDF_DERIVE, NULL); if (!slot) { return SECFailure; } - genObject = PK11_CreateGenericObject(slot, template, - PR_ARRAY_SIZE(template), PR_FALSE); - if (genObject == NULL) { - return SECFailure; - } - handle = PK11_GetObjectHandle(PK11_TypeGeneric, genObject, NULL); - if (handle == CK_INVALID_HANDLE) { - return SECFailure; - } - /* A note about ownership of the PKCS #11 handle. - * PK11_CreateGenericObject() will not destroy the object it creates - * on Free, For that you want PK11_CreateManagedGenericObject(). - * Below we import the handle into the symKey structure. We pass - * PR_TRUE as the owner so that the symKey will destroy the object - * once it's freed. This is way it's safe to free now */ - PK11_DestroyGenericObject(genObject); - /* NOTE: we can't both be in this block, and the block above where - * we moved the keys (because this block requires ikm2 to be NULL and - * the other requires ikm2 to be non-NULL. It's therefore safe to - * use newIkm2 in both cases and have a single free at the end for - * both */ - PORT_Assert(newIkm2 == NULL); /* verify logic of the above statement */ - newIkm2 = PK11_SymKeyFromHandle(slot, NULL, PK11_OriginUnwrap, - CKM_HKDF_DERIVE, handle, PR_TRUE, NULL); + newIkm2 = PK11_ImportDataKey(slot, CKM_HKDF_DERIVE, PK11_OriginUnwrap, + CKA_DERIVE, &zeroKeyItem, NULL); if (!newIkm2) { return SECFailure; } diff --git a/libs/nss/src/lib/ssl/tls13psk.c b/libs/nss/src/lib/ssl/tls13psk.c new file mode 100644 index 000000000..7343c5a6f --- /dev/null +++ b/libs/nss/src/lib/ssl/tls13psk.c @@ -0,0 +1,219 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "nss.h" +#include "pk11func.h" +#include "ssl.h" +#include "sslproto.h" +#include "sslimpl.h" +#include "ssl3exthandle.h" +#include "tls13exthandle.h" +#include "tls13hkdf.h" +#include "tls13psk.h" + +SECStatus +SSLExp_AddExternalPsk0Rtt(PRFileDesc *fd, PK11SymKey *key, const PRUint8 *identity, + unsigned int identityLen, SSLHashType hash, + PRUint16 zeroRttSuite, PRUint32 maxEarlyData) +{ + + sslSocket *ss = ssl_FindSocket(fd); + if (!ss) { + SSL_DBG(("%d: SSL[%d]: bad socket in SSLExp_SetExternalPsk", + SSL_GETPID(), fd)); + return SECFailure; + } + + if (!key || !identity || !identityLen || identityLen > 0xFFFF || + (hash != ssl_hash_sha256 && hash != ssl_hash_sha384)) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + + SECItem label = { siBuffer, CONST_CAST(unsigned char, identity), identityLen }; + sslPsk *psk = tls13_MakePsk(PK11_ReferenceSymKey(key), ssl_psk_external, + hash, &label); + if (!psk) { + PORT_SetError(SEC_ERROR_NO_MEMORY); + return SECFailure; + } + psk->zeroRttSuite = zeroRttSuite; + psk->maxEarlyData = maxEarlyData; + SECStatus rv = SECFailure; + + ssl_Get1stHandshakeLock(ss); + ssl_GetSSL3HandshakeLock(ss); + + if (ss->psk) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + tls13_DestroyPsk(psk); + } else { + ss->psk = psk; + rv = SECSuccess; + tls13_ResetHandshakePsks(ss, &ss->ssl3.hs.psks); + } + + ssl_ReleaseSSL3HandshakeLock(ss); + ssl_Release1stHandshakeLock(ss); + + return rv; +} + +SECStatus +SSLExp_AddExternalPsk(PRFileDesc *fd, PK11SymKey *key, const PRUint8 *identity, + unsigned int identityLen, SSLHashType hash) +{ + return SSLExp_AddExternalPsk0Rtt(fd, key, identity, identityLen, + hash, TLS_NULL_WITH_NULL_NULL, 0); +} + +SECStatus +SSLExp_RemoveExternalPsk(PRFileDesc *fd, const PRUint8 *identity, unsigned int identityLen) +{ + if (!identity || !identityLen) { + PORT_SetError(SEC_ERROR_INVALID_ARGS); + return SECFailure; + } + + sslSocket *ss = ssl_FindSocket(fd); + if (!ss) { + SSL_DBG(("%d: SSL[%d]: bad socket in SSL_SetPSK", + SSL_GETPID(), fd)); + return SECFailure; + } + + SECItem removeIdentity = { siBuffer, + (unsigned char *)identity, + identityLen }; + + SECStatus rv; + ssl_Get1stHandshakeLock(ss); + ssl_GetSSL3HandshakeLock(ss); + + if (!ss->psk || SECITEM_CompareItem(&ss->psk->label, &removeIdentity) != SECEqual) { + PORT_SetError(SEC_ERROR_NO_KEY); + rv = SECFailure; + } else { + tls13_DestroyPsk(ss->psk); + ss->psk = NULL; + tls13_ResetHandshakePsks(ss, &ss->ssl3.hs.psks); + rv = SECSuccess; + } + + ssl_ReleaseSSL3HandshakeLock(ss); + ssl_Release1stHandshakeLock(ss); + + return rv; +} + +sslPsk * +tls13_CopyPsk(sslPsk *opsk) +{ + if (!opsk || !opsk->key) { + return NULL; + } + + sslPsk *psk = PORT_ZNew(sslPsk); + if (!psk) { + return NULL; + } + + SECStatus rv = SECITEM_CopyItem(NULL, &psk->label, &opsk->label); + if (rv != SECSuccess) { + PORT_Free(psk); + return NULL; + } + /* We should only have the initial key. Binder keys + * are derived during the handshake. */ + PORT_Assert(opsk->type == ssl_psk_external); + PORT_Assert(opsk->key); + PORT_Assert(!opsk->binderKey); + psk->hash = opsk->hash; + psk->type = opsk->type; + psk->key = opsk->key ? PK11_ReferenceSymKey(opsk->key) : NULL; + psk->binderKey = opsk->binderKey ? PK11_ReferenceSymKey(opsk->binderKey) : NULL; + return psk; +} + +void +tls13_DestroyPsk(sslPsk *psk) +{ + if (!psk) { + return; + } + if (psk->key) { + PK11_FreeSymKey(psk->key); + psk->key = NULL; + } + if (psk->binderKey) { + PK11_FreeSymKey(psk->binderKey); + psk->binderKey = NULL; + } + SECITEM_ZfreeItem(&psk->label, PR_FALSE); + PORT_ZFree(psk, sizeof(*psk)); +} + +void +tls13_DestroyPskList(PRCList *list) +{ + PRCList *cur_p; + while (!PR_CLIST_IS_EMPTY(list)) { + cur_p = PR_LIST_TAIL(list); + PR_REMOVE_LINK(cur_p); + tls13_DestroyPsk((sslPsk *)cur_p); + } +} + +sslPsk * +tls13_MakePsk(PK11SymKey *key, SSLPskType pskType, SSLHashType hashType, const SECItem *label) +{ + sslPsk *psk = PORT_ZNew(sslPsk); + if (!psk) { + PORT_SetError(SEC_ERROR_NO_MEMORY); + return NULL; + } + psk->type = pskType; + psk->hash = hashType; + psk->key = key; + + /* Label is NULL in the resumption case. */ + if (label) { + PORT_Assert(psk->type != ssl_psk_resume); + SECStatus rv = SECITEM_CopyItem(NULL, &psk->label, label); + if (rv != SECSuccess) { + PORT_SetError(SEC_ERROR_NO_MEMORY); + tls13_DestroyPsk(psk); + return NULL; + } + } + + return psk; +} + +/* Destroy any existing PSKs in |list| then copy + * in the configured |ss->psk|, if any.*/ +SECStatus +tls13_ResetHandshakePsks(sslSocket *ss, PRCList *list) +{ + tls13_DestroyPskList(list); + PORT_Assert(!ss->xtnData.selectedPsk); + ss->xtnData.selectedPsk = NULL; + if (ss->psk) { + PORT_Assert(ss->psk->type == ssl_psk_external); + PORT_Assert(ss->psk->key); + PORT_Assert(!ss->psk->binderKey); + + sslPsk *epsk = tls13_MakePsk(PK11_ReferenceSymKey(ss->psk->key), + ss->psk->type, ss->psk->hash, &ss->psk->label); + if (!epsk) { + return SECFailure; + } + epsk->zeroRttSuite = ss->psk->zeroRttSuite; + epsk->maxEarlyData = ss->psk->maxEarlyData; + PR_APPEND_LINK(&epsk->link, list); + } + return SECSuccess; +} diff --git a/libs/nss/src/lib/ssl/tls13psk.h b/libs/nss/src/lib/ssl/tls13psk.h new file mode 100644 index 000000000..73013fb9b --- /dev/null +++ b/libs/nss/src/lib/ssl/tls13psk.h @@ -0,0 +1,58 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is PRIVATE to SSL. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef __tls13psk_h_ +#define __tls13psk_h_ + +/* + * Internally, we have track sslPsk pointers in three locations: + * 1) An external PSK can be configured to the socket, in which case ss->psk will hold an owned reference. + * For now, this only holds one external PSK. The value will persist across handshake restarts. + * 2) When a handshake begins, the ss->psk value is deep-copied into ss->ssl3.hs.psks, which may also hold + * a resumption PSK. This is essentially a priority-sorted list (where a resumption PSK has higher + * priority than external), and we currently only send one PskIdentity and binder. + * 3) During negotiation, ss->xtnData.selectedPsk will either be NULL or it will hold a non-owning refernce + * to the PSK that has been (or is being) negotiated. + */ + +/* Note: When holding a resumption PSK: + * 1. |hash| comes from the original connection. + * 2. |label| is ignored: The identity sent in the pre_shared_key_xtn + * comes from ss->sec.ci.sid->u.ssl3.locked.sessionTicket. + */ +struct sslPskStr { + PRCList link; + PK11SymKey *key; /* A raw PSK. */ + PK11SymKey *binderKey; /* The binder key derived from |key|. |key| is NULL after derivation. */ + SSLPskType type; /* none, resumption, or external. */ + SECItem label; /* Label (identity) for an external PSK. */ + SSLHashType hash; /* A hash algorithm associated with a PSK. */ + ssl3CipherSuite zeroRttSuite; /* For EPSKs, an explicitly-configured ciphersuite for 0-Rtt. */ + PRUint32 maxEarlyData; /* For EPSKs, a limit on early data. Must be > 0 for 0-Rtt. */ +}; + +SECStatus SSLExp_AddExternalPsk(PRFileDesc *fd, PK11SymKey *psk, const PRUint8 *identity, + unsigned int identitylen, SSLHashType hash); + +SECStatus SSLExp_AddExternalPsk0Rtt(PRFileDesc *fd, PK11SymKey *psk, const PRUint8 *identity, + unsigned int identitylen, SSLHashType hash, + PRUint16 zeroRttSuite, PRUint32 maxEarlyData); + +SECStatus SSLExp_RemoveExternalPsk(PRFileDesc *fd, const PRUint8 *identity, unsigned int identitylen); + +sslPsk *tls13_CopyPsk(sslPsk *opsk); + +void tls13_DestroyPsk(sslPsk *psk); + +void tls13_DestroyPskList(PRCList *list); + +sslPsk *tls13_MakePsk(PK11SymKey *key, SSLPskType pskType, SSLHashType hashType, const SECItem *label); + +SECStatus tls13_ResetHandshakePsks(sslSocket *ss, PRCList *list); + +#endif diff --git a/libs/nss/src/lib/ssl/tls13replay.c b/libs/nss/src/lib/ssl/tls13replay.c index b6d1416f3..7e00785e0 100644 --- a/libs/nss/src/lib/ssl/tls13replay.c +++ b/libs/nss/src/lib/ssl/tls13replay.c @@ -16,6 +16,7 @@ #include "sslbloom.h" #include "sslimpl.h" #include "tls13hkdf.h" +#include "tls13psk.h" struct SSLAntiReplayContextStr { /* The number of outstanding references to this context. */ @@ -55,8 +56,7 @@ tls13_ReleaseAntiReplayContext(SSLAntiReplayContext *ctx) PORT_Free(ctx); } -/* Clear the current state and free any resources we allocated. The signature - * here is odd to allow this to be called during shutdown. */ +/* Clear the current state and free any resources we allocated. */ SECStatus SSLExp_ReleaseAntiReplayContext(SSLAntiReplayContext *ctx) { @@ -250,7 +250,9 @@ tls13_IsReplay(const sslSocket *ss, const sslSessionID *sid) return PR_TRUE; } - if (!tls13_InWindow(ss, sid)) { + if (!sid) { + PORT_Assert(ss->xtnData.selectedPsk->type == ssl_psk_external); + } else if (!tls13_InWindow(ss, sid)) { return PR_TRUE; } diff --git a/libs/nss/src/lib/sysinit/Makefile b/libs/nss/src/lib/sysinit/Makefile index fe59954df..3803142fd 100644 --- a/libs/nss/src/lib/sysinit/Makefile +++ b/libs/nss/src/lib/sysinit/Makefile @@ -24,7 +24,6 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -#include ../platlibs.mk include config.mk ####################################################################### @@ -43,6 +42,3 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### - -#include ../platrules.mk - diff --git a/libs/nss/src/lib/sysinit/config.mk b/libs/nss/src/lib/sysinit/config.mk index 037641b11..33ef6e874 100644 --- a/libs/nss/src/lib/sysinit/config.mk +++ b/libs/nss/src/lib/sysinit/config.mk @@ -11,13 +11,6 @@ # can't do this in manifest.mn because OS_TARGET isn't defined there. ifeq (,$(filter-out WIN%,$(OS_TARGET))) -# don't want the 32 in the shared library name -SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) - -RES = $(OBJDIR)/$(LIBRARY_NAME).res -RESNAME = $(LIBRARY_NAME).rc - ifdef NS_USE_GCC EXTRA_SHARED_LIBS += \ -L$(DIST)/lib \ diff --git a/libs/nss/src/lib/sysinit/manifest.mn b/libs/nss/src/lib/sysinit/manifest.mn index 40a119e99..d188b0a51 100644 --- a/libs/nss/src/lib/sysinit/manifest.mn +++ b/libs/nss/src/lib/sysinit/manifest.mn @@ -11,7 +11,7 @@ CSRCS = \ $(NULL) LIBRARY_NAME = nsssysinit -MAPFILE = $(OBJDIR)/nsssysinit.def +MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/util/Makefile b/libs/nss/src/lib/util/Makefile index 97ec9345e..c3cb5ef8b 100644 --- a/libs/nss/src/lib/util/Makefile +++ b/libs/nss/src/lib/util/Makefile @@ -14,8 +14,6 @@ include manifest.mn # (2) Include "global" configuration information. (OPTIONAL) # ####################################################################### -# include $(CORE_DEPTH)/coreconf/arch.mk - include $(CORE_DEPTH)/coreconf/config.mk ####################################################################### @@ -47,4 +45,3 @@ include $(CORE_DEPTH)/coreconf/rules.mk ####################################################################### -export:: private_export diff --git a/libs/nss/src/lib/util/SECerrs.h b/libs/nss/src/lib/util/SECerrs.h index 206fca087..4fb4afe40 100644 --- a/libs/nss/src/lib/util/SECerrs.h +++ b/libs/nss/src/lib/util/SECerrs.h @@ -549,3 +549,12 @@ ER3(SEC_ERROR_LEGACY_DATABASE, (SEC_ERROR_BASE + 177), ER3(SEC_ERROR_APPLICATION_CALLBACK_ERROR, (SEC_ERROR_BASE + 178), "The certificate was rejected by extra checks in the application.") + +ER3(SEC_ERROR_INVALID_STATE, (SEC_ERROR_BASE + 179), + "The attempted operation is invalid for the current state.") + +ER3(SEC_ERROR_POLICY_LOCKED, (SEC_ERROR_BASE + 180), + "Could not change the policy because the policy is now locked.") + +ER3(SEC_ERROR_SIGNATURE_ALGORITHM_DISABLED, (SEC_ERROR_BASE + 181), + "Could not create or verify a signature using a signature algorithm that is disabled because it is not secure.") diff --git a/libs/nss/src/lib/util/config.mk b/libs/nss/src/lib/util/config.mk index a3e720218..af42a2ee9 100644 --- a/libs/nss/src/lib/util/config.mk +++ b/libs/nss/src/lib/util/config.mk @@ -6,13 +6,6 @@ # can't do this in manifest.mn because OS_TARGET isn't defined there. ifeq (,$(filter-out WIN%,$(OS_TARGET))) -# don't want the 32 in the shared library name -SHARED_LIBRARY = $(OBJDIR)/$(DLL_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -IMPORT_LIBRARY = $(OBJDIR)/$(IMPORT_LIB_PREFIX)$(LIBRARY_NAME)$(LIBRARY_VERSION)$(IMPORT_LIB_SUFFIX) - -RES = $(OBJDIR)/$(LIBRARY_NAME).res -RESNAME = $(LIBRARY_NAME).rc - ifdef NS_USE_GCC EXTRA_SHARED_LIBS += \ -L$(DIST)/lib \ diff --git a/libs/nss/src/lib/util/manifest.mn b/libs/nss/src/lib/util/manifest.mn index b33a2049d..43eead61c 100644 --- a/libs/nss/src/lib/util/manifest.mn +++ b/libs/nss/src/lib/util/manifest.mn @@ -82,11 +82,9 @@ CSRCS = \ MODULE = nss -# don't duplicate module name in REQUIRES -MAPFILE = $(OBJDIR)/nssutil.def - LIBRARY_NAME = nssutil LIBRARY_VERSION = 3 +MAPFILE = $(OBJDIR)/$(LIBRARY_NAME).def # This part of the code, including all sub-dirs, can be optimized for size export ALLOW_OPT_CODE_SIZE = 1 diff --git a/libs/nss/src/lib/util/nssutil.def b/libs/nss/src/lib/util/nssutil.def index 8c233f7d3..2d61f53cd 100644 --- a/libs/nss/src/lib/util/nssutil.def +++ b/libs/nss/src/lib/util/nssutil.def @@ -334,3 +334,10 @@ NSSUTIL_AddNSSFlagToModuleSpec; ;+ local: ;+ *; ;+}; +;+NSSUTIL_3.59 { # NSS Utilities 3.59 release +;+ global: +NSS_IsPolicyLocked; +NSS_LockPolicy; +;+ local: +;+ *; +;+}; diff --git a/libs/nss/src/lib/util/nssutil.h b/libs/nss/src/lib/util/nssutil.h index 968c99f28..64cc1b4ad 100644 --- a/libs/nss/src/lib/util/nssutil.h +++ b/libs/nss/src/lib/util/nssutil.h @@ -19,10 +19,10 @@ * The format of the version string should be * "<major version>.<minor version>[.<patch level>[.<build number>]][ <Beta>]" */ -#define NSSUTIL_VERSION "3.52.3" +#define NSSUTIL_VERSION "3.59.1" #define NSSUTIL_VMAJOR 3 -#define NSSUTIL_VMINOR 52 -#define NSSUTIL_VPATCH 3 +#define NSSUTIL_VMINOR 59 +#define NSSUTIL_VPATCH 1 #define NSSUTIL_VBUILD 0 #define NSSUTIL_BETA PR_FALSE diff --git a/libs/nss/src/lib/util/quickder.c b/libs/nss/src/lib/util/quickder.c index 70ae42b27..d694581e1 100644 --- a/libs/nss/src/lib/util/quickder.c +++ b/libs/nss/src/lib/util/quickder.c @@ -742,15 +742,18 @@ DecodeItem(void* dest, switch (tagnum) { /* special cases of primitive types */ case SEC_ASN1_INTEGER: { - /* remove leading zeroes if the caller requested - siUnsignedInteger - This is to allow RSA key operations to work */ SECItem* destItem = (SECItem*)((char*)dest + templateEntry->offset); if (destItem && (siUnsignedInteger == destItem->type)) { - while (temp.len > 1 && temp.data[0] == 0) { /* leading 0 */ + /* A leading 0 is only allowed when a value + * would otherwise be interpreted as negative. */ + if (temp.len > 1 && temp.data[0] == 0) { temp.data++; temp.len--; + if (!(temp.data[0] & 0x80)) { + PORT_SetError(SEC_ERROR_BAD_DER); + rv = SECFailure; + } } } break; diff --git a/libs/nss/src/lib/util/secasn1d.c b/libs/nss/src/lib/util/secasn1d.c index ed237ed72..bb1887f7c 100644 --- a/libs/nss/src/lib/util/secasn1d.c +++ b/libs/nss/src/lib/util/secasn1d.c @@ -1982,8 +1982,15 @@ sec_asn1d_next_in_group(sec_asn1d_state *state) * compensating for "offset", as is done a little farther below * in the more normal case. */ - PORT_Assert(state->indefinite); - PORT_Assert(state->pending == 0); + /* + * XXX We used to assert our overall state was that we were decoding + * an indefinite-length object here (state->indefinite == TRUE and no + * pending bytes in the decoder), but those assertions aren't correct + * as it's legitimate to wrap indefinite sequences inside definite ones + * and this code handles that case. Additionally, when compiled in + * release mode these assertions aren't checked anyway, yet function + * safely. + */ if (child->dest && !state->subitems_head) { sec_asn1d_add_to_subitems(state, child->dest, 0, PR_FALSE); child->dest = NULL; diff --git a/libs/nss/src/lib/util/secerr.h b/libs/nss/src/lib/util/secerr.h index 4fe1d8e38..7b205a71e 100644 --- a/libs/nss/src/lib/util/secerr.h +++ b/libs/nss/src/lib/util/secerr.h @@ -210,6 +210,11 @@ typedef enum { SEC_ERROR_APPLICATION_CALLBACK_ERROR = (SEC_ERROR_BASE + 178), + SEC_ERROR_INVALID_STATE = (SEC_ERROR_BASE + 179), + + SEC_ERROR_POLICY_LOCKED = (SEC_ERROR_BASE + 180), + SEC_ERROR_SIGNATURE_ALGORITHM_DISABLED = (SEC_ERROR_BASE + 181), + /* Add new error codes above here. */ SEC_ERROR_END_OF_LIST } SECErrorCodes; diff --git a/libs/nss/src/lib/util/secoid.c b/libs/nss/src/lib/util/secoid.c index 42119587f..b10f859fb 100644 --- a/libs/nss/src/lib/util/secoid.c +++ b/libs/nss/src/lib/util/secoid.c @@ -2058,7 +2058,7 @@ SECOID_Init(void) { PLHashEntry *entry; const SECOidData *oid; - int i; + SECOidTag i; char *envVal; #define NSS_VERSION_VARIABLE __nss_util_version @@ -2244,6 +2244,8 @@ NSS_GetAlgorithmPolicy(SECOidTag tag, PRUint32 *pValue) return SECSuccess; } +static PRBool nss_policy_locked = PR_FALSE; + /* The Set function modifies the stored value according to the following * algorithm: * policy[tag] = (policy[tag] & ~clearBits) | setBits; @@ -2255,6 +2257,11 @@ NSS_SetAlgorithmPolicy(SECOidTag tag, PRUint32 setBits, PRUint32 clearBits) PRUint32 policyFlags; if (!pxo) return SECFailure; + + if (nss_policy_locked) { + PORT_SetError(SEC_ERROR_POLICY_LOCKED); + return SECFailure; + } /* The stored policy flags are the ones complement of the flags as * seen by the user. This is not atomic, but these changes should * be done rarely, e.g. at initialization time. @@ -2265,6 +2272,20 @@ NSS_SetAlgorithmPolicy(SECOidTag tag, PRUint32 setBits, PRUint32 clearBits) return SECSuccess; } +/* Get the state of nss_policy_locked */ +PRBool +NSS_IsPolicyLocked(void) +{ + return nss_policy_locked; +} + +/* Once the policy is locked, it can't be unlocked */ +void +NSS_LockPolicy(void) +{ + nss_policy_locked = PR_TRUE; +} + /* --------- END OF opaque extended OID table accessor functions ---------*/ /* for now, this is only used in a single place, so it can remain static */ @@ -2326,6 +2347,9 @@ SECOID_Shutdown(void) dynOidEntriesAllocated = 0; dynOidEntriesUsed = 0; } + /* we are trashing the old policy state now, also reenable changing + * the policy as well */ + nss_policy_locked = PR_FALSE; memset(xOids, 0, sizeof xOids); return SECSuccess; } diff --git a/libs/nss/src/lib/util/secoid.h b/libs/nss/src/lib/util/secoid.h index e6eaa8ce9..20d4cf551 100644 --- a/libs/nss/src/lib/util/secoid.h +++ b/libs/nss/src/lib/util/secoid.h @@ -135,6 +135,15 @@ extern SECStatus NSS_GetAlgorithmPolicy(SECOidTag tag, PRUint32 *pValue); extern SECStatus NSS_SetAlgorithmPolicy(SECOidTag tag, PRUint32 setBits, PRUint32 clearBits); +/* Lock the policy so NSS_SetAlgorithmPolicy (and other policy functions) + * No longer function */ +void +NSS_LockPolicy(void); + +/* return true if policy changes are now locked out */ +PRBool +NSS_IsPolicyLocked(void); + SEC_END_PROTOS #endif /* _SECOID_H_ */ diff --git a/libs/nss/src/lib/util/secoidt.h b/libs/nss/src/lib/util/secoidt.h index 837972e2f..c73829ef8 100644 --- a/libs/nss/src/lib/util/secoidt.h +++ b/libs/nss/src/lib/util/secoidt.h @@ -538,7 +538,24 @@ struct SECOidDataStr { #define NSS_USE_ALG_IN_SSL_KX 0x00000004 /* used in SSL key exchange */ #define NSS_USE_ALG_IN_SSL 0x00000008 /* used in SSL record protocol */ #define NSS_USE_POLICY_IN_SSL 0x00000010 /* enable policy in SSL protocol */ -#define NSS_USE_ALG_RESERVED 0xfffffffc /* may be used in future */ +#define NSS_USE_ALG_IN_ANY_SIGNATURE 0x00000020 /* used in S/MIME */ +#define NSS_USE_DEFAULT_NOT_VALID 0x80000000 /* clear to make the default flag valid */ +#define NSS_USE_DEFAULT_SSL_ENABLE 0x40000000 /* default cipher suite setting 1=enable */ + +/* Combo policy bites */ +#define NSS_USE_ALG_RESERVED 0x3fffffc0 /* may be used in future */ +/* Alias of all the signature values. */ +#define NSS_USE_ALG_IN_SIGNATURE (NSS_USE_ALG_IN_CERT_SIGNATURE | \ + NSS_USE_ALG_IN_CMS_SIGNATURE | \ + NSS_USE_ALG_IN_ANY_SIGNATURE) +/* all the bits needed for a certificate signature + * and only the bits needed for a certificate signature */ +#define NSS_USE_CERT_SIGNATURE_OK (NSS_USE_ALG_IN_CERT_SIGNATURE | \ + NSS_USE_ALG_IN_ANY_SIGNATURE) +/* all the bits needed for an SMIME signature + * and only the bits needed for an SMIME signature */ +#define NSS_USE_CMS_SIGNATURE_OK (NSS_USE_ALG_IN_CMS_SIGNATURE | \ + NSS_USE_ALG_IN_ANY_SIGNATURE) /* Code MUST NOT SET or CLEAR reserved bits, and must NOT depend on them * being all zeros or having any other known value. The reserved bits diff --git a/libs/nss/src/lib/util/secport.h b/libs/nss/src/lib/util/secport.h index d6f53f5e3..b3021afaf 100644 --- a/libs/nss/src/lib/util/secport.h +++ b/libs/nss/src/lib/util/secport.h @@ -126,6 +126,9 @@ SEC_END_PROTOS * ignored. See more details in Bug 1588015. */ #define PORT_AssertArg PR_ASSERT_ARG +/* Assert the current location can't be reached, passing a reason-string. */ +#define PORT_AssertNotReached(reasonStr) PR_NOT_REACHED(reasonStr) + /* macros to handle endian based byte conversion */ #define PORT_GET_BYTE_BE(value, offset, len) \ ((unsigned char)(((len) - (offset)-1) >= sizeof(value) ? 0 : (((value) >> (((len) - (offset)-1) * PR_BITS_PER_BYTE)) & 0xff))) diff --git a/libs/nss/src/lib/util/utilpars.c b/libs/nss/src/lib/util/utilpars.c index f9b807f7e..c248aa65b 100644 --- a/libs/nss/src/lib/util/utilpars.c +++ b/libs/nss/src/lib/util/utilpars.c @@ -178,7 +178,7 @@ char * NSSUTIL_ArgGetParamValue(const char *paramName, const char *parameters) { char searchValue[256]; - int paramLen = strlen(paramName); + size_t paramLen = strlen(paramName); char *returnValue = NULL; int next; diff --git a/libs/nss/src/lib/zlib/Makefile b/libs/nss/src/lib/zlib/Makefile index 183294f86..0aa8a85aa 100644 --- a/libs/nss/src/lib/zlib/Makefile +++ b/libs/nss/src/lib/zlib/Makefile @@ -25,7 +25,12 @@ include $(CORE_DEPTH)/coreconf/config.mk # (4) Include "local" platform-dependent assignments (OPTIONAL). # ####################################################################### -include config.mk +EXTRA_LIBS = $(LIBRARY) + +ifneq ($(OS_ARCH),WINNT) +DEFINES += -DHAVE_UNISTD_H +endif +DEFINES += -DHAVE_STDARG_H ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -43,7 +48,6 @@ include $(CORE_DEPTH)/coreconf/rules.mk # (7) Execute "local" rules. (OPTIONAL). # ####################################################################### -export:: private_export test: $(PROGRAMS) @cd $(OBJDIR); \ diff --git a/libs/nss/src/lib/zlib/config.mk b/libs/nss/src/lib/zlib/config.mk deleted file mode 100644 index 9e9fb3179..000000000 --- a/libs/nss/src/lib/zlib/config.mk +++ /dev/null @@ -1,21 +0,0 @@ -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# -# Override TARGETS variable so that only static libraries -# are specifed as dependencies within rules.mk. -# - -TARGETS = $(LIBRARY) -SHARED_LIBRARY = -IMPORT_LIBRARY = -PROGRAM = - -EXTRA_LIBS = $(LIBRARY) - -ifneq ($(OS_ARCH),WINNT) -DEFINES += -DHAVE_UNISTD_H -endif -DEFINES += -DHAVE_STDARG_H diff --git a/libs/nss/src/lib/zlib/manifest.mn b/libs/nss/src/lib/zlib/manifest.mn index 879c9fb24..fa7cfd120 100644 --- a/libs/nss/src/lib/zlib/manifest.mn +++ b/libs/nss/src/lib/zlib/manifest.mn @@ -27,8 +27,7 @@ CSRCS = adler32.c \ $(NULL) LIBRARY_NAME = zlib - -# REQUIRES = nss +SHARED_LIBRARY = $(NULL) # Define verbose as -1 to turn off all zlib trace messages in # debug builds. |