-
Notifications
You must be signed in to change notification settings - Fork 147
/
p384_scalar_32.c
11725 lines (11700 loc) · 424 KB
/
p384_scalar_32.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Autogenerated: 'src/ExtractionOCaml/word_by_word_montgomery' --inline --static --use-value-barrier p384_scalar 32 '2^384 - 1388124618062372383947042015309946732620727252194336364173' mul square add sub opp from_montgomery to_montgomery nonzero selectznz to_bytes from_bytes one msat divstep divstep_precomp */
/* curve description: p384_scalar */
/* machine_wordsize = 32 (from "32") */
/* requested operations: mul, square, add, sub, opp, from_montgomery, to_montgomery, nonzero, selectznz, to_bytes, from_bytes, one, msat, divstep, divstep_precomp */
/* m = 0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973 (from "2^384 - 1388124618062372383947042015309946732620727252194336364173") */
/* */
/* 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) */
/* twos_complement_eval z = let x1 := 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) in */
/* if x1 & (2^384-1) < 2^383 then x1 & (2^384-1) else (x1 & (2^384-1)) - 2^384 */
#include <stdint.h>
typedef unsigned char fiat_p384_scalar_uint1;
typedef signed char fiat_p384_scalar_int1;
#if defined(__GNUC__) || defined(__clang__)
# define FIAT_P384_SCALAR_FIAT_INLINE __inline__
#else
# define FIAT_P384_SCALAR_FIAT_INLINE
#endif
/* The type fiat_p384_scalar_montgomery_domain_field_element is a field element in the Montgomery domain. */
/* Bounds: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] */
typedef uint32_t fiat_p384_scalar_montgomery_domain_field_element[12];
/* The type fiat_p384_scalar_non_montgomery_domain_field_element is a field element NOT in the Montgomery domain. */
/* Bounds: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]] */
typedef uint32_t fiat_p384_scalar_non_montgomery_domain_field_element[12];
#if (-1 & 3) != 3
#error "This code only works on a two's complement system"
#endif
#if !defined(FIAT_P384_SCALAR_NO_ASM) && (defined(__GNUC__) || defined(__clang__))
static __inline__ uint32_t fiat_p384_scalar_value_barrier_u32(uint32_t a) {
__asm__("" : "+r"(a) : /* no inputs */);
return a;
}
#else
# define fiat_p384_scalar_value_barrier_u32(x) (x)
#endif
/*
* The function fiat_p384_scalar_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 FIAT_P384_SCALAR_FIAT_INLINE void fiat_p384_scalar_addcarryx_u32(uint32_t* out1, fiat_p384_scalar_uint1* out2, fiat_p384_scalar_uint1 arg1, uint32_t arg2, uint32_t arg3) {
uint64_t x1;
uint32_t x2;
fiat_p384_scalar_uint1 x3;
x1 = ((arg1 + (uint64_t)arg2) + arg3);
x2 = (uint32_t)(x1 & UINT32_C(0xffffffff));
x3 = (fiat_p384_scalar_uint1)(x1 >> 32);
*out1 = x2;
*out2 = x3;
}
/*
* The function fiat_p384_scalar_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 FIAT_P384_SCALAR_FIAT_INLINE void fiat_p384_scalar_subborrowx_u32(uint32_t* out1, fiat_p384_scalar_uint1* out2, fiat_p384_scalar_uint1 arg1, uint32_t arg2, uint32_t arg3) {
int64_t x1;
fiat_p384_scalar_int1 x2;
uint32_t x3;
x1 = ((arg2 - (int64_t)arg1) - arg3);
x2 = (fiat_p384_scalar_int1)(x1 >> 32);
x3 = (uint32_t)(x1 & UINT32_C(0xffffffff));
*out1 = x3;
*out2 = (fiat_p384_scalar_uint1)(0x0 - x2);
}
/*
* The function fiat_p384_scalar_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 FIAT_P384_SCALAR_FIAT_INLINE void fiat_p384_scalar_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_p384_scalar_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 FIAT_P384_SCALAR_FIAT_INLINE void fiat_p384_scalar_cmovznz_u32(uint32_t* out1, fiat_p384_scalar_uint1 arg1, uint32_t arg2, uint32_t arg3) {
fiat_p384_scalar_uint1 x1;
uint32_t x2;
uint32_t x3;
x1 = (!(!arg1));
x2 = ((fiat_p384_scalar_int1)(0x0 - x1) & UINT32_C(0xffffffff));
x3 = ((fiat_p384_scalar_value_barrier_u32(x2) & arg3) | (fiat_p384_scalar_value_barrier_u32((~x2)) & arg2));
*out1 = x3;
}
/*
* The function fiat_p384_scalar_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
*
*/
static FIAT_P384_SCALAR_FIAT_INLINE void fiat_p384_scalar_mul(fiat_p384_scalar_montgomery_domain_field_element out1, const fiat_p384_scalar_montgomery_domain_field_element arg1, const fiat_p384_scalar_montgomery_domain_field_element arg2) {
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_p384_scalar_uint1 x38;
uint32_t x39;
fiat_p384_scalar_uint1 x40;
uint32_t x41;
fiat_p384_scalar_uint1 x42;
uint32_t x43;
fiat_p384_scalar_uint1 x44;
uint32_t x45;
fiat_p384_scalar_uint1 x46;
uint32_t x47;
fiat_p384_scalar_uint1 x48;
uint32_t x49;
fiat_p384_scalar_uint1 x50;
uint32_t x51;
fiat_p384_scalar_uint1 x52;
uint32_t x53;
fiat_p384_scalar_uint1 x54;
uint32_t x55;
fiat_p384_scalar_uint1 x56;
uint32_t x57;
fiat_p384_scalar_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;
uint32_t x81;
uint32_t x82;
uint32_t x83;
uint32_t x84;
uint32_t x85;
uint32_t x86;
fiat_p384_scalar_uint1 x87;
uint32_t x88;
fiat_p384_scalar_uint1 x89;
uint32_t x90;
fiat_p384_scalar_uint1 x91;
uint32_t x92;
fiat_p384_scalar_uint1 x93;
uint32_t x94;
fiat_p384_scalar_uint1 x95;
uint32_t x96;
fiat_p384_scalar_uint1 x97;
uint32_t x98;
fiat_p384_scalar_uint1 x99;
uint32_t x100;
fiat_p384_scalar_uint1 x101;
uint32_t x102;
fiat_p384_scalar_uint1 x103;
uint32_t x104;
fiat_p384_scalar_uint1 x105;
uint32_t x106;
fiat_p384_scalar_uint1 x107;
uint32_t x108;
uint32_t x109;
fiat_p384_scalar_uint1 x110;
uint32_t x111;
fiat_p384_scalar_uint1 x112;
uint32_t x113;
fiat_p384_scalar_uint1 x114;
uint32_t x115;
fiat_p384_scalar_uint1 x116;
uint32_t x117;
fiat_p384_scalar_uint1 x118;
uint32_t x119;
fiat_p384_scalar_uint1 x120;
uint32_t x121;
fiat_p384_scalar_uint1 x122;
uint32_t x123;
fiat_p384_scalar_uint1 x124;
uint32_t x125;
fiat_p384_scalar_uint1 x126;
uint32_t x127;
fiat_p384_scalar_uint1 x128;
uint32_t x129;
fiat_p384_scalar_uint1 x130;
uint32_t x131;
fiat_p384_scalar_uint1 x132;
uint32_t x133;
fiat_p384_scalar_uint1 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;
uint32_t x149;
uint32_t x150;
uint32_t x151;
uint32_t x152;
uint32_t x153;
uint32_t x154;
uint32_t x155;
uint32_t x156;
uint32_t x157;
uint32_t x158;
uint32_t x159;
fiat_p384_scalar_uint1 x160;
uint32_t x161;
fiat_p384_scalar_uint1 x162;
uint32_t x163;
fiat_p384_scalar_uint1 x164;
uint32_t x165;
fiat_p384_scalar_uint1 x166;
uint32_t x167;
fiat_p384_scalar_uint1 x168;
uint32_t x169;
fiat_p384_scalar_uint1 x170;
uint32_t x171;
fiat_p384_scalar_uint1 x172;
uint32_t x173;
fiat_p384_scalar_uint1 x174;
uint32_t x175;
fiat_p384_scalar_uint1 x176;
uint32_t x177;
fiat_p384_scalar_uint1 x178;
uint32_t x179;
fiat_p384_scalar_uint1 x180;
uint32_t x181;
uint32_t x182;
fiat_p384_scalar_uint1 x183;
uint32_t x184;
fiat_p384_scalar_uint1 x185;
uint32_t x186;
fiat_p384_scalar_uint1 x187;
uint32_t x188;
fiat_p384_scalar_uint1 x189;
uint32_t x190;
fiat_p384_scalar_uint1 x191;
uint32_t x192;
fiat_p384_scalar_uint1 x193;
uint32_t x194;
fiat_p384_scalar_uint1 x195;
uint32_t x196;
fiat_p384_scalar_uint1 x197;
uint32_t x198;
fiat_p384_scalar_uint1 x199;
uint32_t x200;
fiat_p384_scalar_uint1 x201;
uint32_t x202;
fiat_p384_scalar_uint1 x203;
uint32_t x204;
fiat_p384_scalar_uint1 x205;
uint32_t x206;
fiat_p384_scalar_uint1 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;
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_p384_scalar_uint1 x235;
uint32_t x236;
fiat_p384_scalar_uint1 x237;
uint32_t x238;
fiat_p384_scalar_uint1 x239;
uint32_t x240;
fiat_p384_scalar_uint1 x241;
uint32_t x242;
fiat_p384_scalar_uint1 x243;
uint32_t x244;
fiat_p384_scalar_uint1 x245;
uint32_t x246;
fiat_p384_scalar_uint1 x247;
uint32_t x248;
fiat_p384_scalar_uint1 x249;
uint32_t x250;
fiat_p384_scalar_uint1 x251;
uint32_t x252;
fiat_p384_scalar_uint1 x253;
uint32_t x254;
fiat_p384_scalar_uint1 x255;
uint32_t x256;
uint32_t x257;
fiat_p384_scalar_uint1 x258;
uint32_t x259;
fiat_p384_scalar_uint1 x260;
uint32_t x261;
fiat_p384_scalar_uint1 x262;
uint32_t x263;
fiat_p384_scalar_uint1 x264;
uint32_t x265;
fiat_p384_scalar_uint1 x266;
uint32_t x267;
fiat_p384_scalar_uint1 x268;
uint32_t x269;
fiat_p384_scalar_uint1 x270;
uint32_t x271;
fiat_p384_scalar_uint1 x272;
uint32_t x273;
fiat_p384_scalar_uint1 x274;
uint32_t x275;
fiat_p384_scalar_uint1 x276;
uint32_t x277;
fiat_p384_scalar_uint1 x278;
uint32_t x279;
fiat_p384_scalar_uint1 x280;
uint32_t x281;
fiat_p384_scalar_uint1 x282;
uint32_t x283;
uint32_t x284;
uint32_t x285;
uint32_t x286;
uint32_t x287;
uint32_t x288;
uint32_t x289;
uint32_t x290;
uint32_t x291;
uint32_t x292;
uint32_t x293;
uint32_t x294;
uint32_t x295;
uint32_t x296;
uint32_t x297;
uint32_t x298;
uint32_t 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;
fiat_p384_scalar_uint1 x309;
uint32_t x310;
fiat_p384_scalar_uint1 x311;
uint32_t x312;
fiat_p384_scalar_uint1 x313;
uint32_t x314;
fiat_p384_scalar_uint1 x315;
uint32_t x316;
fiat_p384_scalar_uint1 x317;
uint32_t x318;
fiat_p384_scalar_uint1 x319;
uint32_t x320;
fiat_p384_scalar_uint1 x321;
uint32_t x322;
fiat_p384_scalar_uint1 x323;
uint32_t x324;
fiat_p384_scalar_uint1 x325;
uint32_t x326;
fiat_p384_scalar_uint1 x327;
uint32_t x328;
fiat_p384_scalar_uint1 x329;
uint32_t x330;
uint32_t x331;
fiat_p384_scalar_uint1 x332;
uint32_t x333;
fiat_p384_scalar_uint1 x334;
uint32_t x335;
fiat_p384_scalar_uint1 x336;
uint32_t x337;
fiat_p384_scalar_uint1 x338;
uint32_t x339;
fiat_p384_scalar_uint1 x340;
uint32_t x341;
fiat_p384_scalar_uint1 x342;
uint32_t x343;
fiat_p384_scalar_uint1 x344;
uint32_t x345;
fiat_p384_scalar_uint1 x346;
uint32_t x347;
fiat_p384_scalar_uint1 x348;
uint32_t x349;
fiat_p384_scalar_uint1 x350;
uint32_t x351;
fiat_p384_scalar_uint1 x352;
uint32_t x353;
fiat_p384_scalar_uint1 x354;
uint32_t x355;
fiat_p384_scalar_uint1 x356;
uint32_t x357;
uint32_t x358;
uint32_t x359;
uint32_t x360;
uint32_t x361;
uint32_t x362;
uint32_t x363;
uint32_t x364;
uint32_t x365;
uint32_t x366;
uint32_t x367;
uint32_t x368;
uint32_t x369;
uint32_t 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;
uint32_t x380;
uint32_t x381;
uint32_t x382;
uint32_t x383;
fiat_p384_scalar_uint1 x384;
uint32_t x385;
fiat_p384_scalar_uint1 x386;
uint32_t x387;
fiat_p384_scalar_uint1 x388;
uint32_t x389;
fiat_p384_scalar_uint1 x390;
uint32_t x391;
fiat_p384_scalar_uint1 x392;
uint32_t x393;
fiat_p384_scalar_uint1 x394;
uint32_t x395;
fiat_p384_scalar_uint1 x396;
uint32_t x397;
fiat_p384_scalar_uint1 x398;
uint32_t x399;
fiat_p384_scalar_uint1 x400;
uint32_t x401;
fiat_p384_scalar_uint1 x402;
uint32_t x403;
fiat_p384_scalar_uint1 x404;
uint32_t x405;
uint32_t x406;
fiat_p384_scalar_uint1 x407;
uint32_t x408;
fiat_p384_scalar_uint1 x409;
uint32_t x410;
fiat_p384_scalar_uint1 x411;
uint32_t x412;
fiat_p384_scalar_uint1 x413;
uint32_t x414;
fiat_p384_scalar_uint1 x415;
uint32_t x416;
fiat_p384_scalar_uint1 x417;
uint32_t x418;
fiat_p384_scalar_uint1 x419;
uint32_t x420;
fiat_p384_scalar_uint1 x421;
uint32_t x422;
fiat_p384_scalar_uint1 x423;
uint32_t x424;
fiat_p384_scalar_uint1 x425;
uint32_t x426;
fiat_p384_scalar_uint1 x427;
uint32_t x428;
fiat_p384_scalar_uint1 x429;
uint32_t x430;
fiat_p384_scalar_uint1 x431;
uint32_t x432;
uint32_t x433;
uint32_t x434;
uint32_t x435;
uint32_t x436;
uint32_t x437;
uint32_t x438;
uint32_t x439;
uint32_t x440;
uint32_t x441;
uint32_t x442;
uint32_t x443;
uint32_t x444;
uint32_t x445;
uint32_t x446;
uint32_t x447;
uint32_t x448;
uint32_t x449;
uint32_t x450;
uint32_t x451;
uint32_t x452;
uint32_t x453;
uint32_t x454;
uint32_t x455;
uint32_t x456;
uint32_t x457;
fiat_p384_scalar_uint1 x458;
uint32_t x459;
fiat_p384_scalar_uint1 x460;
uint32_t x461;
fiat_p384_scalar_uint1 x462;
uint32_t x463;
fiat_p384_scalar_uint1 x464;
uint32_t x465;
fiat_p384_scalar_uint1 x466;
uint32_t x467;
fiat_p384_scalar_uint1 x468;
uint32_t x469;
fiat_p384_scalar_uint1 x470;
uint32_t x471;
fiat_p384_scalar_uint1 x472;
uint32_t x473;
fiat_p384_scalar_uint1 x474;
uint32_t x475;
fiat_p384_scalar_uint1 x476;
uint32_t x477;
fiat_p384_scalar_uint1 x478;
uint32_t x479;
uint32_t x480;
fiat_p384_scalar_uint1 x481;
uint32_t x482;
fiat_p384_scalar_uint1 x483;
uint32_t x484;
fiat_p384_scalar_uint1 x485;
uint32_t x486;
fiat_p384_scalar_uint1 x487;
uint32_t x488;
fiat_p384_scalar_uint1 x489;
uint32_t x490;
fiat_p384_scalar_uint1 x491;
uint32_t x492;
fiat_p384_scalar_uint1 x493;
uint32_t x494;
fiat_p384_scalar_uint1 x495;
uint32_t x496;
fiat_p384_scalar_uint1 x497;
uint32_t x498;
fiat_p384_scalar_uint1 x499;
uint32_t x500;
fiat_p384_scalar_uint1 x501;
uint32_t x502;
fiat_p384_scalar_uint1 x503;
uint32_t x504;
fiat_p384_scalar_uint1 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;
uint32_t x522;
uint32_t x523;
uint32_t x524;
uint32_t x525;
uint32_t x526;
uint32_t x527;
uint32_t x528;
uint32_t x529;
uint32_t x530;
uint32_t x531;
uint32_t x532;
fiat_p384_scalar_uint1 x533;
uint32_t x534;
fiat_p384_scalar_uint1 x535;
uint32_t x536;
fiat_p384_scalar_uint1 x537;
uint32_t x538;
fiat_p384_scalar_uint1 x539;
uint32_t x540;
fiat_p384_scalar_uint1 x541;
uint32_t x542;
fiat_p384_scalar_uint1 x543;
uint32_t x544;
fiat_p384_scalar_uint1 x545;
uint32_t x546;
fiat_p384_scalar_uint1 x547;
uint32_t x548;
fiat_p384_scalar_uint1 x549;
uint32_t x550;
fiat_p384_scalar_uint1 x551;
uint32_t x552;
fiat_p384_scalar_uint1 x553;
uint32_t x554;
uint32_t x555;
fiat_p384_scalar_uint1 x556;
uint32_t x557;
fiat_p384_scalar_uint1 x558;
uint32_t x559;
fiat_p384_scalar_uint1 x560;
uint32_t x561;
fiat_p384_scalar_uint1 x562;
uint32_t x563;
fiat_p384_scalar_uint1 x564;
uint32_t x565;
fiat_p384_scalar_uint1 x566;
uint32_t x567;
fiat_p384_scalar_uint1 x568;
uint32_t x569;
fiat_p384_scalar_uint1 x570;
uint32_t x571;
fiat_p384_scalar_uint1 x572;
uint32_t x573;
fiat_p384_scalar_uint1 x574;
uint32_t x575;
fiat_p384_scalar_uint1 x576;
uint32_t x577;
fiat_p384_scalar_uint1 x578;
uint32_t x579;
fiat_p384_scalar_uint1 x580;
uint32_t x581;
uint32_t x582;
uint32_t x583;
uint32_t x584;
uint32_t x585;
uint32_t x586;
uint32_t x587;
uint32_t x588;
uint32_t x589;
uint32_t x590;
uint32_t x591;
uint32_t x592;
uint32_t x593;
uint32_t x594;
uint32_t x595;
uint32_t 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;
fiat_p384_scalar_uint1 x607;
uint32_t x608;
fiat_p384_scalar_uint1 x609;
uint32_t x610;
fiat_p384_scalar_uint1 x611;
uint32_t x612;
fiat_p384_scalar_uint1 x613;
uint32_t x614;
fiat_p384_scalar_uint1 x615;
uint32_t x616;
fiat_p384_scalar_uint1 x617;
uint32_t x618;
fiat_p384_scalar_uint1 x619;
uint32_t x620;
fiat_p384_scalar_uint1 x621;
uint32_t x622;
fiat_p384_scalar_uint1 x623;
uint32_t x624;
fiat_p384_scalar_uint1 x625;
uint32_t x626;
fiat_p384_scalar_uint1 x627;
uint32_t x628;
uint32_t x629;
fiat_p384_scalar_uint1 x630;
uint32_t x631;
fiat_p384_scalar_uint1 x632;
uint32_t x633;
fiat_p384_scalar_uint1 x634;
uint32_t x635;
fiat_p384_scalar_uint1 x636;
uint32_t x637;
fiat_p384_scalar_uint1 x638;
uint32_t x639;
fiat_p384_scalar_uint1 x640;
uint32_t x641;
fiat_p384_scalar_uint1 x642;
uint32_t x643;
fiat_p384_scalar_uint1 x644;
uint32_t x645;
fiat_p384_scalar_uint1 x646;
uint32_t x647;
fiat_p384_scalar_uint1 x648;
uint32_t x649;
fiat_p384_scalar_uint1 x650;
uint32_t x651;
fiat_p384_scalar_uint1 x652;
uint32_t x653;
fiat_p384_scalar_uint1 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;
uint32_t x665;
uint32_t x666;
uint32_t x667;
uint32_t x668;
uint32_t 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;
fiat_p384_scalar_uint1 x682;
uint32_t x683;
fiat_p384_scalar_uint1 x684;
uint32_t x685;
fiat_p384_scalar_uint1 x686;
uint32_t x687;
fiat_p384_scalar_uint1 x688;
uint32_t x689;
fiat_p384_scalar_uint1 x690;
uint32_t x691;
fiat_p384_scalar_uint1 x692;
uint32_t x693;
fiat_p384_scalar_uint1 x694;
uint32_t x695;
fiat_p384_scalar_uint1 x696;
uint32_t x697;
fiat_p384_scalar_uint1 x698;
uint32_t x699;
fiat_p384_scalar_uint1 x700;
uint32_t x701;
fiat_p384_scalar_uint1 x702;
uint32_t x703;
uint32_t x704;
fiat_p384_scalar_uint1 x705;
uint32_t x706;
fiat_p384_scalar_uint1 x707;
uint32_t x708;
fiat_p384_scalar_uint1 x709;
uint32_t x710;
fiat_p384_scalar_uint1 x711;
uint32_t x712;
fiat_p384_scalar_uint1 x713;
uint32_t x714;
fiat_p384_scalar_uint1 x715;
uint32_t x716;
fiat_p384_scalar_uint1 x717;
uint32_t x718;
fiat_p384_scalar_uint1 x719;
uint32_t x720;
fiat_p384_scalar_uint1 x721;
uint32_t x722;
fiat_p384_scalar_uint1 x723;
uint32_t x724;
fiat_p384_scalar_uint1 x725;
uint32_t x726;
fiat_p384_scalar_uint1 x727;
uint32_t x728;
fiat_p384_scalar_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;
uint32_t x751;
uint32_t x752;
uint32_t x753;
uint32_t x754;
uint32_t x755;
fiat_p384_scalar_uint1 x756;
uint32_t x757;
fiat_p384_scalar_uint1 x758;
uint32_t x759;
fiat_p384_scalar_uint1 x760;
uint32_t x761;
fiat_p384_scalar_uint1 x762;
uint32_t x763;
fiat_p384_scalar_uint1 x764;
uint32_t x765;
fiat_p384_scalar_uint1 x766;
uint32_t x767;
fiat_p384_scalar_uint1 x768;
uint32_t x769;
fiat_p384_scalar_uint1 x770;
uint32_t x771;
fiat_p384_scalar_uint1 x772;
uint32_t x773;
fiat_p384_scalar_uint1 x774;
uint32_t x775;
fiat_p384_scalar_uint1 x776;
uint32_t x777;
uint32_t x778;
fiat_p384_scalar_uint1 x779;
uint32_t x780;
fiat_p384_scalar_uint1 x781;
uint32_t x782;
fiat_p384_scalar_uint1 x783;
uint32_t x784;
fiat_p384_scalar_uint1 x785;
uint32_t x786;
fiat_p384_scalar_uint1 x787;
uint32_t x788;
fiat_p384_scalar_uint1 x789;
uint32_t x790;
fiat_p384_scalar_uint1 x791;
uint32_t x792;
fiat_p384_scalar_uint1 x793;
uint32_t x794;
fiat_p384_scalar_uint1 x795;
uint32_t x796;
fiat_p384_scalar_uint1 x797;
uint32_t x798;
fiat_p384_scalar_uint1 x799;
uint32_t x800;
fiat_p384_scalar_uint1 x801;
uint32_t x802;
fiat_p384_scalar_uint1 x803;
uint32_t x804;
uint32_t x805;
uint32_t 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;
fiat_p384_scalar_uint1 x831;
uint32_t x832;
fiat_p384_scalar_uint1 x833;
uint32_t x834;
fiat_p384_scalar_uint1 x835;
uint32_t x836;
fiat_p384_scalar_uint1 x837;
uint32_t x838;