Coverage Report

Created: 2026-11-16 07:12

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/openssl/crypto/ec/curve25519.c
Line
Count
Source
1
/*
2
 * Copyright 2016-2026 The OpenSSL Project Authors. All Rights Reserved.
3
 *
4
 * Licensed under the Apache License 2.0 (the "License").  You may not use
5
 * this file except in compliance with the License.  You can obtain a copy
6
 * in the file LICENSE in the source distribution or at
7
 * https://www.openssl.org/source/license.html
8
 */
9
10
/*
11
 * ECDSA low level APIs are deprecated for public use, but still ok for
12
 * internal use.
13
 */
14
#include "internal/deprecated.h"
15
16
#include <string.h>
17
#include "crypto/ecx.h"
18
#include "ec_local.h"
19
#include <openssl/evp.h>
20
#include <openssl/sha.h>
21
22
#include "internal/numbers.h"
23
24
#if defined(X25519_ASM) && (defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64))
25
26
#define BASE_2_64_IMPLEMENTED
27
28
typedef uint64_t fe64[4];
29
30
int x25519_fe64_eligible(void);
31
32
/*
33
 * Following subroutines perform corresponding operations modulo
34
 * 2^256-38, i.e. double the curve modulus. However, inputs and
35
 * outputs are permitted to be partially reduced, i.e. to remain
36
 * in [0..2^256) range. It's all tied up in final fe64_tobytes
37
 * that performs full reduction modulo 2^255-19.
38
 *
39
 * There are no reference C implementations for these.
40
 */
41
void x25519_fe64_mul(fe64 h, const fe64 f, const fe64 g);
42
void x25519_fe64_sqr(fe64 h, const fe64 f);
43
void x25519_fe64_mul121666(fe64 h, fe64 f);
44
void x25519_fe64_add(fe64 h, const fe64 f, const fe64 g);
45
void x25519_fe64_sub(fe64 h, const fe64 f, const fe64 g);
46
void x25519_fe64_tobytes(uint8_t *s, const fe64 f);
47
0
#define fe64_mul x25519_fe64_mul
48
0
#define fe64_sqr x25519_fe64_sqr
49
0
#define fe64_mul121666 x25519_fe64_mul121666
50
0
#define fe64_add x25519_fe64_add
51
0
#define fe64_sub x25519_fe64_sub
52
0
#define fe64_tobytes x25519_fe64_tobytes
53
54
static uint64_t load_8(const uint8_t *in)
55
0
{
56
0
    uint64_t result;
57
58
0
    result = in[0];
59
0
    result |= ((uint64_t)in[1]) << 8;
60
0
    result |= ((uint64_t)in[2]) << 16;
61
0
    result |= ((uint64_t)in[3]) << 24;
62
0
    result |= ((uint64_t)in[4]) << 32;
63
0
    result |= ((uint64_t)in[5]) << 40;
64
0
    result |= ((uint64_t)in[6]) << 48;
65
0
    result |= ((uint64_t)in[7]) << 56;
66
67
0
    return result;
68
0
}
69
70
static void fe64_frombytes(fe64 h, const uint8_t *s)
71
0
{
72
0
    h[0] = load_8(s);
73
0
    h[1] = load_8(s + 8);
74
0
    h[2] = load_8(s + 16);
75
0
    h[3] = load_8(s + 24) & 0x7fffffffffffffff;
76
0
}
77
78
static void fe64_0(fe64 h)
79
0
{
80
0
    h[0] = 0;
81
0
    h[1] = 0;
82
0
    h[2] = 0;
83
0
    h[3] = 0;
84
0
}
85
86
static void fe64_1(fe64 h)
87
0
{
88
0
    h[0] = 1;
89
0
    h[1] = 0;
90
0
    h[2] = 0;
91
0
    h[3] = 0;
92
0
}
93
94
static void fe64_copy(fe64 h, const fe64 f)
95
0
{
96
0
    h[0] = f[0];
97
0
    h[1] = f[1];
98
0
    h[2] = f[2];
99
0
    h[3] = f[3];
100
0
}
101
102
static void fe64_cswap(fe64 f, fe64 g, unsigned int b)
103
0
{
104
0
    int i;
105
0
    uint64_t mask = 0 - (uint64_t)b;
106
107
0
    for (i = 0; i < 4; i++) {
108
0
        uint64_t x = f[i] ^ g[i];
109
0
        x &= mask;
110
0
        f[i] ^= x;
111
0
        g[i] ^= x;
112
0
    }
113
0
}
114
115
static void fe64_invert(fe64 out, const fe64 z)
116
0
{
117
0
    fe64 t0;
118
0
    fe64 t1;
119
0
    fe64 t2;
120
0
    fe64 t3;
121
0
    int i;
122
123
    /*
124
     * Compute z ** -1 = z ** (2 ** 255 - 19 - 2) with the exponent as
125
     * 2 ** 255 - 21 = (2 ** 5) * (2 ** 250 - 1) + 11.
126
     */
127
128
    /* t0 = z ** 2 */
129
0
    fe64_sqr(t0, z);
130
131
    /* t1 = t0 ** (2 ** 2) = z ** 8 */
132
0
    fe64_sqr(t1, t0);
133
0
    fe64_sqr(t1, t1);
134
135
    /* t1 = z * t1 = z ** 9 */
136
0
    fe64_mul(t1, z, t1);
137
    /* t0 = t0 * t1 = z ** 11 -- stash t0 away for the end. */
138
0
    fe64_mul(t0, t0, t1);
139
140
    /* t2 = t0 ** 2 = z ** 22 */
141
0
    fe64_sqr(t2, t0);
142
143
    /* t1 = t1 * t2 = z ** (2 ** 5 - 1) */
144
0
    fe64_mul(t1, t1, t2);
145
146
    /* t2 = t1 ** (2 ** 5) = z ** ((2 ** 5) * (2 ** 5 - 1)) */
147
0
    fe64_sqr(t2, t1);
148
0
    for (i = 1; i < 5; ++i)
149
0
        fe64_sqr(t2, t2);
150
151
    /* t1 = t1 * t2 = z ** ((2 ** 5 + 1) * (2 ** 5 - 1)) = z ** (2 ** 10 - 1) */
152
0
    fe64_mul(t1, t2, t1);
153
154
    /* Continuing similarly... */
155
156
    /* t2 = z ** (2 ** 20 - 1) */
157
0
    fe64_sqr(t2, t1);
158
0
    for (i = 1; i < 10; ++i)
159
0
        fe64_sqr(t2, t2);
160
161
0
    fe64_mul(t2, t2, t1);
162
163
    /* t2 = z ** (2 ** 40 - 1) */
164
0
    fe64_sqr(t3, t2);
165
0
    for (i = 1; i < 20; ++i)
166
0
        fe64_sqr(t3, t3);
167
168
0
    fe64_mul(t2, t3, t2);
169
170
    /* t2 = z ** (2 ** 10) * (2 ** 40 - 1) */
171
0
    for (i = 0; i < 10; ++i)
172
0
        fe64_sqr(t2, t2);
173
174
    /* t1 = z ** (2 ** 50 - 1) */
175
0
    fe64_mul(t1, t2, t1);
176
177
    /* t2 = z ** (2 ** 100 - 1) */
178
0
    fe64_sqr(t2, t1);
179
0
    for (i = 1; i < 50; ++i)
180
0
        fe64_sqr(t2, t2);
181
182
0
    fe64_mul(t2, t2, t1);
183
184
    /* t2 = z ** (2 ** 200 - 1) */
185
0
    fe64_sqr(t3, t2);
186
0
    for (i = 1; i < 100; ++i)
187
0
        fe64_sqr(t3, t3);
188
189
0
    fe64_mul(t2, t3, t2);
190
191
    /* t2 = z ** ((2 ** 50) * (2 ** 200 - 1) */
192
0
    for (i = 0; i < 50; ++i)
193
0
        fe64_sqr(t2, t2);
194
195
    /* t1 = z ** (2 ** 250 - 1) */
196
0
    fe64_mul(t1, t2, t1);
197
198
    /* t1 = z ** ((2 ** 5) * (2 ** 250 - 1)) */
199
0
    for (i = 0; i < 5; ++i)
200
0
        fe64_sqr(t1, t1);
201
202
    /* Recall t0 = z ** 11; out = z ** (2 ** 255 - 21) */
203
0
    fe64_mul(out, t1, t0);
204
0
}
205
206
/*
207
 * Duplicate of original x25519_scalar_mult_generic, but using
208
 * fe64_* subroutines.
209
 */
210
static void x25519_scalar_mulx(uint8_t out[32], const uint8_t scalar[32],
211
    const uint8_t point[32])
212
0
{
213
0
    fe64 x1, x2, z2, x3, z3, tmp0, tmp1;
214
0
    uint8_t e[32];
215
0
    unsigned swap = 0;
216
0
    int pos;
217
218
0
    memcpy(e, scalar, 32);
219
0
    e[0] &= 0xf8;
220
0
    e[31] &= 0x7f;
221
0
    e[31] |= 0x40;
222
0
    fe64_frombytes(x1, point);
223
0
    fe64_1(x2);
224
0
    fe64_0(z2);
225
0
    fe64_copy(x3, x1);
226
0
    fe64_1(z3);
227
228
0
    for (pos = 254; pos >= 0; --pos) {
229
0
        unsigned int b = 1 & (e[pos / 8] >> (pos & 7));
230
231
0
        swap ^= b;
232
0
        fe64_cswap(x2, x3, swap);
233
0
        fe64_cswap(z2, z3, swap);
234
0
        swap = b;
235
0
        fe64_sub(tmp0, x3, z3);
236
0
        fe64_sub(tmp1, x2, z2);
237
0
        fe64_add(x2, x2, z2);
238
0
        fe64_add(z2, x3, z3);
239
        /* The original copy in x25519_scalar_mult_generic uses argument order
240
         * fe_mul(z3, tmp0, x2), with the input arguments swapped.
241
         *
242
         * The assembly implementation of fe64_mul used here runs faster in
243
         * parallel with its nearby instructions when an earlier-computable
244
         * input (like tmp0) is passed as the 2nd input because it consumes
245
         * the 2nd input at a faster rate than the 1st input. */
246
0
        fe64_mul(z3, x2, tmp0);
247
0
        fe64_mul(z2, z2, tmp1);
248
0
        fe64_sqr(tmp0, tmp1);
249
0
        fe64_sqr(tmp1, x2);
250
0
        fe64_add(x3, z3, z2);
251
0
        fe64_sub(z2, z3, z2);
252
0
        fe64_mul(x2, tmp1, tmp0);
253
0
        fe64_sub(tmp1, tmp1, tmp0);
254
0
        fe64_sqr(z2, z2);
255
0
        fe64_mul121666(z3, tmp1);
256
0
        fe64_sqr(x3, x3);
257
0
        fe64_add(tmp0, tmp0, z3);
258
0
        fe64_mul(z3, x1, z2);
259
0
        fe64_mul(z2, tmp1, tmp0);
260
0
    }
261
262
0
    fe64_invert(z2, z2);
263
0
    fe64_mul(x2, x2, z2);
264
0
    fe64_tobytes(out, x2);
265
266
0
    OPENSSL_cleanse(e, sizeof(e));
267
0
}
268
#endif
269
270
#if defined(X25519_ASM)                                          \
271
    || (defined(INT128_MAX)                                      \
272
        && !defined(__sparc__)                                   \
273
        && (!defined(__SIZEOF_LONG__) || (__SIZEOF_LONG__ == 8)) \
274
        && !(defined(__ANDROID__) && !defined(__clang__)))
275
/*
276
 * Base 2^51 implementation. It's virtually no different from reference
277
 * base 2^25.5 implementation in respect to lax boundary conditions for
278
 * intermediate values and even individual limbs. So that whatever you
279
 * know about the reference, applies even here...
280
 *
281
 * Limb bounds: fe51_mul and fe51_sq produce limbs below 2^51 + 2^13 and
282
 * fe51_add simply adds limbs. fe51_sub and fe51_neg add 4 * modulus, whose
283
 * limbs are just below 2^53, so that the subtrahend may be a sum of two
284
 * products, or a negated product, without any limb going negative; the
285
 * subtrahend must never be a difference. fe51_mul, fe51_sq and
286
 * fe51_mul121666, in C as well as in assembly, accept any input with
287
 * limbs below 2^54: the largest 128-bit accumulator then stays below
288
 * 77 * 2^108 < 2^115, the carry out of the top limb, including the carry
289
 * coming into it from the limb below, stays below 6 * 2^57, and folding
290
 * it into the bottom limb in 64-bit arithmetic stays below
291
 * 2^51 + 19 * 6 * 2^57 = 2^51 + 114 * 2^57 < 2^64. The X25519 ladder and
292
 * the Ed25519 group operations never add more than three products
293
 * together, nor subtract from more than the sum of a product and a
294
 * difference, so every input to fe51_mul and fe51_sq is below
295
 * 2^53 + 3 * 2^51 + 2^15 < 2^54. fe51_tobytes accepts limbs below 2^55.
296
 *
297
 * The Ed25519 constants and precomputed tables in this representation
298
 * were converted from the base 2^25.5 ones by util/curve25519-fe51-tables.py,
299
 * which also checks both against an independent implementation.
300
 */
301
#define BASE_2_51_IMPLEMENTED
302
303
typedef uint64_t fe51[5];
304
305
static const uint64_t MASK51 = 0x7ffffffffffff;
306
307
static uint64_t load_7(const uint8_t *in)
308
0
{
309
0
    uint64_t result;
310
311
0
    result = in[0];
312
0
    result |= ((uint64_t)in[1]) << 8;
313
0
    result |= ((uint64_t)in[2]) << 16;
314
0
    result |= ((uint64_t)in[3]) << 24;
315
0
    result |= ((uint64_t)in[4]) << 32;
316
0
    result |= ((uint64_t)in[5]) << 40;
317
0
    result |= ((uint64_t)in[6]) << 48;
318
319
0
    return result;
320
0
}
321
322
static uint64_t load_6(const uint8_t *in)
323
0
{
324
0
    uint64_t result;
325
326
0
    result = in[0];
327
0
    result |= ((uint64_t)in[1]) << 8;
328
0
    result |= ((uint64_t)in[2]) << 16;
329
0
    result |= ((uint64_t)in[3]) << 24;
330
0
    result |= ((uint64_t)in[4]) << 32;
331
0
    result |= ((uint64_t)in[5]) << 40;
332
333
0
    return result;
334
0
}
335
336
static void fe51_frombytes(fe51 h, const uint8_t *s)
337
0
{
338
0
    uint64_t h0 = load_7(s); /* 56 bits */
339
0
    uint64_t h1 = load_6(s + 7) << 5; /* 53 bits */
340
0
    uint64_t h2 = load_7(s + 13) << 2; /* 58 bits */
341
0
    uint64_t h3 = load_6(s + 20) << 7; /* 55 bits */
342
0
    uint64_t h4 = (load_6(s + 26) & 0x7fffffffffff) << 4; /* 51 bits */
343
344
0
    h1 |= h0 >> 51;
345
0
    h0 &= MASK51;
346
0
    h2 |= h1 >> 51;
347
0
    h1 &= MASK51;
348
0
    h3 |= h2 >> 51;
349
0
    h2 &= MASK51;
350
0
    h4 |= h3 >> 51;
351
0
    h3 &= MASK51;
352
353
0
    h[0] = h0;
354
0
    h[1] = h1;
355
0
    h[2] = h2;
356
0
    h[3] = h3;
357
0
    h[4] = h4;
358
0
}
359
360
/*
361
 * Preconditions:
362
 *    every limb of h below 2^55
363
 */
364
static void fe51_tobytes(uint8_t *s, const fe51 h)
365
0
{
366
0
    uint64_t h0 = h[0];
367
0
    uint64_t h1 = h[1];
368
0
    uint64_t h2 = h[2];
369
0
    uint64_t h3 = h[3];
370
0
    uint64_t h4 = h[4];
371
0
    uint64_t q;
372
373
    /*
374
     * Propagate carries so that every limb is below 2^51, bar h0 which may
375
     * exceed it by a small multiple of 19 (below 19 * 2^4 for limbs below
376
     * 2^55). The comparison to the modulus below relies on the value being
377
     * below 2 * modulus, which holds for outputs of fe51_mul and fe51_sq as
378
     * they are, but not for outputs of fe51_add, fe51_sub and fe51_neg.
379
     */
380
0
    h1 += h0 >> 51;
381
0
    h0 &= MASK51;
382
0
    h2 += h1 >> 51;
383
0
    h1 &= MASK51;
384
0
    h3 += h2 >> 51;
385
0
    h2 &= MASK51;
386
0
    h4 += h3 >> 51;
387
0
    h3 &= MASK51;
388
0
    h0 += 19 * (h4 >> 51);
389
0
    h4 &= MASK51;
390
391
    /* compare to modulus */
392
0
    q = (h0 + 19) >> 51;
393
0
    q = (h1 + q) >> 51;
394
0
    q = (h2 + q) >> 51;
395
0
    q = (h3 + q) >> 51;
396
0
    q = (h4 + q) >> 51;
397
398
    /* full reduce */
399
0
    h0 += 19 * q;
400
0
    h1 += h0 >> 51;
401
0
    h0 &= MASK51;
402
0
    h2 += h1 >> 51;
403
0
    h1 &= MASK51;
404
0
    h3 += h2 >> 51;
405
0
    h2 &= MASK51;
406
0
    h4 += h3 >> 51;
407
0
    h3 &= MASK51;
408
0
    h4 &= MASK51;
409
410
    /* smash */
411
0
    s[0] = (uint8_t)(h0 >> 0);
412
0
    s[1] = (uint8_t)(h0 >> 8);
413
0
    s[2] = (uint8_t)(h0 >> 16);
414
0
    s[3] = (uint8_t)(h0 >> 24);
415
0
    s[4] = (uint8_t)(h0 >> 32);
416
0
    s[5] = (uint8_t)(h0 >> 40);
417
0
    s[6] = (uint8_t)((h0 >> 48) | ((uint32_t)h1 << 3));
418
0
    s[7] = (uint8_t)(h1 >> 5);
419
0
    s[8] = (uint8_t)(h1 >> 13);
420
0
    s[9] = (uint8_t)(h1 >> 21);
421
0
    s[10] = (uint8_t)(h1 >> 29);
422
0
    s[11] = (uint8_t)(h1 >> 37);
423
0
    s[12] = (uint8_t)((h1 >> 45) | ((uint32_t)h2 << 6));
424
0
    s[13] = (uint8_t)(h2 >> 2);
425
0
    s[14] = (uint8_t)(h2 >> 10);
426
0
    s[15] = (uint8_t)(h2 >> 18);
427
0
    s[16] = (uint8_t)(h2 >> 26);
428
0
    s[17] = (uint8_t)(h2 >> 34);
429
0
    s[18] = (uint8_t)(h2 >> 42);
430
0
    s[19] = (uint8_t)((h2 >> 50) | ((uint32_t)h3 << 1));
431
0
    s[20] = (uint8_t)(h3 >> 7);
432
0
    s[21] = (uint8_t)(h3 >> 15);
433
0
    s[22] = (uint8_t)(h3 >> 23);
434
0
    s[23] = (uint8_t)(h3 >> 31);
435
0
    s[24] = (uint8_t)(h3 >> 39);
436
0
    s[25] = (uint8_t)((h3 >> 47) | ((uint32_t)h4 << 4));
437
0
    s[26] = (uint8_t)(h4 >> 4);
438
0
    s[27] = (uint8_t)(h4 >> 12);
439
0
    s[28] = (uint8_t)(h4 >> 20);
440
0
    s[29] = (uint8_t)(h4 >> 28);
441
0
    s[30] = (uint8_t)(h4 >> 36);
442
0
    s[31] = (uint8_t)(h4 >> 44);
443
0
}
444
445
#if defined(X25519_ASM)
446
void x25519_fe51_mul(fe51 h, const fe51 f, const fe51 g);
447
void x25519_fe51_sqr(fe51 h, const fe51 f);
448
void x25519_fe51_mul121666(fe51 h, fe51 f);
449
0
#define fe51_mul x25519_fe51_mul
450
0
#define fe51_sq x25519_fe51_sqr
451
0
#define fe51_mul121666 x25519_fe51_mul121666
452
#else
453
454
typedef uint128_t u128;
455
456
static void fe51_mul(fe51 h, const fe51 f, const fe51 g)
457
{
458
    u128 h0, h1, h2, h3, h4;
459
    uint64_t f_i, g0, g1, g2, g3, g4;
460
461
    f_i = f[0];
462
    h0 = (u128)f_i * (g0 = g[0]);
463
    h1 = (u128)f_i * (g1 = g[1]);
464
    h2 = (u128)f_i * (g2 = g[2]);
465
    h3 = (u128)f_i * (g3 = g[3]);
466
    h4 = (u128)f_i * (g4 = g[4]);
467
468
    f_i = f[1];
469
    h0 += (u128)f_i * (g4 *= 19);
470
    h1 += (u128)f_i * g0;
471
    h2 += (u128)f_i * g1;
472
    h3 += (u128)f_i * g2;
473
    h4 += (u128)f_i * g3;
474
475
    f_i = f[2];
476
    h0 += (u128)f_i * (g3 *= 19);
477
    h1 += (u128)f_i * g4;
478
    h2 += (u128)f_i * g0;
479
    h3 += (u128)f_i * g1;
480
    h4 += (u128)f_i * g2;
481
482
    f_i = f[3];
483
    h0 += (u128)f_i * (g2 *= 19);
484
    h1 += (u128)f_i * g3;
485
    h2 += (u128)f_i * g4;
486
    h3 += (u128)f_i * g0;
487
    h4 += (u128)f_i * g1;
488
489
    f_i = f[4];
490
    h0 += (u128)f_i * (g1 *= 19);
491
    h1 += (u128)f_i * g2;
492
    h2 += (u128)f_i * g3;
493
    h3 += (u128)f_i * g4;
494
    h4 += (u128)f_i * g0;
495
496
    /* partial [lazy] reduction */
497
    h3 += (uint64_t)(h2 >> 51);
498
    g2 = (uint64_t)h2 & MASK51;
499
    h1 += (uint64_t)(h0 >> 51);
500
    g0 = (uint64_t)h0 & MASK51;
501
502
    h4 += (uint64_t)(h3 >> 51);
503
    g3 = (uint64_t)h3 & MASK51;
504
    g2 += (uint64_t)(h1 >> 51);
505
    g1 = (uint64_t)h1 & MASK51;
506
507
    g0 += (uint64_t)(h4 >> 51) * 19;
508
    g4 = (uint64_t)h4 & MASK51;
509
    g3 += g2 >> 51;
510
    g2 &= MASK51;
511
    g1 += g0 >> 51;
512
    g0 &= MASK51;
513
514
    h[0] = g0;
515
    h[1] = g1;
516
    h[2] = g2;
517
    h[3] = g3;
518
    h[4] = g4;
519
}
520
521
static void fe51_sq(fe51 h, const fe51 f)
522
{
523
#if defined(OPENSSL_SMALL_FOOTPRINT)
524
    fe51_mul(h, f, f);
525
#else
526
    /* dedicated squaring gives 16-25% overall improvement */
527
    uint64_t g0 = f[0];
528
    uint64_t g1 = f[1];
529
    uint64_t g2 = f[2];
530
    uint64_t g3 = f[3];
531
    uint64_t g4 = f[4];
532
    u128 h0, h1, h2, h3, h4;
533
534
    h0 = (u128)g0 * g0;
535
    g0 *= 2;
536
    h1 = (u128)g0 * g1;
537
    h2 = (u128)g0 * g2;
538
    h3 = (u128)g0 * g3;
539
    h4 = (u128)g0 * g4;
540
541
    g0 = g4; /* borrow g0 */
542
    h3 += (u128)g0 * (g4 *= 19);
543
544
    h2 += (u128)g1 * g1;
545
    g1 *= 2;
546
    h3 += (u128)g1 * g2;
547
    h4 += (u128)g1 * g3;
548
    h0 += (u128)g1 * g4;
549
550
    g0 = g3; /* borrow g0 */
551
    h1 += (u128)g0 * (g3 *= 19);
552
    h2 += (u128)(g0 * 2) * g4;
553
554
    h4 += (u128)g2 * g2;
555
    g2 *= 2;
556
    h0 += (u128)g2 * g3;
557
    h1 += (u128)g2 * g4;
558
559
    /* partial [lazy] reduction */
560
    h3 += (uint64_t)(h2 >> 51);
561
    g2 = (uint64_t)h2 & MASK51;
562
    h1 += (uint64_t)(h0 >> 51);
563
    g0 = (uint64_t)h0 & MASK51;
564
565
    h4 += (uint64_t)(h3 >> 51);
566
    g3 = (uint64_t)h3 & MASK51;
567
    g2 += (uint64_t)(h1 >> 51);
568
    g1 = (uint64_t)h1 & MASK51;
569
570
    g0 += (uint64_t)(h4 >> 51) * 19;
571
    g4 = (uint64_t)h4 & MASK51;
572
    g3 += g2 >> 51;
573
    g2 &= MASK51;
574
    g1 += g0 >> 51;
575
    g0 &= MASK51;
576
577
    h[0] = g0;
578
    h[1] = g1;
579
    h[2] = g2;
580
    h[3] = g3;
581
    h[4] = g4;
582
#endif
583
}
584
585
static void fe51_mul121666(fe51 h, fe51 f)
586
{
587
    u128 h0 = f[0] * (u128)121666;
588
    u128 h1 = f[1] * (u128)121666;
589
    u128 h2 = f[2] * (u128)121666;
590
    u128 h3 = f[3] * (u128)121666;
591
    u128 h4 = f[4] * (u128)121666;
592
    uint64_t g0, g1, g2, g3, g4;
593
594
    h3 += (uint64_t)(h2 >> 51);
595
    g2 = (uint64_t)h2 & MASK51;
596
    h1 += (uint64_t)(h0 >> 51);
597
    g0 = (uint64_t)h0 & MASK51;
598
599
    h4 += (uint64_t)(h3 >> 51);
600
    g3 = (uint64_t)h3 & MASK51;
601
    g2 += (uint64_t)(h1 >> 51);
602
    g1 = (uint64_t)h1 & MASK51;
603
604
    g0 += (uint64_t)(h4 >> 51) * 19;
605
    g4 = (uint64_t)h4 & MASK51;
606
    g3 += g2 >> 51;
607
    g2 &= MASK51;
608
    g1 += g0 >> 51;
609
    g0 &= MASK51;
610
611
    h[0] = g0;
612
    h[1] = g1;
613
    h[2] = g2;
614
    h[3] = g3;
615
    h[4] = g4;
616
}
617
#endif
618
619
static void fe51_add(fe51 h, const fe51 f, const fe51 g)
620
0
{
621
0
    h[0] = f[0] + g[0];
622
0
    h[1] = f[1] + g[1];
623
0
    h[2] = f[2] + g[2];
624
0
    h[3] = f[3] + g[3];
625
0
    h[4] = f[4] + g[4];
626
0
}
627
628
static void fe51_sub(fe51 h, const fe51 f, const fe51 g)
629
0
{
630
    /*
631
     * Add 4*modulus to ensure that result remains positive even if
632
     * subtrahend is only partially reduced. 2*modulus would do for the
633
     * X25519 ladder, but the Ed25519 group operations subtract sums of
634
     * two products, whose limbs can slightly exceed 2^52.
635
     */
636
0
    h[0] = (f[0] + 0x1fffffffffffb4) - g[0];
637
0
    h[1] = (f[1] + 0x1ffffffffffffc) - g[1];
638
0
    h[2] = (f[2] + 0x1ffffffffffffc) - g[2];
639
0
    h[3] = (f[3] + 0x1ffffffffffffc) - g[3];
640
0
    h[4] = (f[4] + 0x1ffffffffffffc) - g[4];
641
0
}
642
643
static void fe51_neg(fe51 h, const fe51 f)
644
0
{
645
    /* As in fe51_sub, add 4*modulus to keep the result positive. */
646
0
    h[0] = 0x1fffffffffffb4 - f[0];
647
0
    h[1] = 0x1ffffffffffffc - f[1];
648
0
    h[2] = 0x1ffffffffffffc - f[2];
649
0
    h[3] = 0x1ffffffffffffc - f[3];
650
0
    h[4] = 0x1ffffffffffffc - f[4];
651
0
}
652
653
static void fe51_cmov(fe51 f, const fe51 g, unsigned int b)
654
0
{
655
0
    int i;
656
0
    uint64_t mask = 0 - (uint64_t)b;
657
658
0
    for (i = 0; i < 5; i++) {
659
0
        uint64_t x = f[i] ^ g[i];
660
0
        x &= mask;
661
0
        f[i] ^= x;
662
0
    }
663
0
}
664
665
static void fe51_0(fe51 h)
666
0
{
667
0
    h[0] = 0;
668
0
    h[1] = 0;
669
0
    h[2] = 0;
670
0
    h[3] = 0;
671
0
    h[4] = 0;
672
0
}
673
674
static void fe51_1(fe51 h)
675
0
{
676
0
    h[0] = 1;
677
0
    h[1] = 0;
678
0
    h[2] = 0;
679
0
    h[3] = 0;
680
0
    h[4] = 0;
681
0
}
682
683
static void fe51_copy(fe51 h, const fe51 f)
684
0
{
685
0
    h[0] = f[0];
686
0
    h[1] = f[1];
687
0
    h[2] = f[2];
688
0
    h[3] = f[3];
689
0
    h[4] = f[4];
690
0
}
691
692
static void fe51_cswap(fe51 f, fe51 g, unsigned int b)
693
0
{
694
0
    int i;
695
0
    uint64_t mask = 0 - (uint64_t)b;
696
697
0
    for (i = 0; i < 5; i++) {
698
0
        int64_t x = f[i] ^ g[i];
699
0
        x &= mask;
700
0
        f[i] ^= x;
701
0
        g[i] ^= x;
702
0
    }
703
0
}
704
705
static void fe51_invert(fe51 out, const fe51 z)
706
0
{
707
0
    fe51 t0;
708
0
    fe51 t1;
709
0
    fe51 t2;
710
0
    fe51 t3;
711
0
    int i;
712
713
    /*
714
     * Compute z ** -1 = z ** (2 ** 255 - 19 - 2) with the exponent as
715
     * 2 ** 255 - 21 = (2 ** 5) * (2 ** 250 - 1) + 11.
716
     */
717
718
    /* t0 = z ** 2 */
719
0
    fe51_sq(t0, z);
720
721
    /* t1 = t0 ** (2 ** 2) = z ** 8 */
722
0
    fe51_sq(t1, t0);
723
0
    fe51_sq(t1, t1);
724
725
    /* t1 = z * t1 = z ** 9 */
726
0
    fe51_mul(t1, z, t1);
727
    /* t0 = t0 * t1 = z ** 11 -- stash t0 away for the end. */
728
0
    fe51_mul(t0, t0, t1);
729
730
    /* t2 = t0 ** 2 = z ** 22 */
731
0
    fe51_sq(t2, t0);
732
733
    /* t1 = t1 * t2 = z ** (2 ** 5 - 1) */
734
0
    fe51_mul(t1, t1, t2);
735
736
    /* t2 = t1 ** (2 ** 5) = z ** ((2 ** 5) * (2 ** 5 - 1)) */
737
0
    fe51_sq(t2, t1);
738
0
    for (i = 1; i < 5; ++i)
739
0
        fe51_sq(t2, t2);
740
741
    /* t1 = t1 * t2 = z ** ((2 ** 5 + 1) * (2 ** 5 - 1)) = z ** (2 ** 10 - 1) */
742
0
    fe51_mul(t1, t2, t1);
743
744
    /* Continuing similarly... */
745
746
    /* t2 = z ** (2 ** 20 - 1) */
747
0
    fe51_sq(t2, t1);
748
0
    for (i = 1; i < 10; ++i)
749
0
        fe51_sq(t2, t2);
750
751
0
    fe51_mul(t2, t2, t1);
752
753
    /* t2 = z ** (2 ** 40 - 1) */
754
0
    fe51_sq(t3, t2);
755
0
    for (i = 1; i < 20; ++i)
756
0
        fe51_sq(t3, t3);
757
758
0
    fe51_mul(t2, t3, t2);
759
760
    /* t2 = z ** (2 ** 10) * (2 ** 40 - 1) */
761
0
    for (i = 0; i < 10; ++i)
762
0
        fe51_sq(t2, t2);
763
764
    /* t1 = z ** (2 ** 50 - 1) */
765
0
    fe51_mul(t1, t2, t1);
766
767
    /* t2 = z ** (2 ** 100 - 1) */
768
0
    fe51_sq(t2, t1);
769
0
    for (i = 1; i < 50; ++i)
770
0
        fe51_sq(t2, t2);
771
772
0
    fe51_mul(t2, t2, t1);
773
774
    /* t2 = z ** (2 ** 200 - 1) */
775
0
    fe51_sq(t3, t2);
776
0
    for (i = 1; i < 100; ++i)
777
0
        fe51_sq(t3, t3);
778
779
0
    fe51_mul(t2, t3, t2);
780
781
    /* t2 = z ** ((2 ** 50) * (2 ** 200 - 1) */
782
0
    for (i = 0; i < 50; ++i)
783
0
        fe51_sq(t2, t2);
784
785
    /* t1 = z ** (2 ** 250 - 1) */
786
0
    fe51_mul(t1, t2, t1);
787
788
    /* t1 = z ** ((2 ** 5) * (2 ** 250 - 1)) */
789
0
    for (i = 0; i < 5; ++i)
790
0
        fe51_sq(t1, t1);
791
792
    /* Recall t0 = z ** 11; out = z ** (2 ** 255 - 21) */
793
0
    fe51_mul(out, t1, t0);
794
0
}
795
796
/*
797
 * Duplicate of original x25519_scalar_mult_generic, but using
798
 * fe51_* subroutines.
799
 */
800
static void x25519_scalar_mult(uint8_t out[32], const uint8_t scalar[32],
801
    const uint8_t point[32])
802
0
{
803
0
    fe51 x1, x2, z2, x3, z3, tmp0, tmp1;
804
0
    uint8_t e[32];
805
0
    unsigned swap = 0;
806
0
    int pos;
807
808
0
#ifdef BASE_2_64_IMPLEMENTED
809
0
    if (x25519_fe64_eligible()) {
810
0
        x25519_scalar_mulx(out, scalar, point);
811
0
        return;
812
0
    }
813
0
#endif
814
815
0
    memcpy(e, scalar, 32);
816
0
    e[0] &= 0xf8;
817
0
    e[31] &= 0x7f;
818
0
    e[31] |= 0x40;
819
0
    fe51_frombytes(x1, point);
820
0
    fe51_1(x2);
821
0
    fe51_0(z2);
822
0
    fe51_copy(x3, x1);
823
0
    fe51_1(z3);
824
825
0
    for (pos = 254; pos >= 0; --pos) {
826
0
        unsigned int b = 1 & (e[pos / 8] >> (pos & 7));
827
828
0
        swap ^= b;
829
0
        fe51_cswap(x2, x3, swap);
830
0
        fe51_cswap(z2, z3, swap);
831
0
        swap = b;
832
0
        fe51_sub(tmp0, x3, z3);
833
0
        fe51_sub(tmp1, x2, z2);
834
0
        fe51_add(x2, x2, z2);
835
0
        fe51_add(z2, x3, z3);
836
0
        fe51_mul(z3, tmp0, x2);
837
0
        fe51_mul(z2, z2, tmp1);
838
0
        fe51_sq(tmp0, tmp1);
839
0
        fe51_sq(tmp1, x2);
840
0
        fe51_add(x3, z3, z2);
841
0
        fe51_sub(z2, z3, z2);
842
0
        fe51_mul(x2, tmp1, tmp0);
843
0
        fe51_sub(tmp1, tmp1, tmp0);
844
0
        fe51_sq(z2, z2);
845
0
        fe51_mul121666(z3, tmp1);
846
0
        fe51_sq(x3, x3);
847
0
        fe51_add(tmp0, tmp0, z3);
848
0
        fe51_mul(z3, x1, z2);
849
0
        fe51_mul(z2, tmp1, tmp0);
850
0
    }
851
852
0
    fe51_invert(z2, z2);
853
0
    fe51_mul(x2, x2, z2);
854
0
    fe51_tobytes(out, x2);
855
856
0
    OPENSSL_cleanse(e, sizeof(e));
857
0
}
858
#endif
859
860
/*
861
 * Reference base 2^25.5 implementation.
862
 *
863
 * This code is mostly taken from the ref10 version of Ed25519 in SUPERCOP
864
 * 20141124 (http://bench.cr.yp.to/supercop.html).
865
 *
866
 * The field functions are shared by Ed25519 and X25519 where possible.
867
 * Where the base 2^51 implementation is available, the Ed25519 group
868
 * operations use it instead of the reference base 2^25.5 field arithmetic,
869
 * which is then compiled out.
870
 */
871
872
#if defined(BASE_2_51_IMPLEMENTED)
873
874
typedef fe51 fe;
875
876
0
#define fe_frombytes fe51_frombytes
877
0
#define fe_tobytes fe51_tobytes
878
0
#define fe_copy fe51_copy
879
0
#define fe_0 fe51_0
880
0
#define fe_1 fe51_1
881
0
#define fe_add fe51_add
882
0
#define fe_sub fe51_sub
883
0
#define fe_mul fe51_mul
884
0
#define fe_sq fe51_sq
885
0
#define fe_invert fe51_invert
886
0
#define fe_neg fe51_neg
887
0
#define fe_cmov fe51_cmov
888
889
/* h = 2 * f * f */
890
static void fe_sq2(fe h, const fe f)
891
0
{
892
0
    fe51_sq(h, f);
893
0
    h[0] += h[0];
894
0
    h[1] += h[1];
895
0
    h[2] += h[2];
896
0
    h[3] += h[3];
897
0
    h[4] += h[4];
898
0
}
899
900
#else
901
902
/*
903
 * fe means field element. Here the field is \Z/(2^255-19). An element t,
904
 * entries t[0]...t[9], represents the integer t[0]+2^26 t[1]+2^51 t[2]+2^77
905
 * t[3]+2^102 t[4]+...+2^230 t[9]. Bounds on each t[i] vary depending on
906
 * context.
907
 */
908
typedef int32_t fe[10];
909
910
static const int64_t kBottom25Bits = 0x1ffffffLL;
911
static const int64_t kBottom26Bits = 0x3ffffffLL;
912
static const int64_t kTop39Bits = 0xfffffffffe000000LL;
913
static const int64_t kTop38Bits = 0xfffffffffc000000LL;
914
915
#endif
916
917
static const int64_t kBottom21Bits = 0x1fffffLL;
918
919
static uint64_t load_3(const uint8_t *in)
920
0
{
921
0
    uint64_t result;
922
923
0
    result = ((uint64_t)in[0]);
924
0
    result |= ((uint64_t)in[1]) << 8;
925
0
    result |= ((uint64_t)in[2]) << 16;
926
0
    return result;
927
0
}
928
929
static uint64_t load_4(const uint8_t *in)
930
0
{
931
0
    uint64_t result;
932
933
0
    result = ((uint64_t)in[0]);
934
0
    result |= ((uint64_t)in[1]) << 8;
935
0
    result |= ((uint64_t)in[2]) << 16;
936
0
    result |= ((uint64_t)in[3]) << 24;
937
0
    return result;
938
0
}
939
940
#if !defined(BASE_2_51_IMPLEMENTED)
941
942
static void fe_frombytes(fe h, const uint8_t *s)
943
{
944
    /* Ignores top bit of h. */
945
    int64_t h0 = load_4(s);
946
    int64_t h1 = load_3(s + 4) << 6;
947
    int64_t h2 = load_3(s + 7) << 5;
948
    int64_t h3 = load_3(s + 10) << 3;
949
    int64_t h4 = load_3(s + 13) << 2;
950
    int64_t h5 = load_4(s + 16);
951
    int64_t h6 = load_3(s + 20) << 7;
952
    int64_t h7 = load_3(s + 23) << 5;
953
    int64_t h8 = load_3(s + 26) << 4;
954
    int64_t h9 = (load_3(s + 29) & 0x7fffff) << 2;
955
    int64_t carry0;
956
    int64_t carry1;
957
    int64_t carry2;
958
    int64_t carry3;
959
    int64_t carry4;
960
    int64_t carry5;
961
    int64_t carry6;
962
    int64_t carry7;
963
    int64_t carry8;
964
    int64_t carry9;
965
966
    carry9 = h9 + (1 << 24);
967
    h0 += (carry9 >> 25) * 19;
968
    h9 -= carry9 & kTop39Bits;
969
    carry1 = h1 + (1 << 24);
970
    h2 += carry1 >> 25;
971
    h1 -= carry1 & kTop39Bits;
972
    carry3 = h3 + (1 << 24);
973
    h4 += carry3 >> 25;
974
    h3 -= carry3 & kTop39Bits;
975
    carry5 = h5 + (1 << 24);
976
    h6 += carry5 >> 25;
977
    h5 -= carry5 & kTop39Bits;
978
    carry7 = h7 + (1 << 24);
979
    h8 += carry7 >> 25;
980
    h7 -= carry7 & kTop39Bits;
981
982
    carry0 = h0 + (1 << 25);
983
    h1 += carry0 >> 26;
984
    h0 -= carry0 & kTop38Bits;
985
    carry2 = h2 + (1 << 25);
986
    h3 += carry2 >> 26;
987
    h2 -= carry2 & kTop38Bits;
988
    carry4 = h4 + (1 << 25);
989
    h5 += carry4 >> 26;
990
    h4 -= carry4 & kTop38Bits;
991
    carry6 = h6 + (1 << 25);
992
    h7 += carry6 >> 26;
993
    h6 -= carry6 & kTop38Bits;
994
    carry8 = h8 + (1 << 25);
995
    h9 += carry8 >> 26;
996
    h8 -= carry8 & kTop38Bits;
997
998
    h[0] = (int32_t)h0;
999
    h[1] = (int32_t)h1;
1000
    h[2] = (int32_t)h2;
1001
    h[3] = (int32_t)h3;
1002
    h[4] = (int32_t)h4;
1003
    h[5] = (int32_t)h5;
1004
    h[6] = (int32_t)h6;
1005
    h[7] = (int32_t)h7;
1006
    h[8] = (int32_t)h8;
1007
    h[9] = (int32_t)h9;
1008
}
1009
1010
/*
1011
 * Preconditions:
1012
 *   |h| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
1013
 *
1014
 * Write p=2^255-19; q=floor(h/p).
1015
 * Basic claim: q = floor(2^(-255)(h + 19 2^(-25)h9 + 2^(-1))).
1016
 *
1017
 * Proof:
1018
 *   Have |h|<=p so |q|<=1 so |19^2 2^(-255) q|<1/4.
1019
 *   Also have |h-2^230 h9|<2^231 so |19 2^(-255)(h-2^230 h9)|<1/4.
1020
 *
1021
 *   Write y=2^(-1)-19^2 2^(-255)q-19 2^(-255)(h-2^230 h9).
1022
 *   Then 0<y<1.
1023
 *
1024
 *   Write r=h-pq.
1025
 *   Have 0<=r<=p-1=2^255-20.
1026
 *   Thus 0<=r+19(2^-255)r<r+19(2^-255)2^255<=2^255-1.
1027
 *
1028
 *   Write x=r+19(2^-255)r+y.
1029
 *   Then 0<x<2^255 so floor(2^(-255)x) = 0 so floor(q+2^(-255)x) = q.
1030
 *
1031
 *   Have q+2^(-255)x = 2^(-255)(h + 19 2^(-25) h9 + 2^(-1))
1032
 *   so floor(2^(-255)(h + 19 2^(-25) h9 + 2^(-1))) = q.
1033
 */
1034
static void fe_tobytes(uint8_t *s, const fe h)
1035
{
1036
    int32_t h0 = h[0];
1037
    int32_t h1 = h[1];
1038
    int32_t h2 = h[2];
1039
    int32_t h3 = h[3];
1040
    int32_t h4 = h[4];
1041
    int32_t h5 = h[5];
1042
    int32_t h6 = h[6];
1043
    int32_t h7 = h[7];
1044
    int32_t h8 = h[8];
1045
    int32_t h9 = h[9];
1046
    int32_t q;
1047
1048
    q = (19 * h9 + (((int32_t)1) << 24)) >> 25;
1049
    q = (h0 + q) >> 26;
1050
    q = (h1 + q) >> 25;
1051
    q = (h2 + q) >> 26;
1052
    q = (h3 + q) >> 25;
1053
    q = (h4 + q) >> 26;
1054
    q = (h5 + q) >> 25;
1055
    q = (h6 + q) >> 26;
1056
    q = (h7 + q) >> 25;
1057
    q = (h8 + q) >> 26;
1058
    q = (h9 + q) >> 25;
1059
1060
    /* Goal: Output h-(2^255-19)q, which is between 0 and 2^255-20. */
1061
    h0 += 19 * q;
1062
    /* Goal: Output h-2^255 q, which is between 0 and 2^255-20. */
1063
1064
    h1 += h0 >> 26;
1065
    h0 &= kBottom26Bits;
1066
    h2 += h1 >> 25;
1067
    h1 &= kBottom25Bits;
1068
    h3 += h2 >> 26;
1069
    h2 &= kBottom26Bits;
1070
    h4 += h3 >> 25;
1071
    h3 &= kBottom25Bits;
1072
    h5 += h4 >> 26;
1073
    h4 &= kBottom26Bits;
1074
    h6 += h5 >> 25;
1075
    h5 &= kBottom25Bits;
1076
    h7 += h6 >> 26;
1077
    h6 &= kBottom26Bits;
1078
    h8 += h7 >> 25;
1079
    h7 &= kBottom25Bits;
1080
    h9 += h8 >> 26;
1081
    h8 &= kBottom26Bits;
1082
    h9 &= kBottom25Bits;
1083
    /* h10 = carry9 */
1084
1085
    /*
1086
     * Goal: Output h0+...+2^255 h10-2^255 q, which is between 0 and 2^255-20.
1087
     * Have h0+...+2^230 h9 between 0 and 2^255-1;
1088
     * evidently 2^255 h10-2^255 q = 0.
1089
     * Goal: Output h0+...+2^230 h9.
1090
     */
1091
    s[0] = (uint8_t)(h0 >> 0);
1092
    s[1] = (uint8_t)(h0 >> 8);
1093
    s[2] = (uint8_t)(h0 >> 16);
1094
    s[3] = (uint8_t)((h0 >> 24) | ((uint32_t)(h1) << 2));
1095
    s[4] = (uint8_t)(h1 >> 6);
1096
    s[5] = (uint8_t)(h1 >> 14);
1097
    s[6] = (uint8_t)((h1 >> 22) | ((uint32_t)(h2) << 3));
1098
    s[7] = (uint8_t)(h2 >> 5);
1099
    s[8] = (uint8_t)(h2 >> 13);
1100
    s[9] = (uint8_t)((h2 >> 21) | ((uint32_t)(h3) << 5));
1101
    s[10] = (uint8_t)(h3 >> 3);
1102
    s[11] = (uint8_t)(h3 >> 11);
1103
    s[12] = (uint8_t)((h3 >> 19) | ((uint32_t)(h4) << 6));
1104
    s[13] = (uint8_t)(h4 >> 2);
1105
    s[14] = (uint8_t)(h4 >> 10);
1106
    s[15] = (uint8_t)(h4 >> 18);
1107
    s[16] = (uint8_t)(h5 >> 0);
1108
    s[17] = (uint8_t)(h5 >> 8);
1109
    s[18] = (uint8_t)(h5 >> 16);
1110
    s[19] = (uint8_t)((h5 >> 24) | ((uint32_t)(h6) << 1));
1111
    s[20] = (uint8_t)(h6 >> 7);
1112
    s[21] = (uint8_t)(h6 >> 15);
1113
    s[22] = (uint8_t)((h6 >> 23) | ((uint32_t)(h7) << 3));
1114
    s[23] = (uint8_t)(h7 >> 5);
1115
    s[24] = (uint8_t)(h7 >> 13);
1116
    s[25] = (uint8_t)((h7 >> 21) | ((uint32_t)(h8) << 4));
1117
    s[26] = (uint8_t)(h8 >> 4);
1118
    s[27] = (uint8_t)(h8 >> 12);
1119
    s[28] = (uint8_t)((h8 >> 20) | ((uint32_t)(h9) << 6));
1120
    s[29] = (uint8_t)(h9 >> 2);
1121
    s[30] = (uint8_t)(h9 >> 10);
1122
    s[31] = (uint8_t)(h9 >> 18);
1123
}
1124
1125
/* h = f */
1126
static void fe_copy(fe h, const fe f)
1127
{
1128
    memmove(h, f, sizeof(int32_t) * 10);
1129
}
1130
1131
/* h = 0 */
1132
static void fe_0(fe h)
1133
{
1134
    memset(h, 0, sizeof(int32_t) * 10);
1135
}
1136
1137
/* h = 1 */
1138
static void fe_1(fe h)
1139
{
1140
    memset(h, 0, sizeof(int32_t) * 10);
1141
    h[0] = 1;
1142
}
1143
1144
/*
1145
 * h = f + g
1146
 *
1147
 * Can overlap h with f or g.
1148
 *
1149
 * Preconditions:
1150
 *    |f| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
1151
 *    |g| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
1152
 *
1153
 * Postconditions:
1154
 *    |h| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
1155
 */
1156
static void fe_add(fe h, const fe f, const fe g)
1157
{
1158
    unsigned i;
1159
1160
    for (i = 0; i < 10; i++) {
1161
        h[i] = f[i] + g[i];
1162
    }
1163
}
1164
1165
/*
1166
 * h = f - g
1167
 *
1168
 * Can overlap h with f or g.
1169
 *
1170
 * Preconditions:
1171
 *    |f| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
1172
 *    |g| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
1173
 *
1174
 * Postconditions:
1175
 *    |h| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
1176
 */
1177
static void fe_sub(fe h, const fe f, const fe g)
1178
{
1179
    unsigned i;
1180
1181
    for (i = 0; i < 10; i++) {
1182
        h[i] = f[i] - g[i];
1183
    }
1184
}
1185
1186
/*
1187
 * h = f * g
1188
 *
1189
 * Can overlap h with f or g.
1190
 *
1191
 * Preconditions:
1192
 *    |f| bounded by 1.65*2^26,1.65*2^25,1.65*2^26,1.65*2^25,etc.
1193
 *    |g| bounded by 1.65*2^26,1.65*2^25,1.65*2^26,1.65*2^25,etc.
1194
 *
1195
 * Postconditions:
1196
 *    |h| bounded by 1.01*2^25,1.01*2^24,1.01*2^25,1.01*2^24,etc.
1197
 *
1198
 * Notes on implementation strategy:
1199
 *
1200
 * Using schoolbook multiplication.
1201
 * Karatsuba would save a little in some cost models.
1202
 *
1203
 * Most multiplications by 2 and 19 are 32-bit precomputations;
1204
 * cheaper than 64-bit postcomputations.
1205
 *
1206
 * There is one remaining multiplication by 19 in the carry chain;
1207
 * one *19 precomputation can be merged into this,
1208
 * but the resulting data flow is considerably less clean.
1209
 *
1210
 * There are 12 carries below.
1211
 * 10 of them are 2-way parallelizable and vectorizable.
1212
 * Can get away with 11 carries, but then data flow is much deeper.
1213
 *
1214
 * With tighter constraints on inputs can squeeze carries into int32.
1215
 */
1216
static void fe_mul(fe h, const fe f, const fe g)
1217
{
1218
    int32_t f0 = f[0];
1219
    int32_t f1 = f[1];
1220
    int32_t f2 = f[2];
1221
    int32_t f3 = f[3];
1222
    int32_t f4 = f[4];
1223
    int32_t f5 = f[5];
1224
    int32_t f6 = f[6];
1225
    int32_t f7 = f[7];
1226
    int32_t f8 = f[8];
1227
    int32_t f9 = f[9];
1228
    int32_t g0 = g[0];
1229
    int32_t g1 = g[1];
1230
    int32_t g2 = g[2];
1231
    int32_t g3 = g[3];
1232
    int32_t g4 = g[4];
1233
    int32_t g5 = g[5];
1234
    int32_t g6 = g[6];
1235
    int32_t g7 = g[7];
1236
    int32_t g8 = g[8];
1237
    int32_t g9 = g[9];
1238
    int32_t g1_19 = 19 * g1; /* 1.959375*2^29 */
1239
    int32_t g2_19 = 19 * g2; /* 1.959375*2^30; still ok */
1240
    int32_t g3_19 = 19 * g3;
1241
    int32_t g4_19 = 19 * g4;
1242
    int32_t g5_19 = 19 * g5;
1243
    int32_t g6_19 = 19 * g6;
1244
    int32_t g7_19 = 19 * g7;
1245
    int32_t g8_19 = 19 * g8;
1246
    int32_t g9_19 = 19 * g9;
1247
    int32_t f1_2 = 2 * f1;
1248
    int32_t f3_2 = 2 * f3;
1249
    int32_t f5_2 = 2 * f5;
1250
    int32_t f7_2 = 2 * f7;
1251
    int32_t f9_2 = 2 * f9;
1252
    int64_t f0g0 = f0 * (int64_t)g0;
1253
    int64_t f0g1 = f0 * (int64_t)g1;
1254
    int64_t f0g2 = f0 * (int64_t)g2;
1255
    int64_t f0g3 = f0 * (int64_t)g3;
1256
    int64_t f0g4 = f0 * (int64_t)g4;
1257
    int64_t f0g5 = f0 * (int64_t)g5;
1258
    int64_t f0g6 = f0 * (int64_t)g6;
1259
    int64_t f0g7 = f0 * (int64_t)g7;
1260
    int64_t f0g8 = f0 * (int64_t)g8;
1261
    int64_t f0g9 = f0 * (int64_t)g9;
1262
    int64_t f1g0 = f1 * (int64_t)g0;
1263
    int64_t f1g1_2 = f1_2 * (int64_t)g1;
1264
    int64_t f1g2 = f1 * (int64_t)g2;
1265
    int64_t f1g3_2 = f1_2 * (int64_t)g3;
1266
    int64_t f1g4 = f1 * (int64_t)g4;
1267
    int64_t f1g5_2 = f1_2 * (int64_t)g5;
1268
    int64_t f1g6 = f1 * (int64_t)g6;
1269
    int64_t f1g7_2 = f1_2 * (int64_t)g7;
1270
    int64_t f1g8 = f1 * (int64_t)g8;
1271
    int64_t f1g9_38 = f1_2 * (int64_t)g9_19;
1272
    int64_t f2g0 = f2 * (int64_t)g0;
1273
    int64_t f2g1 = f2 * (int64_t)g1;
1274
    int64_t f2g2 = f2 * (int64_t)g2;
1275
    int64_t f2g3 = f2 * (int64_t)g3;
1276
    int64_t f2g4 = f2 * (int64_t)g4;
1277
    int64_t f2g5 = f2 * (int64_t)g5;
1278
    int64_t f2g6 = f2 * (int64_t)g6;
1279
    int64_t f2g7 = f2 * (int64_t)g7;
1280
    int64_t f2g8_19 = f2 * (int64_t)g8_19;
1281
    int64_t f2g9_19 = f2 * (int64_t)g9_19;
1282
    int64_t f3g0 = f3 * (int64_t)g0;
1283
    int64_t f3g1_2 = f3_2 * (int64_t)g1;
1284
    int64_t f3g2 = f3 * (int64_t)g2;
1285
    int64_t f3g3_2 = f3_2 * (int64_t)g3;
1286
    int64_t f3g4 = f3 * (int64_t)g4;
1287
    int64_t f3g5_2 = f3_2 * (int64_t)g5;
1288
    int64_t f3g6 = f3 * (int64_t)g6;
1289
    int64_t f3g7_38 = f3_2 * (int64_t)g7_19;
1290
    int64_t f3g8_19 = f3 * (int64_t)g8_19;
1291
    int64_t f3g9_38 = f3_2 * (int64_t)g9_19;
1292
    int64_t f4g0 = f4 * (int64_t)g0;
1293
    int64_t f4g1 = f4 * (int64_t)g1;
1294
    int64_t f4g2 = f4 * (int64_t)g2;
1295
    int64_t f4g3 = f4 * (int64_t)g3;
1296
    int64_t f4g4 = f4 * (int64_t)g4;
1297
    int64_t f4g5 = f4 * (int64_t)g5;
1298
    int64_t f4g6_19 = f4 * (int64_t)g6_19;
1299
    int64_t f4g7_19 = f4 * (int64_t)g7_19;
1300
    int64_t f4g8_19 = f4 * (int64_t)g8_19;
1301
    int64_t f4g9_19 = f4 * (int64_t)g9_19;
1302
    int64_t f5g0 = f5 * (int64_t)g0;
1303
    int64_t f5g1_2 = f5_2 * (int64_t)g1;
1304
    int64_t f5g2 = f5 * (int64_t)g2;
1305
    int64_t f5g3_2 = f5_2 * (int64_t)g3;
1306
    int64_t f5g4 = f5 * (int64_t)g4;
1307
    int64_t f5g5_38 = f5_2 * (int64_t)g5_19;
1308
    int64_t f5g6_19 = f5 * (int64_t)g6_19;
1309
    int64_t f5g7_38 = f5_2 * (int64_t)g7_19;
1310
    int64_t f5g8_19 = f5 * (int64_t)g8_19;
1311
    int64_t f5g9_38 = f5_2 * (int64_t)g9_19;
1312
    int64_t f6g0 = f6 * (int64_t)g0;
1313
    int64_t f6g1 = f6 * (int64_t)g1;
1314
    int64_t f6g2 = f6 * (int64_t)g2;
1315
    int64_t f6g3 = f6 * (int64_t)g3;
1316
    int64_t f6g4_19 = f6 * (int64_t)g4_19;
1317
    int64_t f6g5_19 = f6 * (int64_t)g5_19;
1318
    int64_t f6g6_19 = f6 * (int64_t)g6_19;
1319
    int64_t f6g7_19 = f6 * (int64_t)g7_19;
1320
    int64_t f6g8_19 = f6 * (int64_t)g8_19;
1321
    int64_t f6g9_19 = f6 * (int64_t)g9_19;
1322
    int64_t f7g0 = f7 * (int64_t)g0;
1323
    int64_t f7g1_2 = f7_2 * (int64_t)g1;
1324
    int64_t f7g2 = f7 * (int64_t)g2;
1325
    int64_t f7g3_38 = f7_2 * (int64_t)g3_19;
1326
    int64_t f7g4_19 = f7 * (int64_t)g4_19;
1327
    int64_t f7g5_38 = f7_2 * (int64_t)g5_19;
1328
    int64_t f7g6_19 = f7 * (int64_t)g6_19;
1329
    int64_t f7g7_38 = f7_2 * (int64_t)g7_19;
1330
    int64_t f7g8_19 = f7 * (int64_t)g8_19;
1331
    int64_t f7g9_38 = f7_2 * (int64_t)g9_19;
1332
    int64_t f8g0 = f8 * (int64_t)g0;
1333
    int64_t f8g1 = f8 * (int64_t)g1;
1334
    int64_t f8g2_19 = f8 * (int64_t)g2_19;
1335
    int64_t f8g3_19 = f8 * (int64_t)g3_19;
1336
    int64_t f8g4_19 = f8 * (int64_t)g4_19;
1337
    int64_t f8g5_19 = f8 * (int64_t)g5_19;
1338
    int64_t f8g6_19 = f8 * (int64_t)g6_19;
1339
    int64_t f8g7_19 = f8 * (int64_t)g7_19;
1340
    int64_t f8g8_19 = f8 * (int64_t)g8_19;
1341
    int64_t f8g9_19 = f8 * (int64_t)g9_19;
1342
    int64_t f9g0 = f9 * (int64_t)g0;
1343
    int64_t f9g1_38 = f9_2 * (int64_t)g1_19;
1344
    int64_t f9g2_19 = f9 * (int64_t)g2_19;
1345
    int64_t f9g3_38 = f9_2 * (int64_t)g3_19;
1346
    int64_t f9g4_19 = f9 * (int64_t)g4_19;
1347
    int64_t f9g5_38 = f9_2 * (int64_t)g5_19;
1348
    int64_t f9g6_19 = f9 * (int64_t)g6_19;
1349
    int64_t f9g7_38 = f9_2 * (int64_t)g7_19;
1350
    int64_t f9g8_19 = f9 * (int64_t)g8_19;
1351
    int64_t f9g9_38 = f9_2 * (int64_t)g9_19;
1352
    int64_t h0 = f0g0 + f1g9_38 + f2g8_19 + f3g7_38 + f4g6_19 + f5g5_38 + f6g4_19 + f7g3_38 + f8g2_19 + f9g1_38;
1353
    int64_t h1 = f0g1 + f1g0 + f2g9_19 + f3g8_19 + f4g7_19 + f5g6_19 + f6g5_19 + f7g4_19 + f8g3_19 + f9g2_19;
1354
    int64_t h2 = f0g2 + f1g1_2 + f2g0 + f3g9_38 + f4g8_19 + f5g7_38 + f6g6_19 + f7g5_38 + f8g4_19 + f9g3_38;
1355
    int64_t h3 = f0g3 + f1g2 + f2g1 + f3g0 + f4g9_19 + f5g8_19 + f6g7_19 + f7g6_19 + f8g5_19 + f9g4_19;
1356
    int64_t h4 = f0g4 + f1g3_2 + f2g2 + f3g1_2 + f4g0 + f5g9_38 + f6g8_19 + f7g7_38 + f8g6_19 + f9g5_38;
1357
    int64_t h5 = f0g5 + f1g4 + f2g3 + f3g2 + f4g1 + f5g0 + f6g9_19 + f7g8_19 + f8g7_19 + f9g6_19;
1358
    int64_t h6 = f0g6 + f1g5_2 + f2g4 + f3g3_2 + f4g2 + f5g1_2 + f6g0 + f7g9_38 + f8g8_19 + f9g7_38;
1359
    int64_t h7 = f0g7 + f1g6 + f2g5 + f3g4 + f4g3 + f5g2 + f6g1 + f7g0 + f8g9_19 + f9g8_19;
1360
    int64_t h8 = f0g8 + f1g7_2 + f2g6 + f3g5_2 + f4g4 + f5g3_2 + f6g2 + f7g1_2 + f8g0 + f9g9_38;
1361
    int64_t h9 = f0g9 + f1g8 + f2g7 + f3g6 + f4g5 + f5g4 + f6g3 + f7g2 + f8g1 + f9g0;
1362
    int64_t carry0;
1363
    int64_t carry1;
1364
    int64_t carry2;
1365
    int64_t carry3;
1366
    int64_t carry4;
1367
    int64_t carry5;
1368
    int64_t carry6;
1369
    int64_t carry7;
1370
    int64_t carry8;
1371
    int64_t carry9;
1372
1373
    /* |h0| <= (1.65*1.65*2^52*(1+19+19+19+19)+1.65*1.65*2^50*(38+38+38+38+38))
1374
     *   i.e. |h0| <= 1.4*2^60; narrower ranges for h2, h4, h6, h8
1375
     * |h1| <= (1.65*1.65*2^51*(1+1+19+19+19+19+19+19+19+19))
1376
     *   i.e. |h1| <= 1.7*2^59; narrower ranges for h3, h5, h7, h9 */
1377
1378
    carry0 = h0 + (1 << 25);
1379
    h1 += carry0 >> 26;
1380
    h0 -= carry0 & kTop38Bits;
1381
    carry4 = h4 + (1 << 25);
1382
    h5 += carry4 >> 26;
1383
    h4 -= carry4 & kTop38Bits;
1384
    /* |h0| <= 2^25 */
1385
    /* |h4| <= 2^25 */
1386
    /* |h1| <= 1.71*2^59 */
1387
    /* |h5| <= 1.71*2^59 */
1388
1389
    carry1 = h1 + (1 << 24);
1390
    h2 += carry1 >> 25;
1391
    h1 -= carry1 & kTop39Bits;
1392
    carry5 = h5 + (1 << 24);
1393
    h6 += carry5 >> 25;
1394
    h5 -= carry5 & kTop39Bits;
1395
    /* |h1| <= 2^24; from now on fits into int32 */
1396
    /* |h5| <= 2^24; from now on fits into int32 */
1397
    /* |h2| <= 1.41*2^60 */
1398
    /* |h6| <= 1.41*2^60 */
1399
1400
    carry2 = h2 + (1 << 25);
1401
    h3 += carry2 >> 26;
1402
    h2 -= carry2 & kTop38Bits;
1403
    carry6 = h6 + (1 << 25);
1404
    h7 += carry6 >> 26;
1405
    h6 -= carry6 & kTop38Bits;
1406
    /* |h2| <= 2^25; from now on fits into int32 unchanged */
1407
    /* |h6| <= 2^25; from now on fits into int32 unchanged */
1408
    /* |h3| <= 1.71*2^59 */
1409
    /* |h7| <= 1.71*2^59 */
1410
1411
    carry3 = h3 + (1 << 24);
1412
    h4 += carry3 >> 25;
1413
    h3 -= carry3 & kTop39Bits;
1414
    carry7 = h7 + (1 << 24);
1415
    h8 += carry7 >> 25;
1416
    h7 -= carry7 & kTop39Bits;
1417
    /* |h3| <= 2^24; from now on fits into int32 unchanged */
1418
    /* |h7| <= 2^24; from now on fits into int32 unchanged */
1419
    /* |h4| <= 1.72*2^34 */
1420
    /* |h8| <= 1.41*2^60 */
1421
1422
    carry4 = h4 + (1 << 25);
1423
    h5 += carry4 >> 26;
1424
    h4 -= carry4 & kTop38Bits;
1425
    carry8 = h8 + (1 << 25);
1426
    h9 += carry8 >> 26;
1427
    h8 -= carry8 & kTop38Bits;
1428
    /* |h4| <= 2^25; from now on fits into int32 unchanged */
1429
    /* |h8| <= 2^25; from now on fits into int32 unchanged */
1430
    /* |h5| <= 1.01*2^24 */
1431
    /* |h9| <= 1.71*2^59 */
1432
1433
    carry9 = h9 + (1 << 24);
1434
    h0 += (carry9 >> 25) * 19;
1435
    h9 -= carry9 & kTop39Bits;
1436
    /* |h9| <= 2^24; from now on fits into int32 unchanged */
1437
    /* |h0| <= 1.1*2^39 */
1438
1439
    carry0 = h0 + (1 << 25);
1440
    h1 += carry0 >> 26;
1441
    h0 -= carry0 & kTop38Bits;
1442
    /* |h0| <= 2^25; from now on fits into int32 unchanged */
1443
    /* |h1| <= 1.01*2^24 */
1444
1445
    h[0] = (int32_t)h0;
1446
    h[1] = (int32_t)h1;
1447
    h[2] = (int32_t)h2;
1448
    h[3] = (int32_t)h3;
1449
    h[4] = (int32_t)h4;
1450
    h[5] = (int32_t)h5;
1451
    h[6] = (int32_t)h6;
1452
    h[7] = (int32_t)h7;
1453
    h[8] = (int32_t)h8;
1454
    h[9] = (int32_t)h9;
1455
}
1456
1457
/*
1458
 * h = f * f
1459
 *
1460
 * Can overlap h with f.
1461
 *
1462
 * Preconditions:
1463
 *    |f| bounded by 1.65*2^26,1.65*2^25,1.65*2^26,1.65*2^25,etc.
1464
 *
1465
 * Postconditions:
1466
 *    |h| bounded by 1.01*2^25,1.01*2^24,1.01*2^25,1.01*2^24,etc.
1467
 *
1468
 * See fe_mul.c for discussion of implementation strategy.
1469
 */
1470
static void fe_sq(fe h, const fe f)
1471
{
1472
    int32_t f0 = f[0];
1473
    int32_t f1 = f[1];
1474
    int32_t f2 = f[2];
1475
    int32_t f3 = f[3];
1476
    int32_t f4 = f[4];
1477
    int32_t f5 = f[5];
1478
    int32_t f6 = f[6];
1479
    int32_t f7 = f[7];
1480
    int32_t f8 = f[8];
1481
    int32_t f9 = f[9];
1482
    int32_t f0_2 = 2 * f0;
1483
    int32_t f1_2 = 2 * f1;
1484
    int32_t f2_2 = 2 * f2;
1485
    int32_t f3_2 = 2 * f3;
1486
    int32_t f4_2 = 2 * f4;
1487
    int32_t f5_2 = 2 * f5;
1488
    int32_t f6_2 = 2 * f6;
1489
    int32_t f7_2 = 2 * f7;
1490
    int32_t f5_38 = 38 * f5; /* 1.959375*2^30 */
1491
    int32_t f6_19 = 19 * f6; /* 1.959375*2^30 */
1492
    int32_t f7_38 = 38 * f7; /* 1.959375*2^30 */
1493
    int32_t f8_19 = 19 * f8; /* 1.959375*2^30 */
1494
    int32_t f9_38 = 38 * f9; /* 1.959375*2^30 */
1495
    int64_t f0f0 = f0 * (int64_t)f0;
1496
    int64_t f0f1_2 = f0_2 * (int64_t)f1;
1497
    int64_t f0f2_2 = f0_2 * (int64_t)f2;
1498
    int64_t f0f3_2 = f0_2 * (int64_t)f3;
1499
    int64_t f0f4_2 = f0_2 * (int64_t)f4;
1500
    int64_t f0f5_2 = f0_2 * (int64_t)f5;
1501
    int64_t f0f6_2 = f0_2 * (int64_t)f6;
1502
    int64_t f0f7_2 = f0_2 * (int64_t)f7;
1503
    int64_t f0f8_2 = f0_2 * (int64_t)f8;
1504
    int64_t f0f9_2 = f0_2 * (int64_t)f9;
1505
    int64_t f1f1_2 = f1_2 * (int64_t)f1;
1506
    int64_t f1f2_2 = f1_2 * (int64_t)f2;
1507
    int64_t f1f3_4 = f1_2 * (int64_t)f3_2;
1508
    int64_t f1f4_2 = f1_2 * (int64_t)f4;
1509
    int64_t f1f5_4 = f1_2 * (int64_t)f5_2;
1510
    int64_t f1f6_2 = f1_2 * (int64_t)f6;
1511
    int64_t f1f7_4 = f1_2 * (int64_t)f7_2;
1512
    int64_t f1f8_2 = f1_2 * (int64_t)f8;
1513
    int64_t f1f9_76 = f1_2 * (int64_t)f9_38;
1514
    int64_t f2f2 = f2 * (int64_t)f2;
1515
    int64_t f2f3_2 = f2_2 * (int64_t)f3;
1516
    int64_t f2f4_2 = f2_2 * (int64_t)f4;
1517
    int64_t f2f5_2 = f2_2 * (int64_t)f5;
1518
    int64_t f2f6_2 = f2_2 * (int64_t)f6;
1519
    int64_t f2f7_2 = f2_2 * (int64_t)f7;
1520
    int64_t f2f8_38 = f2_2 * (int64_t)f8_19;
1521
    int64_t f2f9_38 = f2 * (int64_t)f9_38;
1522
    int64_t f3f3_2 = f3_2 * (int64_t)f3;
1523
    int64_t f3f4_2 = f3_2 * (int64_t)f4;
1524
    int64_t f3f5_4 = f3_2 * (int64_t)f5_2;
1525
    int64_t f3f6_2 = f3_2 * (int64_t)f6;
1526
    int64_t f3f7_76 = f3_2 * (int64_t)f7_38;
1527
    int64_t f3f8_38 = f3_2 * (int64_t)f8_19;
1528
    int64_t f3f9_76 = f3_2 * (int64_t)f9_38;
1529
    int64_t f4f4 = f4 * (int64_t)f4;
1530
    int64_t f4f5_2 = f4_2 * (int64_t)f5;
1531
    int64_t f4f6_38 = f4_2 * (int64_t)f6_19;
1532
    int64_t f4f7_38 = f4 * (int64_t)f7_38;
1533
    int64_t f4f8_38 = f4_2 * (int64_t)f8_19;
1534
    int64_t f4f9_38 = f4 * (int64_t)f9_38;
1535
    int64_t f5f5_38 = f5 * (int64_t)f5_38;
1536
    int64_t f5f6_38 = f5_2 * (int64_t)f6_19;
1537
    int64_t f5f7_76 = f5_2 * (int64_t)f7_38;
1538
    int64_t f5f8_38 = f5_2 * (int64_t)f8_19;
1539
    int64_t f5f9_76 = f5_2 * (int64_t)f9_38;
1540
    int64_t f6f6_19 = f6 * (int64_t)f6_19;
1541
    int64_t f6f7_38 = f6 * (int64_t)f7_38;
1542
    int64_t f6f8_38 = f6_2 * (int64_t)f8_19;
1543
    int64_t f6f9_38 = f6 * (int64_t)f9_38;
1544
    int64_t f7f7_38 = f7 * (int64_t)f7_38;
1545
    int64_t f7f8_38 = f7_2 * (int64_t)f8_19;
1546
    int64_t f7f9_76 = f7_2 * (int64_t)f9_38;
1547
    int64_t f8f8_19 = f8 * (int64_t)f8_19;
1548
    int64_t f8f9_38 = f8 * (int64_t)f9_38;
1549
    int64_t f9f9_38 = f9 * (int64_t)f9_38;
1550
    int64_t h0 = f0f0 + f1f9_76 + f2f8_38 + f3f7_76 + f4f6_38 + f5f5_38;
1551
    int64_t h1 = f0f1_2 + f2f9_38 + f3f8_38 + f4f7_38 + f5f6_38;
1552
    int64_t h2 = f0f2_2 + f1f1_2 + f3f9_76 + f4f8_38 + f5f7_76 + f6f6_19;
1553
    int64_t h3 = f0f3_2 + f1f2_2 + f4f9_38 + f5f8_38 + f6f7_38;
1554
    int64_t h4 = f0f4_2 + f1f3_4 + f2f2 + f5f9_76 + f6f8_38 + f7f7_38;
1555
    int64_t h5 = f0f5_2 + f1f4_2 + f2f3_2 + f6f9_38 + f7f8_38;
1556
    int64_t h6 = f0f6_2 + f1f5_4 + f2f4_2 + f3f3_2 + f7f9_76 + f8f8_19;
1557
    int64_t h7 = f0f7_2 + f1f6_2 + f2f5_2 + f3f4_2 + f8f9_38;
1558
    int64_t h8 = f0f8_2 + f1f7_4 + f2f6_2 + f3f5_4 + f4f4 + f9f9_38;
1559
    int64_t h9 = f0f9_2 + f1f8_2 + f2f7_2 + f3f6_2 + f4f5_2;
1560
    int64_t carry0;
1561
    int64_t carry1;
1562
    int64_t carry2;
1563
    int64_t carry3;
1564
    int64_t carry4;
1565
    int64_t carry5;
1566
    int64_t carry6;
1567
    int64_t carry7;
1568
    int64_t carry8;
1569
    int64_t carry9;
1570
1571
    carry0 = h0 + (1 << 25);
1572
    h1 += carry0 >> 26;
1573
    h0 -= carry0 & kTop38Bits;
1574
    carry4 = h4 + (1 << 25);
1575
    h5 += carry4 >> 26;
1576
    h4 -= carry4 & kTop38Bits;
1577
1578
    carry1 = h1 + (1 << 24);
1579
    h2 += carry1 >> 25;
1580
    h1 -= carry1 & kTop39Bits;
1581
    carry5 = h5 + (1 << 24);
1582
    h6 += carry5 >> 25;
1583
    h5 -= carry5 & kTop39Bits;
1584
1585
    carry2 = h2 + (1 << 25);
1586
    h3 += carry2 >> 26;
1587
    h2 -= carry2 & kTop38Bits;
1588
    carry6 = h6 + (1 << 25);
1589
    h7 += carry6 >> 26;
1590
    h6 -= carry6 & kTop38Bits;
1591
1592
    carry3 = h3 + (1 << 24);
1593
    h4 += carry3 >> 25;
1594
    h3 -= carry3 & kTop39Bits;
1595
    carry7 = h7 + (1 << 24);
1596
    h8 += carry7 >> 25;
1597
    h7 -= carry7 & kTop39Bits;
1598
1599
    carry4 = h4 + (1 << 25);
1600
    h5 += carry4 >> 26;
1601
    h4 -= carry4 & kTop38Bits;
1602
    carry8 = h8 + (1 << 25);
1603
    h9 += carry8 >> 26;
1604
    h8 -= carry8 & kTop38Bits;
1605
1606
    carry9 = h9 + (1 << 24);
1607
    h0 += (carry9 >> 25) * 19;
1608
    h9 -= carry9 & kTop39Bits;
1609
1610
    carry0 = h0 + (1 << 25);
1611
    h1 += carry0 >> 26;
1612
    h0 -= carry0 & kTop38Bits;
1613
1614
    h[0] = (int32_t)h0;
1615
    h[1] = (int32_t)h1;
1616
    h[2] = (int32_t)h2;
1617
    h[3] = (int32_t)h3;
1618
    h[4] = (int32_t)h4;
1619
    h[5] = (int32_t)h5;
1620
    h[6] = (int32_t)h6;
1621
    h[7] = (int32_t)h7;
1622
    h[8] = (int32_t)h8;
1623
    h[9] = (int32_t)h9;
1624
}
1625
1626
static void fe_invert(fe out, const fe z)
1627
{
1628
    fe t0;
1629
    fe t1;
1630
    fe t2;
1631
    fe t3;
1632
    int i;
1633
1634
    /*
1635
     * Compute z ** -1 = z ** (2 ** 255 - 19 - 2) with the exponent as
1636
     * 2 ** 255 - 21 = (2 ** 5) * (2 ** 250 - 1) + 11.
1637
     */
1638
1639
    /* t0 = z ** 2 */
1640
    fe_sq(t0, z);
1641
1642
    /* t1 = t0 ** (2 ** 2) = z ** 8 */
1643
    fe_sq(t1, t0);
1644
    fe_sq(t1, t1);
1645
1646
    /* t1 = z * t1 = z ** 9 */
1647
    fe_mul(t1, z, t1);
1648
    /* t0 = t0 * t1 = z ** 11 -- stash t0 away for the end. */
1649
    fe_mul(t0, t0, t1);
1650
1651
    /* t2 = t0 ** 2 = z ** 22 */
1652
    fe_sq(t2, t0);
1653
1654
    /* t1 = t1 * t2 = z ** (2 ** 5 - 1) */
1655
    fe_mul(t1, t1, t2);
1656
1657
    /* t2 = t1 ** (2 ** 5) = z ** ((2 ** 5) * (2 ** 5 - 1)) */
1658
    fe_sq(t2, t1);
1659
    for (i = 1; i < 5; ++i) {
1660
        fe_sq(t2, t2);
1661
    }
1662
1663
    /* t1 = t1 * t2 = z ** ((2 ** 5 + 1) * (2 ** 5 - 1)) = z ** (2 ** 10 - 1) */
1664
    fe_mul(t1, t2, t1);
1665
1666
    /* Continuing similarly... */
1667
1668
    /* t2 = z ** (2 ** 20 - 1) */
1669
    fe_sq(t2, t1);
1670
    for (i = 1; i < 10; ++i) {
1671
        fe_sq(t2, t2);
1672
    }
1673
    fe_mul(t2, t2, t1);
1674
1675
    /* t2 = z ** (2 ** 40 - 1) */
1676
    fe_sq(t3, t2);
1677
    for (i = 1; i < 20; ++i) {
1678
        fe_sq(t3, t3);
1679
    }
1680
    fe_mul(t2, t3, t2);
1681
1682
    /* t2 = z ** (2 ** 10) * (2 ** 40 - 1) */
1683
    for (i = 0; i < 10; ++i) {
1684
        fe_sq(t2, t2);
1685
    }
1686
    /* t1 = z ** (2 ** 50 - 1) */
1687
    fe_mul(t1, t2, t1);
1688
1689
    /* t2 = z ** (2 ** 100 - 1) */
1690
    fe_sq(t2, t1);
1691
    for (i = 1; i < 50; ++i) {
1692
        fe_sq(t2, t2);
1693
    }
1694
    fe_mul(t2, t2, t1);
1695
1696
    /* t2 = z ** (2 ** 200 - 1) */
1697
    fe_sq(t3, t2);
1698
    for (i = 1; i < 100; ++i) {
1699
        fe_sq(t3, t3);
1700
    }
1701
    fe_mul(t2, t3, t2);
1702
1703
    /* t2 = z ** ((2 ** 50) * (2 ** 200 - 1) */
1704
    fe_sq(t2, t2);
1705
    for (i = 1; i < 50; ++i) {
1706
        fe_sq(t2, t2);
1707
    }
1708
1709
    /* t1 = z ** (2 ** 250 - 1) */
1710
    fe_mul(t1, t2, t1);
1711
1712
    /* t1 = z ** ((2 ** 5) * (2 ** 250 - 1)) */
1713
    fe_sq(t1, t1);
1714
    for (i = 1; i < 5; ++i) {
1715
        fe_sq(t1, t1);
1716
    }
1717
1718
    /* Recall t0 = z ** 11; out = z ** (2 ** 255 - 21) */
1719
    fe_mul(out, t1, t0);
1720
}
1721
1722
/*
1723
 * h = -f
1724
 *
1725
 * Preconditions:
1726
 *    |f| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
1727
 *
1728
 * Postconditions:
1729
 *    |h| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
1730
 */
1731
static void fe_neg(fe h, const fe f)
1732
{
1733
    unsigned i;
1734
1735
    for (i = 0; i < 10; i++) {
1736
        h[i] = -f[i];
1737
    }
1738
}
1739
1740
/*
1741
 * Replace (f,g) with (g,g) if b == 1;
1742
 * replace (f,g) with (f,g) if b == 0.
1743
 *
1744
 * Preconditions: b in {0,1}.
1745
 */
1746
static void fe_cmov(fe f, const fe g, unsigned b)
1747
{
1748
    size_t i;
1749
1750
    b = 0 - b;
1751
    for (i = 0; i < 10; i++) {
1752
        int32_t x = f[i] ^ g[i];
1753
        x &= b;
1754
        f[i] ^= x;
1755
    }
1756
}
1757
1758
#endif /* !BASE_2_51_IMPLEMENTED */
1759
1760
/*
1761
 * return 0 if f == 0
1762
 * return 1 if f != 0
1763
 *
1764
 * Preconditions:
1765
 *    |f| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
1766
 *    or, with the base 2^51 representation, every limb below 2^55
1767
 */
1768
static int fe_isnonzero(const fe f)
1769
0
{
1770
0
    uint8_t s[32];
1771
0
    static const uint8_t zero[32] = { 0 };
1772
1773
0
    fe_tobytes(s, f);
1774
1775
0
    return CRYPTO_memcmp(s, zero, sizeof(zero)) != 0;
1776
0
}
1777
1778
/*
1779
 * return 1 if f is in {1,3,5,...,q-2}
1780
 * return 0 if f is in {0,2,4,...,q-1}
1781
 *
1782
 * Preconditions:
1783
 *    |f| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
1784
 *    or, with the base 2^51 representation, every limb below 2^55
1785
 */
1786
static int fe_isnegative(const fe f)
1787
0
{
1788
0
    uint8_t s[32];
1789
1790
0
    fe_tobytes(s, f);
1791
0
    return s[0] & 1;
1792
0
}
1793
1794
#if !defined(BASE_2_51_IMPLEMENTED)
1795
1796
/*
1797
 * h = 2 * f * f
1798
 *
1799
 * Can overlap h with f.
1800
 *
1801
 * Preconditions:
1802
 *    |f| bounded by 1.65*2^26,1.65*2^25,1.65*2^26,1.65*2^25,etc.
1803
 *
1804
 * Postconditions:
1805
 *    |h| bounded by 1.01*2^25,1.01*2^24,1.01*2^25,1.01*2^24,etc.
1806
 *
1807
 * See fe_mul.c for discussion of implementation strategy.
1808
 */
1809
static void fe_sq2(fe h, const fe f)
1810
{
1811
    int32_t f0 = f[0];
1812
    int32_t f1 = f[1];
1813
    int32_t f2 = f[2];
1814
    int32_t f3 = f[3];
1815
    int32_t f4 = f[4];
1816
    int32_t f5 = f[5];
1817
    int32_t f6 = f[6];
1818
    int32_t f7 = f[7];
1819
    int32_t f8 = f[8];
1820
    int32_t f9 = f[9];
1821
    int32_t f0_2 = 2 * f0;
1822
    int32_t f1_2 = 2 * f1;
1823
    int32_t f2_2 = 2 * f2;
1824
    int32_t f3_2 = 2 * f3;
1825
    int32_t f4_2 = 2 * f4;
1826
    int32_t f5_2 = 2 * f5;
1827
    int32_t f6_2 = 2 * f6;
1828
    int32_t f7_2 = 2 * f7;
1829
    int32_t f5_38 = 38 * f5; /* 1.959375*2^30 */
1830
    int32_t f6_19 = 19 * f6; /* 1.959375*2^30 */
1831
    int32_t f7_38 = 38 * f7; /* 1.959375*2^30 */
1832
    int32_t f8_19 = 19 * f8; /* 1.959375*2^30 */
1833
    int32_t f9_38 = 38 * f9; /* 1.959375*2^30 */
1834
    int64_t f0f0 = f0 * (int64_t)f0;
1835
    int64_t f0f1_2 = f0_2 * (int64_t)f1;
1836
    int64_t f0f2_2 = f0_2 * (int64_t)f2;
1837
    int64_t f0f3_2 = f0_2 * (int64_t)f3;
1838
    int64_t f0f4_2 = f0_2 * (int64_t)f4;
1839
    int64_t f0f5_2 = f0_2 * (int64_t)f5;
1840
    int64_t f0f6_2 = f0_2 * (int64_t)f6;
1841
    int64_t f0f7_2 = f0_2 * (int64_t)f7;
1842
    int64_t f0f8_2 = f0_2 * (int64_t)f8;
1843
    int64_t f0f9_2 = f0_2 * (int64_t)f9;
1844
    int64_t f1f1_2 = f1_2 * (int64_t)f1;
1845
    int64_t f1f2_2 = f1_2 * (int64_t)f2;
1846
    int64_t f1f3_4 = f1_2 * (int64_t)f3_2;
1847
    int64_t f1f4_2 = f1_2 * (int64_t)f4;
1848
    int64_t f1f5_4 = f1_2 * (int64_t)f5_2;
1849
    int64_t f1f6_2 = f1_2 * (int64_t)f6;
1850
    int64_t f1f7_4 = f1_2 * (int64_t)f7_2;
1851
    int64_t f1f8_2 = f1_2 * (int64_t)f8;
1852
    int64_t f1f9_76 = f1_2 * (int64_t)f9_38;
1853
    int64_t f2f2 = f2 * (int64_t)f2;
1854
    int64_t f2f3_2 = f2_2 * (int64_t)f3;
1855
    int64_t f2f4_2 = f2_2 * (int64_t)f4;
1856
    int64_t f2f5_2 = f2_2 * (int64_t)f5;
1857
    int64_t f2f6_2 = f2_2 * (int64_t)f6;
1858
    int64_t f2f7_2 = f2_2 * (int64_t)f7;
1859
    int64_t f2f8_38 = f2_2 * (int64_t)f8_19;
1860
    int64_t f2f9_38 = f2 * (int64_t)f9_38;
1861
    int64_t f3f3_2 = f3_2 * (int64_t)f3;
1862
    int64_t f3f4_2 = f3_2 * (int64_t)f4;
1863
    int64_t f3f5_4 = f3_2 * (int64_t)f5_2;
1864
    int64_t f3f6_2 = f3_2 * (int64_t)f6;
1865
    int64_t f3f7_76 = f3_2 * (int64_t)f7_38;
1866
    int64_t f3f8_38 = f3_2 * (int64_t)f8_19;
1867
    int64_t f3f9_76 = f3_2 * (int64_t)f9_38;
1868
    int64_t f4f4 = f4 * (int64_t)f4;
1869
    int64_t f4f5_2 = f4_2 * (int64_t)f5;
1870
    int64_t f4f6_38 = f4_2 * (int64_t)f6_19;
1871
    int64_t f4f7_38 = f4 * (int64_t)f7_38;
1872
    int64_t f4f8_38 = f4_2 * (int64_t)f8_19;
1873
    int64_t f4f9_38 = f4 * (int64_t)f9_38;
1874
    int64_t f5f5_38 = f5 * (int64_t)f5_38;
1875
    int64_t f5f6_38 = f5_2 * (int64_t)f6_19;
1876
    int64_t f5f7_76 = f5_2 * (int64_t)f7_38;
1877
    int64_t f5f8_38 = f5_2 * (int64_t)f8_19;
1878
    int64_t f5f9_76 = f5_2 * (int64_t)f9_38;
1879
    int64_t f6f6_19 = f6 * (int64_t)f6_19;
1880
    int64_t f6f7_38 = f6 * (int64_t)f7_38;
1881
    int64_t f6f8_38 = f6_2 * (int64_t)f8_19;
1882
    int64_t f6f9_38 = f6 * (int64_t)f9_38;
1883
    int64_t f7f7_38 = f7 * (int64_t)f7_38;
1884
    int64_t f7f8_38 = f7_2 * (int64_t)f8_19;
1885
    int64_t f7f9_76 = f7_2 * (int64_t)f9_38;
1886
    int64_t f8f8_19 = f8 * (int64_t)f8_19;
1887
    int64_t f8f9_38 = f8 * (int64_t)f9_38;
1888
    int64_t f9f9_38 = f9 * (int64_t)f9_38;
1889
    int64_t h0 = f0f0 + f1f9_76 + f2f8_38 + f3f7_76 + f4f6_38 + f5f5_38;
1890
    int64_t h1 = f0f1_2 + f2f9_38 + f3f8_38 + f4f7_38 + f5f6_38;
1891
    int64_t h2 = f0f2_2 + f1f1_2 + f3f9_76 + f4f8_38 + f5f7_76 + f6f6_19;
1892
    int64_t h3 = f0f3_2 + f1f2_2 + f4f9_38 + f5f8_38 + f6f7_38;
1893
    int64_t h4 = f0f4_2 + f1f3_4 + f2f2 + f5f9_76 + f6f8_38 + f7f7_38;
1894
    int64_t h5 = f0f5_2 + f1f4_2 + f2f3_2 + f6f9_38 + f7f8_38;
1895
    int64_t h6 = f0f6_2 + f1f5_4 + f2f4_2 + f3f3_2 + f7f9_76 + f8f8_19;
1896
    int64_t h7 = f0f7_2 + f1f6_2 + f2f5_2 + f3f4_2 + f8f9_38;
1897
    int64_t h8 = f0f8_2 + f1f7_4 + f2f6_2 + f3f5_4 + f4f4 + f9f9_38;
1898
    int64_t h9 = f0f9_2 + f1f8_2 + f2f7_2 + f3f6_2 + f4f5_2;
1899
    int64_t carry0;
1900
    int64_t carry1;
1901
    int64_t carry2;
1902
    int64_t carry3;
1903
    int64_t carry4;
1904
    int64_t carry5;
1905
    int64_t carry6;
1906
    int64_t carry7;
1907
    int64_t carry8;
1908
    int64_t carry9;
1909
1910
    h0 += h0;
1911
    h1 += h1;
1912
    h2 += h2;
1913
    h3 += h3;
1914
    h4 += h4;
1915
    h5 += h5;
1916
    h6 += h6;
1917
    h7 += h7;
1918
    h8 += h8;
1919
    h9 += h9;
1920
1921
    carry0 = h0 + (1 << 25);
1922
    h1 += carry0 >> 26;
1923
    h0 -= carry0 & kTop38Bits;
1924
    carry4 = h4 + (1 << 25);
1925
    h5 += carry4 >> 26;
1926
    h4 -= carry4 & kTop38Bits;
1927
1928
    carry1 = h1 + (1 << 24);
1929
    h2 += carry1 >> 25;
1930
    h1 -= carry1 & kTop39Bits;
1931
    carry5 = h5 + (1 << 24);
1932
    h6 += carry5 >> 25;
1933
    h5 -= carry5 & kTop39Bits;
1934
1935
    carry2 = h2 + (1 << 25);
1936
    h3 += carry2 >> 26;
1937
    h2 -= carry2 & kTop38Bits;
1938
    carry6 = h6 + (1 << 25);
1939
    h7 += carry6 >> 26;
1940
    h6 -= carry6 & kTop38Bits;
1941
1942
    carry3 = h3 + (1 << 24);
1943
    h4 += carry3 >> 25;
1944
    h3 -= carry3 & kTop39Bits;
1945
    carry7 = h7 + (1 << 24);
1946
    h8 += carry7 >> 25;
1947
    h7 -= carry7 & kTop39Bits;
1948
1949
    carry4 = h4 + (1 << 25);
1950
    h5 += carry4 >> 26;
1951
    h4 -= carry4 & kTop38Bits;
1952
    carry8 = h8 + (1 << 25);
1953
    h9 += carry8 >> 26;
1954
    h8 -= carry8 & kTop38Bits;
1955
1956
    carry9 = h9 + (1 << 24);
1957
    h0 += (carry9 >> 25) * 19;
1958
    h9 -= carry9 & kTop39Bits;
1959
1960
    carry0 = h0 + (1 << 25);
1961
    h1 += carry0 >> 26;
1962
    h0 -= carry0 & kTop38Bits;
1963
1964
    h[0] = (int32_t)h0;
1965
    h[1] = (int32_t)h1;
1966
    h[2] = (int32_t)h2;
1967
    h[3] = (int32_t)h3;
1968
    h[4] = (int32_t)h4;
1969
    h[5] = (int32_t)h5;
1970
    h[6] = (int32_t)h6;
1971
    h[7] = (int32_t)h7;
1972
    h[8] = (int32_t)h8;
1973
    h[9] = (int32_t)h9;
1974
}
1975
1976
#endif /* !BASE_2_51_IMPLEMENTED */
1977
1978
static void fe_pow22523(fe out, const fe z)
1979
0
{
1980
0
    fe t0;
1981
0
    fe t1;
1982
0
    fe t2;
1983
0
    int i;
1984
1985
0
    fe_sq(t0, z);
1986
0
    fe_sq(t1, t0);
1987
0
    for (i = 1; i < 2; ++i) {
1988
0
        fe_sq(t1, t1);
1989
0
    }
1990
0
    fe_mul(t1, z, t1);
1991
0
    fe_mul(t0, t0, t1);
1992
0
    fe_sq(t0, t0);
1993
0
    fe_mul(t0, t1, t0);
1994
0
    fe_sq(t1, t0);
1995
0
    for (i = 1; i < 5; ++i) {
1996
0
        fe_sq(t1, t1);
1997
0
    }
1998
0
    fe_mul(t0, t1, t0);
1999
0
    fe_sq(t1, t0);
2000
0
    for (i = 1; i < 10; ++i) {
2001
0
        fe_sq(t1, t1);
2002
0
    }
2003
0
    fe_mul(t1, t1, t0);
2004
0
    fe_sq(t2, t1);
2005
0
    for (i = 1; i < 20; ++i) {
2006
0
        fe_sq(t2, t2);
2007
0
    }
2008
0
    fe_mul(t1, t2, t1);
2009
0
    fe_sq(t1, t1);
2010
0
    for (i = 1; i < 10; ++i) {
2011
0
        fe_sq(t1, t1);
2012
0
    }
2013
0
    fe_mul(t0, t1, t0);
2014
0
    fe_sq(t1, t0);
2015
0
    for (i = 1; i < 50; ++i) {
2016
0
        fe_sq(t1, t1);
2017
0
    }
2018
0
    fe_mul(t1, t1, t0);
2019
0
    fe_sq(t2, t1);
2020
0
    for (i = 1; i < 100; ++i) {
2021
0
        fe_sq(t2, t2);
2022
0
    }
2023
0
    fe_mul(t1, t2, t1);
2024
0
    fe_sq(t1, t1);
2025
0
    for (i = 1; i < 50; ++i) {
2026
0
        fe_sq(t1, t1);
2027
0
    }
2028
0
    fe_mul(t0, t1, t0);
2029
0
    fe_sq(t0, t0);
2030
0
    for (i = 1; i < 2; ++i) {
2031
0
        fe_sq(t0, t0);
2032
0
    }
2033
0
    fe_mul(out, t0, z);
2034
0
}
2035
2036
/*
2037
 * ge means group element.
2038
 *
2039
 * Here the group is the set of pairs (x,y) of field elements (see fe.h)
2040
 * satisfying -x^2 + y^2 = 1 + d x^2y^2
2041
 * where d = -121665/121666.
2042
 *
2043
 * Representations:
2044
 *   ge_p2 (projective): (X:Y:Z) satisfying x=X/Z, y=Y/Z
2045
 *   ge_p3 (extended): (X:Y:Z:T) satisfying x=X/Z, y=Y/Z, XY=ZT
2046
 *   ge_p1p1 (completed): ((X:Z),(Y:T)) satisfying x=X/Z, y=Y/T
2047
 *   ge_precomp (Duif): (y+x,y-x,2dxy)
2048
 */
2049
typedef struct {
2050
    fe X;
2051
    fe Y;
2052
    fe Z;
2053
} ge_p2;
2054
2055
typedef struct {
2056
    fe X;
2057
    fe Y;
2058
    fe Z;
2059
    fe T;
2060
} ge_p3;
2061
2062
typedef struct {
2063
    fe X;
2064
    fe Y;
2065
    fe Z;
2066
    fe T;
2067
} ge_p1p1;
2068
2069
typedef struct {
2070
    fe yplusx;
2071
    fe yminusx;
2072
    fe xy2d;
2073
} ge_precomp;
2074
2075
typedef struct {
2076
    fe YplusX;
2077
    fe YminusX;
2078
    fe Z;
2079
    fe T2d;
2080
} ge_cached;
2081
2082
static void ge_tobytes(uint8_t *s, const ge_p2 *h)
2083
0
{
2084
0
    fe recip;
2085
0
    fe x;
2086
0
    fe y;
2087
2088
0
    fe_invert(recip, h->Z);
2089
0
    fe_mul(x, h->X, recip);
2090
0
    fe_mul(y, h->Y, recip);
2091
0
    fe_tobytes(s, y);
2092
0
    s[31] ^= fe_isnegative(x) << 7;
2093
0
}
2094
2095
static void ge_p3_tobytes(uint8_t *s, const ge_p3 *h)
2096
0
{
2097
0
    fe recip;
2098
0
    fe x;
2099
0
    fe y;
2100
2101
0
    fe_invert(recip, h->Z);
2102
0
    fe_mul(x, h->X, recip);
2103
0
    fe_mul(y, h->Y, recip);
2104
0
    fe_tobytes(s, y);
2105
0
    s[31] ^= fe_isnegative(x) << 7;
2106
0
}
2107
2108
#if defined(BASE_2_51_IMPLEMENTED)
2109
static const fe d = {
2110
    0x34dca135978a3, 0x1a8283b156ebd, 0x5e7a26001c029,
2111
    0x739c663a03cbb, 0x52036cee2b6ff
2112
};
2113
2114
static const fe sqrtm1 = {
2115
    0x61b274a0ea0b0, 0x0d5a5fc8f189d, 0x7ef5e9cbd0c60,
2116
    0x78595a6804c9e, 0x2b8324804fc1d
2117
};
2118
#else
2119
static const fe d = {
2120
    -10913610, 13857413, -15372611, 6949391, 114729,
2121
    -8787816, -6275908, -3247719, -18696448, -12055116
2122
};
2123
2124
static const fe sqrtm1 = {
2125
    -32595792, -7943725, 9377950, 3500415, 12389472,
2126
    -272473, -25146209, -2005654, 326686, 11406482
2127
};
2128
#endif
2129
2130
static int ge_frombytes_vartime(ge_p3 *h, const uint8_t *s)
2131
0
{
2132
0
    fe u;
2133
0
    fe v;
2134
0
    fe w;
2135
0
    fe vxx;
2136
0
    fe check;
2137
2138
0
    fe_frombytes(h->Y, s);
2139
0
    fe_1(h->Z);
2140
0
    fe_sq(u, h->Y);
2141
0
    fe_mul(v, u, d);
2142
0
    fe_sub(u, u, h->Z); /* u = y^2-1 */
2143
0
    fe_add(v, v, h->Z); /* v = dy^2+1 */
2144
2145
0
    fe_mul(w, u, v); /* w = u*v */
2146
2147
0
    fe_pow22523(h->X, w); /* x = w^((q-5)/8) */
2148
0
    fe_mul(h->X, h->X, u); /* x = u * w^((q-5)/8) */
2149
2150
0
    fe_sq(vxx, h->X);
2151
0
    fe_mul(vxx, vxx, v);
2152
    /*
2153
     * u-vx^2 rather than vx^2-u: with the base 2^51 arithmetic the
2154
     * subtrahend must not itself be a difference, see fe51_sub.
2155
     */
2156
0
    fe_sub(check, u, vxx);
2157
0
    if (fe_isnonzero(check)) {
2158
0
        fe_add(check, vxx, u); /* vx^2+u */
2159
0
        if (fe_isnonzero(check)) {
2160
0
            return -1;
2161
0
        }
2162
0
        fe_mul(h->X, h->X, sqrtm1);
2163
0
    }
2164
2165
0
    if (fe_isnegative(h->X) != (s[31] >> 7)) {
2166
0
        fe_neg(h->X, h->X);
2167
0
    }
2168
2169
0
    fe_mul(h->T, h->X, h->Y);
2170
0
    return 0;
2171
0
}
2172
2173
static void ge_p2_0(ge_p2 *h)
2174
0
{
2175
0
    fe_0(h->X);
2176
0
    fe_1(h->Y);
2177
0
    fe_1(h->Z);
2178
0
}
2179
2180
static void ge_p3_0(ge_p3 *h)
2181
0
{
2182
0
    fe_0(h->X);
2183
0
    fe_1(h->Y);
2184
0
    fe_1(h->Z);
2185
0
    fe_0(h->T);
2186
0
}
2187
2188
static void ge_precomp_0(ge_precomp *h)
2189
0
{
2190
0
    fe_1(h->yplusx);
2191
0
    fe_1(h->yminusx);
2192
0
    fe_0(h->xy2d);
2193
0
}
2194
2195
/* r = p */
2196
static void ge_p3_to_p2(ge_p2 *r, const ge_p3 *p)
2197
0
{
2198
0
    fe_copy(r->X, p->X);
2199
0
    fe_copy(r->Y, p->Y);
2200
0
    fe_copy(r->Z, p->Z);
2201
0
}
2202
2203
#if defined(BASE_2_51_IMPLEMENTED)
2204
static const fe d2 = {
2205
    0x69b9426b2f159, 0x35050762add7a, 0x3cf44c0038052,
2206
    0x6738cc7407977, 0x2406d9dc56dff
2207
};
2208
#else
2209
static const fe d2 = {
2210
    -21827239, -5839606, -30745221, 13898782, 229458,
2211
    15978800, -12551817, -6495438, 29715968, 9444199
2212
};
2213
#endif
2214
2215
/* r = p */
2216
static void ge_p3_to_cached(ge_cached *r, const ge_p3 *p)
2217
0
{
2218
0
    fe_add(r->YplusX, p->Y, p->X);
2219
0
    fe_sub(r->YminusX, p->Y, p->X);
2220
0
    fe_copy(r->Z, p->Z);
2221
0
    fe_mul(r->T2d, p->T, d2);
2222
0
}
2223
2224
/* r = p */
2225
static void ge_p1p1_to_p2(ge_p2 *r, const ge_p1p1 *p)
2226
0
{
2227
0
    fe_mul(r->X, p->X, p->T);
2228
0
    fe_mul(r->Y, p->Y, p->Z);
2229
0
    fe_mul(r->Z, p->Z, p->T);
2230
0
}
2231
2232
/* r = p */
2233
static void ge_p1p1_to_p3(ge_p3 *r, const ge_p1p1 *p)
2234
0
{
2235
0
    fe_mul(r->X, p->X, p->T);
2236
0
    fe_mul(r->Y, p->Y, p->Z);
2237
0
    fe_mul(r->Z, p->Z, p->T);
2238
0
    fe_mul(r->T, p->X, p->Y);
2239
0
}
2240
2241
/* r = 2 * p */
2242
static void ge_p2_dbl(ge_p1p1 *r, const ge_p2 *p)
2243
0
{
2244
0
    fe t0;
2245
2246
0
    fe_sq(r->X, p->X);
2247
0
    fe_sq(r->Z, p->Y);
2248
0
    fe_sq2(r->T, p->Z);
2249
0
    fe_add(r->Y, p->X, p->Y);
2250
0
    fe_sq(t0, r->Y);
2251
0
    fe_add(r->Y, r->Z, r->X);
2252
    /*
2253
     * T = 2Z^2 - (Y^2 - X^2) is computed as (2Z^2 - Y^2) + X^2: with the
2254
     * base 2^51 arithmetic the subtrahend must not itself be a difference,
2255
     * see fe51_sub.
2256
     */
2257
0
    fe_sub(r->T, r->T, r->Z);
2258
0
    fe_add(r->T, r->T, r->X);
2259
0
    fe_sub(r->Z, r->Z, r->X);
2260
0
    fe_sub(r->X, t0, r->Y);
2261
0
}
2262
2263
/* r = 2 * p */
2264
static void ge_p3_dbl(ge_p1p1 *r, const ge_p3 *p)
2265
0
{
2266
0
    ge_p2 q;
2267
0
    ge_p3_to_p2(&q, p);
2268
0
    ge_p2_dbl(r, &q);
2269
0
}
2270
2271
/* r = p + q */
2272
static void ge_madd(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q)
2273
0
{
2274
0
    fe t0;
2275
2276
0
    fe_add(r->X, p->Y, p->X);
2277
0
    fe_sub(r->Y, p->Y, p->X);
2278
0
    fe_mul(r->Z, r->X, q->yplusx);
2279
0
    fe_mul(r->Y, r->Y, q->yminusx);
2280
0
    fe_mul(r->T, q->xy2d, p->T);
2281
0
    fe_add(t0, p->Z, p->Z);
2282
0
    fe_sub(r->X, r->Z, r->Y);
2283
0
    fe_add(r->Y, r->Z, r->Y);
2284
0
    fe_add(r->Z, t0, r->T);
2285
0
    fe_sub(r->T, t0, r->T);
2286
0
}
2287
2288
/* r = p - q */
2289
static void ge_msub(ge_p1p1 *r, const ge_p3 *p, const ge_precomp *q)
2290
0
{
2291
0
    fe t0;
2292
2293
0
    fe_add(r->X, p->Y, p->X);
2294
0
    fe_sub(r->Y, p->Y, p->X);
2295
0
    fe_mul(r->Z, r->X, q->yminusx);
2296
0
    fe_mul(r->Y, r->Y, q->yplusx);
2297
0
    fe_mul(r->T, q->xy2d, p->T);
2298
0
    fe_add(t0, p->Z, p->Z);
2299
0
    fe_sub(r->X, r->Z, r->Y);
2300
0
    fe_add(r->Y, r->Z, r->Y);
2301
0
    fe_sub(r->Z, t0, r->T);
2302
0
    fe_add(r->T, t0, r->T);
2303
0
}
2304
2305
/* r = p + q */
2306
static void ge_add(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q)
2307
0
{
2308
0
    fe t0;
2309
2310
0
    fe_add(r->X, p->Y, p->X);
2311
0
    fe_sub(r->Y, p->Y, p->X);
2312
0
    fe_mul(r->Z, r->X, q->YplusX);
2313
0
    fe_mul(r->Y, r->Y, q->YminusX);
2314
0
    fe_mul(r->T, q->T2d, p->T);
2315
0
    fe_mul(r->X, p->Z, q->Z);
2316
0
    fe_add(t0, r->X, r->X);
2317
0
    fe_sub(r->X, r->Z, r->Y);
2318
0
    fe_add(r->Y, r->Z, r->Y);
2319
0
    fe_add(r->Z, t0, r->T);
2320
0
    fe_sub(r->T, t0, r->T);
2321
0
}
2322
2323
/* r = p - q */
2324
static void ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q)
2325
0
{
2326
0
    fe t0;
2327
2328
0
    fe_add(r->X, p->Y, p->X);
2329
0
    fe_sub(r->Y, p->Y, p->X);
2330
0
    fe_mul(r->Z, r->X, q->YminusX);
2331
0
    fe_mul(r->Y, r->Y, q->YplusX);
2332
0
    fe_mul(r->T, q->T2d, p->T);
2333
0
    fe_mul(r->X, p->Z, q->Z);
2334
0
    fe_add(t0, r->X, r->X);
2335
0
    fe_sub(r->X, r->Z, r->Y);
2336
0
    fe_add(r->Y, r->Z, r->Y);
2337
0
    fe_sub(r->Z, t0, r->T);
2338
0
    fe_add(r->T, t0, r->T);
2339
0
}
2340
2341
static uint8_t equal(signed char b, signed char c)
2342
0
{
2343
0
    uint8_t ub = b;
2344
0
    uint8_t uc = c;
2345
0
    uint8_t x = ub ^ uc; /* 0: yes; 1..255: no */
2346
0
    uint32_t y = x; /* 0: yes; 1..255: no */
2347
0
    y -= 1; /* 4294967295: yes; 0..254: no */
2348
0
    y >>= 31; /* 1: yes; 0: no */
2349
0
    return y;
2350
0
}
2351
2352
static void cmov(ge_precomp *t, const ge_precomp *u, uint8_t b)
2353
0
{
2354
0
    fe_cmov(t->yplusx, u->yplusx, b);
2355
0
    fe_cmov(t->yminusx, u->yminusx, b);
2356
0
    fe_cmov(t->xy2d, u->xy2d, b);
2357
0
}
2358
2359
#if defined(BASE_2_51_IMPLEMENTED)
2360
/*
2361
 * k25519Precomp[i][j] = (j+1)*256^i*B
2362
 *
2363
 * Converted from the base 2^25.5 table below with
2364
 * util/curve25519-fe51-tables.py.
2365
 */
2366
static const ge_precomp k25519Precomp[32][8] = {
2367
    {
2368
        {
2369
            { 0x493c6f58c3b85, 0x0df7181c325f7, 0x0f50b0b3e4cb7,
2370
                0x5329385a44c32, 0x07cf9d3a33d4b },
2371
            { 0x03905d740913e, 0x0ba2817d673a2, 0x23e2827f4e67c,
2372
                0x133d2e0c21a34, 0x44fd2f9298f81 },
2373
            { 0x11205877aaa68, 0x479955893d579, 0x50d66309b67a0,
2374
                0x2d42d0dbee5ee, 0x6f117b689f0c6 },
2375
        },
2376
        {
2377
            { 0x4e7fc933c71d7, 0x2cf41feb6b244, 0x7581c0a7d1a76,
2378
                0x7172d534d32f0, 0x590c063fa87d2 },
2379
            { 0x1a56042b4d5a8, 0x189cc159ed153, 0x5b8deaa3cae04,
2380
                0x2aaf04f11b5d8, 0x6bb595a669c92 },
2381
            { 0x2a8b3a59b7a5f, 0x3abb359ef087f, 0x4f5a8c4db05af,
2382
                0x5b9a807d04205, 0x701af5b13ea50 },
2383
        },
2384
        {
2385
            { 0x5b0a84cee9730, 0x61d10c97155e4, 0x4059cc8096a10,
2386
                0x47a608da8014f, 0x7a164e1b9a80f },
2387
            { 0x11fe8a4fcd265, 0x7bcb8374faacc, 0x52f5af4ef4d4f,
2388
                0x5314098f98d10, 0x2ab91587555bd },
2389
            { 0x6933f0dd0d889, 0x44386bb4c4295, 0x3cb6d3162508c,
2390
                0x26368b872a2c6, 0x5a2826af12b9b },
2391
        },
2392
        {
2393
            { 0x351b98efc099f, 0x68fbfa4a7050e, 0x42a49959d971b,
2394
                0x393e51a469efd, 0x680e910321e58 },
2395
            { 0x6050a056818bf, 0x62acc1f5532bf, 0x28141ccc9fa25,
2396
                0x24d61f471e683, 0x27933f4c7445a },
2397
            { 0x3fbe9c476ff09, 0x0af6b982e4b42, 0x0ad1251ba78e5,
2398
                0x715aeedee7c88, 0x7f9d0cbf63553 },
2399
        },
2400
        {
2401
            { 0x2bc4408a5bb33, 0x078ebdda05442, 0x2ffb112354123,
2402
                0x375ee8df5862d, 0x2945ccf146e20 },
2403
            { 0x182c3a447d6ba, 0x22964e536eff2, 0x192821f540053,
2404
                0x2f9f19e788e5c, 0x154a7e73eb1b5 },
2405
            { 0x3dbf1812a8285, 0x0fa17ba3f9797, 0x6f69cb49c3820,
2406
                0x34d5a0db3858d, 0x43aabe696b3bb },
2407
        },
2408
        {
2409
            { 0x4eeeb77157131, 0x1201915f10741, 0x1669cda6c9c56,
2410
                0x45ec032db346d, 0x51e57bb6a2cc3 },
2411
            { 0x006b67b7d8ca4, 0x084fa44e72933, 0x1154ee55d6f8a,
2412
                0x4425d842e7390, 0x38b64c41ae417 },
2413
            { 0x4326702ea4b71, 0x06834376030b5, 0x0ef0512f9c380,
2414
                0x0f1a9f2512584, 0x10b8e91a9f0d6 },
2415
        },
2416
        {
2417
            { 0x25cd0944ea3bf, 0x75673b81a4d63, 0x150b925d1c0d4,
2418
                0x13f38d9294114, 0x461bea69283c9 },
2419
            { 0x72c9aaa3221b1, 0x267774474f74d, 0x064b0e9b28085,
2420
                0x3f04ef53b27c9, 0x1d6edd5d2e531 },
2421
            { 0x36dc801b8b3a2, 0x0e0a7d4935e30, 0x1deb7cecc0d7d,
2422
                0x053a94e20dd2c, 0x7a9fbb1c6a0f9 },
2423
        },
2424
        {
2425
            { 0x7596604dd3e8f, 0x6fc510e058b36, 0x3670c8db2cc0d,
2426
                0x297d899ce332f, 0x0915e76061bce },
2427
            { 0x75dedf39234d9, 0x01c36ab1f3c54, 0x0f08fee58f5da,
2428
                0x0e19613a0d637, 0x3a9024a1320e0 },
2429
            { 0x1f5d9c9a2911a, 0x7117994fafcf8, 0x2d8a8cae28dc5,
2430
                0x74ab1b2090c87, 0x26907c5c2ecc4 },
2431
        },
2432
    },
2433
    {
2434
        {
2435
            { 0x4dd0e632f9c1d, 0x2ced12622a5d9, 0x18de9614742da,
2436
                0x79ca96fdbb5d4, 0x6dd37d49a00ee },
2437
            { 0x3635449aa515e, 0x3e178d0475dab, 0x50b4712a19712,
2438
                0x2dcc2860ff4ad, 0x30d76d6f03d31 },
2439
            { 0x444172106e4c7, 0x01251afed2d88, 0x534fc9bed4f5a,
2440
                0x5d85a39cf5234, 0x10c697112e864 },
2441
        },
2442
        {
2443
            { 0x62aa08358c805, 0x46f440848e194, 0x447b771a8f52b,
2444
                0x377ba3269d31d, 0x03bf9baf55080 },
2445
            { 0x3c4277dbe5fde, 0x5a335afd44c92, 0x0c1164099753e,
2446
                0x70487006fe423, 0x25e61cabed66f },
2447
            { 0x3e128cc586604, 0x5968b2e8fc7e2, 0x049a3d5bd61cf,
2448
                0x116505b1ef6e6, 0x566d78634586e },
2449
        },
2450
        {
2451
            { 0x54285c65a2fd0, 0x55e62ccf87420, 0x46bb961b19044,
2452
                0x1153405712039, 0x14fba5f34793b },
2453
            { 0x7a49f9cc10834, 0x2b513788a22c6, 0x5ff4b6ef2395b,
2454
                0x2ec8e5af607bf, 0x33975bca5ecc3 },
2455
            { 0x746166985f7d4, 0x09939000ae79a, 0x5844c7964f97a,
2456
                0x13617e1f95b3d, 0x14829cea83fc5 },
2457
        },
2458
        {
2459
            { 0x70b2f4e71ecb8, 0x728148efc643c, 0x0753e03995b76,
2460
                0x5bf5fb2ab6767, 0x05fc3bc4535d7 },
2461
            { 0x37b8497dd95c2, 0x61549d6b4ffe8, 0x217a22db1d138,
2462
                0x0b9cf062eb09e, 0x2fd9c71e5f758 },
2463
            { 0x0b3ae52afdedd, 0x19da76619e497, 0x6fa0654d2558e,
2464
                0x78219d25e41d4, 0x373767475c651 },
2465
        },
2466
        {
2467
            { 0x095cb14246590, 0x002d82aa6ac68, 0x442f183bc4851,
2468
                0x6464f1c0a0644, 0x6bf5905730907 },
2469
            { 0x299fd40d1add9, 0x5f2de9a04e5f7, 0x7c0eebacc1c59,
2470
                0x4cca1b1f8290a, 0x1fbea56c3b18f },
2471
            { 0x778f1e1415b8a, 0x6f75874efc1f4, 0x28a694019027f,
2472
                0x52b37a96bdc4d, 0x02521cf67a635 },
2473
        },
2474
        {
2475
            { 0x46720772f5ee4, 0x632c0f359d622, 0x2b2092ba3e252,
2476
                0x662257c112680, 0x001753d9f7cd6 },
2477
            { 0x7ee0b0a9d5294, 0x381fbeb4cca27, 0x7841f3a3e639d,
2478
                0x676ea30c3445f, 0x3fa00a7e71382 },
2479
            { 0x1232d963ddb34, 0x35692e70b078d, 0x247ca14777a1f,
2480
                0x6db556be8fcd0, 0x12b5fe2fa048e },
2481
        },
2482
        {
2483
            { 0x37c26ad6f1e92, 0x46a0971227be5, 0x4722f0d2d9b4c,
2484
                0x3dc46204ee03a, 0x6f7e93c20796c },
2485
            { 0x0fbc496fce34d, 0x575be6b7dae3e, 0x4a31585cee609,
2486
                0x037e9023930ff, 0x749b76f96fb12 },
2487
            { 0x2f604aea6ae05, 0x637dc939323eb, 0x3fdad9b048d47,
2488
                0x0a8b0d4045af7, 0x0fcec10f01e02 },
2489
        },
2490
        {
2491
            { 0x2d29dc4244e45, 0x6927b1bc147be, 0x0308534ac0839,
2492
                0x4853664033f41, 0x413779166feab },
2493
            { 0x558a649fe1e44, 0x44635aeefcc89, 0x1ff434887f2ba,
2494
                0x0f981220e2d44, 0x4901aa7183c51 },
2495
            { 0x1b7548c1af8f0, 0x7848c53368116, 0x01b64e7383de9,
2496
                0x109fbb0587c8f, 0x41bb887b726d1 },
2497
        },
2498
    },
2499
    {
2500
        {
2501
            { 0x34c597c6691ae, 0x7a150b6990fc4, 0x52beb9d922274,
2502
                0x70eed7164861a, 0x0a871e070c6a9 },
2503
            { 0x07d44744346be, 0x282b6a564a81d, 0x4ed80f875236b,
2504
                0x6fbbe1d450c50, 0x4eb728c12fcdb },
2505
            { 0x1b5994bbc8989, 0x74b7ba84c0660, 0x75678f1cdaeb8,
2506
                0x23206b0d6f10c, 0x3ee7300f2685d },
2507
        },
2508
        {
2509
            { 0x27947841e7518, 0x32c7388dae87f, 0x414add3971be9,
2510
                0x01850832f0ef1, 0x7d47c6a2cfb89 },
2511
            { 0x255e49e7dd6b7, 0x38c2163d59eba, 0x3861f2a005845,
2512
                0x2e11e4ccbaec9, 0x1381576297912 },
2513
            { 0x2d0148ef0d6e0, 0x3522a8de787fb, 0x2ee055e74f9d2,
2514
                0x64038f6310813, 0x148cf58d34c9e },
2515
        },
2516
        {
2517
            { 0x72f7d9ae4756d, 0x7711e690ffc4a, 0x582a2355b0d16,
2518
                0x0dccfe885b6b4, 0x278febad4eaea },
2519
            { 0x492f67934f027, 0x7ded0815528d4, 0x58461511a6612,
2520
                0x5ea2e50de1544, 0x3ff2fa1ebd5db },
2521
            { 0x2681f8c933966, 0x3840521931635, 0x674f14a308652,
2522
                0x3bd9c88a94890, 0x4104dd02fe9c6 },
2523
        },
2524
        {
2525
            { 0x14e06db096ab8, 0x1219c89e6b024, 0x278abd486a2db,
2526
                0x240b292609520, 0x0165b5a48efca },
2527
            { 0x2bf5e1124422a, 0x673146756ae56, 0x14ad99a87e830,
2528
                0x1eaca65b080fd, 0x2c863b00afaf5 },
2529
            { 0x0a474a0846a76, 0x099a5ef981e32, 0x2a8ae3c4bbfe6,
2530
                0x45c34af14832c, 0x591b67d9bffec },
2531
        },
2532
        {
2533
            { 0x1b3719f18b55d, 0x754318c83d337, 0x27c17b7919797,
2534
                0x145b084089b61, 0x489b4f8670301 },
2535
            { 0x70d1c80b49bfa, 0x3d57e7d914625, 0x3c0722165e545,
2536
                0x5e5b93819e04f, 0x3de02ec7ca8f7 },
2537
            { 0x2102d3aeb92ef, 0x68c22d50c3a46, 0x42ea89385894e,
2538
                0x75f9ebf55f38c, 0x49f5fbba496cb },
2539
        },
2540
        {
2541
            { 0x5628c1e9c572e, 0x598b108e822ab, 0x55d8fae29361a,
2542
                0x0adc8d1a97b28, 0x06a1a6c288675 },
2543
            { 0x49a108a5bcfd4, 0x6178c8e7d6612, 0x1f03473710375,
2544
                0x73a49614a6098, 0x5604a86dcbfa6 },
2545
            { 0x0d1d47c1764b6, 0x01c08316a2e51, 0x2b3db45c95045,
2546
                0x1634f818d300c, 0x20989e89fe274 },
2547
        },
2548
        {
2549
            { 0x4278b85eaec2e, 0x0ef59657be2ce, 0x72fd169588770,
2550
                0x2e9b205260b30, 0x730b9950f7059 },
2551
            { 0x777fd3a2dcc7f, 0x594a9fb124932, 0x01f8e80ca15f0,
2552
                0x714d13cec3269, 0x0403ed1d0ca67 },
2553
            { 0x32d35874ec552, 0x1f3048df1b929, 0x300d73b179b23,
2554
                0x6e67be5a37d0b, 0x5bd7454308303 },
2555
        },
2556
        {
2557
            { 0x4932115e7792a, 0x457b9bbb930b8, 0x68f5d8b193226,
2558
                0x4164e8f1ed456, 0x5bb7db123067f },
2559
            { 0x2d19528b24cc2, 0x4ac66b8302ff3, 0x701c8d9fdad51,
2560
                0x6c1b35c5b3727, 0x133a78007380a },
2561
            { 0x1f467c6ca62be, 0x2c4232a5dc12c, 0x7551dc013b087,
2562
                0x0690c11b03bcd, 0x740dca6d58f0e },
2563
        },
2564
    },
2565
    {
2566
        {
2567
            { 0x28c570478433c, 0x1d8502873a463, 0x7641e7eded49c,
2568
                0x1ecedd54cf571, 0x2c03f5256c2b0 },
2569
            { 0x0ee0752cfce4e, 0x660dd8116fbe9, 0x55167130fffeb,
2570
                0x1c682b885955c, 0x161d25fa963ea },
2571
            { 0x718757b53a47d, 0x619e18b0f2f21, 0x5fbdfe4c1ec04,
2572
                0x5d798c81ebb92, 0x699468bdbd96b },
2573
        },
2574
        {
2575
            { 0x53de66aa91948, 0x045f81a599b1b, 0x3f7a8bd214193,
2576
                0x71d4da412331a, 0x293e1c4e6c4a2 },
2577
            { 0x72f46f4dafecf, 0x2948ffadef7a3, 0x11ecdfdf3bc04,
2578
                0x3c2e98ffeed25, 0x525219a473905 },
2579
            { 0x6134b925112e1, 0x6bb942bb406ed, 0x070c445c0dde2,
2580
                0x411d822c4d7a3, 0x5b605c447f032 },
2581
        },
2582
        {
2583
            { 0x1fec6f0e7f04c, 0x3cebc692c477d, 0x077986a19a95e,
2584
                0x6eaaaa1778b0f, 0x2f12fef4cc5ab },
2585
            { 0x5805920c47c89, 0x1924771f9972c, 0x38bbddf9fc040,
2586
                0x1f7000092b281, 0x24a76dcea8aeb },
2587
            { 0x522b2dfc0c740, 0x7e8193480e148, 0x33fd9a04341b9,
2588
                0x3c863678a20bc, 0x5e607b2518a43 },
2589
        },
2590
        {
2591
            { 0x4431ca596cf14, 0x015da7c801405, 0x03c9b6f8f10b5,
2592
                0x0346922934017, 0x201f33139e457 },
2593
            { 0x31d8f6cdf1818, 0x1f86c4b144b16, 0x39875b8d73e9d,
2594
                0x2fbf0d9ffa7b3, 0x5067acab6ccdd },
2595
            { 0x27f6b08039d51, 0x4802f8000dfaa, 0x09692a062c525,
2596
                0x1baea91075817, 0x397cba8862460 },
2597
        },
2598
        {
2599
            { 0x5c3fbc81379e7, 0x41bbc255e2f02, 0x6a3f756998650,
2600
                0x1297fd4e07c42, 0x771b4022c1e1c },
2601
            { 0x13093f05959b2, 0x1bd352f2ec618, 0x075789b88ea86,
2602
                0x61d1117ea48b9, 0x2339d320766e6 },
2603
            { 0x5d986513a2fa7, 0x63f3a99e11b0f, 0x28a0ecfd6b26d,
2604
                0x53b6835e18d8f, 0x331a189219971 },
2605
        },
2606
        {
2607
            { 0x12f3a9d7572af, 0x10d00e953c4ca, 0x603df116f2f8a,
2608
                0x33dc276e0e088, 0x1ac9619ff649a },
2609
            { 0x66f45fb4f80c6, 0x3cc38eeb9fea2, 0x107647270db1f,
2610
                0x710f1ea740dc8, 0x31167c6b83bdf },
2611
            { 0x33842524b1068, 0x77dd39d30fe45, 0x189432141a0d0,
2612
                0x088fe4eb8c225, 0x612436341f08b },
2613
        },
2614
        {
2615
            { 0x349e31a2d2638, 0x0137a7fa6b16c, 0x681ae92777edc,
2616
                0x222bfc5f8dc51, 0x1522aa3178d90 },
2617
            { 0x541db874e898d, 0x62d80fb841b33, 0x03e6ef027fa97,
2618
                0x7a03c9e9633e8, 0x46ebe2309e5ef },
2619
            { 0x02f5369614938, 0x356e5ada20587, 0x11bc89f6bf902,
2620
                0x036746419c8db, 0x45fe70f505243 },
2621
        },
2622
        {
2623
            { 0x24920c8951491, 0x107ec61944c5e, 0x72752e017c01f,
2624
                0x122b7dda2e97a, 0x16619f6db57a2 },
2625
            { 0x075a6960c0b8c, 0x6dde1c5e41b49, 0x42e3f516da341,
2626
                0x16a03fda8e79e, 0x428d1623a0e39 },
2627
            { 0x74a4401a308fd, 0x06ed4b9558109, 0x746f1f6a08867,
2628
                0x4636f5c6f2321, 0x1d81592d60bd3 },
2629
        },
2630
    },
2631
    {
2632
        {
2633
            { 0x5b69f7b85c5e8, 0x17a2d175650ec, 0x4cc3e6dbfc19e,
2634
                0x73e1d3873be0e, 0x3a5f6d51b0af8 },
2635
            { 0x68756a60dac5f, 0x55d757b8aec26, 0x3383df45f80bd,
2636
                0x6783f8c9f96a6, 0x20234a7789ecd },
2637
            { 0x20db67178b252, 0x73aa3da2c0eda, 0x79045c01c70d3,
2638
                0x1b37b15251059, 0x7cd682353cffe },
2639
        },
2640
        {
2641
            { 0x5cd6068acf4f3, 0x3079afc7a74cc, 0x58097650b64b4,
2642
                0x47fabac9c4e99, 0x3ef0253b2b2cd },
2643
            { 0x1a45bd887fab6, 0x65748076dc17c, 0x5b98000aa11a8,
2644
                0x4a1ecc9080974, 0x2838c8863bdc0 },
2645
            { 0x3b0cf4a465030, 0x022b8aef57a2d, 0x2ad0677e925ad,
2646
                0x4094167d7457a, 0x21dcb8a606a82 },
2647
        },
2648
        {
2649
            { 0x500fabe7731ba, 0x7cc53c3113351, 0x7cf65fe080d81,
2650
                0x3c5d966011ba1, 0x5d840dbf6c6f6 },
2651
            { 0x004468c9d9fc8, 0x5da8554796b8c, 0x3b8be70950025,
2652
                0x6d5892da6a609, 0x0bc3d08194a31 },
2653
            { 0x6380d309fe18b, 0x4d73c2cb8ee0d, 0x6b882adbac0b6,
2654
                0x36eabdddd4cbe, 0x3a4276232ac19 },
2655
        },
2656
        {
2657
            { 0x0c172db447ecb, 0x3f8c505b7a77f, 0x6a857f97f3f10,
2658
                0x4fcc0567fe03a, 0x0770c9e824e1a },
2659
            { 0x2432c8a7084fa, 0x47bf73ca8a968, 0x1639176262867,
2660
                0x5e8df4f8010ce, 0x1ff177cea16de },
2661
            { 0x1d99a45b5b5fd, 0x523674f2499ec, 0x0f8fa26182613,
2662
                0x58f7398048c98, 0x39f264fd41500 },
2663
        },
2664
        {
2665
            { 0x34aabfe097be1, 0x43bfc03253a33, 0x29bc7fe91b7f3,
2666
                0x0a761e4844a16, 0x65c621272c35f },
2667
            { 0x53417dbe7e29c, 0x54573827394f5, 0x565eea6f650dd,
2668
                0x42050748dc749, 0x1712d73468889 },
2669
            { 0x389f8ce3193dd, 0x2d424b8177ce5, 0x073fa0d3440cd,
2670
                0x139020cd49e97, 0x22f9800ab19ce },
2671
        },
2672
        {
2673
            { 0x29fdd9a6efdac, 0x7c694a9282840, 0x6f7cdeee44b3a,
2674
                0x55a3207b25cc3, 0x4171a4d38598c },
2675
            { 0x2368a3e9ef8cb, 0x454aa08e2ac0b, 0x490923f8fa700,
2676
                0x372aa9ea4582f, 0x13f416cd64762 },
2677
            { 0x758aa99c94c8c, 0x5f6001700ff44, 0x7694e488c01bd,
2678
                0x0d5fde948eed6, 0x508214fa574bd },
2679
        },
2680
        {
2681
            { 0x215bb53d003d6, 0x1179e792ca8c3, 0x1a0e96ac840a2,
2682
                0x22393e2bb3ab6, 0x3a7758a4c86cb },
2683
            { 0x269153ed6fe4b, 0x72a23aef89840, 0x052be5299699c,
2684
                0x3a5e5ef132316, 0x22f960ec6faba },
2685
            { 0x111f693ae5076, 0x3e3bfaa94ca90, 0x445799476b887,
2686
                0x24a0912464879, 0x5d9fd15f8de7f },
2687
        },
2688
        {
2689
            { 0x44d2aeed7521e, 0x50865d2c2a7e4, 0x2705b5238ea40,
2690
                0x46c70b25d3b97, 0x3bc187fa47eb9 },
2691
            { 0x408d36d63727f, 0x5faf8f6a66062, 0x2bb892da8de6b,
2692
                0x769d4f0c7e2e6, 0x332f35914f8fb },
2693
            { 0x70115ea86c20c, 0x16d88da24ada8, 0x1980622662adf,
2694
                0x501ebbc195a9d, 0x450d81ce906fb },
2695
        },
2696
    },
2697
    {
2698
        {
2699
            { 0x4d8961cae743f, 0x6bdc38c7dba0e, 0x7d3b4a7e1b463,
2700
                0x0844bdee2adf3, 0x4cbad279663ab },
2701
            { 0x3b6a1a6205275, 0x2e82791d06dcf, 0x23d72caa93c87,
2702
                0x5f0b7ab68aaf4, 0x2de25d4ba6345 },
2703
            { 0x19024a0d71fcd, 0x15f65115f101a, 0x4e99067149708,
2704
                0x119d8d1cba5af, 0x7d7fbcefe2007 },
2705
        },
2706
        {
2707
            { 0x45dc5f3c29094, 0x3455220b579af, 0x070c1631e068a,
2708
                0x26bc0630e9b21, 0x4f9cd196dcd8d },
2709
            { 0x71e6a266b2801, 0x09aae73e2df5d, 0x40dd8b219b1a3,
2710
                0x546fb4517de0d, 0x5975435e87b75 },
2711
            { 0x297d86a7b3768, 0x4835a2f4c6332, 0x070305f434160,
2712
                0x183dd014e56ae, 0x7ccdd084387a0 },
2713
        },
2714
        {
2715
            { 0x484186760cc93, 0x7435665533361, 0x02f686336b801,
2716
                0x5225446f64331, 0x3593ca848190c },
2717
            { 0x6422c6d260417, 0x212904817bb94, 0x5a319deb854f5,
2718
                0x7a9d4e060da7d, 0x428bd0ed61d0c },
2719
            { 0x3189a5e849aa7, 0x6acbb1f59b242, 0x7f6ef4753630c,
2720
                0x1f346292a2da9, 0x27398308da2d6 },
2721
        },
2722
        {
2723
            { 0x10e4c0a702453, 0x4daafa37bd734, 0x49f6bdc3e8961,
2724
                0x1feffdcecdae6, 0x572c2945492c3 },
2725
            { 0x38d28435ed413, 0x4064f19992858, 0x7680fbef543cd,
2726
                0x1aadd83d58d3c, 0x269597aebe8c3 },
2727
            { 0x7c745d6cd30be, 0x27c7755df78ef, 0x1776833937fa3,
2728
                0x5405116441855, 0x7f985498c05bc },
2729
        },
2730
        {
2731
            { 0x615520fbf6363, 0x0b9e9bf74da6a, 0x4fe8308201169,
2732
                0x173f76127de43, 0x30f2653cd69b1 },
2733
            { 0x1ce889f0be117, 0x36f6a94510709, 0x7f248720016b4,
2734
                0x1821ed1e1cf91, 0x76c2ec470a31f },
2735
            { 0x0c938aac10c85, 0x41b64ed797141, 0x1beb1c1185e6d,
2736
                0x1ed5490600f07, 0x2f1273f159647 },
2737
        },
2738
        {
2739
            { 0x08bd755a70bc0, 0x49e3a885ce609, 0x16585881b5ad6,
2740
                0x3c27568d34f5e, 0x38ac1997edc5f },
2741
            { 0x1fc7c8ae01e11, 0x2094d5573e8e7, 0x5ca3cbbf549d2,
2742
                0x4f920ecc54143, 0x5d9e572ad85b6 },
2743
            { 0x6b517a751b13b, 0x0cfd370b180cc, 0x5377925d1f41a,
2744
                0x34e56566008a2, 0x22dfcd9cbfe9e },
2745
        },
2746
        {
2747
            { 0x459b4103be0a1, 0x59a4b3f2d2add, 0x7d734c8bb8eeb,
2748
                0x2393cbe594a09, 0x0fe9877824cde },
2749
            { 0x3d2e0c30d0cd9, 0x3f597686671bb, 0x0aa587eb63999,
2750
                0x0e3c7b592c619, 0x6b2916c05448c },
2751
            { 0x334d10aba913b, 0x045cdb581cfdb, 0x5e3e0553a8f36,
2752
                0x50bb3041effb2, 0x4c303f307ff00 },
2753
        },
2754
        {
2755
            { 0x403580dd94500, 0x48df77d92653f, 0x38a9fe3b349ea,
2756
                0x0ea89850aafe1, 0x416b151ab706a },
2757
            { 0x23bd617b28c85, 0x6e72ee77d5a61, 0x1a972ff174dde,
2758
                0x3e2636373c60f, 0x0d61b8f78b2ab },
2759
            { 0x0d7efe9c136b0, 0x1ab1c89640ad5, 0x55f82aef41f97,
2760
                0x46957f317ed0d, 0x191a2af74277e },
2761
        },
2762
    },
2763
    {
2764
        {
2765
            { 0x62b434f460efb, 0x294c6c0fad3fc, 0x68368937b4c0f,
2766
                0x5c9f82910875b, 0x237e7dbe00545 },
2767
            { 0x6f74bc53c1431, 0x1c40e5dbbd9c2, 0x6c8fb9cae5c97,
2768
                0x4845c5ce1b7da, 0x7e2e0e450b5cc },
2769
            { 0x575ed6701b430, 0x4d3e17fa20026, 0x791fc888c4253,
2770
                0x2f1ba99078ac1, 0x71afa699b1115 },
2771
        },
2772
        {
2773
            { 0x23c1c473b50d6, 0x3e7671de21d48, 0x326fa5547a1e8,
2774
                0x50e4dc25fafd9, 0x00731fbc78f89 },
2775
            { 0x66f9b3953b61d, 0x555f4283cccb9, 0x7dd67fb1960e7,
2776
                0x14707a1affed4, 0x021142e9c2b1c },
2777
            { 0x0c71848f81880, 0x44bd9d8233c86, 0x6e8578efe5830,
2778
                0x4045b6d7041b5, 0x4c4d6f3347e15 },
2779
        },
2780
        {
2781
            { 0x4ddfc988f1970, 0x4f6173ea365e1, 0x645daf9ae4588,
2782
                0x7d43763db623b, 0x38bf9500a88f9 },
2783
            { 0x7eccfc17d1fc9, 0x4ca280782831e, 0x7b8337db1d7d6,
2784
                0x5116def3895fb, 0x193fddaaa7e47 },
2785
            { 0x2c93c37e8876f, 0x3431a28c583fa, 0x49049da8bd879,
2786
                0x4b4a8407ac11c, 0x6a6fb99ebf0d4 },
2787
        },
2788
        {
2789
            { 0x122b5b6e423c6, 0x21e50dff1ddd6, 0x73d76324e75c0,
2790
                0x588485495418e, 0x136fda9f42c5e },
2791
            { 0x6c1bb560855eb, 0x71f127e13ad48, 0x5c6b304905aec,
2792
                0x3756b8e889bc7, 0x75f76914a3189 },
2793
            { 0x4dfb1a305bdd1, 0x3b3ff05811f29, 0x6ed62283cd92e,
2794
                0x65d1543ec52e1, 0x022183510be8d },
2795
        },
2796
        {
2797
            { 0x2710143307a7f, 0x3d88fb48bf3ab, 0x249eb4ec18f7a,
2798
                0x136115dff295f, 0x1387c441fd404 },
2799
            { 0x766385ead2d14, 0x0194f8b06095e, 0x08478f6823b62,
2800
                0x6018689d37308, 0x6a071ce17b806 },
2801
            { 0x3c3d187978af8, 0x7afe1c88276ba, 0x51df281c8ad68,
2802
                0x64906bda4245d, 0x3171b26aaf1ed },
2803
        },
2804
        {
2805
            { 0x5b7d8b28a47d1, 0x2c2ee149e34c1, 0x776f5629afc53,
2806
                0x1f4ea50fc49a9, 0x6c514a6334424 },
2807
            { 0x7319097564ca8, 0x1844ebc233525, 0x21d4543fdeee1,
2808
                0x1ad27aaff1bd2, 0x221fd4873cf08 },
2809
            { 0x2204f3a156341, 0x537414065a464, 0x43c0c3bedcf83,
2810
                0x5557e706ea620, 0x48daa596fb924 },
2811
        },
2812
        {
2813
            { 0x61d5dc84c9793, 0x47de83040c29e, 0x189deb26507e7,
2814
                0x4d4e6fadc479a, 0x58c837fa0e8a7 },
2815
            { 0x28e665ca59cc7, 0x165c715940dd9, 0x0785f3aa11c95,
2816
                0x57b98d7e38469, 0x676dd6fccad84 },
2817
            { 0x1688596fc9058, 0x66f6ad403619f, 0x4d759a87772ef,
2818
                0x7856e6173bea4, 0x1c4f73f2c6a57 },
2819
        },
2820
        {
2821
            { 0x6706efc7c3484, 0x6987839ec366d, 0x0731f95cf7f26,
2822
                0x3ae758ebce4bc, 0x70459adb7daf6 },
2823
            { 0x24fbd305fa0bb, 0x40a98cc75a1cf, 0x78ce1220a7533,
2824
                0x6217a10e1c197, 0x795ac80d1bf64 },
2825
            { 0x1db4991b42bb3, 0x469605b994372, 0x631e3715c9a58,
2826
                0x7e9cfefcf728f, 0x5fe162848ce21 },
2827
        },
2828
    },
2829
    {
2830
        {
2831
            { 0x1852d5d7cb208, 0x60d0fbe5ce50f, 0x5a1e246e37b75,
2832
                0x51aee05ffd590, 0x2b44c043677da },
2833
            { 0x1214fe194961a, 0x0e1ae39a9e9cb, 0x543c8b526f9f7,
2834
                0x119498067e91d, 0x4789d446fc917 },
2835
            { 0x487ab074eb78e, 0x1d33b5e8ce343, 0x13e419feb1b46,
2836
                0x2721f565de6a4, 0x60c52eef2bb9a },
2837
        },
2838
        {
2839
            { 0x3c5c27cae6d11, 0x36a9491956e05, 0x124bac9131da6,
2840
                0x3b6f7de202b5d, 0x70d77248d9b66 },
2841
            { 0x589bc3bfd8bf1, 0x6f93e6aa3416b, 0x4c0a3d6c1ae48,
2842
                0x55587260b586a, 0x10bc9c312ccfc },
2843
            { 0x2e84b3ec2a05b, 0x69da2f03c1551, 0x23a174661a67b,
2844
                0x209bca289f238, 0x63755bd3a976f },
2845
        },
2846
        {
2847
            { 0x7101897f1acb7, 0x3d82cb77b07b8, 0x684083d7769f5,
2848
                0x52b28472dce07, 0x2763751737c52 },
2849
            { 0x7a03e2ad10853, 0x213dcc6ad36ab, 0x1a6e240d5bdd6,
2850
                0x7c24ffcf8fedf, 0x0d8cc1c48bc16 },
2851
            { 0x402d36eb419a9, 0x7cef68c14a052, 0x0f1255bc2d139,
2852
                0x373e7d431186a, 0x70c2dd8a7ad16 },
2853
        },
2854
        {
2855
            { 0x4967db8ed7e13, 0x15aeed02f523a, 0x6149591d094bc,
2856
                0x672f204c17006, 0x32b8613816a53 },
2857
            { 0x194509f6fec0e, 0x528d8ca31acac, 0x7826d73b8b9fa,
2858
                0x24acb99e0f9b3, 0x2e0fac6363948 },
2859
            { 0x7f7bee448cd64, 0x4e10f10da0f3c, 0x3936cb9ab20e9,
2860
                0x7a0fc4fea6cd0, 0x4179215c735a4 },
2861
        },
2862
        {
2863
            { 0x633b9286bcd34, 0x6cab3badb9c95, 0x74e387edfbdfa,
2864
                0x14313c58a0fd9, 0x31fa85662241c },
2865
            { 0x094e7d7dced2a, 0x068fa738e118e, 0x41b640a5fee2b,
2866
                0x6bb709df019d4, 0x700344a30cd99 },
2867
            { 0x26c422e3622f4, 0x0f3066a05b5f0, 0x4e2448f0480a6,
2868
                0x244cde0dbf095, 0x24bb2312a9952 },
2869
        },
2870
        {
2871
            { 0x00c2af5f85c6b, 0x0609f4cf2883f, 0x6e86eb5a1ca13,
2872
                0x68b44a2efccd1, 0x0d1d2af9ffeb5 },
2873
            { 0x0ed1732de67c3, 0x308c369291635, 0x33ef348f2d250,
2874
                0x004475ea1a1bb, 0x0fee3e871e188 },
2875
            { 0x28aa132621edf, 0x42b244caf353b, 0x66b064cc2e08a,
2876
                0x6bb20020cbdd3, 0x16acd79718531 },
2877
        },
2878
        {
2879
            { 0x1c6c57887b6ad, 0x5abf21fd7592b, 0x50bd41253867a,
2880
                0x3800b71273151, 0x164ed34b18161 },
2881
            { 0x772af2d9b1d3d, 0x6d486448b4e5b, 0x2ce58dd8d18a8,
2882
                0x1849f67503c8b, 0x123e0ef6b9302 },
2883
            { 0x6d94c192fe69a, 0x5475222a2690f, 0x693789d86b8b3,
2884
                0x1f5c3bdfb69dc, 0x78da0fc61073f },
2885
        },
2886
        {
2887
            { 0x780f1680c3a94, 0x2a35d3cfcd453, 0x005e5cdc7ddf8,
2888
                0x6ee888078ac24, 0x054aa4b316b38 },
2889
            { 0x15d28e52bc66a, 0x30e1e0351cb7e, 0x30a2f74b11f8c,
2890
                0x39d120cd7de03, 0x2d25deeb256b1 },
2891
            { 0x0468d19267cb8, 0x38cdca9b5fbf9, 0x1bbb05c2ca1e2,
2892
                0x3b015758e9533, 0x134610a6ab7da },
2893
        },
2894
    },
2895
    {
2896
        {
2897
            { 0x265e777d1f515, 0x0f1f54c1e39a5, 0x2f01b95522646,
2898
                0x4fdd8db9dde6d, 0x654878cba97cc },
2899
            { 0x38ec78df6b0fe, 0x13caebea36a22, 0x5ebc6e54e5f6a,
2900
                0x32804903d0eb8, 0x2102fdba2b20d },
2901
            { 0x6e405055ce6a1, 0x5024a35a532d3, 0x1f69054daf29d,
2902
                0x15d1d0d7a8bd5, 0x0ad725db29ecb },
2903
        },
2904
        {
2905
            { 0x7bc0c9b056f85, 0x51cfebffaffd8, 0x44abbe94df549,
2906
                0x7ecbbd7e33121, 0x4f675f5302399 },
2907
            { 0x267b1834e2457, 0x6ae19c378bb88, 0x7457b5ed9d512,
2908
                0x3280d783d05fb, 0x4aefcffb71a03 },
2909
            { 0x536360415171e, 0x2313309077865, 0x251444334afbc,
2910
                0x2b0c3853756e8, 0x0bccbb72a2a86 },
2911
        },
2912
        {
2913
            { 0x55e4c50fe1296, 0x05fdd13efc30d, 0x1c0c6c380e5ee,
2914
                0x3e11de3fb62a8, 0x6678fd69108f3 },
2915
            { 0x6962feab1a9c8, 0x6aca28fb9a30b, 0x56db7ca1b9f98,
2916
                0x39f58497018dd, 0x4024f0ab59d6b },
2917
            { 0x6fa31636863c2, 0x10ae5a67e42b0, 0x27abbf01fda31,
2918
                0x380a7b9e64fbc, 0x2d42e2108ead4 },
2919
        },
2920
        {
2921
            { 0x17b0d0f537593, 0x16263c0c9842e, 0x4ab827e4539a4,
2922
                0x6370ddb43d73a, 0x420bf3a79b423 },
2923
            { 0x5131594dfd29b, 0x3a627e98d52fe, 0x1154041855661,
2924
                0x19175d09f8384, 0x676b2608b8d2d },
2925
            { 0x0ba651c5b2b47, 0x5862363701027, 0x0c4d6c219c6db,
2926
                0x0f03dff8658de, 0x745d2ffa9c0cf },
2927
        },
2928
        {
2929
            { 0x6df5721d34e6a, 0x4f32f767a0c06, 0x1d5abeac76e20,
2930
                0x41ce9e104e1e4, 0x06e15be54c1dc },
2931
            { 0x25a1e2bc9c8bd, 0x104c8f3b037ea, 0x405576fa96c98,
2932
                0x2e86a88e3876f, 0x1ae23ceb960cf },
2933
            { 0x25d871932994a, 0x6b9d63b560b6e, 0x2df2814c8d472,
2934
                0x0fbbee20aa4ed, 0x58ded861278ec },
2935
        },
2936
        {
2937
            { 0x35ba8b6c2c9a8, 0x1dea58b3185bf, 0x4b455cd23bbbe,
2938
                0x5ec19c04883f8, 0x08ba696b531d5 },
2939
            { 0x73793f266c55c, 0x0b988a9c93b02, 0x09b0ea32325db,
2940
                0x37cae71c17c5e, 0x2ff39de85485f },
2941
            { 0x53eeec3efc57a, 0x2fa9fe9022efd, 0x699c72c138154,
2942
                0x72a751ebd1ff8, 0x120633b4947cf },
2943
        },
2944
        {
2945
            { 0x531474912100a, 0x5afcdf7c0d057, 0x7a9e71b788ded,
2946
                0x5ef708f3b0c88, 0x07433be3cb393 },
2947
            { 0x4987891610042, 0x79d9d7f5d0172, 0x3c293013b9ec4,
2948
                0x0c2b85f39caca, 0x35d30a99b4d59 },
2949
            { 0x144c05ce997f4, 0x4960b8a347fef, 0x1da11f15d74f7,
2950
                0x54fac19c0fead, 0x2d873ede7af6d },
2951
        },
2952
        {
2953
            { 0x202e14e5df981, 0x2ea02bc3eb54c, 0x38875b2883564,
2954
                0x1298c513ae9dd, 0x0543618a01600 },
2955
            { 0x2316443373409, 0x5de95503b22af, 0x699201beae2df,
2956
                0x3db5849ff737a, 0x2e773654707fa },
2957
            { 0x2bdf4974c23c1, 0x4b3b9c8d261bd, 0x26ae8b2a9bc28,
2958
                0x3068210165c51, 0x4b1443362d079 },
2959
        },
2960
    },
2961
    {
2962
        {
2963
            { 0x454e91c529ccb, 0x24c98c6bf72cf, 0x0486594c3d89a,
2964
                0x7ae13a3d7fa3c, 0x17038418eaf66 },
2965
            { 0x4b7c7b66e1f7a, 0x4bea185efd998, 0x4fabc711055f8,
2966
                0x1fb9f7836fe38, 0x582f446752da6 },
2967
            { 0x17bd320324ce4, 0x51489117898c6, 0x1684d92a0410b,
2968
                0x6e4d90f78c5a7, 0x0c2a1c4bcda28 },
2969
        },
2970
        {
2971
            { 0x4814869bd6945, 0x7b7c391a45db8, 0x57316ac35b641,
2972
                0x641e31de9096a, 0x5a6a9b30a314d },
2973
            { 0x5c7d06f1f0447, 0x7db70f80b3a49, 0x6cb4a3ec89a78,
2974
                0x43be8ad81397d, 0x7c558bd1c6f64 },
2975
            { 0x41524d396463d, 0x1586b449e1a1d, 0x2f17e904aed8a,
2976
                0x7e1d2861d3c8e, 0x0404a5ca0afba },
2977
        },
2978
        {
2979
            { 0x49e1b2a416fd1, 0x51c6a0b316c57, 0x575a59ed71bdc,
2980
                0x74c021a1fec1e, 0x39527516e7f8e },
2981
            { 0x740070aa743d6, 0x16b64cbdd1183, 0x23f4b7b32eb43,
2982
                0x319aba58235b3, 0x46395bfdcadd9 },
2983
            { 0x7db2d1a5d9a9c, 0x79a200b85422f, 0x355bfaa71dd16,
2984
                0x00b77ea5f78aa, 0x76579a29e822d },
2985
        },
2986
        {
2987
            { 0x4b51352b434f2, 0x1327bd01c2667, 0x434d73b60c8a1,
2988
                0x3e0daa89443ba, 0x02c514bb2a277 },
2989
            { 0x68e7e49c02a17, 0x45795346fe8b6, 0x089306c8f3546,
2990
                0x6d89f6b2f88f6, 0x43a384dc9e05b },
2991
            { 0x3d5da8bf1b645, 0x7ded6a96a6d09, 0x6c3494fee2f4d,
2992
                0x02c989c8b6bd4, 0x1160920961548 },
2993
        },
2994
        {
2995
            { 0x05616369b4dcd, 0x4ecab86ac6f47, 0x3c60085d700b2,
2996
                0x0213ee10dfcea, 0x2f637d7491e6e },
2997
            { 0x5166929dacfaa, 0x190826b31f689, 0x4f55567694a7d,
2998
                0x705f4f7b1e522, 0x351e125bc5698 },
2999
            { 0x49b461af67bbe, 0x75915712c3a96, 0x69a67ef580c0d,
3000
                0x54d38ef70cffc, 0x7f182d06e7ce2 },
3001
        },
3002
        {
3003
            { 0x54b728e217522, 0x69a90971b0128, 0x51a40f2a963a3,
3004
                0x10be9ac12a6bf, 0x44acc043241c5 },
3005
            { 0x48e64ab0168ec, 0x2a2bdb8a86f4f, 0x7343b6b2d6929,
3006
                0x1d804aa8ce9a3, 0x67d4ac8c343e9 },
3007
            { 0x56bbb4f7a5777, 0x29230627c238f, 0x5ad1a122cd7fb,
3008
                0x0dea56e50e364, 0x556d1c8312ad7 },
3009
        },
3010
        {
3011
            { 0x06756b11be821, 0x462147e7bb03e, 0x26519743ebfe0,
3012
                0x782fc59682ab5, 0x097abe38cc8c7 },
3013
            { 0x740e30c8d3982, 0x7c2b47f4682fd, 0x5cd91b8c7dc1c,
3014
                0x77fa790f9e583, 0x746c6c6d1d824 },
3015
            { 0x1c9877ea52da4, 0x2b37b83a86189, 0x733af49310da5,
3016
                0x25e81161c04fb, 0x577e14a34bee8 },
3017
        },
3018
        {
3019
            { 0x6cebebd4dd72b, 0x340c1e442329f, 0x32347ffd1a93f,
3020
                0x14a89252cbbe0, 0x705304b8fb009 },
3021
            { 0x268ac61a73b0a, 0x206f234bebe1c, 0x5b403a7cbebe8,
3022
                0x7a160f09f4135, 0x60fa7ee96fd78 },
3023
            { 0x51d354d296ec6, 0x7cbf5a63b16c7, 0x2f50bb3cf0c14,
3024
                0x1feb385cac65a, 0x21398e0ca1635 },
3025
        },
3026
    },
3027
    {
3028
        {
3029
            { 0x0aaf9b4b75601, 0x26b91b5ae44f3, 0x6de808d7ab1c8,
3030
                0x6a769675530b0, 0x1bbfb284e98f7 },
3031
            { 0x5058a382b33f3, 0x175a91816913e, 0x4f6cdb96b8ae8,
3032
                0x17347c9da81d2, 0x5aa3ed9d95a23 },
3033
            { 0x777e9c7d96561, 0x28e58f006ccac, 0x541bbbb2cac49,
3034
                0x3e63282994cec, 0x4a07e14e5e895 },
3035
        },
3036
        {
3037
            { 0x358cdc477a49b, 0x3cc88fe02e481, 0x721aab7f4e36b,
3038
                0x0408cc9469953, 0x50af7aed84afa },
3039
            { 0x412cb980df999, 0x5e78dd8ee29dc, 0x171dff68c575d,
3040
                0x2015dd2f6ef49, 0x3f0bac391d313 },
3041
            { 0x7de0115f65be5, 0x4242c21364dc9, 0x6b75b64a66098,
3042
                0x0033c0102c085, 0x1921a316baebd },
3043
        },
3044
        {
3045
            { 0x2ad9ad9f3c18b, 0x5ec1638339aeb, 0x5703b6559a83b,
3046
                0x3fa9f4d05d612, 0x7b049deca062c },
3047
            { 0x22f7edfb870fc, 0x569eed677b128, 0x30937dcb0a5af,
3048
                0x758039c78ea1b, 0x6458df41e273a },
3049
            { 0x3e37a35444483, 0x661fdb7d27b99, 0x317761dd621e4,
3050
                0x7323c30026189, 0x6093dccbc2950 },
3051
        },
3052
        {
3053
            { 0x6eebe6084034b, 0x6cf01f70a8d7b, 0x0b41a54c6670a,
3054
                0x6c84b99bb55db, 0x6e3180c98b647 },
3055
            { 0x39a8585e0706d, 0x3167ce72663fe, 0x63d14ecdb4297,
3056
                0x4be21dcf970b8, 0x57d1ea084827a },
3057
            { 0x2b6e7a128b071, 0x5b27511755dcf, 0x08584c2930565,
3058
                0x68c7bda6f4159, 0x363e999ddd97b },
3059
        },
3060
        {
3061
            { 0x048dce24baec6, 0x2b75795ec05e3, 0x3bfa4c5da6dc9,
3062
                0x1aac8659e371e, 0x231f979bc6f9b },
3063
            { 0x043c135ee1fc4, 0x2a11c9919f2d5, 0x6334cc25dbacd,
3064
                0x295da17b400da, 0x48ee9b78693a0 },
3065
            { 0x1de4bcc2af3c6, 0x61fc411a3eb86, 0x53ed19ac12ec0,
3066
                0x209dbc6b804e0, 0x079bfa9b08792 },
3067
        },
3068
        {
3069
            { 0x1ed80a2d54245, 0x70efec72a5e79, 0x42151d42a822d,
3070
                0x1b5ebb6d631e8, 0x1ef4fb1594706 },
3071
            { 0x03a51da300df4, 0x467b52b561c72, 0x4d5920210e590,
3072
                0x0ca769e789685, 0x038c77f684817 },
3073
            { 0x65ee65b167bec, 0x052da19b850a9, 0x0408665656429,
3074
                0x7ab39596f9a4c, 0x575ee92a4a0bf },
3075
        },
3076
        {
3077
            { 0x6bc450aa4d801, 0x4f4a6773b0ba8, 0x6241b0b0ebc48,
3078
                0x40d9c4f1d9315, 0x200a1e7e382f5 },
3079
            { 0x080908a182fcf, 0x0532913b7ba98, 0x3dccf78c385c3,
3080
                0x68002dd5eaba9, 0x43d4e7112cd3f },
3081
            { 0x5b967eaf93ac5, 0x360acca580a31, 0x1c65fd5c6f262,
3082
                0x71c7f15c2ecab, 0x050eca52651e4 },
3083
        },
3084
        {
3085
            { 0x4397660e668ea, 0x7c2a75692f2f5, 0x3b29e7e6c66ef,
3086
                0x72ba658bcda9a, 0x6151c09fa131a },
3087
            { 0x31ade453f0c9c, 0x3dfee07737868, 0x611ecf7a7d411,
3088
                0x2637e6cbd64f6, 0x4b0ee6c21c58f },
3089
            { 0x55c0dfdf05d96, 0x405569dcf475e, 0x05c5c277498bb,
3090
                0x18588d95dc389, 0x1fef24fa800f0 },
3091
        },
3092
    },
3093
    {
3094
        {
3095
            { 0x2aff530976b86, 0x0d85a48c0845a, 0x796eb963642e0,
3096
                0x60bee50c4b626, 0x28005fe6c8340 },
3097
            { 0x653fb1aa73196, 0x607faec8306fa, 0x4e85ec83e5254,
3098
                0x09f56900584fd, 0x544d49292fc86 },
3099
            { 0x7ba9f34528688, 0x284a20fb42d5d, 0x3652cd9706ffe,
3100
                0x6fd7baddde6b3, 0x72e472930f316 },
3101
        },
3102
        {
3103
            { 0x3f635d32a7627, 0x0cbecacde00fe, 0x3411141eaa936,
3104
                0x21c1e42f3cb94, 0x1fee7f000fe06 },
3105
            { 0x5208c9781084f, 0x16468a1dc24d2, 0x7bf780ac540a8,
3106
                0x1a67eced75301, 0x5a9d2e8c2733a },
3107
            { 0x305da03dbf7e5, 0x1228699b7aeca, 0x12a23b2936bc9,
3108
                0x2a1bda56ae6e9, 0x00f94051ee040 },
3109
        },
3110
        {
3111
            { 0x793bb07af9753, 0x1e7b6ecd4fafd, 0x02c7b1560fb43,
3112
                0x2296734cc5fb7, 0x47b7ffd25dd40 },
3113
            { 0x56b23c3d330b2, 0x37608e360d1a6, 0x10ae0f3c8722e,
3114
                0x086d9b618b637, 0x07d79c7e8beab },
3115
            { 0x3fb9cbc08dd12, 0x75c3dd85370ff, 0x47f06fe2819ac,
3116
                0x5db06ab9215ed, 0x1c3520a35ea64 },
3117
        },
3118
        {
3119
            { 0x06f40216bc059, 0x3a2579b0fd9b5, 0x71c26407eec8c,
3120
                0x72ada4ab54f0b, 0x38750c3b66d12 },
3121
            { 0x253a6bccba34a, 0x427070433701a, 0x20b8e58f9870e,
3122
                0x337c861db00cc, 0x1c3d05775d0ee },
3123
            { 0x6f1409422e51a, 0x7856bbece2d25, 0x13380a72f031c,
3124
                0x43e1080a7f3ba, 0x0621e2c7d3304 },
3125
        },
3126
        {
3127
            { 0x61796b0dbf0f3, 0x73c2f9c32d6f5, 0x6aa8ed1537ebe,
3128
                0x74e92c91838f4, 0x5d8e589ca1002 },
3129
            { 0x060cc8259838d, 0x038d3f35b95f3, 0x56078c243a923,
3130
                0x2de3293241bb2, 0x0007d6097bd3a },
3131
            { 0x71d950842a94b, 0x46b11e5c7d817, 0x5478bbecb4f0d,
3132
                0x7c3054b0a1c5d, 0x1583d7783c1cb },
3133
        },
3134
        {
3135
            { 0x34704cc9d28c7, 0x3dee598b1f200, 0x16e1c98746d9e,
3136
                0x4050b7095afdf, 0x4958064e83c55 },
3137
            { 0x6a2ef5da27ae1, 0x28aace02e9d9d, 0x02459e965f0e8,
3138
                0x7b864d3150933, 0x252a5f2e81ed8 },
3139
            { 0x094265066e80d, 0x0a60f918d61a5, 0x0444bf7f30fde,
3140
                0x1c40da9ed3c06, 0x079c170bd843b },
3141
        },
3142
        {
3143
            { 0x6cd50c0d5d056, 0x5b7606ae779ba, 0x70fbd226bdda1,
3144
                0x5661e53391ff9, 0x6768c0d7317b8 },
3145
            { 0x6ece464fa6fff, 0x3cc40bca460a0, 0x6e3a90afb8d0c,
3146
                0x5801abca11228, 0x6dec05e34ac9f },
3147
            { 0x625e5f155c1b3, 0x4f32f6f723296, 0x5ac980105efce,
3148
                0x17a61165eee36, 0x51445e14ddcd5 },
3149
        },
3150
        {
3151
            { 0x147ab2bbea455, 0x1f240f2253126, 0x0c3de9e314e89,
3152
                0x21ea5a4fca45f, 0x12e990086e4fd },
3153
            { 0x02b4b3b144951, 0x5688977966aea, 0x18e176e399ffd,
3154
                0x2e45c5eb4938b, 0x13186f31e3929 },
3155
            { 0x496b37fdfbb2e, 0x3c2439d5f3e21, 0x16e60fe7e6a4d,
3156
                0x4d7ef889b621d, 0x77b2e3f05d3e9 },
3157
        },
3158
    },
3159
    {
3160
        {
3161
            { 0x0639c12ddb0a4, 0x6180490cd7ab3, 0x3f3918297467c,
3162
                0x74568be1781ac, 0x07a195152e095 },
3163
            { 0x7a9c59c2ec4de, 0x7e9f09e79652d, 0x6a3e422f22d86,
3164
                0x2ae8e3b836c8b, 0x63b795fc7ad32 },
3165
            { 0x68f02389e5fc8, 0x059f1bc877506, 0x504990e410cec,
3166
                0x09bd7d0feaee2, 0x3e8fe83d032f0 },
3167
        },
3168
        {
3169
            { 0x04c8de8efd13c, 0x1c67c06e6210e, 0x183378f7f146a,
3170
                0x64352ceaed289, 0x22d60899a6258 },
3171
            { 0x315b90570a294, 0x60ce108a925f1, 0x6eff61253c909,
3172
                0x003ef0e2d70b0, 0x75ba3b797fac4 },
3173
            { 0x1dbc070cdd196, 0x16d8fb1534c47, 0x500498183fa2a,
3174
                0x72f59c423de75, 0x0904d07b87779 },
3175
        },
3176
        {
3177
            { 0x22d6648f940b9, 0x197a5a1873e86, 0x207e4c41a54bc,
3178
                0x5360b3b4bd6d0, 0x6240aacebaf72 },
3179
            { 0x61fd4ddba919c, 0x7d8e991b55699, 0x61b31473cc76c,
3180
                0x7039631e631d6, 0x43e2143fbc1dd },
3181
            { 0x4749c5ba295a0, 0x37946fa4b5f06, 0x724c5ab5a51f1,
3182
                0x65633789dd3f3, 0x56bdaf238db40 },
3183
        },
3184
        {
3185
            { 0x0d36cc19d3bb2, 0x6ec4470d72262, 0x6853d7018a9ae,
3186
                0x3aa3e4dc2c8eb, 0x03aa31507e1e5 },
3187
            { 0x2b9e3f53533eb, 0x2add727a806c5, 0x56955c8ce15a3,
3188
                0x18c4f070a290e, 0x1d24a86d83741 },
3189
            { 0x47648ffd4ce1f, 0x60a9591839e9d, 0x424d5f38117ab,
3190
                0x42cc46912c10e, 0x43b261dc9aeb4 },
3191
        },
3192
        {
3193
            { 0x13d8b6c951364, 0x4c0017e8f632a, 0x53e559e53f9c4,
3194
                0x4b20146886eea, 0x02b4d5e242940 },
3195
            { 0x31e1988bb79bb, 0x7b82f46b3bcab, 0x0f7a8ce827b41,
3196
                0x5e15816177130, 0x326055cf5b276 },
3197
            { 0x155cb28d18df2, 0x0c30d9ca11694, 0x2090e27ab3119,
3198
                0x208624e7a49b6, 0x27a6c809ae5d3 },
3199
        },
3200
        {
3201
            { 0x4270ac43d6954, 0x2ed4cd95659a5, 0x75c0db37528f9,
3202
                0x2ccbcfd2c9234, 0x221503603d8c2 },
3203
            { 0x6ebcd1f0db188, 0x74ceb4b7d1174, 0x7d56168df4f5c,
3204
                0x0bf79176fd18a, 0x2cb67174ff60a },
3205
            { 0x6cdf9390be1d0, 0x08e519c7e2b3d, 0x253c3d2a50881,
3206
                0x21b41448e333d, 0x7b1df4b73890f },
3207
        },
3208
        {
3209
            { 0x6221807f8f58c, 0x3fa92813a8be5, 0x6da98c38d5572,
3210
                0x01ed95554468f, 0x68698245d352e },
3211
            { 0x2f2e0b3b2a224, 0x0c56aa22c1c92, 0x5fdec39f1b278,
3212
                0x4c90af5c7f106, 0x61fcef2658fc5 },
3213
            { 0x15d852a18187a, 0x270dbb59afb76, 0x7db120bcf92ab,
3214
                0x0e7a25d714087, 0x46cf4c473daf0 },
3215
        },
3216
        {
3217
            { 0x46ea7f1498140, 0x70725690a8427, 0x0a73ae9f079fb,
3218
                0x2dd924461c62b, 0x1065aae50d8cc },
3219
            { 0x525ed9ec4e5f9, 0x022d20660684c, 0x7972b70397b68,
3220
                0x7a03958d3f965, 0x29387bcd14eb5 },
3221
            { 0x44525df200d57, 0x2d7f94ce94385, 0x60d00c170ecb7,
3222
                0x38b0503f3d8f0, 0x69a198e64f1ce },
3223
        },
3224
    },
3225
    {
3226
        {
3227
            { 0x14434dcc5caed, 0x2c7909f667c20, 0x61a839d1fb576,
3228
                0x4f23800cabb76, 0x25b2697bd267f },
3229
            { 0x2b2e0d91a78bc, 0x3990a12ccf20c, 0x141c2e11f2622,
3230
                0x0dfcefaa53320, 0x7369e6a92493a },
3231
            { 0x73ffb13986864, 0x3282bb8f713ac, 0x49ced78f297ef,
3232
                0x6697027661def, 0x1420683db54e4 },
3233
        },
3234
        {
3235
            { 0x6bb6fc1cc5ad0, 0x532c8d591669d, 0x1af794da86c33,
3236
                0x0e0e9d86d24d3, 0x31e83b4161d08 },
3237
            { 0x0bd1e249dd197, 0x00bcb1820568f, 0x2eab1718830d4,
3238
                0x396fd816997e6, 0x60b63bebf508a },
3239
            { 0x0c7129e062b4f, 0x1e526415b12fd, 0x461a0fd27923d,
3240
                0x18badf670a5b7, 0x55cf1eb62d550 },
3241
        },
3242
        {
3243
            { 0x6b5e37df58c52, 0x3bcf33986c60e, 0x44fb8835ceae7,
3244
                0x099dec18e71a4, 0x1a56fbaa62ba0 },
3245
            { 0x1101065c23d58, 0x5aa1290338b0f, 0x3157e9e2e7421,
3246
                0x0ea712017d489, 0x669a656457089 },
3247
            { 0x66b505c9dc9ec, 0x774ef86e35287, 0x4d1d944c0955e,
3248
                0x52e4c39d72b20, 0x13c4836799c58 },
3249
        },
3250
        {
3251
            { 0x4fb6a5d8bd080, 0x58ae34908589b, 0x3954d977baf13,
3252
                0x413ea597441dc, 0x50bdc87dc8e5b },
3253
            { 0x25d465ab3e1b9, 0x0f8fe27ec2847, 0x2d6e6dbf04f06,
3254
                0x3038cfc1b3276, 0x66f80c93a637b },
3255
            { 0x537836edfe111, 0x2be02357b2c0d, 0x6dcee58c8d4f8,
3256
                0x2d732581d6192, 0x1dd56444725fd },
3257
        },
3258
        {
3259
            { 0x7e60008bac89a, 0x23d5c387c1852, 0x79e5df1f533a8,
3260
                0x2e6f9f1c5f0cf, 0x3a3a450f63a30 },
3261
            { 0x47ff83362127d, 0x08e39af82b1f4, 0x488322ef27dab,
3262
                0x1973738a2a1a4, 0x0e645912219f7 },
3263
            { 0x72f31d8394627, 0x07bd294a200f1, 0x665be00e274c6,
3264
                0x43de8f1b6368b, 0x318c8d9393a9a },
3265
        },
3266
        {
3267
            { 0x69e29ab1dd398, 0x30685b3c76bac, 0x565cf37f24859,
3268
                0x57b2ac28efef9, 0x509a41c325950 },
3269
            { 0x45d032afffe19, 0x12fe49b6cde4e, 0x21663bc327cf1,
3270
                0x18a5e4c69f1dd, 0x224c7c679a1d5 },
3271
            { 0x06edca6f925e9, 0x68c8363e677b8, 0x60cfa25e4fbcf,
3272
                0x1c4c17609404e, 0x05bff02328a11 },
3273
        },
3274
        {
3275
            { 0x1a0dd0dc512e4, 0x10894bf5fcd10, 0x52949013f9c37,
3276
                0x1f50fba4735c7, 0x576277cdee01a },
3277
            { 0x2137023cae00b, 0x15a3599eb26c6, 0x0687221512b3c,
3278
                0x253cb3a0824e9, 0x780b8cc3fa2a4 },
3279
            { 0x38abc234f305f, 0x7a280bbc103de, 0x398a836695dfe,
3280
                0x3d0af41528a1a, 0x5ff418726271b },
3281
        },
3282
        {
3283
            { 0x347e813b69540, 0x76864c21c3cbb, 0x1e049dbcd74a8,
3284
                0x5b4d60f93749c, 0x29d4db8ca0a0c },
3285
            { 0x6080c1789db9d, 0x4be7cef1ea731, 0x2f40d769d8080,
3286
                0x35f7d4c44a603, 0x106a03dc25a96 },
3287
            { 0x50aaf333353d0, 0x4b59a613cbb35, 0x223dfc0e19a76,
3288
                0x77d1e2bb2c564, 0x4ab38a51052cb },
3289
        },
3290
    },
3291
    {
3292
        {
3293
            { 0x7d1ef5fddc09c, 0x7beeaebb9dad9, 0x058d30ba0acfb,
3294
                0x5cd92eab5ae90, 0x3041c6bb04ed2 },
3295
            { 0x42b256768d593, 0x2e88459427b4f, 0x02b3876630701,
3296
                0x34878d405eae5, 0x29cdd1adc088a },
3297
            { 0x2f2f9d956e148, 0x6b3e6ad65c1fe, 0x5b00972b79e5d,
3298
                0x53d8d234c5daf, 0x104bbd6814049 },
3299
        },
3300
        {
3301
            { 0x59a5fd67ff163, 0x3a998ead0352b, 0x083c95fa4af9a,
3302
                0x6fadbfc01266f, 0x204f2a20fb072 },
3303
            { 0x0fd3168f1ed67, 0x1bb0de7784a3e, 0x34bcb78b20477,
3304
                0x0a4a26e2e2182, 0x5be8cc57092a7 },
3305
            { 0x43b3d30ebb079, 0x357aca5c61902, 0x5b570c5d62455,
3306
                0x30fb29e1e18c7, 0x2570fb17c2791 },
3307
        },
3308
        {
3309
            { 0x6a9550bb8245a, 0x511f20a1a2325, 0x29324d7239bee,
3310
                0x3343cc37516c4, 0x241c5f91de018 },
3311
            { 0x2367f2cb61575, 0x6c39ac04d87df, 0x6d4958bd7e5bd,
3312
                0x566f4638a1532, 0x3dcb65ea53030 },
3313
            { 0x0172940de6caa, 0x6045b2e67451b, 0x56c07463efcb3,
3314
                0x0728b6bfe6e91, 0x08420edd5fcdf },
3315
        },
3316
        {
3317
            { 0x0c34e04f410ce, 0x344edc0d0a06b, 0x6e45486d84d6d,
3318
                0x44e2ecb3863f5, 0x04d654f321db8 },
3319
            { 0x720ab8362fa4a, 0x29c4347cdd9bf, 0x0e798ad5f8463,
3320
                0x4fef18bcb0bfe, 0x0d9a53efbc176 },
3321
            { 0x5c116ddbdb5d5, 0x6d1b4bba5abcf, 0x4d28a48a5537a,
3322
                0x56b8e5b040b99, 0x4a7a4f2618991 },
3323
        },
3324
        {
3325
            { 0x3b291af372a4b, 0x60e3028fe4498, 0x2267bca4f6a09,
3326
                0x719eec242b243, 0x4a96314223e0e },
3327
            { 0x718025fb15f95, 0x68d6b8371fe94, 0x3804448f7d97c,
3328
                0x42466fe784280, 0x11b50c4cddd31 },
3329
            { 0x0274408a4ffd6, 0x7d382aedb34dd, 0x40acfc9ce385d,
3330
                0x628bb99a45b1e, 0x4f4bce4dce6bc },
3331
        },
3332
        {
3333
            { 0x2616ec49d0b6f, 0x1f95d8462e61c, 0x1ad3e9b9159c6,
3334
                0x79ba475a04df9, 0x3042cee561595 },
3335
            { 0x7ce5ae2242584, 0x2d25eb153d4e3, 0x3a8f3d09ba9c9,
3336
                0x0f3690d04eb8e, 0x73fcdd14b71c0 },
3337
            { 0x67079449bac41, 0x5b79c4621484f, 0x61069f2156b8d,
3338
                0x0eb26573b10af, 0x389e740c9a9ce },
3339
        },
3340
        {
3341
            { 0x578f6570eac28, 0x644f2339c3937, 0x66e47b7956c2c,
3342
                0x34832fe1f55d0, 0x25c425e5d6263 },
3343
            { 0x4b3ae34dcb9ce, 0x47c691a15ac9f, 0x318e06e5d400c,
3344
                0x3c422d9f83eb1, 0x61545379465a6 },
3345
            { 0x606a6f1d7de6e, 0x4f1c0c46107e7, 0x229b1dcfbe5d8,
3346
                0x3acc60a7b1327, 0x6539a08915484 },
3347
        },
3348
        {
3349
            { 0x4dbd414bb4a19, 0x7930849f1dbb8, 0x329c5a466caf0,
3350
                0x6c824544feb9b, 0x0f65320ef019b },
3351
            { 0x21f74c3d2f773, 0x024b88d08bd3a, 0x6e678cf054151,
3352
                0x43631272e747c, 0x11c5e4aac5cd1 },
3353
            { 0x6d1b1cafde0c6, 0x462c76a303a90, 0x3ca4e693cff9b,
3354
                0x3952cd45786fd, 0x4cabc7bdec330 },
3355
        },
3356
    },
3357
    {
3358
        {
3359
            { 0x7788f3f78d289, 0x5942809b3f811, 0x5973277f8c29c,
3360
                0x010f93bc5fe67, 0x7ee498165acb2 },
3361
            { 0x69624089c0a2e, 0x0075fc8e70473, 0x13e84ab1d2313,
3362
                0x2c10bedf6953b, 0x639b93f0321c8 },
3363
            { 0x508e39111a1c3, 0x290120e912f7a, 0x1cbf464acae43,
3364
                0x15373e9576157, 0x0edf493c85b60 },
3365
        },
3366
        {
3367
            { 0x7c4d284764113, 0x7fefebf06acec, 0x39afb7a824100,
3368
                0x1b48e47e7fd65, 0x04c00c54d1dfa },
3369
            { 0x48158599b5a68, 0x1fd75bc41d5d9, 0x2d9fc1fa95d3c,
3370
                0x7da27f20eba11, 0x403b92e3019d4 },
3371
            { 0x22f818b465cf8, 0x342901dff09b8, 0x31f595dc683cd,
3372
                0x37a57745fd682, 0x355bb12ab2617 },
3373
        },
3374
        {
3375
            { 0x1dac75a8c7318, 0x3b679d5423460, 0x6b8fcb7b6400e,
3376
                0x6c73783be5f9d, 0x7518eaf8e052a },
3377
            { 0x664cc7493bbf4, 0x33d94761874e3, 0x0179e1796f613,
3378
                0x1890535e2867d, 0x0f9b8132182ec },
3379
            { 0x059c41b7f6c32, 0x79e8706531491, 0x6c747643cb582,
3380
                0x2e20c0ad494e4, 0x47c3871bbb175 },
3381
        },
3382
        {
3383
            { 0x65d50c85066b0, 0x6167453361f7c, 0x06ba3818bb312,
3384
                0x6aff29baa7522, 0x08fea02ce8d48 },
3385
            { 0x4539771ec4f48, 0x7b9318badca28, 0x70f19afe016c5,
3386
                0x4ee7bb1608d23, 0x00b89b8576469 },
3387
            { 0x5dd7668deead0, 0x4096d0ba47049, 0x6275997219114,
3388
                0x29bda8a67e6ae, 0x473829a74f75d },
3389
        },
3390
        {
3391
            { 0x1533aad3902c9, 0x1dde06b11e47b, 0x784bed1930b77,
3392
                0x1c80a92b9c867, 0x6c668b4d44e4d },
3393
            { 0x2da754679c418, 0x3164c31be105a, 0x11fac2b98ef5f,
3394
                0x35a1aaf779256, 0x2078684c4833c },
3395
            { 0x0cf217a78820c, 0x65024e7d2e769, 0x23bb5efdda82a,
3396
                0x19fd4b632d3c6, 0x7411a6054f8a4 },
3397
        },
3398
        {
3399
            { 0x2e53d18b175b4, 0x33e7254204af3, 0x3bcd7d5a1c4c5,
3400
                0x4c7c22af65d0f, 0x1ec9a872458c3 },
3401
            { 0x59d32b99dc86d, 0x6ac075e22a9ac, 0x30b9220113371,
3402
                0x27fd9a638966e, 0x7c136574fb813 },
3403
            { 0x6a4d400a2509b, 0x041791056971c, 0x655d5866e075c,
3404
                0x2302bf3e64df8, 0x3add88a5c7cd6 },
3405
        },
3406
        {
3407
            { 0x298d459393046, 0x30bfecb3d90b8, 0x3d9b8ea3df8d6,
3408
                0x3900e96511579, 0x61ba1131a406a },
3409
            { 0x15770b635dcf2, 0x59ecd83f79571, 0x2db461c0b7fbd,
3410
                0x73a42a981345f, 0x249929fccc879 },
3411
            { 0x0a0f116959029, 0x5974fd7b1347a, 0x1e0cc1c08edad,
3412
                0x673bdf8ad1f13, 0x5620310cbbd8e },
3413
        },
3414
        {
3415
            { 0x6b5f477e285d6, 0x4ed91ec326cc8, 0x6d6537503a3fd,
3416
                0x626d3763988d5, 0x7ec846f3658ce },
3417
            { 0x193434934d643, 0x0d4a2445eaa51, 0x7d0708ae76fe0,
3418
                0x39847b6c3c7e1, 0x37676a2a4d9d9 },
3419
            { 0x68f3f1da22ec7, 0x6ed8039a2736b, 0x2627ee04c3c75,
3420
                0x6ea90a647e7d1, 0x6daaf723399b9 },
3421
        },
3422
    },
3423
    {
3424
        {
3425
            { 0x304bfacad8ea2, 0x502917d108b07, 0x043176ca6dd0f,
3426
                0x5d5158f2c1d84, 0x2b5449e58eb3b },
3427
            { 0x27562eb3dbe47, 0x291d7b4170be7, 0x5d1ca67dfa8e1,
3428
                0x2a88061f298a2, 0x1304e9e71627d },
3429
            { 0x014d26adc9cfe, 0x7f1691ba16f13, 0x5e71828f06eac,
3430
                0x349ed07f0fffc, 0x4468de2d7c2dd },
3431
        },
3432
        {
3433
            { 0x2d8c6f86307ce, 0x6286ba1850973, 0x5e9dcb08444d4,
3434
                0x1a96a543362b2, 0x5da6427e63247 },
3435
            { 0x3355e9419469e, 0x1847bb8ea8a37, 0x1fe6588cf9b71,
3436
                0x6b1c9d2db6b22, 0x6cce7c6ffb44b },
3437
            { 0x4c688deac22ca, 0x6f775c3ff0352, 0x565603ee419bb,
3438
                0x6544456c61c46, 0x58f29abfe79f2 },
3439
        },
3440
        {
3441
            { 0x264bf710ecdf6, 0x708c58527896b, 0x42ceae6c53394,
3442
                0x4381b21e82b6a, 0x6af93724185b4 },
3443
            { 0x6cfab8de73e68, 0x3e6efced4bd21, 0x0056609500dbe,
3444
                0x71b7824ad85df, 0x577629c4a7f41 },
3445
            { 0x0024509c6a888, 0x2696ab12e6644, 0x0cca27f4b80d8,
3446
                0x0c7c1f11b119e, 0x701f25bb0caec },
3447
        },
3448
        {
3449
            { 0x0f6d97cbec113, 0x4ce97fb7c93a3, 0x139835a11281b,
3450
                0x728907ada9156, 0x720a5bc050955 },
3451
            { 0x0b0f8e4616ced, 0x1d3c4b50fb875, 0x2f29673dc0198,
3452
                0x5f4b0f1830ffa, 0x2e0c92bfbdc40 },
3453
            { 0x709439b805a35, 0x6ec48557f8187, 0x08a4d1ba13a2c,
3454
                0x076348a0bf9ae, 0x0e9b9cbb144ef },
3455
        },
3456
        {
3457
            { 0x69bd55db1beee, 0x6e14e47f731bd, 0x1a35e47270eac,
3458
                0x66f225478df8e, 0x366d44191cfd3 },
3459
            { 0x2d48ffb5720ad, 0x57b7f21a1df77, 0x5550effba0645,
3460
                0x5ec6a4098a931, 0x221104eb3f337 },
3461
            { 0x41743f2bc8c14, 0x796b0ad8773c7, 0x29fee5cbb689b,
3462
                0x122665c178734, 0x4167a4e6bc593 },
3463
        },
3464
        {
3465
            { 0x62665f8ce8fee, 0x29d101ac59857, 0x4d93bbba59ffc,
3466
                0x17b7897373f17, 0x34b33370cb7ed },
3467
            { 0x39d2876f62700, 0x001cecd1d6c87, 0x7f01a11747675,
3468
                0x2350da5a18190, 0x7938bb7e22552 },
3469
            { 0x591ee8681d6cc, 0x39db0b4ea79b8, 0x202220f380842,
3470
                0x2f276ba42e0ac, 0x1176fc6e2dfe6 },
3471
        },
3472
        {
3473
            { 0x0e28949770eb8, 0x5559e88147b72, 0x35e1e6e63ef30,
3474
                0x35b109aa7ff6f, 0x1f6a3e54f2690 },
3475
            { 0x76cd05b9c619b, 0x69654b0901695, 0x7a53710b77f27,
3476
                0x79a1ea7d28175, 0x08fc3a4c677d5 },
3477
            { 0x4c199d30734ea, 0x6c622cb9acc14, 0x5660a55030216,
3478
                0x068f1199f11fb, 0x4f2fad0116b90 },
3479
        },
3480
        {
3481
            { 0x4d91db73bb638, 0x55f82538112c5, 0x6d85a279815de,
3482
                0x740b7b0cd9cf9, 0x3451995f2944e },
3483
            { 0x6b24194ae4e54, 0x2230afded8897, 0x23412617d5071,
3484
                0x3d5d30f35969b, 0x445484a4972ef },
3485
            { 0x2fcd09fea7d7c, 0x296126b9ed22a, 0x4a171012a05b2,
3486
                0x1db92c74d5523, 0x10b89ca604289 },
3487
        },
3488
    },
3489
    {
3490
        {
3491
            { 0x141be5a45f06e, 0x5adb38becaea7, 0x3fd46db41f2bb,
3492
                0x6d488bbb5ce39, 0x17d2d1d9ef0d4 },
3493
            { 0x147499718289c, 0x0a48a67e4c7ab, 0x30fbc544bafe3,
3494
                0x0c701315fe58a, 0x20b878d577b75 },
3495
            { 0x2af18073f3e6a, 0x33aea420d24fe, 0x298008bf4ff94,
3496
                0x3539171db961e, 0x72214f63cc65c },
3497
        },
3498
        {
3499
            { 0x5b7b9f43b29c9, 0x149ea31eea3b3, 0x4be7713581609,
3500
                0x2d87960395e98, 0x1f24ac855a154 },
3501
            { 0x37f405307a693, 0x2e5e66cf2b69c, 0x5d84266ae9c53,
3502
                0x5e4eb7de853b9, 0x5fdf48c58171c },
3503
            { 0x608328e9505aa, 0x22182841dc49a, 0x3ec96891d2307,
3504
                0x2f363fff22e03, 0x00ba739e2ae39 },
3505
        },
3506
        {
3507
            { 0x426f5ea88bb26, 0x33092e77f75c8, 0x1a53940d819e7,
3508
                0x1132e4f818613, 0x72297de7d518d },
3509
            { 0x698de5c8790d6, 0x268b8545beb25, 0x6d2648b96fedf,
3510
                0x47988ad1db07c, 0x03283a3e67ad7 },
3511
            { 0x41dc7be0cb939, 0x1b16c66100904, 0x0a24c20cbc66d,
3512
                0x4a2e9efe48681, 0x05e1296846271 },
3513
        },
3514
        {
3515
            { 0x7bbc8242c4550, 0x59a06103b35b7, 0x7237e4af32033,
3516
                0x726421ab3537a, 0x78cf25d38258c },
3517
            { 0x2eeb32d9c495a, 0x79e25772f9750, 0x6d747833bbf23,
3518
                0x6cdd816d5d749, 0x39c00c9c13698 },
3519
            { 0x66b8e31489d68, 0x573857e10e2b5, 0x13be816aa1472,
3520
                0x41964d3ad4bf8, 0x006b52076b3ff },
3521
        },
3522
        {
3523
            { 0x37e16b9ce082d, 0x1882f57853eb9, 0x7d29eacd01fc5,
3524
                0x2e76a59b5e715, 0x7de2e9561a9f7 },
3525
            { 0x0cfe19d95781c, 0x312cc621c453c, 0x145ace6da077c,
3526
                0x0912bef9ce9b8, 0x4d57e3443bc76 },
3527
            { 0x0d4f4b6a55ecb, 0x7ebb0bb733bce, 0x7ba6a05200549,
3528
                0x4f6ede4e22069, 0x6b2a90af1a602 },
3529
        },
3530
        {
3531
            { 0x3f3245bb2d80a, 0x0e5f720f36efd, 0x3b9cccf60c06d,
3532
                0x084e323f37926, 0x465812c8276c2 },
3533
            { 0x3f4fc9ae61e97, 0x3bc07ebfa2d24, 0x3b744b55cd4a0,
3534
                0x72553b25721f3, 0x5fd8f4e9d12d3 },
3535
            { 0x3beb22a1062d9, 0x6a7063b82c9a8, 0x0a5a35dc197ed,
3536
                0x3c80c06a53def, 0x05b32c2b1cb16 },
3537
        },
3538
        {
3539
            { 0x4a42c7ad58195, 0x5c8667e799eff, 0x02e5e74c850a1,
3540
                0x3f0db614e869a, 0x31771a4856730 },
3541
            { 0x05eccd24da8fd, 0x580bbfdf07918, 0x7e73586873c6a,
3542
                0x74ceddf77f93e, 0x3b5556a37b471 },
3543
            { 0x0c524e14dd482, 0x283457496c656, 0x0ad6bcfb6cd45,
3544
                0x375d1e8b02414, 0x4fc079d27a733 },
3545
        },
3546
        {
3547
            { 0x48b440c86c50d, 0x139929cca3b86, 0x0f8f2e44cdf2f,
3548
                0x68432117ba6b2, 0x241170c2bae3c },
3549
            { 0x138b089bf2f7f, 0x4a05bfd34ea39, 0x203914c925ef5,
3550
                0x7497fffe04e3c, 0x124567cecaf98 },
3551
            { 0x1ab860ac473b4, 0x5c0227c86a7ff, 0x71b12bfc24477,
3552
                0x006a573a83075, 0x3f8612966c870 },
3553
        },
3554
    },
3555
    {
3556
        {
3557
            { 0x0fcfa36048d13, 0x66e7133bbb383, 0x64b42a8a45676,
3558
                0x4ea6e4f9a85cf, 0x26f57eee878a1 },
3559
            { 0x20cc9782a0dde, 0x65d4e3070aab3, 0x7bc8e31547736,
3560
                0x09ebfb1432d98, 0x504aa77679736 },
3561
            { 0x32cd55687efb1, 0x4448f5e2f6195, 0x568919d460345,
3562
                0x034c2e0ad1a27, 0x4041943d9dba3 },
3563
        },
3564
        {
3565
            { 0x17743a26caadd, 0x48c9156f9c964, 0x7ef278d1e9ad0,
3566
                0x00ce58ea7bd01, 0x12d931429800d },
3567
            { 0x0eeba43ebcc96, 0x384dd5395f878, 0x1df331a35d272,
3568
                0x207ecfd4af70e, 0x1420a1d976843 },
3569
            { 0x67799d337594f, 0x01647548f6018, 0x57fce5578f145,
3570
                0x009220c142a71, 0x1b4f92314359a },
3571
        },
3572
        {
3573
            { 0x73030a49866b1, 0x2442be90b2679, 0x77bd3d8947dcf,
3574
                0x1fb55c1552028, 0x5ff191d56f9a2 },
3575
            { 0x4109d89150951, 0x225bd2d2d47cb, 0x57cc080e73bea,
3576
                0x6d71075721fcb, 0x239b572a7f132 },
3577
            { 0x6d433ac2d9068, 0x72bf930a47033, 0x64facf4a20ead,
3578
                0x365f7a2b9402a, 0x020c526a758f3 },
3579
        },
3580
        {
3581
            { 0x1ef59f042cc89, 0x3b1c24976dd26, 0x31d665cb16272,
3582
                0x28656e470c557, 0x452cfe0a5602c },
3583
            { 0x034f89ed8dbbc, 0x73b8f948d8ef3, 0x786c1d323caab,
3584
                0x43bd4a9266e51, 0x02aacc4615313 },
3585
            { 0x0f7a0647877df, 0x4e1cc0f93f0d4, 0x7ec4726ef1190,
3586
                0x3bdd58bf512f8, 0x4cfb7d7b304b8 },
3587
        },
3588
        {
3589
            { 0x699c29789ef12, 0x63beae321bc50, 0x325c340adbb35,
3590
                0x562e1a1e42bf6, 0x5b1d4cbc434d3 },
3591
            { 0x43d6cb89b75fe, 0x3338d5b900e56, 0x38d327d531a53,
3592
                0x1b25c61d51b9f, 0x14b4622b39075 },
3593
            { 0x32615cc0a9f26, 0x57711b99cb6df, 0x5a69c14e93c38,
3594
                0x6e88980a4c599, 0x2f98f71258592 },
3595
        },
3596
        {
3597
            { 0x2ae444f54a701, 0x615397afbc5c2, 0x60d7783f3f8fb,
3598
                0x2aa675fc486ba, 0x1d8062e9e7614 },
3599
            { 0x4a74cb50f9e56, 0x531d1c2640192, 0x0c03d9d6c7fd2,
3600
                0x57ccd156610c1, 0x3a6ae249d806a },
3601
            { 0x2da85a9907c5a, 0x6b23721ec4caf, 0x4d2d3a4683aa2,
3602
                0x7f9c6870efdef, 0x298b8ce8aef25 },
3603
        },
3604
        {
3605
            { 0x272ea0a2165de, 0x68179ef3ed06f, 0x4e2b9c0feac1e,
3606
                0x3ee290b1b63bb, 0x6ba6271803a7d },
3607
            { 0x27953eff70cb2, 0x54f22ae0ec552, 0x29f3da92e2724,
3608
                0x242ca0c22bd18, 0x34b8a8404d5ce },
3609
            { 0x6ecb583693335, 0x3ec76bfdfb84d, 0x2c895cf56a04f,
3610
                0x6355149d54d52, 0x71d62bdd465e1 },
3611
        },
3612
        {
3613
            { 0x5b5dab1f75ef5, 0x1e2d60cbeb9a5, 0x527c2175dfe57,
3614
                0x59e8a2b8ff51f, 0x1c333621262b2 },
3615
            { 0x3cc28d378df80, 0x72141f4968ca6, 0x407696bdb6d0d,
3616
                0x5d271b22ffcfb, 0x74d5f317f3172 },
3617
            { 0x7e55467d9ca81, 0x6a5653186f50d, 0x6b188ece62df1,
3618
                0x4c66d36844971, 0x4aebcc4547e9d },
3619
        },
3620
    },
3621
    {
3622
        {
3623
            { 0x08d9e7354b610, 0x26b750b6dc168, 0x162881e01acc9,
3624
                0x7966df31d01a5, 0x173bd9ddc9a1d },
3625
            { 0x0071b276d01c9, 0x0b0d8918e025e, 0x75beea79ee2eb,
3626
                0x3c92984094db8, 0x5d88fbf95a3db },
3627
            { 0x00f1efe5872df, 0x5da872318256a, 0x59ceb81635960,
3628
                0x18cf37693c764, 0x06e1cd13b19ea },
3629
        },
3630
        {
3631
            { 0x3af629e5b0353, 0x204f1a088e8e5, 0x10efc9ceea82e,
3632
                0x589863c2fa34b, 0x7f3a6a1a8d837 },
3633
            { 0x0ad516f166f23, 0x263f56d57c81a, 0x13422384638ca,
3634
                0x1331ff1af0a50, 0x3080603526e16 },
3635
            { 0x644395d3d800b, 0x2b9203dbedefc, 0x4b18ce656a355,
3636
                0x03f3466bc182c, 0x30d0fded2e513 },
3637
        },
3638
        {
3639
            { 0x4971e68b84750, 0x52ccc9779f396, 0x3e904ae8255c8,
3640
                0x4ecae46f39339, 0x4615084351c58 },
3641
            { 0x14d1af21233b3, 0x1de1989b39c0b, 0x52669dc6f6f9e,
3642
                0x43434b28c3fc7, 0x0a9214202c099 },
3643
            { 0x019c0aeb9a02e, 0x1a2c06995d792, 0x664cbb1571c44,
3644
                0x6ff0736fa80b2, 0x3bca0d2895ca5 },
3645
        },
3646
        {
3647
            { 0x08eb69ecc01bf, 0x5b4c8912df38d, 0x5ea7f8bc2f20e,
3648
                0x120e516caafaf, 0x4ea8b4038df28 },
3649
            { 0x031bc3c5d62a4, 0x7d9fe0f4c081e, 0x43ed51467f22c,
3650
                0x1e6cc0c1ed109, 0x5631deddae8f1 },
3651
            { 0x5460af1cad202, 0x0b4919dd0655d, 0x7c4697d18c14c,
3652
                0x231c890bba2a4, 0x24ce0930542ca },
3653
        },
3654
        {
3655
            { 0x7a155fdf30b85, 0x1c6c6e5d487f9, 0x24be1134bdc5a,
3656
                0x1405970326f32, 0x549928a7324f4 },
3657
            { 0x090f5fd06c106, 0x6abb1021e43fd, 0x232bcfad711a0,
3658
                0x3a5c13c047f37, 0x41d4e3c28a06d },
3659
            { 0x632a763ee1a2e, 0x6fa4bffbd5e4d, 0x5fd35a6ba4792,
3660
                0x7b55e1de99de8, 0x491b66dec0dcf },
3661
        },
3662
        {
3663
            { 0x04a8ed0da64a1, 0x5ecfc45096ebe, 0x5edee93b488b2,
3664
                0x5b3c11a51bc8f, 0x4cf6b8b0b7018 },
3665
            { 0x5b13dc7ea32a7, 0x18fc2db73131e, 0x7e3651f8f57e3,
3666
                0x25656055fa965, 0x08f338d0c85ee },
3667
            { 0x3a821991a73bd, 0x03be6418f5870, 0x1ddc18eac9ef0,
3668
                0x54ce09e998dc2, 0x530d4a82eb078 },
3669
        },
3670
        {
3671
            { 0x173456c9abf9e, 0x7892015100dad, 0x33ee14095fecb,
3672
                0x6ad95d67a0964, 0x0db3e7e00cbfb },
3673
            { 0x43630e1f94825, 0x4d1956a6b4009, 0x213fe2df8b5e0,
3674
                0x05ce3a41191e6, 0x65ea753f10177 },
3675
            { 0x6fc3ee2096363, 0x7ec36b96d67ac, 0x510ec6a0758b1,
3676
                0x0ed87df022109, 0x02a4ec1921e1a },
3677
        },
3678
        {
3679
            { 0x06162f1cf795f, 0x324ddcafe5eb9, 0x018d5e0463218,
3680
                0x7e78b9092428e, 0x36d12b5dec067 },
3681
            { 0x6259a3b24b8a2, 0x188b5f4170b9c, 0x681c0dee15deb,
3682
                0x4dfe665f37445, 0x3d143c5112780 },
3683
            { 0x5279179154557, 0x39f8f0741424d, 0x45e6eb357923d,
3684
                0x42c9b5edb746f, 0x2ef517885ba82 },
3685
        },
3686
    },
3687
    {
3688
        {
3689
            { 0x6bffb305b2f51, 0x5b112b2d712dd, 0x35774974fe4e2,
3690
                0x04af87a96e3a3, 0x57968290bb3a0 },
3691
            { 0x7974e8c58aedc, 0x7757e083488c6, 0x601c62ae7bc8b,
3692
                0x45370c2ecab74, 0x2f1b78fab143a },
3693
            { 0x2b8430a20e101, 0x1a49e1d88fee3, 0x38bbb47ce4d96,
3694
                0x1f0e7ba84d437, 0x7dc43e35dc2aa },
3695
        },
3696
        {
3697
            { 0x02a5c273e9718, 0x32bc9dfb28b4f, 0x48df4f8d5db1a,
3698
                0x54c87976c028f, 0x044fb81d82d50 },
3699
            { 0x66665887dd9c3, 0x629760a6ab0b2, 0x481e6c7243e6c,
3700
                0x097e37046fc77, 0x7ef72016758cc },
3701
            { 0x718c5a907e3d9, 0x3b9c98c6b383b, 0x006ed255eccdc,
3702
                0x6976538229a59, 0x7f79823f9c30d },
3703
        },
3704
        {
3705
            { 0x41ff068f587ba, 0x1c00a191bcd53, 0x7b56f9c209e25,
3706
                0x3781e5fccaabe, 0x64a9b0431c06d },
3707
            { 0x4d239a3b513e8, 0x29723f51b1066, 0x642f4cf04d9c3,
3708
                0x4da095aa09b7a, 0x0a4e0373d784d },
3709
            { 0x3d6a15b7d2919, 0x41aa75046a5d6, 0x691751ec2d3da,
3710
                0x23638ab6721c4, 0x071a7d0ace183 },
3711
        },
3712
        {
3713
            { 0x4355220e14431, 0x0e1362a283981, 0x2757cd8359654,
3714
                0x2e9cd7ab10d90, 0x7c69bcf761775 },
3715
            { 0x72daac887ba0b, 0x0b7f4ac5dda60, 0x3bdda2c0498a4,
3716
                0x74e67aa180160, 0x2c3bcc7146ea7 },
3717
            { 0x0d7eb04e8295f, 0x4a5ea1e6fa0fe, 0x45e635c436c60,
3718
                0x28ef4a8d4d18b, 0x6f5a9a7322aca },
3719
        },
3720
        {
3721
            { 0x1d4eba3d944be, 0x0100f15f3dce5, 0x61a700e367825,
3722
                0x5922292ab3d23, 0x02ab9680ee8d3 },
3723
            { 0x1000c2f41c6c5, 0x0219fdf737174, 0x314727f127de7,
3724
                0x7e5277d23b81e, 0x494e21a2e147a },
3725
            { 0x48a85dde50d9a, 0x1c1f734493df4, 0x47bdb64866889,
3726
                0x59a7d048f8eec, 0x6b5d76cbea46b },
3727
        },
3728
        {
3729
            { 0x141171e782522, 0x6806d26da7c1f, 0x3f31d1bc79ab9,
3730
                0x09f20459f5168, 0x16fb869c03dd3 },
3731
            { 0x7556cec0cd994, 0x5eb9a03b7510a, 0x50ad1dd91cb71,
3732
                0x1aa5780b48a47, 0x0ae333f685277 },
3733
            { 0x6199733b60962, 0x69b157c266511, 0x64740f893f1ca,
3734
                0x03aa408fbf684, 0x3f81e38b8f70d },
3735
        },
3736
        {
3737
            { 0x37f355f17c824, 0x07ae85334815b, 0x7e3abddd2e48f,
3738
                0x61eeabe1f45e5, 0x0ad3e2d34cded },
3739
            { 0x10fcc7ed9affe, 0x4248cb0e96ff2, 0x4311c115172e2,
3740
                0x4c9d41cbf6925, 0x50510fc104f50 },
3741
            { 0x40fc5336e249d, 0x3386639fb2de1, 0x7bbf871d17b78,
3742
                0x75f796b7e8004, 0x127c158bf0fa1 },
3743
        },
3744
        {
3745
            { 0x28fc4ae51b974, 0x26e89bfd2dbd4, 0x4e122a07665cf,
3746
                0x7cab1203405c3, 0x4ed82479d167d },
3747
            { 0x17c422e9879a2, 0x28a5946c8fec3, 0x53ab32e912b77,
3748
                0x7b44da09fe0a5, 0x354ef87d07ef4 },
3749
            { 0x3b52260c5d975, 0x79d6836171fdc, 0x7d994f140d4bb,
3750
                0x1b6c404561854, 0x302d92d205392 },
3751
        },
3752
    },
3753
    {
3754
        {
3755
            { 0x46fb6e4e0f177, 0x53497ad5265b7, 0x1ebdba01386fc,
3756
                0x0302f0cb36a3c, 0x0edc5f5eb426d },
3757
            { 0x3c1a2bca4283d, 0x23430c7bb2f02, 0x1a3ea1bb58bc2,
3758
                0x7265763de5c61, 0x10e5d3b76f1ca },
3759
            { 0x3bfd653da8e67, 0x584953ec82a8a, 0x55e288fa7707b,
3760
                0x5395fc3931d81, 0x45b46c51361cb },
3761
        },
3762
        {
3763
            { 0x54ddd8a7fe3e4, 0x2cecc41c619d3, 0x43a6562ac4d91,
3764
                0x4efa5aca7bdd9, 0x5c1c0aef32122 },
3765
            { 0x02abf314f7fa1, 0x391d19e8a1528, 0x6a2fa13895fc7,
3766
                0x09d8eddeaa591, 0x2177bfa36dcb7 },
3767
            { 0x01bbcfa79db8f, 0x3d84beb3666e1, 0x20c921d812204,
3768
                0x2dd843d3b32ce, 0x4ae619387d8ab },
3769
        },
3770
        {
3771
            { 0x17e44985bfb83, 0x54e32c626cc22, 0x096412ff38118,
3772
                0x6b241d61a246a, 0x75685abe5ba43 },
3773
            { 0x3f6aa5344a32e, 0x69683680f11bb, 0x04c3581f623aa,
3774
                0x701af5875cba5, 0x1a00d91b17bf3 },
3775
            { 0x60933eb61f2b2, 0x5193fe92a4dd2, 0x3d995a550f43e,
3776
                0x3556fb93a883d, 0x135529b623b0e },
3777
        },
3778
        {
3779
            { 0x716bce22e83fe, 0x33d0130b83eb8, 0x0952abad0afac,
3780
                0x309f64ed31b8a, 0x5972ea051590a },
3781
            { 0x0dbd7add1d518, 0x119f823e2231e, 0x451d66e5e7de2,
3782
                0x500c39970f838, 0x79b5b81a65ca3 },
3783
            { 0x4ac20dc8f7811, 0x29589a9f501fa, 0x4d810d26a6b4a,
3784
                0x5ede00d96b259, 0x4f7e9c95905f3 },
3785
        },
3786
        {
3787
            { 0x0443d355299fe, 0x39b7d7d5aee39, 0x692519a2f34ec,
3788
                0x6e4404924cf78, 0x1942eec4a144a },
3789
            { 0x74bbc5781302e, 0x73135bb81ec4c, 0x7ef671b61483c,
3790
                0x7264614ccd729, 0x31993ad92e638 },
3791
            { 0x45319ae234992, 0x2219d47d24fb5, 0x4f04488b06cf6,
3792
                0x53aaa9e724a12, 0x2a0a65314ef9c },
3793
        },
3794
        {
3795
            { 0x61acd3c1c793a, 0x58b46b78779e6, 0x3369aacbe7af2,
3796
                0x509b0743074d4, 0x055dc39b6dea1 },
3797
            { 0x7937ff7f927c2, 0x0c2fa14c6a5b6, 0x556bddb6dd07c,
3798
                0x6f6acc179d108, 0x4cf6e218647c2 },
3799
            { 0x1227cc28d5bb6, 0x78ee9bff57623, 0x28cb2241f893a,
3800
                0x25b541e3c6772, 0x121a307710aa2 },
3801
        },
3802
        {
3803
            { 0x1713ec77483c9, 0x6f70572d5facb, 0x25ef34e22ff81,
3804
                0x54d944f141188, 0x527bb94a6ced3 },
3805
            { 0x35d5e9f034a97, 0x126069785bc9b, 0x5474ec7854ff0,
3806
                0x296a302a348ca, 0x333fc76c7a40e },
3807
            { 0x5992a995b482e, 0x78dc707002ac7, 0x5936394d01741,
3808
                0x4fba4281aef17, 0x6b89069b20a7a },
3809
        },
3810
        {
3811
            { 0x2fa8cb5c7db77, 0x718e6982aa810, 0x39e95f81a1a1b,
3812
                0x5e794f3646cfb, 0x0473d308a7639 },
3813
            { 0x2a0416270220d, 0x75f248b69d025, 0x1cbbc16656a27,
3814
                0x5b9ffd6e26728, 0x23bc2103aa73e },
3815
            { 0x6792603589e05, 0x248db9892595d, 0x006a53cad2d08,
3816
                0x20d0150f7ba73, 0x102f73bfde043 },
3817
        },
3818
    },
3819
    {
3820
        {
3821
            { 0x4dae0b5511c9a, 0x5257fffe0d456, 0x54108d1eb2180,
3822
                0x096cc0f9baefa, 0x3f6bd725da4ea },
3823
            { 0x0b9ab7f5745c6, 0x5caf0f8d21d63, 0x7debea408ea2b,
3824
                0x09edb93896d16, 0x36597d25ea5c0 },
3825
            { 0x58d7b106058ac, 0x3cdf8d20bee69, 0x00a4cb765015e,
3826
                0x36832337c7cc9, 0x7b7ecc19da60d },
3827
        },
3828
        {
3829
            { 0x64a51a77cfa9b, 0x29cf470ca0db5, 0x4b60b6e0898d9,
3830
                0x55d04ddffe6c7, 0x03bedc661bf5c },
3831
            { 0x2373c695c690d, 0x4c0c8520dcf18, 0x384af4b7494b9,
3832
                0x4ab4a8ea22225, 0x4235ad7601743 },
3833
            { 0x0cb0d078975f5, 0x292313e530c4b, 0x38dbb9124a509,
3834
                0x350d0655a11f1, 0x0e7ce2b0cdf06 },
3835
        },
3836
        {
3837
            { 0x6fedfd94b70f9, 0x2383f9745bfd4, 0x4beae27c4c301,
3838
                0x75aa4416a3f3f, 0x615256138aece },
3839
            { 0x4643ac48c85a3, 0x6878c2735b892, 0x3a53523f4d877,
3840
                0x3a504ed8bee9d, 0x666e0a5d8fb46 },
3841
            { 0x3f64e4870cb0d, 0x61548b16d6557, 0x7a261773596f3,
3842
                0x7724d5f275d3a, 0x7f0bc810d514d },
3843
        },
3844
        {
3845
            { 0x49dad737213a0, 0x745dee5d31075, 0x7b1a55e7fdbe2,
3846
                0x5ba988f176ea1, 0x1d3a907ddec5a },
3847
            { 0x06ba426f4136f, 0x3cafc0606b720, 0x518f0a2359cda,
3848
                0x5fae5e46feca7, 0x0d1f8dbcf8eed },
3849
            { 0x693313ed081dc, 0x5b0a366901742, 0x40c872ca4ca7e,
3850
                0x6f18094009e01, 0x00011b44a31bf },
3851
        },
3852
        {
3853
            { 0x61f696a0aa75c, 0x38b0a57ad42ca, 0x1e59ab706fdc9,
3854
                0x01308d46ebfcd, 0x63d988a2d2851 },
3855
            { 0x7a06c3fc66c0c, 0x1c9bac1ba47fb, 0x23935c575038e,
3856
                0x3f0bd71c59c13, 0x3ac48d916e835 },
3857
            { 0x20753afbd232e, 0x71fbb1ed06002, 0x39cae47a4af3a,
3858
                0x0337c0b34d9c2, 0x33fad52b2368a },
3859
        },
3860
        {
3861
            { 0x4c8d0c422cfe8, 0x760b4275971a5, 0x3da95bc1cad3d,
3862
                0x0f151ff5b7376, 0x3cc355ccb90a7 },
3863
            { 0x649c6c5e41e16, 0x60667eee6aa80, 0x4179d182be190,
3864
                0x653d9567e6979, 0x16c0f429a256d },
3865
            { 0x69443903e9131, 0x16f4ac6f9dd36, 0x2ea4912e29253,
3866
                0x2b4643e68d25d, 0x631eaf426bae7 },
3867
        },
3868
        {
3869
            { 0x175b9a3700de8, 0x77c5f00aa48fb, 0x3917785ca0317,
3870
                0x05aa9b2c79399, 0x431f2c7f665f8 },
3871
            { 0x10410da66fe9f, 0x24d82dcb4d67d, 0x3e6fe0e17752d,
3872
                0x4dade1ecbb08f, 0x5599648b1ea91 },
3873
            { 0x26344858f7b19, 0x5f43d4a295ac0, 0x242a75c52acd4,
3874
                0x5934480220d10, 0x7b04715f91253 },
3875
        },
3876
        {
3877
            { 0x6c280c4e6bac6, 0x3ada3b361766e, 0x42fe5125c3b4f,
3878
                0x111d84d4aac22, 0x48d0acfa57cde },
3879
            { 0x5bd28acf6ae43, 0x16fab8f56907d, 0x7acb11218d5f2,
3880
                0x41fe02023b4db, 0x59b37bf5c2f65 },
3881
            { 0x726e47dabe671, 0x2ec45e746f6c1, 0x6580e53c74686,
3882
                0x5eda104673f74, 0x16234191336d3 },
3883
        },
3884
    },
3885
    {
3886
        {
3887
            { 0x19cd61ff38640, 0x060c6c4b41ba9, 0x75cf70ca7366f,
3888
                0x118a8f16c011e, 0x4a25707a203b9 },
3889
            { 0x499def6267ff6, 0x76e858108773c, 0x693cac5ddcb29,
3890
                0x00311d00a9ff4, 0x2cdfdfecd5d05 },
3891
            { 0x7668a53f6ed6a, 0x303ba2e142556, 0x3880584c10909,
3892
                0x4fe20000a261d, 0x5721896d248e4 },
3893
        },
3894
        {
3895
            { 0x55091a1d0da4e, 0x4f6bfc7c1050b, 0x64e4ecd2ea9be,
3896
                0x07eb1f28bbe70, 0x03c935afc4b03 },
3897
            { 0x65517fd181bae, 0x3e5772c76816d, 0x019189640898a,
3898
                0x1ed2a84de7499, 0x578edd74f63c1 },
3899
            { 0x276c6492b0c3d, 0x09bfc40bf932e, 0x588e8f11f330b,
3900
                0x3d16e694dc26e, 0x3ec2ab590288c },
3901
        },
3902
        {
3903
            { 0x13a09ae32d1cb, 0x3e81eb85ab4e4, 0x07aaca43cae1f,
3904
                0x62f05d7526374, 0x0e1bf66c6adba },
3905
            { 0x0d27be4d87bb9, 0x56c27235db434, 0x72e6e0ea62d37,
3906
                0x5674cd06ee839, 0x2dd5c25a200fc },
3907
            { 0x3d5e9792c887e, 0x319724dabbc55, 0x2b97c78680800,
3908
                0x7afdfdd34e6dd, 0x730548b35ae88 },
3909
        },
3910
        {
3911
            { 0x3094ba1d6e334, 0x6e126a7e3300b, 0x089c0aefcfbc5,
3912
                0x2eea11f836583, 0x585a2277d8784 },
3913
            { 0x551a3cba8b8ee, 0x3b6422be2d886, 0x630e1419689bc,
3914
                0x4653b07a7a955, 0x3043443b411db },
3915
            { 0x25f8233d48962, 0x6bd8f04aff431, 0x4f907fd9a6312,
3916
                0x40fd3c737d29b, 0x7656278950ef9 },
3917
        },
3918
        {
3919
            { 0x073a3ea86cf9d, 0x6e0e2abfb9c2e, 0x60e2a38ea33ee,
3920
                0x30b2429f3fe18, 0x28bbf484b613f },
3921
            { 0x3cf59d51fc8c0, 0x7a0a0d6de4718, 0x55c3a3e6fb74b,
3922
                0x353135f884fd5, 0x3f4160a8c1b84 },
3923
            { 0x12f5c6f136c7c, 0x0fedba237de4c, 0x779bccebfab44,
3924
                0x3aea93f4d6909, 0x1e79cb358188f },
3925
        },
3926
        {
3927
            { 0x153d8f5e08181, 0x08533bbdb2efd, 0x1149796129431,
3928
                0x17a6e36168643, 0x478ab52d39d1f },
3929
            { 0x436c3eef7e3f1, 0x7ffd3c21f0026, 0x3e77bf20a2da9,
3930
                0x418bffc8472de, 0x65d7951b3a3b3 },
3931
            { 0x6a4d39252d159, 0x790e35900ecd4, 0x30725bf977786,
3932
                0x10a5c1635a053, 0x16d87a411a212 },
3933
        },
3934
        {
3935
            { 0x4d5e2d54e0583, 0x2e5d7b33f5f74, 0x3a5de3f887ebf,
3936
                0x6ef24bd6139b7, 0x1f990b577a5a6 },
3937
            { 0x57e5a42066215, 0x1a18b44983677, 0x3e652de1e6f8f,
3938
                0x6532be02ed8eb, 0x28f87c8165f38 },
3939
            { 0x44ead1be8f7d6, 0x5759d4f31f466, 0x0378149f47943,
3940
                0x69f3be32b4f29, 0x45882fe1534d6 },
3941
        },
3942
        {
3943
            { 0x49929943c6fe4, 0x4347072545b15, 0x3226bced7e7c5,
3944
                0x03a134ced89df, 0x7dcf843ce405f },
3945
            { 0x1345d757983d6, 0x222f54234cccd, 0x1784a3d8adbb4,
3946
                0x36ebeee8c2bcc, 0x688fe5b8f626f },
3947
            { 0x0d6484a4732c0, 0x7b94ac6532d92, 0x5771b8754850f,
3948
                0x48dd9df1461c8, 0x6739687e73271 },
3949
        },
3950
    },
3951
    {
3952
        {
3953
            { 0x5cc9dc80c1ac0, 0x683671486d4cd, 0x76f5f1a5e8173,
3954
                0x6d5d3f5f9df4a, 0x7da0b8f68d7e7 },
3955
            { 0x02014385675a6, 0x6155fb53d1def, 0x37ea32e89927c,
3956
                0x059a668f5a82e, 0x46115aba1d4dc },
3957
            { 0x71953c3b5da76, 0x6642233d37a81, 0x2c9658076b1bd,
3958
                0x5a581e63010ff, 0x5a5f887e83674 },
3959
        },
3960
        {
3961
            { 0x628d3a0a643b9, 0x01cd8640c93d2, 0x0b7b0cad70f2c,
3962
                0x3864da98144be, 0x43e37ae2d5d1c },
3963
            { 0x301cf70a13d11, 0x2a6a1ba1891ec, 0x2f291fb3f3ae0,
3964
                0x21a7b814bea52, 0x3669b656e44d1 },
3965
            { 0x63f06eda6e133, 0x233342758070f, 0x098e0459cc075,
3966
                0x4df5ead6c7c1b, 0x6a21e6cd4fd5e },
3967
        },
3968
        {
3969
            { 0x129126699b2e3, 0x0ee11a2603de8, 0x60ac2f5c74c21,
3970
                0x59b192a196808, 0x45371b07001e8 },
3971
            { 0x6170a3046e65f, 0x5401a46a49e38, 0x20add5561c4a8,
3972
                0x7abb4edde9e46, 0x586bf9f1a195f },
3973
            { 0x3088d5ef8790b, 0x38c2126fcb4db, 0x685bae149e3c3,
3974
                0x0bcd601a4e930, 0x0eafb03790e52 },
3975
        },
3976
        {
3977
            { 0x0805e0f75ae1d, 0x464cc59860a28, 0x248e5b7b00bef,
3978
                0x5d99675ef8f75, 0x44ae3344c5435 },
3979
            { 0x555c13748042f, 0x4d041754232c0, 0x521b430866907,
3980
                0x3308e40fb9c39, 0x309acc675a02c },
3981
            { 0x289b9bba543ee, 0x3ab592e28539e, 0x64d82abcdd83a,
3982
                0x3c78ec172e327, 0x62d5221b7f946 },
3983
        },
3984
        {
3985
            { 0x5d4263af77a3c, 0x23fdd2289aeb0, 0x7dc64f77eb9ec,
3986
                0x01bd28338402c, 0x14f29a5383922 },
3987
            { 0x4299c18d0936d, 0x5914183418a49, 0x52a18c721aed5,
3988
                0x2b151ba82976d, 0x5c0efde4bc754 },
3989
            { 0x17edc25b2d7f5, 0x37336a6081bee, 0x7b5318887e5c3,
3990
                0x49f6d491a5be1, 0x5e72365c7bee0 },
3991
        },
3992
        {
3993
            { 0x339062f08b33e, 0x4bbf3e657cfb2, 0x67af7f56e5967,
3994
                0x4dbd67f9ed68f, 0x70b20555cb734 },
3995
            { 0x3fc074571217f, 0x3a0d29b2b6aeb, 0x06478ccdde59d,
3996
                0x55e4d051bddfa, 0x77f1104c47b4e },
3997
            { 0x113c555112c4c, 0x7535103f9b7ca, 0x140ed1d9a2108,
3998
                0x02522333bc2af, 0x0e34398f4a064 },
3999
        },
4000
        {
4001
            { 0x30b093e4b1928, 0x1ce7e7ec80312, 0x4e575bdf78f84,
4002
                0x61f7a190bed39, 0x6f8aded6ca379 },
4003
            { 0x522d93ecebde8, 0x024f045e0f6cf, 0x16db63426cfa1,
4004
                0x1b93a1fd30fd8, 0x5e5405368a362 },
4005
            { 0x0123dfdb7b29a, 0x4344356523c68, 0x79a527921ee5f,
4006
                0x74bfccb3e817e, 0x780de72ec8d3d },
4007
        },
4008
        {
4009
            { 0x7eaf300f42772, 0x5455188354ce3, 0x4dcca4a3dcbac,
4010
                0x3d314d0bfebcb, 0x1defc6ad32b58 },
4011
            { 0x28545089ae7bc, 0x1e38fe9a0c15c, 0x12046e0e2377b,
4012
                0x6721c560aa885, 0x0eb28bf671928 },
4013
            { 0x3be1aef5195a7, 0x6f22f62bdb5eb, 0x39768b8523049,
4014
                0x43394c8fbfdbd, 0x467d201bf8dd2 },
4015
        },
4016
    },
4017
    {
4018
        {
4019
            { 0x6f4bd567ae7a9, 0x65ac89317b783, 0x07d3b20fd8932,
4020
                0x000f208326916, 0x2ef9c5a5ba384 },
4021
            { 0x6919a74ef4fad, 0x59ed4611452bf, 0x691ec04ea09ef,
4022
                0x3cbcb2700e984, 0x71c43c4f5ba3c },
4023
            { 0x56df6fa9e74cd, 0x79c95e4cf56df, 0x7be643bc609e2,
4024
                0x149c12ad9e878, 0x5a758ca390c5f },
4025
        },
4026
        {
4027
            { 0x0918b1d61dc94, 0x0d350260cd19c, 0x7a2ab4e37b4d9,
4028
                0x21fea735414d7, 0x0a738027f639d },
4029
            { 0x72710d9462495, 0x25aafaa007456, 0x2d21f28eaa31b,
4030
                0x17671ea005fd0, 0x2dbae244b3eb7 },
4031
            { 0x74a2f57ffe1cc, 0x1bc3073087301, 0x7ec57f4019c34,
4032
                0x34e082e1fa524, 0x2698ca635126a },
4033
        },
4034
        {
4035
            { 0x5702f5e3dd90e, 0x31c9a4a70c5c7, 0x136a5aa78fc24,
4036
                0x1992f3b9f7b01, 0x3c004b0c4afa3 },
4037
            { 0x5318832b0ba78, 0x6f24b9ff17cec, 0x0a47f30e060c7,
4038
                0x58384540dc8d0, 0x1fb43dcc49cae },
4039
            { 0x146ac06f4b82b, 0x4b500d89e7355, 0x3351e1c728a12,
4040
                0x10b9f69932fe3, 0x6b43fd01cd1fd },
4041
        },
4042
        {
4043
            { 0x742583e760ef3, 0x73dc1573216b8, 0x4ae48fdd7714a,
4044
                0x4f85f8a13e103, 0x73420b2d6ff0d },
4045
            { 0x75d4b4697c544, 0x11be1fff7f8f4, 0x119e16857f7e1,
4046
                0x38a14345cf5d5, 0x5a68d7105b52f },
4047
            { 0x4f6cb9e851e06, 0x278c4471895e5, 0x7efcdce3d64e4,
4048
                0x64f6d455c4b4c, 0x3db5632fea34b },
4049
        },
4050
        {
4051
            { 0x190b1829825d5, 0x0e7d3513225c9, 0x1c12be3b7abae,
4052
                0x58777781e9ca6, 0x59197ea495df2 },
4053
            { 0x6ee2bf75dd9d8, 0x6c72ceb34be8d, 0x679c9cc345ec7,
4054
                0x7898df96898a4, 0x04321adf49d75 },
4055
            { 0x16019e4e55aae, 0x74fc5f25d209c, 0x4566a939ded0d,
4056
                0x66063e716e0b7, 0x45eafdc1f4d70 },
4057
        },
4058
        {
4059
            { 0x64624cfccb1ed, 0x257ab8072b6c1, 0x0120725676f0a,
4060
                0x4a018d04e8eee, 0x3f73ceea5d56d },
4061
            { 0x401858045d72b, 0x459e5e0ca2d30, 0x488b719308bea,
4062
                0x56f4a0d1b32b5, 0x5a5eebc80362d },
4063
            { 0x7bfd10a4e8dc6, 0x7c899366736f4, 0x55ebbeaf95c01,
4064
                0x46db060903f8a, 0x2605889126621 },
4065
        },
4066
        {
4067
            { 0x18e3cc676e542, 0x26079d995a990, 0x04a7c217908b2,
4068
                0x1dc7603e6655a, 0x0dedfa10b2444 },
4069
            { 0x704a68360ff04, 0x3cecc3cde8b3e, 0x21cd5470f64ff,
4070
                0x6abc18d953989, 0x54ad0c2e4e615 },
4071
            { 0x367d5b82b522a, 0x0d3f4b83d7dc7, 0x3067f4cdbc58d,
4072
                0x20452da697937, 0x62ecb2baa77a9 },
4073
        },
4074
        {
4075
            { 0x72836afb62874, 0x0af3c2094b240, 0x0c285297f357a,
4076
                0x7cc2d5680d6e3, 0x61913d5075663 },
4077
            { 0x5795261152b3d, 0x7a1dbbafa3cbd, 0x5ad31c52588d5,
4078
                0x45f3a4164685c, 0x2e59f919a966d },
4079
            { 0x62d361a3231da, 0x65284004e01b8, 0x656533be91d60,
4080
                0x6ae016c00a89f, 0x3ddbc2a131c05 },
4081
        },
4082
    },
4083
    {
4084
        {
4085
            { 0x257a22796bb14, 0x6f360fb443e75, 0x680e47220eaea,
4086
                0x2fcf2a5f10c18, 0x5ee7fb38d8320 },
4087
            { 0x40ff9ce5ec54b, 0x57185e261b35b, 0x3e254540e70a9,
4088
                0x1b5814003e3f8, 0x78968314ac04b },
4089
            { 0x5fdcb41446a8e, 0x5286926ff2a71, 0x0f231e296b3f6,
4090
                0x684a357c84693, 0x61d0633c9bca0 },
4091
        },
4092
        {
4093
            { 0x328bcf8fc73df, 0x3b4de06ff95b4, 0x30aa427ba11a5,
4094
                0x5ee31bfda6d9c, 0x5b23ac2df8067 },
4095
            { 0x44935ffdb2566, 0x12f016d176c6e, 0x4fbb00f16f5ae,
4096
                0x3fab78d99402a, 0x6e965fd847aed },
4097
            { 0x2b953ee80527b, 0x55f5bcdb1b35a, 0x43a0b3fa23c66,
4098
                0x76e07388b820a, 0x79b9bbb9dd95d },
4099
        },
4100
        {
4101
            { 0x17dae8e9f7374, 0x719f76102da33, 0x5117c2a80ca8b,
4102
                0x41a66b65d0936, 0x1ba811460accb },
4103
            { 0x355406a3126c2, 0x50d1918727d76, 0x6e5ea0b498e0e,
4104
                0x0a3b6063214f2, 0x5065f158c9fd2 },
4105
            { 0x169fb0c429954, 0x59aedd9ecee10, 0x39916eb851802,
4106
                0x57917555cc538, 0x3981f39e58a4f },
4107
        },
4108
        {
4109
            { 0x5dfa56de66fde, 0x0058809075908, 0x6d3d8cb854a94,
4110
                0x5b2f4e970b1e3, 0x30f4452edcbc1 },
4111
            { 0x38a7559230a93, 0x52c1cde8ba31f, 0x2a4f2d4745a3d,
4112
                0x07e9d42d4a28a, 0x38dc083705acd },
4113
            { 0x52782c5759740, 0x53f3397d990ad, 0x3a939c7e84d15,
4114
                0x234c4227e39e0, 0x632d9a1a593f2 },
4115
        },
4116
        {
4117
            { 0x1fd11ed0c84a7, 0x021b3ed2757e1, 0x73e1de58fc1c6,
4118
                0x5d110c84616ab, 0x3a5a7df28af64 },
4119
            { 0x36b15b807cba6, 0x3f78a9e1afed7, 0x0a59c2c608f1f,
4120
                0x52bdd8ecb81b7, 0x0b24f48847ed4 },
4121
            { 0x2d4be511beac7, 0x6bda4d99e5b9b, 0x17e6996914e01,
4122
                0x7b1f0ce7fcf80, 0x34fcf74475481 },
4123
        },
4124
        {
4125
            { 0x31dab78cfaa98, 0x4e3216e5e54b7, 0x249823973b689,
4126
                0x2584984e48885, 0x0119a3042fb37 },
4127
            { 0x7e04c789767ca, 0x1671b28cfb832, 0x7e57ea2e1c537,
4128
                0x1fbaaef444141, 0x3d3bdc164dfa6 },
4129
            { 0x2d89ce8c2177d, 0x6cd12ba182cf4, 0x20a8ac19a7697,
4130
                0x539fab2cc72d9, 0x56c088f1ede20 },
4131
        },
4132
        {
4133
            { 0x35fac24f38f02, 0x7d75c6197ab03, 0x33e4bc2a42fa7,
4134
                0x1c7cd10b48145, 0x038b7ea483590 },
4135
            { 0x53d1110a86e17, 0x6416eb65f466d, 0x41ca6235fce20,
4136
                0x5c3fc8a99bb12, 0x09674c6b99108 },
4137
            { 0x6f82199316ff8, 0x05d54f1a9f3e9, 0x3bcc5d0bd274a,
4138
                0x5b284b8d2d5ad, 0x6e5e31025969e },
4139
        },
4140
        {
4141
            { 0x4fb0e63066222, 0x130f59747e660, 0x041868fecd41a,
4142
                0x3105e8c923bc6, 0x3058ad43d1838 },
4143
            { 0x462f587e593fb, 0x3d94ba7ce362d, 0x330f9b52667b7,
4144
                0x5d45a48e0f00a, 0x08f5114789a8d },
4145
            { 0x40ffde57663d0, 0x71445d4c20647, 0x2653e68170f7c,
4146
                0x64cdee3c55ed6, 0x26549fa4efe3d },
4147
        },
4148
    },
4149
    {
4150
        {
4151
            { 0x68549af3f666e, 0x09e2941d4bb68, 0x2e8311f5dff3c,
4152
                0x6429ef91ffbd2, 0x3a10dfe132ce3 },
4153
            { 0x55a461e6bf9d6, 0x78eeef4b02e83, 0x1d34f648c16cf,
4154
                0x07fea2aba5132, 0x1926e1dc6401e },
4155
            { 0x74e8aea17cea0, 0x0c743f83fbc0f, 0x7cb03c4bf5455,
4156
                0x68a8ba9917e98, 0x1fa1d01d861e5 },
4157
        },
4158
        {
4159
            { 0x4ac00d1df94ab, 0x3ba2101bd271b, 0x7578988b9c4af,
4160
                0x0f2bf89f49f7e, 0x73fced18ee9a0 },
4161
            { 0x055947d599832, 0x346fe2aa41990, 0x0164c8079195b,
4162
                0x799ccfb7bba27, 0x773563bc6a75c },
4163
            { 0x1e90863139cb3, 0x4f8b407d9a0d6, 0x58e24ca924f69,
4164
                0x7a246bbe76456, 0x1f426b701b864 },
4165
        },
4166
        {
4167
            { 0x635c891a12552, 0x26aebd38ede2f, 0x66dc8faddae05,
4168
                0x21c7d41a03786, 0x0b76bb1b3fa7e },
4169
            { 0x1264c41911c01, 0x702f44584bdf9, 0x43c511fc68ede,
4170
                0x0482c3aed35f9, 0x4e1af5271d31b },
4171
            { 0x0c1f97f92939b, 0x17a88956dc117, 0x6ee005ef99dc7,
4172
                0x4aa9172b231cc, 0x7b6dd61eb772a },
4173
        },
4174
        {
4175
            { 0x0abf9ab01d2c7, 0x3880287630ae6, 0x32eca045beddb,
4176
                0x57f43365f32d0, 0x53fa9b659bff6 },
4177
            { 0x5c1e850f33d92, 0x1ec119ab9f6f5, 0x7f16f6de663e9,
4178
                0x7a7d6cb16dec6, 0x703e9bceaf1d2 },
4179
            { 0x4c8e994885455, 0x4ccb5da9cad82, 0x3596bc610e975,
4180
                0x7a80c0ddb9f5e, 0x398d93e5c4c61 },
4181
        },
4182
        {
4183
            { 0x77c60d2e7e3f2, 0x4061051763870, 0x67bc4e0ecd2aa,
4184
                0x2bb941f1373b9, 0x699c9c9002c30 },
4185
            { 0x3d16733e248f3, 0x0e2b7e14be389, 0x42c0ddaf6784a,
4186
                0x589ea1fc67850, 0x53b09b5ddf191 },
4187
            { 0x6a7235946f1cc, 0x6b99cbb2fbe60, 0x6d3a5d6485c62,
4188
                0x4839466e923c0, 0x51caf30c6fcdd },
4189
        },
4190
        {
4191
            { 0x2f99a18ac54c7, 0x398a39661ee6f, 0x384331e40cde3,
4192
                0x4cd15c4de19a6, 0x12ae29c189f8e },
4193
            { 0x3a7427674e00a, 0x6142f4f7e74c1, 0x4cc93318c3a15,
4194
                0x6d51bac2b1ee7, 0x5504aa292383f },
4195
            { 0x6c0cb1f0d01cf, 0x187469ef5d533, 0x27138883747bf,
4196
                0x2f52ae53a90e8, 0x5fd14fe958eba },
4197
        },
4198
        {
4199
            { 0x2fe5ebf93cb8e, 0x226da8acbe788, 0x10883a2fb7ea1,
4200
                0x094707842cf44, 0x7dd73f960725d },
4201
            { 0x42ddf2845ab2c, 0x6214ffd3276bb, 0x00b8d181a5246,
4202
                0x268a6d579eb20, 0x093ff26e58647 },
4203
            { 0x524fe68059829, 0x65b75e47cb621, 0x15eb0a5d5cc19,
4204
                0x05209b3929d5a, 0x2f59bcbc86b47 },
4205
        },
4206
        {
4207
            { 0x1d560b691c301, 0x7f5bafce3ce08, 0x4cd561614806c,
4208
                0x4588b6170b188, 0x2aa55e3d01082 },
4209
            { 0x47d429917135f, 0x3eacfa07af070, 0x1deab46b46e44,
4210
                0x7a53f3ba46cdf, 0x5458b42e2e51a },
4211
            { 0x192e60c07444f, 0x5ae8843a21daa, 0x6d721910b1538,
4212
                0x3321a95a6417e, 0x13e9004a8a768 },
4213
        },
4214
    },
4215
    {
4216
        {
4217
            { 0x600c9193b877f, 0x21c1b8a0d7765, 0x379927fb38ea2,
4218
                0x70d7679dbe01b, 0x5f46040898de9 },
4219
            { 0x58845832fcedb, 0x135cd7f0c6e73, 0x53ffbdfe8e35b,
4220
                0x22f195e06e55b, 0x73937e8814bce },
4221
            { 0x37116297bf48d, 0x45a9e0d069720, 0x25af71aa744ec,
4222
                0x41af0cb8aaba3, 0x2cf8a4e891d5e },
4223
        },
4224
        {
4225
            { 0x5487e17d06ba2, 0x3872a032d6596, 0x65e28c09348e0,
4226
                0x27b6bb2ce40c2, 0x7a6f7f2891d6a },
4227
            { 0x3fd8707110f67, 0x26f8716a92db2, 0x1cdaa1b753027,
4228
                0x504be58b52661, 0x2049bd6e58252 },
4229
            { 0x1fd8d6a9aef49, 0x7cb67b7216fa1, 0x67aff53c3b982,
4230
                0x20ea610da9628, 0x6011aadfc5459 },
4231
        },
4232
        {
4233
            { 0x6d0c802cbf890, 0x141bfed554c7b, 0x6dbb667ef4263,
4234
                0x58f3126857edc, 0x69ce18b779340 },
4235
            { 0x7926dcf95f83c, 0x42e25120e2bec, 0x63de96df1fa15,
4236
                0x4f06b50f3f9cc, 0x6fc5cc1b0b62f },
4237
            { 0x75528b29879cb, 0x79a8fd2125a3d, 0x27c8d4b746ab8,
4238
                0x0f8893f02210c, 0x15596b3ae5710 },
4239
        },
4240
        {
4241
            { 0x731167e5124ca, 0x17b38e8bbe13f, 0x3d55b942f9056,
4242
                0x09c1495be913f, 0x3aa4e241afb6d },
4243
            { 0x739d23f9179a2, 0x632fadbb9e8c4, 0x7c8522bfe0c48,
4244
                0x6ed0983ef5aa9, 0x0d2237687b5f4 },
4245
            { 0x138bf2a3305f5, 0x1f45d24d86598, 0x5274bad2160fe,
4246
                0x1b6041d58d12a, 0x32fcaa6e4687a },
4247
        },
4248
        {
4249
            { 0x7a4732787ccdf, 0x11e427c7f0640, 0x03659385f8c64,
4250
                0x5f4ead9766bfb, 0x746f6336c2600 },
4251
            { 0x56e8dc57d9af5, 0x5b3be17be4f78, 0x3bf928cf82f4b,
4252
                0x52e55600a6f11, 0x4627e9cefebd6 },
4253
            { 0x2f345ab6c971c, 0x653286e63e7e9, 0x51061b78a23ad,
4254
                0x14999acb54501, 0x7b4917007ed66 },
4255
        },
4256
        {
4257
            { 0x41b28dd53a2dd, 0x37be85f87ea86, 0x74be3d2a85e41,
4258
                0x1be87fac96ca6, 0x1d03620fe08cd },
4259
            { 0x5fb5cab84b064, 0x2513e778285b0, 0x457383125e043,
4260
                0x6bda3b56e223d, 0x122ba376f844f },
4261
            { 0x232cda2b4e554, 0x0422ba30ff840, 0x751e7667b43f5,
4262
                0x6261755da5f3e, 0x02c70bf52b68e },
4263
        },
4264
        {
4265
            { 0x532bf458d72e1, 0x40f96e796b59c, 0x22ef79d6f9da3,
4266
                0x501ab67beca77, 0x6b0697e3feb43 },
4267
            { 0x7ec4b5d0b2fbb, 0x200e910595450, 0x742057105715e,
4268
                0x2f07022530f60, 0x26334f0a409ef },
4269
            { 0x0f04adf62a3c0, 0x5e0edb48bb6d9, 0x7c34aa4fbc003,
4270
                0x7d74e4e5cac24, 0x1cc37f43441b2 },
4271
        },
4272
        {
4273
            { 0x656f1c9ceaeb9, 0x7031cacad5aec, 0x1308cd0716c57,
4274
                0x41c1373941942, 0x3a346f772f196 },
4275
            { 0x7565a5cc7324f, 0x01ca0d5244a11, 0x116b067418713,
4276
                0x0a57d8c55edae, 0x6c6809c103803 },
4277
            { 0x55112e2da6ac8, 0x6363d0a3dba5a, 0x319c98ba6f40c,
4278
                0x2e84b03a36ec7, 0x05911b9f6ef7c },
4279
        },
4280
    },
4281
    {
4282
        {
4283
            { 0x1acf3512eeaef, 0x2639839692a69, 0x669a234830507,
4284
                0x68b920c0603d4, 0x555ef9d1c64b2 },
4285
            { 0x39983f5df0ebb, 0x1ea2589959826, 0x6ce638703cdd6,
4286
                0x6311678898505, 0x6b3cecf9aa270 },
4287
            { 0x770ba3b73bd08, 0x11475f7e186d4, 0x0251bc9892bbc,
4288
                0x24eab9bffcc5a, 0x675f4de133817 },
4289
        },
4290
        {
4291
            { 0x7f6d93bdab31d, 0x1f3aca5bfd425, 0x2fa521c1c9760,
4292
                0x62180ce27f9cd, 0x60f450b882cd3 },
4293
            { 0x452036b1782fc, 0x02d95b07681c5, 0x5901cf99205b2,
4294
                0x290686e5eecb4, 0x13d99df70164c },
4295
            { 0x35ec321e5c0ca, 0x13ae337f44029, 0x4008e813f2da7,
4296
                0x640272f8e0c3a, 0x1c06de9e55eda },
4297
        },
4298
        {
4299
            { 0x52b40ff6d69aa, 0x31b8809377ffa, 0x536625cd14c2c,
4300
                0x516af252e17d1, 0x78096f8e7d32b },
4301
            { 0x77ad6a33ec4e2, 0x717c5dc11d321, 0x4a114559823e4,
4302
                0x306ce50a1e2b1, 0x4cf38a1fec2db },
4303
            { 0x2aa650dfa5ce7, 0x54916a8f19415, 0x00dc96fe71278,
4304
                0x55f2784e63eb8, 0x373cad3a26091 },
4305
        },
4306
        {
4307
            { 0x6a8fb89ddbbad, 0x78c35d5d97e37, 0x66e3674ef2cb2,
4308
                0x34347ac53dd8f, 0x21547eda5112a },
4309
            { 0x4634d82c9f57c, 0x4249268a6d652, 0x6336d687f2ff7,
4310
                0x4fe4f4e26d9a0, 0x0040f3d945441 },
4311
            { 0x5e939fd5986d3, 0x12a2147019bdf, 0x4c466e7d09cb2,
4312
                0x6fa5b95d203dd, 0x63550a334a254 },
4313
        },
4314
        {
4315
            { 0x2584572547b49, 0x75c58811c1377, 0x4d3c637cc171b,
4316
                0x33d30747d34e3, 0x39a92bafaa7d7 },
4317
            { 0x7d6edb569cf37, 0x60194a5dc2ca0, 0x5af59745e10a6,
4318
                0x7a8f53e004875, 0x3eea62c7daf78 },
4319
            { 0x4c713e693274e, 0x6ed1b7a6eb3a4, 0x62ace697d8e15,
4320
                0x266b8292ab075, 0x68436a0665c9c },
4321
        },
4322
        {
4323
            { 0x6d317e820107c, 0x090815d2ca3ca, 0x03ff1eb1499a1,
4324
                0x23960f050e319, 0x5373669c91611 },
4325
            { 0x235e8202f3f27, 0x44c9f2eb61780, 0x630905b1d7003,
4326
                0x4fcc8d274ead1, 0x17b6e7f68ab78 },
4327
            { 0x014ab9a0e5257, 0x09939567f8ba5, 0x4b47b2a423c82,
4328
                0x688d7e57ac42d, 0x1cb4b5a678f87 },
4329
        },
4330
        {
4331
            { 0x4aa62a2a007e7, 0x61e0e38f62d6e, 0x02f888fcc4782,
4332
                0x7562b83f21c00, 0x2dc0fd2d82ef6 },
4333
            { 0x4c06b394afc6c, 0x4931b4bf636cc, 0x72b60d0322378,
4334
                0x25127c6818b25, 0x330bca78de743 },
4335
            { 0x6ff841119744e, 0x2c560e8e49305, 0x7254fefe5a57a,
4336
                0x67ae2c560a7df, 0x3c31be1b369f1 },
4337
        },
4338
        {
4339
            { 0x0bc93f9cb4272, 0x3f8f9db73182d, 0x2b235eabae1c4,
4340
                0x2ddbf8729551a, 0x41cec1097e7d5 },
4341
            { 0x4864d08948aee, 0x5d237438df61e, 0x2b285601f7067,
4342
                0x25dbcbae6d753, 0x330b61134262d },
4343
            { 0x619d7a26d808a, 0x3c3b3c2adbef2, 0x6877c9eec7f52,
4344
                0x3beb9ebe1b66d, 0x26b44cd91f287 },
4345
        },
4346
    },
4347
    {
4348
        {
4349
            { 0x7f29362730383, 0x7fd7951459c36, 0x7504c512d49e7,
4350
                0x087ed7e3bc55f, 0x7deb10149c726 },
4351
            { 0x048478f387475, 0x69397d9678a3e, 0x67c8156c976f3,
4352
                0x2eb4d5589226c, 0x2c709e6c1c10a },
4353
            { 0x2af6a8766ee7a, 0x08aaa79a1d96c, 0x42f92d59b2fb0,
4354
                0x1752c40009c07, 0x08e68e9ff62ce },
4355
        },
4356
        {
4357
            { 0x509d50ab8f2f9, 0x1b8ab247be5e5, 0x5d9b2e6b2e486,
4358
                0x4faa5479a1339, 0x4cb13bd738f71 },
4359
            { 0x5500a4bc130ad, 0x127a17a938695, 0x02a26fa34e36d,
4360
                0x584d12e1ecc28, 0x2f1f3f87eeba3 },
4361
            { 0x48c75e515b64a, 0x75b6952071ef0, 0x5d46d42965406,
4362
                0x7746106989f9f, 0x19a1e353c0ae2 },
4363
        },
4364
        {
4365
            { 0x172cdd596bdbd, 0x0731ddf881684, 0x10426d64f8115,
4366
                0x71a4fd8a9a3da, 0x736bd3990266a },
4367
            { 0x47560bafa05c3, 0x418dcabcc2fa3, 0x35991cecf8682,
4368
                0x24371a94b8c60, 0x41546b11c20c3 },
4369
            { 0x32d509334b3b4, 0x16c102cae70aa, 0x1720dd51bf445,
4370
                0x5ae662faf9821, 0x412295a2b87fa },
4371
        },
4372
        {
4373
            { 0x55261e293eac6, 0x06426759b65cc, 0x40265ae116a48,
4374
                0x6c02304bae5bc, 0x0760bb8d195ad },
4375
            { 0x19b88f57ed6e9, 0x4cdbf1904a339, 0x42b49cd4e4f2c,
4376
                0x71a2e771909d9, 0x14e153ebb52d2 },
4377
            { 0x61a17cde6818a, 0x53dad34108827, 0x32b32c55c55b6,
4378
                0x2f9165f9347a3, 0x6b34be9bc33ac },
4379
        },
4380
        {
4381
            { 0x469656571f2d3, 0x0aa61ce6f423f, 0x3f940d71b27a1,
4382
                0x185f19d73d16a, 0x01b9c7b62e6dd },
4383
            { 0x72f643a78c0b2, 0x3de45c04f9e7b, 0x706d68d30fa5c,
4384
                0x696f63e8e2f24, 0x2012c18f0922d },
4385
            { 0x355e55ac89d29, 0x3e8b414ec7101, 0x39db07c520c90,
4386
                0x6f41e9b77efe1, 0x08af5b784e4ba },
4387
        },
4388
        {
4389
            { 0x314d289cc2c4b, 0x23450e2f1bc4e, 0x0cd93392f92f4,
4390
                0x1370c6a946b7d, 0x6423c1d5afd98 },
4391
            { 0x499dc881f2533, 0x34ef26476c506, 0x4d107d2741497,
4392
                0x346c4bd6efdb3, 0x32b79d71163a1 },
4393
            { 0x5f8d9edfcb36a, 0x1e6e8dcbf3990, 0x7974f348af30a,
4394
                0x6e6724ef19c7c, 0x480a5efbc13e2 },
4395
        },
4396
        {
4397
            { 0x14ce442ce221f, 0x18980a72516cc, 0x072f80db86677,
4398
                0x703331fda526e, 0x24b31d47691c8 },
4399
            { 0x1e70b01622071, 0x1f163b5f8a16a, 0x56aaf341ad417,
4400
                0x7989635d830f7, 0x47aa27600cb7b },
4401
            { 0x41eedc015f8c3, 0x7cf8d27ef854a, 0x289e3584693f9,
4402
                0x04a7857b309a7, 0x545b585d14dda },
4403
        },
4404
        {
4405
            { 0x4e4d0e3b321e1, 0x7451fe3d2ac40, 0x666f678eea98d,
4406
                0x038858667fead, 0x4d22dc3e64c8d },
4407
            { 0x7275ea0d43a0f, 0x681137dd7ccf7, 0x1e79cbab79a38,
4408
                0x22a214489a66a, 0x0f62f9c332ba5 },
4409
            { 0x46589d63b5f39, 0x7eaf979ec3f96, 0x4ebe81572b9a8,
4410
                0x21b7f5d61694a, 0x1c0fa01a36371 },
4411
        },
4412
    },
4413
    {
4414
        {
4415
            { 0x02b0e8c936a50, 0x6b83b58b6cd21, 0x37ed8d3e72680,
4416
                0x0a037db9f2a62, 0x4005419b1d2bc },
4417
            { 0x604b622943dff, 0x1c899f6741a58, 0x60219e2f232fb,
4418
                0x35fae92a7f9cb, 0x0fa3614f3b1ca },
4419
            { 0x3febdb9be82f0, 0x5e74895921400, 0x553ea38822706,
4420
                0x5a17c24cfc88c, 0x1fba218aef40a },
4421
        },
4422
        {
4423
            { 0x657043e7b0194, 0x5c11b55efe9e7, 0x7737bc6a074fb,
4424
                0x0eae41ce355cc, 0x6c535d13ff776 },
4425
            { 0x49448fac8f53e, 0x34f74c6e8356a, 0x0ad780607dba2,
4426
                0x7213a7eb63eb6, 0x392e3acaa8c86 },
4427
            { 0x534e93e8a35af, 0x08b10fd02c997, 0x26ac2acb81e05,
4428
                0x09d8c98ce3b79, 0x25e17fe4d50ac },
4429
        },
4430
        {
4431
            { 0x77ff576f121a7, 0x4e5f9b0fc722b, 0x46f949b0d28c8,
4432
                0x4cde65d17ef26, 0x6bba828f89698 },
4433
            { 0x09bd71e04f676, 0x25ac841f2a145, 0x1a47eac823871,
4434
                0x1a8a8c36c581a, 0x255751442a9fb },
4435
            { 0x1bc6690fe3901, 0x314132f5abc5a, 0x611835132d528,
4436
                0x5f24b8eb48a57, 0x559d504f7f6b7 },
4437
        },
4438
        {
4439
            { 0x091e7f6d266fd, 0x36060ef037389, 0x18788ec1d1286,
4440
                0x287441c478eb0, 0x123ea6a3354bd },
4441
            { 0x38378b3eb54d5, 0x4d4aaa78f94ee, 0x4a002e875a74d,
4442
                0x10b851367b17c, 0x01ab12d5807e3 },
4443
            { 0x5189041e32d96, 0x05b062b090231, 0x0c91766e7b78f,
4444
                0x0aa0f55a138ec, 0x4a3961e2c918a },
4445
        },
4446
        {
4447
            { 0x7d644f3233f1e, 0x1c69f9e02c064, 0x36ae5e5266898,
4448
                0x08fc1dad38b79, 0x68aceead9bd41 },
4449
            { 0x43be0f8e6bba0, 0x68fdffc614e3b, 0x4e91dab5b3be0,
4450
                0x3b1d4c9212ff0, 0x2cd6bce3fb1db },
4451
            { 0x4c90ef3d7c210, 0x496f5a0818716, 0x79cf88cc239b8,
4452
                0x2cb9c306cf8db, 0x595760d5b508f },
4453
        },
4454
        {
4455
            { 0x2cbebfd022790, 0x0b8822aec1105, 0x4d1cfd226bccc,
4456
                0x515b2fa4971be, 0x2cb2c5df54515 },
4457
            { 0x1bfe104aa6397, 0x11494ff996c25, 0x64251623e5800,
4458
                0x0d49fc5e044be, 0x709fa43edcb29 },
4459
            { 0x25d8c63fd2aca, 0x4c5cd29dffd61, 0x32ec0eb48af05,
4460
                0x18f9391f9b77c, 0x70f029ecf0c81 },
4461
        },
4462
        {
4463
            { 0x2afaa5e10b0b9, 0x61de08355254d, 0x0eb587de3c28d,
4464
                0x4f0bb9f7dbbd5, 0x44eca5a2a74bd },
4465
            { 0x307b32eed3e33, 0x6748ab03ce8c2, 0x57c0d9ab810bc,
4466
                0x42c64a224e98c, 0x0b7d5d8a6c314 },
4467
            { 0x448327b95d543, 0x0146681e3a4ba, 0x38714adc34e0c,
4468
                0x4f26f0e298e30, 0x272224512c7de },
4469
        },
4470
        {
4471
            { 0x3bb8a42a975fc, 0x6f2d5b46b17ef, 0x7b6a9223170e5,
4472
                0x053713fe3b7e6, 0x19735fd7f6bc2 },
4473
            { 0x492af49c5342e, 0x2365cdf5a0357, 0x32138a7ffbb60,
4474
                0x2a1f7d14646fe, 0x11b5df18a44cc },
4475
            { 0x390d042c84266, 0x1efe32a8fdc75, 0x6925ee7ae1238,
4476
                0x4af9281d0e832, 0x0fef911191df8 },
4477
        },
4478
    },
4479
};
4480
#else
4481
/* k25519Precomp[i][j] = (j+1)*256^i*B */
4482
static const ge_precomp k25519Precomp[32][8] = {
4483
    {
4484
        {
4485
            { 25967493, -14356035, 29566456, 3660896, -12694345, 4014787,
4486
                27544626, -11754271, -6079156, 2047605 },
4487
            { -12545711, 934262, -2722910, 3049990, -727428, 9406986, 12720692,
4488
                5043384, 19500929, -15469378 },
4489
            { -8738181, 4489570, 9688441, -14785194, 10184609, -12363380,
4490
                29287919, 11864899, -24514362, -4438546 },
4491
        },
4492
        {
4493
            { -12815894, -12976347, -21581243, 11784320, -25355658, -2750717,
4494
                -11717903, -3814571, -358445, -10211303 },
4495
            { -21703237, 6903825, 27185491, 6451973, -29577724, -9554005,
4496
                -15616551, 11189268, -26829678, -5319081 },
4497
            { 26966642, 11152617, 32442495, 15396054, 14353839, -12752335,
4498
                -3128826, -9541118, -15472047, -4166697 },
4499
        },
4500
        {
4501
            { 15636291, -9688557, 24204773, -7912398, 616977, -16685262,
4502
                27787600, -14772189, 28944400, -1550024 },
4503
            { 16568933, 4717097, -11556148, -1102322, 15682896, -11807043,
4504
                16354577, -11775962, 7689662, 11199574 },
4505
            { 30464156, -5976125, -11779434, -15670865, 23220365, 15915852,
4506
                7512774, 10017326, -17749093, -9920357 },
4507
        },
4508
        {
4509
            { -17036878, 13921892, 10945806, -6033431, 27105052, -16084379,
4510
                -28926210, 15006023, 3284568, -6276540 },
4511
            { 23599295, -8306047, -11193664, -7687416, 13236774, 10506355,
4512
                7464579, 9656445, 13059162, 10374397 },
4513
            { 7798556, 16710257, 3033922, 2874086, 28997861, 2835604, 32406664,
4514
                -3839045, -641708, -101325 },
4515
        },
4516
        {
4517
            { 10861363, 11473154, 27284546, 1981175, -30064349, 12577861,
4518
                32867885, 14515107, -15438304, 10819380 },
4519
            { 4708026, 6336745, 20377586, 9066809, -11272109, 6594696, -25653668,
4520
                12483688, -12668491, 5581306 },
4521
            { 19563160, 16186464, -29386857, 4097519, 10237984, -4348115,
4522
                28542350, 13850243, -23678021, -15815942 },
4523
        },
4524
        {
4525
            { -15371964, -12862754, 32573250, 4720197, -26436522, 5875511,
4526
                -19188627, -15224819, -9818940, -12085777 },
4527
            { -8549212, 109983, 15149363, 2178705, 22900618, 4543417, 3044240,
4528
                -15689887, 1762328, 14866737 },
4529
            { -18199695, -15951423, -10473290, 1707278, -17185920, 3916101,
4530
                -28236412, 3959421, 27914454, 4383652 },
4531
        },
4532
        {
4533
            { 5153746, 9909285, 1723747, -2777874, 30523605, 5516873, 19480852,
4534
                5230134, -23952439, -15175766 },
4535
            { -30269007, -3463509, 7665486, 10083793, 28475525, 1649722,
4536
                20654025, 16520125, 30598449, 7715701 },
4537
            { 28881845, 14381568, 9657904, 3680757, -20181635, 7843316,
4538
                -31400660, 1370708, 29794553, -1409300 },
4539
        },
4540
        {
4541
            { 14499471, -2729599, -33191113, -4254652, 28494862, 14271267,
4542
                30290735, 10876454, -33154098, 2381726 },
4543
            { -7195431, -2655363, -14730155, 462251, -27724326, 3941372,
4544
                -6236617, 3696005, -32300832, 15351955 },
4545
            { 27431194, 8222322, 16448760, -3907995, -18707002, 11938355,
4546
                -32961401, -2970515, 29551813, 10109425 },
4547
        },
4548
    },
4549
    {
4550
        {
4551
            { -13657040, -13155431, -31283750, 11777098, 21447386, 6519384,
4552
                -2378284, -1627556, 10092783, -4764171 },
4553
            { 27939166, 14210322, 4677035, 16277044, -22964462, -12398139,
4554
                -32508754, 12005538, -17810127, 12803510 },
4555
            { 17228999, -15661624, -1233527, 300140, -1224870, -11714777,
4556
                30364213, -9038194, 18016357, 4397660 },
4557
        },
4558
        {
4559
            { -10958843, -7690207, 4776341, -14954238, 27850028, -15602212,
4560
                -26619106, 14544525, -17477504, 982639 },
4561
            { 29253598, 15796703, -2863982, -9908884, 10057023, 3163536, 7332899,
4562
                -4120128, -21047696, 9934963 },
4563
            { 5793303, 16271923, -24131614, -10116404, 29188560, 1206517,
4564
                -14747930, 4559895, -30123922, -10897950 },
4565
        },
4566
        {
4567
            { -27643952, -11493006, 16282657, -11036493, 28414021, -15012264,
4568
                24191034, 4541697, -13338309, 5500568 },
4569
            { 12650548, -1497113, 9052871, 11355358, -17680037, -8400164,
4570
                -17430592, 12264343, 10874051, 13524335 },
4571
            { 25556948, -3045990, 714651, 2510400, 23394682, -10415330, 33119038,
4572
                5080568, -22528059, 5376628 },
4573
        },
4574
        {
4575
            { -26088264, -4011052, -17013699, -3537628, -6726793, 1920897,
4576
                -22321305, -9447443, 4535768, 1569007 },
4577
            { -2255422, 14606630, -21692440, -8039818, 28430649, 8775819,
4578
                -30494562, 3044290, 31848280, 12543772 },
4579
            { -22028579, 2943893, -31857513, 6777306, 13784462, -4292203,
4580
                -27377195, -2062731, 7718482, 14474653 },
4581
        },
4582
        {
4583
            { 2385315, 2454213, -22631320, 46603, -4437935, -15680415, 656965,
4584
                -7236665, 24316168, -5253567 },
4585
            { 13741529, 10911568, -33233417, -8603737, -20177830, -1033297,
4586
                33040651, -13424532, -20729456, 8321686 },
4587
            { 21060490, -2212744, 15712757, -4336099, 1639040, 10656336,
4588
                23845965, -11874838, -9984458, 608372 },
4589
        },
4590
        {
4591
            { -13672732, -15087586, -10889693, -7557059, -6036909, 11305547,
4592
                1123968, -6780577, 27229399, 23887 },
4593
            { -23244140, -294205, -11744728, 14712571, -29465699, -2029617,
4594
                12797024, -6440308, -1633405, 16678954 },
4595
            { -29500620, 4770662, -16054387, 14001338, 7830047, 9564805,
4596
                -1508144, -4795045, -17169265, 4904953 },
4597
        },
4598
        {
4599
            { 24059557, 14617003, 19037157, -15039908, 19766093, -14906429,
4600
                5169211, 16191880, 2128236, -4326833 },
4601
            { -16981152, 4124966, -8540610, -10653797, 30336522, -14105247,
4602
                -29806336, 916033, -6882542, -2986532 },
4603
            { -22630907, 12419372, -7134229, -7473371, -16478904, 16739175,
4604
                285431, 2763829, 15736322, 4143876 },
4605
        },
4606
        {
4607
            { 2379352, 11839345, -4110402, -5988665, 11274298, 794957, 212801,
4608
                -14594663, 23527084, -16458268 },
4609
            { 33431127, -11130478, -17838966, -15626900, 8909499, 8376530,
4610
                -32625340, 4087881, -15188911, -14416214 },
4611
            { 1767683, 7197987, -13205226, -2022635, -13091350, 448826, 5799055,
4612
                4357868, -4774191, -16323038 },
4613
        },
4614
    },
4615
    {
4616
        {
4617
            { 6721966, 13833823, -23523388, -1551314, 26354293, -11863321,
4618
                23365147, -3949732, 7390890, 2759800 },
4619
            { 4409041, 2052381, 23373853, 10530217, 7676779, -12885954, 21302353,
4620
                -4264057, 1244380, -12919645 },
4621
            { -4421239, 7169619, 4982368, -2957590, 30256825, -2777540, 14086413,
4622
                9208236, 15886429, 16489664 },
4623
        },
4624
        {
4625
            { 1996075, 10375649, 14346367, 13311202, -6874135, -16438411,
4626
                -13693198, 398369, -30606455, -712933 },
4627
            { -25307465, 9795880, -2777414, 14878809, -33531835, 14780363,
4628
                13348553, 12076947, -30836462, 5113182 },
4629
            { -17770784, 11797796, 31950843, 13929123, -25888302, 12288344,
4630
                -30341101, -7336386, 13847711, 5387222 },
4631
        },
4632
        {
4633
            { -18582163, -3416217, 17824843, -2340966, 22744343, -10442611,
4634
                8763061, 3617786, -19600662, 10370991 },
4635
            { 20246567, -14369378, 22358229, -543712, 18507283, -10413996,
4636
                14554437, -8746092, 32232924, 16763880 },
4637
            { 9648505, 10094563, 26416693, 14745928, -30374318, -6472621,
4638
                11094161, 15689506, 3140038, -16510092 },
4639
        },
4640
        {
4641
            { -16160072, 5472695, 31895588, 4744994, 8823515, 10365685,
4642
                -27224800, 9448613, -28774454, 366295 },
4643
            { 19153450, 11523972, -11096490, -6503142, -24647631, 5420647,
4644
                28344573, 8041113, 719605, 11671788 },
4645
            { 8678025, 2694440, -6808014, 2517372, 4964326, 11152271, -15432916,
4646
                -15266516, 27000813, -10195553 },
4647
        },
4648
        {
4649
            { -15157904, 7134312, 8639287, -2814877, -7235688, 10421742, 564065,
4650
                5336097, 6750977, -14521026 },
4651
            { 11836410, -3979488, 26297894, 16080799, 23455045, 15735944,
4652
                1695823, -8819122, 8169720, 16220347 },
4653
            { -18115838, 8653647, 17578566, -6092619, -8025777, -16012763,
4654
                -11144307, -2627664, -5990708, -14166033 },
4655
        },
4656
        {
4657
            { -23308498, -10968312, 15213228, -10081214, -30853605, -11050004,
4658
                27884329, 2847284, 2655861, 1738395 },
4659
            { -27537433, -14253021, -25336301, -8002780, -9370762, 8129821,
4660
                21651608, -3239336, -19087449, -11005278 },
4661
            { 1533110, 3437855, 23735889, 459276, 29970501, 11335377, 26030092,
4662
                5821408, 10478196, 8544890 },
4663
        },
4664
        {
4665
            { 32173121, -16129311, 24896207, 3921497, 22579056, -3410854,
4666
                19270449, 12217473, 17789017, -3395995 },
4667
            { -30552961, -2228401, -15578829, -10147201, 13243889, 517024,
4668
                15479401, -3853233, 30460520, 1052596 },
4669
            { -11614875, 13323618, 32618793, 8175907, -15230173, 12596687,
4670
                27491595, -4612359, 3179268, -9478891 },
4671
        },
4672
        {
4673
            { 31947069, -14366651, -4640583, -15339921, -15125977, -6039709,
4674
                -14756777, -16411740, 19072640, -9511060 },
4675
            { 11685058, 11822410, 3158003, -13952594, 33402194, -4165066,
4676
                5977896, -5215017, 473099, 5040608 },
4677
            { -20290863, 8198642, -27410132, 11602123, 1290375, -2799760,
4678
                28326862, 1721092, -19558642, -3131606 },
4679
        },
4680
    },
4681
    {
4682
        {
4683
            { 7881532, 10687937, 7578723, 7738378, -18951012, -2553952, 21820786,
4684
                8076149, -27868496, 11538389 },
4685
            { -19935666, 3899861, 18283497, -6801568, -15728660, -11249211,
4686
                8754525, 7446702, -5676054, 5797016 },
4687
            { -11295600, -3793569, -15782110, -7964573, 12708869, -8456199,
4688
                2014099, -9050574, -2369172, -5877341 },
4689
        },
4690
        {
4691
            { -22472376, -11568741, -27682020, 1146375, 18956691, 16640559,
4692
                1192730, -3714199, 15123619, 10811505 },
4693
            { 14352098, -3419715, -18942044, 10822655, 32750596, 4699007, -70363,
4694
                15776356, -28886779, -11974553 },
4695
            { -28241164, -8072475, -4978962, -5315317, 29416931, 1847569,
4696
                -20654173, -16484855, 4714547, -9600655 },
4697
        },
4698
        {
4699
            { 15200332, 8368572, 19679101, 15970074, -31872674, 1959451,
4700
                24611599, -4543832, -11745876, 12340220 },
4701
            { 12876937, -10480056, 33134381, 6590940, -6307776, 14872440,
4702
                9613953, 8241152, 15370987, 9608631 },
4703
            { -4143277, -12014408, 8446281, -391603, 4407738, 13629032, -7724868,
4704
                15866074, -28210621, -8814099 },
4705
        },
4706
        {
4707
            { 26660628, -15677655, 8393734, 358047, -7401291, 992988, -23904233,
4708
                858697, 20571223, 8420556 },
4709
            { 14620715, 13067227, -15447274, 8264467, 14106269, 15080814,
4710
                33531827, 12516406, -21574435, -12476749 },
4711
            { 236881, 10476226, 57258, -14677024, 6472998, 2466984, 17258519,
4712
                7256740, 8791136, 15069930 },
4713
        },
4714
        {
4715
            { 1276410, -9371918, 22949635, -16322807, -23493039, -5702186,
4716
                14711875, 4874229, -30663140, -2331391 },
4717
            { 5855666, 4990204, -13711848, 7294284, -7804282, 1924647, -1423175,
4718
                -7912378, -33069337, 9234253 },
4719
            { 20590503, -9018988, 31529744, -7352666, -2706834, 10650548,
4720
                31559055, -11609587, 18979186, 13396066 },
4721
        },
4722
        {
4723
            { 24474287, 4968103, 22267082, 4407354, 24063882, -8325180,
4724
                -18816887, 13594782, 33514650, 7021958 },
4725
            { -11566906, -6565505, -21365085, 15928892, -26158305, 4315421,
4726
                -25948728, -3916677, -21480480, 12868082 },
4727
            { -28635013, 13504661, 19988037, -2132761, 21078225, 6443208,
4728
                -21446107, 2244500, -12455797, -8089383 },
4729
        },
4730
        {
4731
            { -30595528, 13793479, -5852820, 319136, -25723172, -6263899,
4732
                33086546, 8957937, -15233648, 5540521 },
4733
            { -11630176, -11503902, -8119500, -7643073, 2620056, 1022908,
4734
                -23710744, -1568984, -16128528, -14962807 },
4735
            { 23152971, 775386, 27395463, 14006635, -9701118, 4649512, 1689819,
4736
                892185, -11513277, -15205948 },
4737
        },
4738
        {
4739
            { 9770129, 9586738, 26496094, 4324120, 1556511, -3550024, 27453819,
4740
                4763127, -19179614, 5867134 },
4741
            { -32765025, 1927590, 31726409, -4753295, 23962434, -16019500,
4742
                27846559, 5931263, -29749703, -16108455 },
4743
            { 27461885, -2977536, 22380810, 1815854, -23033753, -3031938,
4744
                7283490, -15148073, -19526700, 7734629 },
4745
        },
4746
    },
4747
    {
4748
        {
4749
            { -8010264, -9590817, -11120403, 6196038, 29344158, -13430885,
4750
                7585295, -3176626, 18549497, 15302069 },
4751
            { -32658337, -6171222, -7672793, -11051681, 6258878, 13504381,
4752
                10458790, -6418461, -8872242, 8424746 },
4753
            { 24687205, 8613276, -30667046, -3233545, 1863892, -1830544,
4754
                19206234, 7134917, -11284482, -828919 },
4755
        },
4756
        {
4757
            { 11334899, -9218022, 8025293, 12707519, 17523892, -10476071,
4758
                10243738, -14685461, -5066034, 16498837 },
4759
            { 8911542, 6887158, -9584260, -6958590, 11145641, -9543680, 17303925,
4760
                -14124238, 6536641, 10543906 },
4761
            { -28946384, 15479763, -17466835, 568876, -1497683, 11223454,
4762
                -2669190, -16625574, -27235709, 8876771 },
4763
        },
4764
        {
4765
            { -25742899, -12566864, -15649966, -846607, -33026686, -796288,
4766
                -33481822, 15824474, -604426, -9039817 },
4767
            { 10330056, 70051, 7957388, -9002667, 9764902, 15609756, 27698697,
4768
                -4890037, 1657394, 3084098 },
4769
            { 10477963, -7470260, 12119566, -13250805, 29016247, -5365589,
4770
                31280319, 14396151, -30233575, 15272409 },
4771
        },
4772
        {
4773
            { -12288309, 3169463, 28813183, 16658753, 25116432, -5630466,
4774
                -25173957, -12636138, -25014757, 1950504 },
4775
            { -26180358, 9489187, 11053416, -14746161, -31053720, 5825630,
4776
                -8384306, -8767532, 15341279, 8373727 },
4777
            { 28685821, 7759505, -14378516, -12002860, -31971820, 4079242,
4778
                298136, -10232602, -2878207, 15190420 },
4779
        },
4780
        {
4781
            { -32932876, 13806336, -14337485, -15794431, -24004620, 10940928,
4782
                8669718, 2742393, -26033313, -6875003 },
4783
            { -1580388, -11729417, -25979658, -11445023, -17411874, -10912854,
4784
                9291594, -16247779, -12154742, 6048605 },
4785
            { -30305315, 14843444, 1539301, 11864366, 20201677, 1900163,
4786
                13934231, 5128323, 11213262, 9168384 },
4787
        },
4788
        {
4789
            { -26280513, 11007847, 19408960, -940758, -18592965, -4328580,
4790
                -5088060, -11105150, 20470157, -16398701 },
4791
            { -23136053, 9282192, 14855179, -15390078, -7362815, -14408560,
4792
                -22783952, 14461608, 14042978, 5230683 },
4793
            { 29969567, -2741594, -16711867, -8552442, 9175486, -2468974,
4794
                21556951, 3506042, -5933891, -12449708 },
4795
        },
4796
        {
4797
            { -3144746, 8744661, 19704003, 4581278, -20430686, 6830683,
4798
                -21284170, 8971513, -28539189, 15326563 },
4799
            { -19464629, 10110288, -17262528, -3503892, -23500387, 1355669,
4800
                -15523050, 15300988, -20514118, 9168260 },
4801
            { -5353335, 4488613, -23803248, 16314347, 7780487, -15638939,
4802
                -28948358, 9601605, 33087103, -9011387 },
4803
        },
4804
        {
4805
            { -19443170, -15512900, -20797467, -12445323, -29824447, 10229461,
4806
                -27444329, -15000531, -5996870, 15664672 },
4807
            { 23294591, -16632613, -22650781, -8470978, 27844204, 11461195,
4808
                13099750, -2460356, 18151676, 13417686 },
4809
            { -24722913, -4176517, -31150679, 5988919, -26858785, 6685065,
4810
                1661597, -12551441, 15271676, -15452665 },
4811
        },
4812
    },
4813
    {
4814
        {
4815
            { 11433042, -13228665, 8239631, -5279517, -1985436, -725718,
4816
                -18698764, 2167544, -6921301, -13440182 },
4817
            { -31436171, 15575146, 30436815, 12192228, -22463353, 9395379,
4818
                -9917708, -8638997, 12215110, 12028277 },
4819
            { 14098400, 6555944, 23007258, 5757252, -15427832, -12950502,
4820
                30123440, 4617780, -16900089, -655628 },
4821
        },
4822
        {
4823
            { -4026201, -15240835, 11893168, 13718664, -14809462, 1847385,
4824
                -15819999, 10154009, 23973261, -12684474 },
4825
            { -26531820, -3695990, -1908898, 2534301, -31870557, -16550355,
4826
                18341390, -11419951, 32013174, -10103539 },
4827
            { -25479301, 10876443, -11771086, -14625140, -12369567, 1838104,
4828
                21911214, 6354752, 4425632, -837822 },
4829
        },
4830
        {
4831
            { -10433389, -14612966, 22229858, -3091047, -13191166, 776729,
4832
                -17415375, -12020462, 4725005, 14044970 },
4833
            { 19268650, -7304421, 1555349, 8692754, -21474059, -9910664, 6347390,
4834
                -1411784, -19522291, -16109756 },
4835
            { -24864089, 12986008, -10898878, -5558584, -11312371, -148526,
4836
                19541418, 8180106, 9282262, 10282508 },
4837
        },
4838
        {
4839
            { -26205082, 4428547, -8661196, -13194263, 4098402, -14165257,
4840
                15522535, 8372215, 5542595, -10702683 },
4841
            { -10562541, 14895633, 26814552, -16673850, -17480754, -2489360,
4842
                -2781891, 6993761, -18093885, 10114655 },
4843
            { -20107055, -929418, 31422704, 10427861, -7110749, 6150669,
4844
                -29091755, -11529146, 25953725, -106158 },
4845
        },
4846
        {
4847
            { -4234397, -8039292, -9119125, 3046000, 2101609, -12607294,
4848
                19390020, 6094296, -3315279, 12831125 },
4849
            { -15998678, 7578152, 5310217, 14408357, -33548620, -224739,
4850
                31575954, 6326196, 7381791, -2421839 },
4851
            { -20902779, 3296811, 24736065, -16328389, 18374254, 7318640,
4852
                6295303, 8082724, -15362489, 12339664 },
4853
        },
4854
        {
4855
            { 27724736, 2291157, 6088201, -14184798, 1792727, 5857634, 13848414,
4856
                15768922, 25091167, 14856294 },
4857
            { -18866652, 8331043, 24373479, 8541013, -701998, -9269457, 12927300,
4858
                -12695493, -22182473, -9012899 },
4859
            { -11423429, -5421590, 11632845, 3405020, 30536730, -11674039,
4860
                -27260765, 13866390, 30146206, 9142070 },
4861
        },
4862
        {
4863
            { 3924129, -15307516, -13817122, -10054960, 12291820, -668366,
4864
                -27702774, 9326384, -8237858, 4171294 },
4865
            { -15921940, 16037937, 6713787, 16606682, -21612135, 2790944,
4866
                26396185, 3731949, 345228, -5462949 },
4867
            { -21327538, 13448259, 25284571, 1143661, 20614966, -8849387,
4868
                2031539, -12391231, -16253183, -13582083 },
4869
        },
4870
        {
4871
            { 31016211, -16722429, 26371392, -14451233, -5027349, 14854137,
4872
                17477601, 3842657, 28012650, -16405420 },
4873
            { -5075835, 9368966, -8562079, -4600902, -15249953, 6970560,
4874
                -9189873, 16292057, -8867157, 3507940 },
4875
            { 29439664, 3537914, 23333589, 6997794, -17555561, -11018068,
4876
                -15209202, -15051267, -9164929, 6580396 },
4877
        },
4878
    },
4879
    {
4880
        {
4881
            { -12185861, -7679788, 16438269, 10826160, -8696817, -6235611,
4882
                17860444, -9273846, -2095802, 9304567 },
4883
            { 20714564, -4336911, 29088195, 7406487, 11426967, -5095705,
4884
                14792667, -14608617, 5289421, -477127 },
4885
            { -16665533, -10650790, -6160345, -13305760, 9192020, -1802462,
4886
                17271490, 12349094, 26939669, -3752294 },
4887
        },
4888
        {
4889
            { -12889898, 9373458, 31595848, 16374215, 21471720, 13221525,
4890
                -27283495, -12348559, -3698806, 117887 },
4891
            { 22263325, -6560050, 3984570, -11174646, -15114008, -566785,
4892
                28311253, 5358056, -23319780, 541964 },
4893
            { 16259219, 3261970, 2309254, -15534474, -16885711, -4581916,
4894
                24134070, -16705829, -13337066, -13552195 },
4895
        },
4896
        {
4897
            { 9378160, -13140186, -22845982, -12745264, 28198281, -7244098,
4898
                -2399684, -717351, 690426, 14876244 },
4899
            { 24977353, -314384, -8223969, -13465086, 28432343, -1176353,
4900
                -13068804, -12297348, -22380984, 6618999 },
4901
            { -1538174, 11685646, 12944378, 13682314, -24389511, -14413193,
4902
                8044829, -13817328, 32239829, -5652762 },
4903
        },
4904
        {
4905
            { -18603066, 4762990, -926250, 8885304, -28412480, -3187315, 9781647,
4906
                -10350059, 32779359, 5095274 },
4907
            { -33008130, -5214506, -32264887, -3685216, 9460461, -9327423,
4908
                -24601656, 14506724, 21639561, -2630236 },
4909
            { -16400943, -13112215, 25239338, 15531969, 3987758, -4499318,
4910
                -1289502, -6863535, 17874574, 558605 },
4911
        },
4912
        {
4913
            { -13600129, 10240081, 9171883, 16131053, -20869254, 9599700,
4914
                33499487, 5080151, 2085892, 5119761 },
4915
            { -22205145, -2519528, -16381601, 414691, -25019550, 2170430,
4916
                30634760, -8363614, -31999993, -5759884 },
4917
            { -6845704, 15791202, 8550074, -1312654, 29928809, -12092256,
4918
                27534430, -7192145, -22351378, 12961482 },
4919
        },
4920
        {
4921
            { -24492060, -9570771, 10368194, 11582341, -23397293, -2245287,
4922
                16533930, 8206996, -30194652, -5159638 },
4923
            { -11121496, -3382234, 2307366, 6362031, -135455, 8868177, -16835630,
4924
                7031275, 7589640, 8945490 },
4925
            { -32152748, 8917967, 6661220, -11677616, -1192060, -15793393,
4926
                7251489, -11182180, 24099109, -14456170 },
4927
        },
4928
        {
4929
            { 5019558, -7907470, 4244127, -14714356, -26933272, 6453165,
4930
                -19118182, -13289025, -6231896, -10280736 },
4931
            { 10853594, 10721687, 26480089, 5861829, -22995819, 1972175,
4932
                -1866647, -10557898, -3363451, -6441124 },
4933
            { -17002408, 5906790, 221599, -6563147, 7828208, -13248918, 24362661,
4934
                -2008168, -13866408, 7421392 },
4935
        },
4936
        {
4937
            { 8139927, -6546497, 32257646, -5890546, 30375719, 1886181,
4938
                -21175108, 15441252, 28826358, -4123029 },
4939
            { 6267086, 9695052, 7709135, -16603597, -32869068, -1886135,
4940
                14795160, -7840124, 13746021, -1742048 },
4941
            { 28584902, 7787108, -6732942, -15050729, 22846041, -7571236,
4942
                -3181936, -363524, 4771362, -8419958 },
4943
        },
4944
    },
4945
    {
4946
        {
4947
            { 24949256, 6376279, -27466481, -8174608, -18646154, -9930606,
4948
                33543569, -12141695, 3569627, 11342593 },
4949
            { 26514989, 4740088, 27912651, 3697550, 19331575, -11472339, 6809886,
4950
                4608608, 7325975, -14801071 },
4951
            { -11618399, -14554430, -24321212, 7655128, -1369274, 5214312,
4952
                -27400540, 10258390, -17646694, -8186692 },
4953
        },
4954
        {
4955
            { 11431204, 15823007, 26570245, 14329124, 18029990, 4796082,
4956
                -31446179, 15580664, 9280358, -3973687 },
4957
            { -160783, -10326257, -22855316, -4304997, -20861367, -13621002,
4958
                -32810901, -11181622, -15545091, 4387441 },
4959
            { -20799378, 12194512, 3937617, -5805892, -27154820, 9340370,
4960
                -24513992, 8548137, 20617071, -7482001 },
4961
        },
4962
        {
4963
            { -938825, -3930586, -8714311, 16124718, 24603125, -6225393,
4964
                -13775352, -11875822, 24345683, 10325460 },
4965
            { -19855277, -1568885, -22202708, 8714034, 14007766, 6928528,
4966
                16318175, -1010689, 4766743, 3552007 },
4967
            { -21751364, -16730916, 1351763, -803421, -4009670, 3950935, 3217514,
4968
                14481909, 10988822, -3994762 },
4969
        },
4970
        {
4971
            { 15564307, -14311570, 3101243, 5684148, 30446780, -8051356,
4972
                12677127, -6505343, -8295852, 13296005 },
4973
            { -9442290, 6624296, -30298964, -11913677, -4670981, -2057379,
4974
                31521204, 9614054, -30000824, 12074674 },
4975
            { 4771191, -135239, 14290749, -13089852, 27992298, 14998318,
4976
                -1413936, -1556716, 29832613, -16391035 },
4977
        },
4978
        {
4979
            { 7064884, -7541174, -19161962, -5067537, -18891269, -2912736,
4980
                25825242, 5293297, -27122660, 13101590 },
4981
            { -2298563, 2439670, -7466610, 1719965, -27267541, -16328445,
4982
                32512469, -5317593, -30356070, -4190957 },
4983
            { -30006540, 10162316, -33180176, 3981723, -16482138, -13070044,
4984
                14413974, 9515896, 19568978, 9628812 },
4985
        },
4986
        {
4987
            { 33053803, 199357, 15894591, 1583059, 27380243, -4580435, -17838894,
4988
                -6106839, -6291786, 3437740 },
4989
            { -18978877, 3884493, 19469877, 12726490, 15913552, 13614290,
4990
                -22961733, 70104, 7463304, 4176122 },
4991
            { -27124001, 10659917, 11482427, -16070381, 12771467, -6635117,
4992
                -32719404, -5322751, 24216882, 5944158 },
4993
        },
4994
        {
4995
            { 8894125, 7450974, -2664149, -9765752, -28080517, -12389115,
4996
                19345746, 14680796, 11632993, 5847885 },
4997
            { 26942781, -2315317, 9129564, -4906607, 26024105, 11769399,
4998
                -11518837, 6367194, -9727230, 4782140 },
4999
            { 19916461, -4828410, -22910704, -11414391, 25606324, -5972441,
5000
                33253853, 8220911, 6358847, -1873857 },
5001
        },
5002
        {
5003
            { 801428, -2081702, 16569428, 11065167, 29875704, 96627, 7908388,
5004
                -4480480, -13538503, 1387155 },
5005
            { 19646058, 5720633, -11416706, 12814209, 11607948, 12749789,
5006
                14147075, 15156355, -21866831, 11835260 },
5007
            { 19299512, 1155910, 28703737, 14890794, 2925026, 7269399, 26121523,
5008
                15467869, -26560550, 5052483 },
5009
        },
5010
    },
5011
    {
5012
        {
5013
            { -3017432, 10058206, 1980837, 3964243, 22160966, 12322533, -6431123,
5014
                -12618185, 12228557, -7003677 },
5015
            { 32944382, 14922211, -22844894, 5188528, 21913450, -8719943,
5016
                4001465, 13238564, -6114803, 8653815 },
5017
            { 22865569, -4652735, 27603668, -12545395, 14348958, 8234005,
5018
                24808405, 5719875, 28483275, 2841751 },
5019
        },
5020
        {
5021
            { -16420968, -1113305, -327719, -12107856, 21886282, -15552774,
5022
                -1887966, -315658, 19932058, -12739203 },
5023
            { -11656086, 10087521, -8864888, -5536143, -19278573, -3055912,
5024
                3999228, 13239134, -4777469, -13910208 },
5025
            { 1382174, -11694719, 17266790, 9194690, -13324356, 9720081,
5026
                20403944, 11284705, -14013818, 3093230 },
5027
        },
5028
        {
5029
            { 16650921, -11037932, -1064178, 1570629, -8329746, 7352753, -302424,
5030
                16271225, -24049421, -6691850 },
5031
            { -21911077, -5927941, -4611316, -5560156, -31744103, -10785293,
5032
                24123614, 15193618, -21652117, -16739389 },
5033
            { -9935934, -4289447, -25279823, 4372842, 2087473, 10399484,
5034
                31870908, 14690798, 17361620, 11864968 },
5035
        },
5036
        {
5037
            { -11307610, 6210372, 13206574, 5806320, -29017692, -13967200,
5038
                -12331205, -7486601, -25578460, -16240689 },
5039
            { 14668462, -12270235, 26039039, 15305210, 25515617, 4542480,
5040
                10453892, 6577524, 9145645, -6443880 },
5041
            { 5974874, 3053895, -9433049, -10385191, -31865124, 3225009,
5042
                -7972642, 3936128, -5652273, -3050304 },
5043
        },
5044
        {
5045
            { 30625386, -4729400, -25555961, -12792866, -20484575, 7695099,
5046
                17097188, -16303496, -27999779, 1803632 },
5047
            { -3553091, 9865099, -5228566, 4272701, -5673832, -16689700,
5048
                14911344, 12196514, -21405489, 7047412 },
5049
            { 20093277, 9920966, -11138194, -5343857, 13161587, 12044805,
5050
                -32856851, 4124601, -32343828, -10257566 },
5051
        },
5052
        {
5053
            { -20788824, 14084654, -13531713, 7842147, 19119038, -13822605,
5054
                4752377, -8714640, -21679658, 2288038 },
5055
            { -26819236, -3283715, 29965059, 3039786, -14473765, 2540457,
5056
                29457502, 14625692, -24819617, 12570232 },
5057
            { -1063558, -11551823, 16920318, 12494842, 1278292, -5869109,
5058
                -21159943, -3498680, -11974704, 4724943 },
5059
        },
5060
        {
5061
            { 17960970, -11775534, -4140968, -9702530, -8876562, -1410617,
5062
                -12907383, -8659932, -29576300, 1903856 },
5063
            { 23134274, -14279132, -10681997, -1611936, 20684485, 15770816,
5064
                -12989750, 3190296, 26955097, 14109738 },
5065
            { 15308788, 5320727, -30113809, -14318877, 22902008, 7767164,
5066
                29425325, -11277562, 31960942, 11934971 },
5067
        },
5068
        {
5069
            { -27395711, 8435796, 4109644, 12222639, -24627868, 14818669,
5070
                20638173, 4875028, 10491392, 1379718 },
5071
            { -13159415, 9197841, 3875503, -8936108, -1383712, -5879801,
5072
                33518459, 16176658, 21432314, 12180697 },
5073
            { -11787308, 11500838, 13787581, -13832590, -22430679, 10140205,
5074
                1465425, 12689540, -10301319, -13872883 },
5075
        },
5076
    },
5077
    {
5078
        {
5079
            { 5414091, -15386041, -21007664, 9643570, 12834970, 1186149,
5080
                -2622916, -1342231, 26128231, 6032912 },
5081
            { -26337395, -13766162, 32496025, -13653919, 17847801, -12669156,
5082
                3604025, 8316894, -25875034, -10437358 },
5083
            { 3296484, 6223048, 24680646, -12246460, -23052020, 5903205,
5084
                -8862297, -4639164, 12376617, 3188849 },
5085
        },
5086
        {
5087
            { 29190488, -14659046, 27549113, -1183516, 3520066, -10697301,
5088
                32049515, -7309113, -16109234, -9852307 },
5089
            { -14744486, -9309156, 735818, -598978, -20407687, -5057904,
5090
                25246078, -15795669, 18640741, -960977 },
5091
            { -6928835, -16430795, 10361374, 5642961, 4910474, 12345252,
5092
                -31638386, -494430, 10530747, 1053335 },
5093
        },
5094
        {
5095
            { -29265967, -14186805, -13538216, -12117373, -19457059, -10655384,
5096
                -31462369, -2948985, 24018831, 15026644 },
5097
            { -22592535, -3145277, -2289276, 5953843, -13440189, 9425631,
5098
                25310643, 13003497, -2314791, -15145616 },
5099
            { -27419985, -603321, -8043984, -1669117, -26092265, 13987819,
5100
                -27297622, 187899, -23166419, -2531735 },
5101
        },
5102
        {
5103
            { -21744398, -13810475, 1844840, 5021428, -10434399, -15911473,
5104
                9716667, 16266922, -5070217, 726099 },
5105
            { 29370922, -6053998, 7334071, -15342259, 9385287, 2247707,
5106
                -13661962, -4839461, 30007388, -15823341 },
5107
            { -936379, 16086691, 23751945, -543318, -1167538, -5189036, 9137109,
5108
                730663, 9835848, 4555336 },
5109
        },
5110
        {
5111
            { -23376435, 1410446, -22253753, -12899614, 30867635, 15826977,
5112
                17693930, 544696, -11985298, 12422646 },
5113
            { 31117226, -12215734, -13502838, 6561947, -9876867, -12757670,
5114
                -5118685, -4096706, 29120153, 13924425 },
5115
            { -17400879, -14233209, 19675799, -2734756, -11006962, -5858820,
5116
                -9383939, -11317700, 7240931, -237388 },
5117
        },
5118
        {
5119
            { -31361739, -11346780, -15007447, -5856218, -22453340, -12152771,
5120
                1222336, 4389483, 3293637, -15551743 },
5121
            { -16684801, -14444245, 11038544, 11054958, -13801175, -3338533,
5122
                -24319580, 7733547, 12796905, -6335822 },
5123
            { -8759414, -10817836, -25418864, 10783769, -30615557, -9746811,
5124
                -28253339, 3647836, 3222231, -11160462 },
5125
        },
5126
        {
5127
            { 18606113, 1693100, -25448386, -15170272, 4112353, 10045021,
5128
                23603893, -2048234, -7550776, 2484985 },
5129
            { 9255317, -3131197, -12156162, -1004256, 13098013, -9214866,
5130
                16377220, -2102812, -19802075, -3034702 },
5131
            { -22729289, 7496160, -5742199, 11329249, 19991973, -3347502,
5132
                -31718148, 9936966, -30097688, -10618797 },
5133
        },
5134
        {
5135
            { 21878590, -5001297, 4338336, 13643897, -3036865, 13160960,
5136
                19708896, 5415497, -7360503, -4109293 },
5137
            { 27736861, 10103576, 12500508, 8502413, -3413016, -9633558,
5138
                10436918, -1550276, -23659143, -8132100 },
5139
            { 19492550, -12104365, -29681976, -852630, -3208171, 12403437,
5140
                30066266, 8367329, 13243957, 8709688 },
5141
        },
5142
    },
5143
    {
5144
        {
5145
            { 12015105, 2801261, 28198131, 10151021, 24818120, -4743133,
5146
                -11194191, -5645734, 5150968, 7274186 },
5147
            { 2831366, -12492146, 1478975, 6122054, 23825128, -12733586,
5148
                31097299, 6083058, 31021603, -9793610 },
5149
            { -2529932, -2229646, 445613, 10720828, -13849527, -11505937,
5150
                -23507731, 16354465, 15067285, -14147707 },
5151
        },
5152
        {
5153
            { 7840942, 14037873, -33364863, 15934016, -728213, -3642706,
5154
                21403988, 1057586, -19379462, -12403220 },
5155
            { 915865, -16469274, 15608285, -8789130, -24357026, 6060030,
5156
                -17371319, 8410997, -7220461, 16527025 },
5157
            { 32922597, -556987, 20336074, -16184568, 10903705, -5384487,
5158
                16957574, 52992, 23834301, 6588044 },
5159
        },
5160
        {
5161
            { 32752030, 11232950, 3381995, -8714866, 22652988, -10744103,
5162
                17159699, 16689107, -20314580, -1305992 },
5163
            { -4689649, 9166776, -25710296, -10847306, 11576752, 12733943,
5164
                7924251, -2752281, 1976123, -7249027 },
5165
            { 21251222, 16309901, -2983015, -6783122, 30810597, 12967303, 156041,
5166
                -3371252, 12331345, -8237197 },
5167
        },
5168
        {
5169
            { 8651614, -4477032, -16085636, -4996994, 13002507, 2950805,
5170
                29054427, -5106970, 10008136, -4667901 },
5171
            { 31486080, 15114593, -14261250, 12951354, 14369431, -7387845,
5172
                16347321, -13662089, 8684155, -10532952 },
5173
            { 19443825, 11385320, 24468943, -9659068, -23919258, 2187569,
5174
                -26263207, -6086921, 31316348, 14219878 },
5175
        },
5176
        {
5177
            { -28594490, 1193785, 32245219, 11392485, 31092169, 15722801,
5178
                27146014, 6992409, 29126555, 9207390 },
5179
            { 32382935, 1110093, 18477781, 11028262, -27411763, -7548111,
5180
                -4980517, 10843782, -7957600, -14435730 },
5181
            { 2814918, 7836403, 27519878, -7868156, -20894015, -11553689,
5182
                -21494559, 8550130, 28346258, 1994730 },
5183
        },
5184
        {
5185
            { -19578299, 8085545, -14000519, -3948622, 2785838, -16231307,
5186
                -19516951, 7174894, 22628102, 8115180 },
5187
            { -30405132, 955511, -11133838, -15078069, -32447087, -13278079,
5188
                -25651578, 3317160, -9943017, 930272 },
5189
            { -15303681, -6833769, 28856490, 1357446, 23421993, 1057177,
5190
                24091212, -1388970, -22765376, -10650715 },
5191
        },
5192
        {
5193
            { -22751231, -5303997, -12907607, -12768866, -15811511, -7797053,
5194
                -14839018, -16554220, -1867018, 8398970 },
5195
            { -31969310, 2106403, -4736360, 1362501, 12813763, 16200670,
5196
                22981545, -6291273, 18009408, -15772772 },
5197
            { -17220923, -9545221, -27784654, 14166835, 29815394, 7444469,
5198
                29551787, -3727419, 19288549, 1325865 },
5199
        },
5200
        {
5201
            { 15100157, -15835752, -23923978, -1005098, -26450192, 15509408,
5202
                12376730, -3479146, 33166107, -8042750 },
5203
            { 20909231, 13023121, -9209752, 16251778, -5778415, -8094914,
5204
                12412151, 10018715, 2213263, -13878373 },
5205
            { 32529814, -11074689, 30361439, -16689753, -9135940, 1513226,
5206
                22922121, 6382134, -5766928, 8371348 },
5207
        },
5208
    },
5209
    {
5210
        {
5211
            { 9923462, 11271500, 12616794, 3544722, -29998368, -1721626,
5212
                12891687, -8193132, -26442943, 10486144 },
5213
            { -22597207, -7012665, 8587003, -8257861, 4084309, -12970062, 361726,
5214
                2610596, -23921530, -11455195 },
5215
            { 5408411, -1136691, -4969122, 10561668, 24145918, 14240566,
5216
                31319731, -4235541, 19985175, -3436086 },
5217
        },
5218
        {
5219
            { -13994457, 16616821, 14549246, 3341099, 32155958, 13648976,
5220
                -17577068, 8849297, 65030, 8370684 },
5221
            { -8320926, -12049626, 31204563, 5839400, -20627288, -1057277,
5222
                -19442942, 6922164, 12743482, -9800518 },
5223
            { -2361371, 12678785, 28815050, 4759974, -23893047, 4884717,
5224
                23783145, 11038569, 18800704, 255233 },
5225
        },
5226
        {
5227
            { -5269658, -1773886, 13957886, 7990715, 23132995, 728773, 13393847,
5228
                9066957, 19258688, -14753793 },
5229
            { -2936654, -10827535, -10432089, 14516793, -3640786, 4372541,
5230
                -31934921, 2209390, -1524053, 2055794 },
5231
            { 580882, 16705327, 5468415, -2683018, -30926419, -14696000,
5232
                -7203346, -8994389, -30021019, 7394435 },
5233
        },
5234
        {
5235
            { 23838809, 1822728, -15738443, 15242727, 8318092, -3733104,
5236
                -21672180, -3492205, -4821741, 14799921 },
5237
            { 13345610, 9759151, 3371034, -16137791, 16353039, 8577942, 31129804,
5238
                13496856, -9056018, 7402518 },
5239
            { 2286874, -4435931, -20042458, -2008336, -13696227, 5038122,
5240
                11006906, -15760352, 8205061, 1607563 },
5241
        },
5242
        {
5243
            { 14414086, -8002132, 3331830, -3208217, 22249151, -5594188,
5244
                18364661, -2906958, 30019587, -9029278 },
5245
            { -27688051, 1585953, -10775053, 931069, -29120221, -11002319,
5246
                -14410829, 12029093, 9944378, 8024 },
5247
            { 4368715, -3709630, 29874200, -15022983, -20230386, -11410704,
5248
                -16114594, -999085, -8142388, 5640030 },
5249
        },
5250
        {
5251
            { 10299610, 13746483, 11661824, 16234854, 7630238, 5998374, 9809887,
5252
                -16694564, 15219798, -14327783 },
5253
            { 27425505, -5719081, 3055006, 10660664, 23458024, 595578, -15398605,
5254
                -1173195, -18342183, 9742717 },
5255
            { 6744077, 2427284, 26042789, 2720740, -847906, 1118974, 32324614,
5256
                7406442, 12420155, 1994844 },
5257
        },
5258
        {
5259
            { 14012521, -5024720, -18384453, -9578469, -26485342, -3936439,
5260
                -13033478, -10909803, 24319929, -6446333 },
5261
            { 16412690, -4507367, 10772641, 15929391, -17068788, -4658621,
5262
                10555945, -10484049, -30102368, -4739048 },
5263
            { 22397382, -7767684, -9293161, -12792868, 17166287, -9755136,
5264
                -27333065, 6199366, 21880021, -12250760 },
5265
        },
5266
        {
5267
            { -4283307, 5368523, -31117018, 8163389, -30323063, 3209128,
5268
                16557151, 8890729, 8840445, 4957760 },
5269
            { -15447727, 709327, -6919446, -10870178, -29777922, 6522332,
5270
                -21720181, 12130072, -14796503, 5005757 },
5271
            { -2114751, -14308128, 23019042, 15765735, -25269683, 6002752,
5272
                10183197, -13239326, -16395286, -2176112 },
5273
        },
5274
    },
5275
    {
5276
        {
5277
            { -19025756, 1632005, 13466291, -7995100, -23640451, 16573537,
5278
                -32013908, -3057104, 22208662, 2000468 },
5279
            { 3065073, -1412761, -25598674, -361432, -17683065, -5703415,
5280
                -8164212, 11248527, -3691214, -7414184 },
5281
            { 10379208, -6045554, 8877319, 1473647, -29291284, -12507580,
5282
                16690915, 2553332, -3132688, 16400289 },
5283
        },
5284
        {
5285
            { 15716668, 1254266, -18472690, 7446274, -8448918, 6344164,
5286
                -22097271, -7285580, 26894937, 9132066 },
5287
            { 24158887, 12938817, 11085297, -8177598, -28063478, -4457083,
5288
                -30576463, 64452, -6817084, -2692882 },
5289
            { 13488534, 7794716, 22236231, 5989356, 25426474, -12578208, 2350710,
5290
                -3418511, -4688006, 2364226 },
5291
        },
5292
        {
5293
            { 16335052, 9132434, 25640582, 6678888, 1725628, 8517937, -11807024,
5294
                -11697457, 15445875, -7798101 },
5295
            { 29004207, -7867081, 28661402, -640412, -12794003, -7943086,
5296
                31863255, -4135540, -278050, -15759279 },
5297
            { -6122061, -14866665, -28614905, 14569919, -10857999, -3591829,
5298
                10343412, -6976290, -29828287, -10815811 },
5299
        },
5300
        {
5301
            { 27081650, 3463984, 14099042, -4517604, 1616303, -6205604, 29542636,
5302
                15372179, 17293797, 960709 },
5303
            { 20263915, 11434237, -5765435, 11236810, 13505955, -10857102,
5304
                -16111345, 6493122, -19384511, 7639714 },
5305
            { -2830798, -14839232, 25403038, -8215196, -8317012, -16173699,
5306
                18006287, -16043750, 29994677, -15808121 },
5307
        },
5308
        {
5309
            { 9769828, 5202651, -24157398, -13631392, -28051003, -11561624,
5310
                -24613141, -13860782, -31184575, 709464 },
5311
            { 12286395, 13076066, -21775189, -1176622, -25003198, 4057652,
5312
                -32018128, -8890874, 16102007, 13205847 },
5313
            { 13733362, 5599946, 10557076, 3195751, -5557991, 8536970, -25540170,
5314
                8525972, 10151379, 10394400 },
5315
        },
5316
        {
5317
            { 4024660, -16137551, 22436262, 12276534, -9099015, -2686099,
5318
                19698229, 11743039, -33302334, 8934414 },
5319
            { -15879800, -4525240, -8580747, -2934061, 14634845, -698278,
5320
                -9449077, 3137094, -11536886, 11721158 },
5321
            { 17555939, -5013938, 8268606, 2331751, -22738815, 9761013, 9319229,
5322
                8835153, -9205489, -1280045 },
5323
        },
5324
        {
5325
            { -461409, -7830014, 20614118, 16688288, -7514766, -4807119,
5326
                22300304, 505429, 6108462, -6183415 },
5327
            { -5070281, 12367917, -30663534, 3234473, 32617080, -8422642,
5328
                29880583, -13483331, -26898490, -7867459 },
5329
            { -31975283, 5726539, 26934134, 10237677, -3173717, -605053,
5330
                24199304, 3795095, 7592688, -14992079 },
5331
        },
5332
        {
5333
            { 21594432, -14964228, 17466408, -4077222, 32537084, 2739898,
5334
                6407723, 12018833, -28256052, 4298412 },
5335
            { -20650503, -11961496, -27236275, 570498, 3767144, -1717540,
5336
                13891942, -1569194, 13717174, 10805743 },
5337
            { -14676630, -15644296, 15287174, 11927123, 24177847, -8175568,
5338
                -796431, 14860609, -26938930, -5863836 },
5339
        },
5340
    },
5341
    {
5342
        {
5343
            { 12962541, 5311799, -10060768, 11658280, 18855286, -7954201,
5344
                13286263, -12808704, -4381056, 9882022 },
5345
            { 18512079, 11319350, -20123124, 15090309, 18818594, 5271736,
5346
                -22727904, 3666879, -23967430, -3299429 },
5347
            { -6789020, -3146043, 16192429, 13241070, 15898607, -14206114,
5348
                -10084880, -6661110, -2403099, 5276065 },
5349
        },
5350
        {
5351
            { 30169808, -5317648, 26306206, -11750859, 27814964, 7069267,
5352
                7152851, 3684982, 1449224, 13082861 },
5353
            { 10342826, 3098505, 2119311, 193222, 25702612, 12233820, 23697382,
5354
                15056736, -21016438, -8202000 },
5355
            { -33150110, 3261608, 22745853, 7948688, 19370557, -15177665,
5356
                -26171976, 6482814, -10300080, -11060101 },
5357
        },
5358
        {
5359
            { 32869458, -5408545, 25609743, 15678670, -10687769, -15471071,
5360
                26112421, 2521008, -22664288, 6904815 },
5361
            { 29506923, 4457497, 3377935, -9796444, -30510046, 12935080, 1561737,
5362
                3841096, -29003639, -6657642 },
5363
            { 10340844, -6630377, -18656632, -2278430, 12621151, -13339055,
5364
                30878497, -11824370, -25584551, 5181966 },
5365
        },
5366
        {
5367
            { 25940115, -12658025, 17324188, -10307374, -8671468, 15029094,
5368
                24396252, -16450922, -2322852, -12388574 },
5369
            { -21765684, 9916823, -1300409, 4079498, -1028346, 11909559, 1782390,
5370
                12641087, 20603771, -6561742 },
5371
            { -18882287, -11673380, 24849422, 11501709, 13161720, -4768874,
5372
                1925523, 11914390, 4662781, 7820689 },
5373
        },
5374
        {
5375
            { 12241050, -425982, 8132691, 9393934, 32846760, -1599620, 29749456,
5376
                12172924, 16136752, 15264020 },
5377
            { -10349955, -14680563, -8211979, 2330220, -17662549, -14545780,
5378
                10658213, 6671822, 19012087, 3772772 },
5379
            { 3753511, -3421066, 10617074, 2028709, 14841030, -6721664, 28718732,
5380
                -15762884, 20527771, 12988982 },
5381
        },
5382
        {
5383
            { -14822485, -5797269, -3707987, 12689773, -898983, -10914866,
5384
                -24183046, -10564943, 3299665, -12424953 },
5385
            { -16777703, -15253301, -9642417, 4978983, 3308785, 8755439, 6943197,
5386
                6461331, -25583147, 8991218 },
5387
            { -17226263, 1816362, -1673288, -6086439, 31783888, -8175991,
5388
                -32948145, 7417950, -30242287, 1507265 },
5389
        },
5390
        {
5391
            { 29692663, 6829891, -10498800, 4334896, 20945975, -11906496,
5392
                -28887608, 8209391, 14606362, -10647073 },
5393
            { -3481570, 8707081, 32188102, 5672294, 22096700, 1711240, -33020695,
5394
                9761487, 4170404, -2085325 },
5395
            { -11587470, 14855945, -4127778, -1531857, -26649089, 15084046,
5396
                22186522, 16002000, -14276837, -8400798 },
5397
        },
5398
        {
5399
            { -4811456, 13761029, -31703877, -2483919, -3312471, 7869047,
5400
                -7113572, -9620092, 13240845, 10965870 },
5401
            { -7742563, -8256762, -14768334, -13656260, -23232383, 12387166,
5402
                4498947, 14147411, 29514390, 4302863 },
5403
            { -13413405, -12407859, 20757302, -13801832, 14785143, 8976368,
5404
                -5061276, -2144373, 17846988, -13971927 },
5405
        },
5406
    },
5407
    {
5408
        {
5409
            { -2244452, -754728, -4597030, -1066309, -6247172, 1455299,
5410
                -21647728, -9214789, -5222701, 12650267 },
5411
            { -9906797, -16070310, 21134160, 12198166, -27064575, 708126, 387813,
5412
                13770293, -19134326, 10958663 },
5413
            { 22470984, 12369526, 23446014, -5441109, -21520802, -9698723,
5414
                -11772496, -11574455, -25083830, 4271862 },
5415
        },
5416
        {
5417
            { -25169565, -10053642, -19909332, 15361595, -5984358, 2159192,
5418
                75375, -4278529, -32526221, 8469673 },
5419
            { 15854970, 4148314, -8893890, 7259002, 11666551, 13824734,
5420
                -30531198, 2697372, 24154791, -9460943 },
5421
            { 15446137, -15806644, 29759747, 14019369, 30811221, -9610191,
5422
                -31582008, 12840104, 24913809, 9815020 },
5423
        },
5424
        {
5425
            { -4709286, -5614269, -31841498, -12288893, -14443537, 10799414,
5426
                -9103676, 13438769, 18735128, 9466238 },
5427
            { 11933045, 9281483, 5081055, -5183824, -2628162, -4905629, -7727821,
5428
                -10896103, -22728655, 16199064 },
5429
            { 14576810, 379472, -26786533, -8317236, -29426508, -10812974,
5430
                -102766, 1876699, 30801119, 2164795 },
5431
        },
5432
        {
5433
            { 15995086, 3199873, 13672555, 13712240, -19378835, -4647646,
5434
                -13081610, -15496269, -13492807, 1268052 },
5435
            { -10290614, -3659039, -3286592, 10948818, 23037027, 3794475,
5436
                -3470338, -12600221, -17055369, 3565904 },
5437
            { 29210088, -9419337, -5919792, -4952785, 10834811, -13327726,
5438
                -16512102, -10820713, -27162222, -14030531 },
5439
        },
5440
        {
5441
            { -13161890, 15508588, 16663704, -8156150, -28349942, 9019123,
5442
                -29183421, -3769423, 2244111, -14001979 },
5443
            { -5152875, -3800936, -9306475, -6071583, 16243069, 14684434,
5444
                -25673088, -16180800, 13491506, 4641841 },
5445
            { 10813417, 643330, -19188515, -728916, 30292062, -16600078,
5446
                27548447, -7721242, 14476989, -12767431 },
5447
        },
5448
        {
5449
            { 10292079, 9984945, 6481436, 8279905, -7251514, 7032743, 27282937,
5450
                -1644259, -27912810, 12651324 },
5451
            { -31185513, -813383, 22271204, 11835308, 10201545, 15351028,
5452
                17099662, 3988035, 21721536, -3148940 },
5453
            { 10202177, -6545839, -31373232, -9574638, -32150642, -8119683,
5454
                -12906320, 3852694, 13216206, 14842320 },
5455
        },
5456
        {
5457
            { -15815640, -10601066, -6538952, -7258995, -6984659, -6581778,
5458
                -31500847, 13765824, -27434397, 9900184 },
5459
            { 14465505, -13833331, -32133984, -14738873, -27443187, 12990492,
5460
                33046193, 15796406, -7051866, -8040114 },
5461
            { 30924417, -8279620, 6359016, -12816335, 16508377, 9071735,
5462
                -25488601, 15413635, 9524356, -7018878 },
5463
        },
5464
        {
5465
            { 12274201, -13175547, 32627641, -1785326, 6736625, 13267305,
5466
                5237659, -5109483, 15663516, 4035784 },
5467
            { -2951309, 8903985, 17349946, 601635, -16432815, -4612556,
5468
                -13732739, -15889334, -22258478, 4659091 },
5469
            { -16916263, -4952973, -30393711, -15158821, 20774812, 15897498,
5470
                5736189, 15026997, -2178256, -13455585 },
5471
        },
5472
    },
5473
    {
5474
        {
5475
            { -8858980, -2219056, 28571666, -10155518, -474467, -10105698,
5476
                -3801496, 278095, 23440562, -290208 },
5477
            { 10226241, -5928702, 15139956, 120818, -14867693, 5218603, 32937275,
5478
                11551483, -16571960, -7442864 },
5479
            { 17932739, -12437276, -24039557, 10749060, 11316803, 7535897,
5480
                22503767, 5561594, -3646624, 3898661 },
5481
        },
5482
        {
5483
            { 7749907, -969567, -16339731, -16464, -25018111, 15122143, -1573531,
5484
                7152530, 21831162, 1245233 },
5485
            { 26958459, -14658026, 4314586, 8346991, -5677764, 11960072,
5486
                -32589295, -620035, -30402091, -16716212 },
5487
            { -12165896, 9166947, 33491384, 13673479, 29787085, 13096535,
5488
                6280834, 14587357, -22338025, 13987525 },
5489
        },
5490
        {
5491
            { -24349909, 7778775, 21116000, 15572597, -4833266, -5357778,
5492
                -4300898, -5124639, -7469781, -2858068 },
5493
            { 9681908, -6737123, -31951644, 13591838, -6883821, 386950, 31622781,
5494
                6439245, -14581012, 4091397 },
5495
            { -8426427, 1470727, -28109679, -1596990, 3978627, -5123623,
5496
                -19622683, 12092163, 29077877, -14741988 },
5497
        },
5498
        {
5499
            { 5269168, -6859726, -13230211, -8020715, 25932563, 1763552,
5500
                -5606110, -5505881, -20017847, 2357889 },
5501
            { 32264008, -15407652, -5387735, -1160093, -2091322, -3946900,
5502
                23104804, -12869908, 5727338, 189038 },
5503
            { 14609123, -8954470, -6000566, -16622781, -14577387, -7743898,
5504
                -26745169, 10942115, -25888931, -14884697 },
5505
        },
5506
        {
5507
            { 20513500, 5557931, -15604613, 7829531, 26413943, -2019404,
5508
                -21378968, 7471781, 13913677, -5137875 },
5509
            { -25574376, 11967826, 29233242, 12948236, -6754465, 4713227,
5510
                -8940970, 14059180, 12878652, 8511905 },
5511
            { -25656801, 3393631, -2955415, -7075526, -2250709, 9366908,
5512
                -30223418, 6812974, 5568676, -3127656 },
5513
        },
5514
        {
5515
            { 11630004, 12144454, 2116339, 13606037, 27378885, 15676917,
5516
                -17408753, -13504373, -14395196, 8070818 },
5517
            { 27117696, -10007378, -31282771, -5570088, 1127282, 12772488,
5518
                -29845906, 10483306, -11552749, -1028714 },
5519
            { 10637467, -5688064, 5674781, 1072708, -26343588, -6982302,
5520
                -1683975, 9177853, -27493162, 15431203 },
5521
        },
5522
        {
5523
            { 20525145, 10892566, -12742472, 12779443, -29493034, 16150075,
5524
                -28240519, 14943142, -15056790, -7935931 },
5525
            { -30024462, 5626926, -551567, -9981087, 753598, 11981191, 25244767,
5526
                -3239766, -3356550, 9594024 },
5527
            { -23752644, 2636870, -5163910, -10103818, 585134, 7877383, 11345683,
5528
                -6492290, 13352335, -10977084 },
5529
        },
5530
        {
5531
            { -1931799, -5407458, 3304649, -12884869, 17015806, -4877091,
5532
                -29783850, -7752482, -13215537, -319204 },
5533
            { 20239939, 6607058, 6203985, 3483793, -18386976, -779229, -20723742,
5534
                15077870, -22750759, 14523817 },
5535
            { 27406042, -6041657, 27423596, -4497394, 4996214, 10002360,
5536
                -28842031, -4545494, -30172742, -4805667 },
5537
        },
5538
    },
5539
    {
5540
        {
5541
            { 11374242, 12660715, 17861383, -12540833, 10935568, 1099227,
5542
                -13886076, -9091740, -27727044, 11358504 },
5543
            { -12730809, 10311867, 1510375, 10778093, -2119455, -9145702,
5544
                32676003, 11149336, -26123651, 4985768 },
5545
            { -19096303, 341147, -6197485, -239033, 15756973, -8796662, -983043,
5546
                13794114, -19414307, -15621255 },
5547
        },
5548
        {
5549
            { 6490081, 11940286, 25495923, -7726360, 8668373, -8751316, 3367603,
5550
                6970005, -1691065, -9004790 },
5551
            { 1656497, 13457317, 15370807, 6364910, 13605745, 8362338, -19174622,
5552
                -5475723, -16796596, -5031438 },
5553
            { -22273315, -13524424, -64685, -4334223, -18605636, -10921968,
5554
                -20571065, -7007978, -99853, -10237333 },
5555
        },
5556
        {
5557
            { 17747465, 10039260, 19368299, -4050591, -20630635, -16041286,
5558
                31992683, -15857976, -29260363, -5511971 },
5559
            { 31932027, -4986141, -19612382, 16366580, 22023614, 88450, 11371999,
5560
                -3744247, 4882242, -10626905 },
5561
            { 29796507, 37186, 19818052, 10115756, -11829032, 3352736, 18551198,
5562
                3272828, -5190932, -4162409 },
5563
        },
5564
        {
5565
            { 12501286, 4044383, -8612957, -13392385, -32430052, 5136599,
5566
                -19230378, -3529697, 330070, -3659409 },
5567
            { 6384877, 2899513, 17807477, 7663917, -2358888, 12363165, 25366522,
5568
                -8573892, -271295, 12071499 },
5569
            { -8365515, -4042521, 25133448, -4517355, -6211027, 2265927,
5570
                -32769618, 1936675, -5159697, 3829363 },
5571
        },
5572
        {
5573
            { 28425966, -5835433, -577090, -4697198, -14217555, 6870930, 7921550,
5574
                -6567787, 26333140, 14267664 },
5575
            { -11067219, 11871231, 27385719, -10559544, -4585914, -11189312,
5576
                10004786, -8709488, -21761224, 8930324 },
5577
            { -21197785, -16396035, 25654216, -1725397, 12282012, 11008919,
5578
                1541940, 4757911, -26491501, -16408940 },
5579
        },
5580
        {
5581
            { 13537262, -7759490, -20604840, 10961927, -5922820, -13218065,
5582
                -13156584, 6217254, -15943699, 13814990 },
5583
            { -17422573, 15157790, 18705543, 29619, 24409717, -260476, 27361681,
5584
                9257833, -1956526, -1776914 },
5585
            { -25045300, -10191966, 15366585, 15166509, -13105086, 8423556,
5586
                -29171540, 12361135, -18685978, 4578290 },
5587
        },
5588
        {
5589
            { 24579768, 3711570, 1342322, -11180126, -27005135, 14124956,
5590
                -22544529, 14074919, 21964432, 8235257 },
5591
            { -6528613, -2411497, 9442966, -5925588, 12025640, -1487420,
5592
                -2981514, -1669206, 13006806, 2355433 },
5593
            { -16304899, -13605259, -6632427, -5142349, 16974359, -10911083,
5594
                27202044, 1719366, 1141648, -12796236 },
5595
        },
5596
        {
5597
            { -12863944, -13219986, -8318266, -11018091, -6810145, -4843894,
5598
                13475066, -3133972, 32674895, 13715045 },
5599
            { 11423335, -5468059, 32344216, 8962751, 24989809, 9241752,
5600
                -13265253, 16086212, -28740881, -15642093 },
5601
            { -1409668, 12530728, -6368726, 10847387, 19531186, -14132160,
5602
                -11709148, 7791794, -27245943, 4383347 },
5603
        },
5604
    },
5605
    {
5606
        {
5607
            { -28970898, 5271447, -1266009, -9736989, -12455236, 16732599,
5608
                -4862407, -4906449, 27193557, 6245191 },
5609
            { -15193956, 5362278, -1783893, 2695834, 4960227, 12840725, 23061898,
5610
                3260492, 22510453, 8577507 },
5611
            { -12632451, 11257346, -32692994, 13548177, -721004, 10879011,
5612
                31168030, 13952092, -29571492, -3635906 },
5613
        },
5614
        {
5615
            { 3877321, -9572739, 32416692, 5405324, -11004407, -13656635,
5616
                3759769, 11935320, 5611860, 8164018 },
5617
            { -16275802, 14667797, 15906460, 12155291, -22111149, -9039718,
5618
                32003002, -8832289, 5773085, -8422109 },
5619
            { -23788118, -8254300, 1950875, 8937633, 18686727, 16459170, -905725,
5620
                12376320, 31632953, 190926 },
5621
        },
5622
        {
5623
            { -24593607, -16138885, -8423991, 13378746, 14162407, 6901328,
5624
                -8288749, 4508564, -25341555, -3627528 },
5625
            { 8884438, -5884009, 6023974, 10104341, -6881569, -4941533, 18722941,
5626
                -14786005, -1672488, 827625 },
5627
            { -32720583, -16289296, -32503547, 7101210, 13354605, 2659080,
5628
                -1800575, -14108036, -24878478, 1541286 },
5629
        },
5630
        {
5631
            { 2901347, -1117687, 3880376, -10059388, -17620940, -3612781,
5632
                -21802117, -3567481, 20456845, -1885033 },
5633
            { 27019610, 12299467, -13658288, -1603234, -12861660, -4861471,
5634
                -19540150, -5016058, 29439641, 15138866 },
5635
            { 21536104, -6626420, -32447818, -10690208, -22408077, 5175814,
5636
                -5420040, -16361163, 7779328, 109896 },
5637
        },
5638
        {
5639
            { 30279744, 14648750, -8044871, 6425558, 13639621, -743509, 28698390,
5640
                12180118, 23177719, -554075 },
5641
            { 26572847, 3405927, -31701700, 12890905, -19265668, 5335866,
5642
                -6493768, 2378492, 4439158, -13279347 },
5643
            { -22716706, 3489070, -9225266, -332753, 18875722, -1140095,
5644
                14819434, -12731527, -17717757, -5461437 },
5645
        },
5646
        {
5647
            { -5056483, 16566551, 15953661, 3767752, -10436499, 15627060,
5648
                -820954, 2177225, 8550082, -15114165 },
5649
            { -18473302, 16596775, -381660, 15663611, 22860960, 15585581,
5650
                -27844109, -3582739, -23260460, -8428588 },
5651
            { -32480551, 15707275, -8205912, -5652081, 29464558, 2713815,
5652
                -22725137, 15860482, -21902570, 1494193 },
5653
        },
5654
        {
5655
            { -19562091, -14087393, -25583872, -9299552, 13127842, 759709,
5656
                21923482, 16529112, 8742704, 12967017 },
5657
            { -28464899, 1553205, 32536856, -10473729, -24691605, -406174,
5658
                -8914625, -2933896, -29903758, 15553883 },
5659
            { 21877909, 3230008, 9881174, 10539357, -4797115, 2841332, 11543572,
5660
                14513274, 19375923, -12647961 },
5661
        },
5662
        {
5663
            { 8832269, -14495485, 13253511, 5137575, 5037871, 4078777, 24880818,
5664
                -6222716, 2862653, 9455043 },
5665
            { 29306751, 5123106, 20245049, -14149889, 9592566, 8447059, -2077124,
5666
                -2990080, 15511449, 4789663 },
5667
            { -20679756, 7004547, 8824831, -9434977, -4045704, -3750736,
5668
                -5754762, 108893, 23513200, 16652362 },
5669
        },
5670
    },
5671
    {
5672
        {
5673
            { -33256173, 4144782, -4476029, -6579123, 10770039, -7155542,
5674
                -6650416, -12936300, -18319198, 10212860 },
5675
            { 2756081, 8598110, 7383731, -6859892, 22312759, -1105012, 21179801,
5676
                2600940, -9988298, -12506466 },
5677
            { -24645692, 13317462, -30449259, -15653928, 21365574, -10869657,
5678
                11344424, 864440, -2499677, -16710063 },
5679
        },
5680
        {
5681
            { -26432803, 6148329, -17184412, -14474154, 18782929, -275997,
5682
                -22561534, 211300, 2719757, 4940997 },
5683
            { -1323882, 3911313, -6948744, 14759765, -30027150, 7851207,
5684
                21690126, 8518463, 26699843, 5276295 },
5685
            { -13149873, -6429067, 9396249, 365013, 24703301, -10488939, 1321586,
5686
                149635, -15452774, 7159369 },
5687
        },
5688
        {
5689
            { 9987780, -3404759, 17507962, 9505530, 9731535, -2165514, 22356009,
5690
                8312176, 22477218, -8403385 },
5691
            { 18155857, -16504990, 19744716, 9006923, 15154154, -10538976,
5692
                24256460, -4864995, -22548173, 9334109 },
5693
            { 2986088, -4911893, 10776628, -3473844, 10620590, -7083203,
5694
                -21413845, 14253545, -22587149, 536906 },
5695
        },
5696
        {
5697
            { 4377756, 8115836, 24567078, 15495314, 11625074, 13064599, 7390551,
5698
                10589625, 10838060, -15420424 },
5699
            { -19342404, 867880, 9277171, -3218459, -14431572, -1986443,
5700
                19295826, -15796950, 6378260, 699185 },
5701
            { 7895026, 4057113, -7081772, -13077756, -17886831, -323126, -716039,
5702
                15693155, -5045064, -13373962 },
5703
        },
5704
        {
5705
            { -7737563, -5869402, -14566319, -7406919, 11385654, 13201616,
5706
                31730678, -10962840, -3918636, -9669325 },
5707
            { 10188286, -15770834, -7336361, 13427543, 22223443, 14896287,
5708
                30743455, 7116568, -21786507, 5427593 },
5709
            { 696102, 13206899, 27047647, -10632082, 15285305, -9853179,
5710
                10798490, -4578720, 19236243, 12477404 },
5711
        },
5712
        {
5713
            { -11229439, 11243796, -17054270, -8040865, -788228, -8167967,
5714
                -3897669, 11180504, -23169516, 7733644 },
5715
            { 17800790, -14036179, -27000429, -11766671, 23887827, 3149671,
5716
                23466177, -10538171, 10322027, 15313801 },
5717
            { 26246234, 11968874, 32263343, -5468728, 6830755, -13323031,
5718
                -15794704, -101982, -24449242, 10890804 },
5719
        },
5720
        {
5721
            { -31365647, 10271363, -12660625, -6267268, 16690207, -13062544,
5722
                -14982212, 16484931, 25180797, -5334884 },
5723
            { -586574, 10376444, -32586414, -11286356, 19801893, 10997610,
5724
                2276632, 9482883, 316878, 13820577 },
5725
            { -9882808, -4510367, -2115506, 16457136, -11100081, 11674996,
5726
                30756178, -7515054, 30696930, -3712849 },
5727
        },
5728
        {
5729
            { 32988917, -9603412, 12499366, 7910787, -10617257, -11931514,
5730
                -7342816, -9985397, -32349517, 7392473 },
5731
            { -8855661, 15927861, 9866406, -3649411, -2396914, -16655781,
5732
                -30409476, -9134995, 25112947, -2926644 },
5733
            { -2504044, -436966, 25621774, -5678772, 15085042, -5479877,
5734
                -24884878, -13526194, 5537438, -13914319 },
5735
        },
5736
    },
5737
    {
5738
        {
5739
            { -11225584, 2320285, -9584280, 10149187, -33444663, 5808648,
5740
                -14876251, -1729667, 31234590, 6090599 },
5741
            { -9633316, 116426, 26083934, 2897444, -6364437, -2688086, 609721,
5742
                15878753, -6970405, -9034768 },
5743
            { -27757857, 247744, -15194774, -9002551, 23288161, -10011936,
5744
                -23869595, 6503646, 20650474, 1804084 },
5745
        },
5746
        {
5747
            { -27589786, 15456424, 8972517, 8469608, 15640622, 4439847, 3121995,
5748
                -10329713, 27842616, -202328 },
5749
            { -15306973, 2839644, 22530074, 10026331, 4602058, 5048462, 28248656,
5750
                5031932, -11375082, 12714369 },
5751
            { 20807691, -7270825, 29286141, 11421711, -27876523, -13868230,
5752
                -21227475, 1035546, -19733229, 12796920 },
5753
        },
5754
        {
5755
            { 12076899, -14301286, -8785001, -11848922, -25012791, 16400684,
5756
                -17591495, -12899438, 3480665, -15182815 },
5757
            { -32361549, 5457597, 28548107, 7833186, 7303070, -11953545,
5758
                -24363064, -15921875, -33374054, 2771025 },
5759
            { -21389266, 421932, 26597266, 6860826, 22486084, -6737172,
5760
                -17137485, -4210226, -24552282, 15673397 },
5761
        },
5762
        {
5763
            { -20184622, 2338216, 19788685, -9620956, -4001265, -8740893,
5764
                -20271184, 4733254, 3727144, -12934448 },
5765
            { 6120119, 814863, -11794402, -622716, 6812205, -15747771, 2019594,
5766
                7975683, 31123697, -10958981 },
5767
            { 30069250, -11435332, 30434654, 2958439, 18399564, -976289,
5768
                12296869, 9204260, -16432438, 9648165 },
5769
        },
5770
        {
5771
            { 32705432, -1550977, 30705658, 7451065, -11805606, 9631813, 3305266,
5772
                5248604, -26008332, -11377501 },
5773
            { 17219865, 2375039, -31570947, -5575615, -19459679, 9219903, 294711,
5774
                15298639, 2662509, -16297073 },
5775
            { -1172927, -7558695, -4366770, -4287744, -21346413, -8434326,
5776
                32087529, -1222777, 32247248, -14389861 },
5777
        },
5778
        {
5779
            { 14312628, 1221556, 17395390, -8700143, -4945741, -8684635,
5780
                -28197744, -9637817, -16027623, -13378845 },
5781
            { -1428825, -9678990, -9235681, 6549687, -7383069, -468664, 23046502,
5782
                9803137, 17597934, 2346211 },
5783
            { 18510800, 15337574, 26171504, 981392, -22241552, 7827556,
5784
                -23491134, -11323352, 3059833, -11782870 },
5785
        },
5786
        {
5787
            { 10141598, 6082907, 17829293, -1947643, 9830092, 13613136,
5788
                -25556636, -5544586, -33502212, 3592096 },
5789
            { 33114168, -15889352, -26525686, -13343397, 33076705, 8716171,
5790
                1151462, 1521897, -982665, -6837803 },
5791
            { -32939165, -4255815, 23947181, -324178, -33072974, -12305637,
5792
                -16637686, 3891704, 26353178, 693168 },
5793
        },
5794
        {
5795
            { 30374239, 1595580, -16884039, 13186931, 4600344, 406904, 9585294,
5796
                -400668, 31375464, 14369965 },
5797
            { -14370654, -7772529, 1510301, 6434173, -18784789, -6262728,
5798
                32732230, -13108839, 17901441, 16011505 },
5799
            { 18171223, -11934626, -12500402, 15197122, -11038147, -15230035,
5800
                -19172240, -16046376, 8764035, 12309598 },
5801
        },
5802
    },
5803
    {
5804
        {
5805
            { 5975908, -5243188, -19459362, -9681747, -11541277, 14015782,
5806
                -23665757, 1228319, 17544096, -10593782 },
5807
            { 5811932, -1715293, 3442887, -2269310, -18367348, -8359541,
5808
                -18044043, -15410127, -5565381, 12348900 },
5809
            { -31399660, 11407555, 25755363, 6891399, -3256938, 14872274,
5810
                -24849353, 8141295, -10632534, -585479 },
5811
        },
5812
        {
5813
            { -12675304, 694026, -5076145, 13300344, 14015258, -14451394,
5814
                -9698672, -11329050, 30944593, 1130208 },
5815
            { 8247766, -6710942, -26562381, -7709309, -14401939, -14648910,
5816
                4652152, 2488540, 23550156, -271232 },
5817
            { 17294316, -3788438, 7026748, 15626851, 22990044, 113481, 2267737,
5818
                -5908146, -408818, -137719 },
5819
        },
5820
        {
5821
            { 16091085, -16253926, 18599252, 7340678, 2137637, -1221657,
5822
                -3364161, 14550936, 3260525, -7166271 },
5823
            { -4910104, -13332887, 18550887, 10864893, -16459325, -7291596,
5824
                -23028869, -13204905, -12748722, 2701326 },
5825
            { -8574695, 16099415, 4629974, -16340524, -20786213, -6005432,
5826
                -10018363, 9276971, 11329923, 1862132 },
5827
        },
5828
        {
5829
            { 14763076, -15903608, -30918270, 3689867, 3511892, 10313526,
5830
                -21951088, 12219231, -9037963, -940300 },
5831
            { 8894987, -3446094, 6150753, 3013931, 301220, 15693451, -31981216,
5832
                -2909717, -15438168, 11595570 },
5833
            { 15214962, 3537601, -26238722, -14058872, 4418657, -15230761,
5834
                13947276, 10730794, -13489462, -4363670 },
5835
        },
5836
        {
5837
            { -2538306, 7682793, 32759013, 263109, -29984731, -7955452,
5838
                -22332124, -10188635, 977108, 699994 },
5839
            { -12466472, 4195084, -9211532, 550904, -15565337, 12917920,
5840
                19118110, -439841, -30534533, -14337913 },
5841
            { 31788461, -14507657, 4799989, 7372237, 8808585, -14747943, 9408237,
5842
                -10051775, 12493932, -5409317 },
5843
        },
5844
        {
5845
            { -25680606, 5260744, -19235809, -6284470, -3695942, 16566087,
5846
                27218280, 2607121, 29375955, 6024730 },
5847
            { 842132, -2794693, -4763381, -8722815, 26332018, -12405641,
5848
                11831880, 6985184, -9940361, 2854096 },
5849
            { -4847262, -7969331, 2516242, -5847713, 9695691, -7221186, 16512645,
5850
                960770, 12121869, 16648078 },
5851
        },
5852
        {
5853
            { -15218652, 14667096, -13336229, 2013717, 30598287, -464137,
5854
                -31504922, -7882064, 20237806, 2838411 },
5855
            { -19288047, 4453152, 15298546, -16178388, 22115043, -15972604,
5856
                12544294, -13470457, 1068881, -12499905 },
5857
            { -9558883, -16518835, 33238498, 13506958, 30505848, -1114596,
5858
                -8486907, -2630053, 12521378, 4845654 },
5859
        },
5860
        {
5861
            { -28198521, 10744108, -2958380, 10199664, 7759311, -13088600,
5862
                3409348, -873400, -6482306, -12885870 },
5863
            { -23561822, 6230156, -20382013, 10655314, -24040585, -11621172,
5864
                10477734, -1240216, -3113227, 13974498 },
5865
            { 12966261, 15550616, -32038948, -1615346, 21025980, -629444,
5866
                5642325, 7188737, 18895762, 12629579 },
5867
        },
5868
    },
5869
    {
5870
        {
5871
            { 14741879, -14946887, 22177208, -11721237, 1279741, 8058600,
5872
                11758140, 789443, 32195181, 3895677 },
5873
            { 10758205, 15755439, -4509950, 9243698, -4879422, 6879879, -2204575,
5874
                -3566119, -8982069, 4429647 },
5875
            { -2453894, 15725973, -20436342, -10410672, -5803908, -11040220,
5876
                -7135870, -11642895, 18047436, -15281743 },
5877
        },
5878
        {
5879
            { -25173001, -11307165, 29759956, 11776784, -22262383, -15820455,
5880
                10993114, -12850837, -17620701, -9408468 },
5881
            { 21987233, 700364, -24505048, 14972008, -7774265, -5718395,
5882
                32155026, 2581431, -29958985, 8773375 },
5883
            { -25568350, 454463, -13211935, 16126715, 25240068, 8594567,
5884
                20656846, 12017935, -7874389, -13920155 },
5885
        },
5886
        {
5887
            { 6028182, 6263078, -31011806, -11301710, -818919, 2461772,
5888
                -31841174, -5468042, -1721788, -2776725 },
5889
            { -12278994, 16624277, 987579, -5922598, 32908203, 1248608, 7719845,
5890
                -4166698, 28408820, 6816612 },
5891
            { -10358094, -8237829, 19549651, -12169222, 22082623, 16147817,
5892
                20613181, 13982702, -10339570, 5067943 },
5893
        },
5894
        {
5895
            { -30505967, -3821767, 12074681, 13582412, -19877972, 2443951,
5896
                -19719286, 12746132, 5331210, -10105944 },
5897
            { 30528811, 3601899, -1957090, 4619785, -27361822, -15436388,
5898
                24180793, -12570394, 27679908, -1648928 },
5899
            { 9402404, -13957065, 32834043, 10838634, -26580150, -13237195,
5900
                26653274, -8685565, 22611444, -12715406 },
5901
        },
5902
        {
5903
            { 22190590, 1118029, 22736441, 15130463, -30460692, -5991321,
5904
                19189625, -4648942, 4854859, 6622139 },
5905
            { -8310738, -2953450, -8262579, -3388049, -10401731, -271929,
5906
                13424426, -3567227, 26404409, 13001963 },
5907
            { -31241838, -15415700, -2994250, 8939346, 11562230, -12840670,
5908
                -26064365, -11621720, -15405155, 11020693 },
5909
        },
5910
        {
5911
            { 1866042, -7949489, -7898649, -10301010, 12483315, 13477547,
5912
                3175636, -12424163, 28761762, 1406734 },
5913
            { -448555, -1777666, 13018551, 3194501, -9580420, -11161737,
5914
                24760585, -4347088, 25577411, -13378680 },
5915
            { -24290378, 4759345, -690653, -1852816, 2066747, 10693769,
5916
                -29595790, 9884936, -9368926, 4745410 },
5917
        },
5918
        {
5919
            { -9141284, 6049714, -19531061, -4341411, -31260798, 9944276,
5920
                -15462008, -11311852, 10931924, -11931931 },
5921
            { -16561513, 14112680, -8012645, 4817318, -8040464, -11414606,
5922
                -22853429, 10856641, -20470770, 13434654 },
5923
            { 22759489, -10073434, -16766264, -1871422, 13637442, -10168091,
5924
                1765144, -12654326, 28445307, -5364710 },
5925
        },
5926
        {
5927
            { 29875063, 12493613, 2795536, -3786330, 1710620, 15181182,
5928
                -10195717, -8788675, 9074234, 1167180 },
5929
            { -26205683, 11014233, -9842651, -2635485, -26908120, 7532294,
5930
                -18716888, -9535498, 3843903, 9367684 },
5931
            { -10969595, -6403711, 9591134, 9582310, 11349256, 108879, 16235123,
5932
                8601684, -139197, 4242895 },
5933
        },
5934
    },
5935
    {
5936
        {
5937
            { 22092954, -13191123, -2042793, -11968512, 32186753, -11517388,
5938
                -6574341, 2470660, -27417366, 16625501 },
5939
            { -11057722, 3042016, 13770083, -9257922, 584236, -544855, -7770857,
5940
                2602725, -27351616, 14247413 },
5941
            { 6314175, -10264892, -32772502, 15957557, -10157730, 168750,
5942
                -8618807, 14290061, 27108877, -1180880 },
5943
        },
5944
        {
5945
            { -8586597, -7170966, 13241782, 10960156, -32991015, -13794596,
5946
                33547976, -11058889, -27148451, 981874 },
5947
            { 22833440, 9293594, -32649448, -13618667, -9136966, 14756819,
5948
                -22928859, -13970780, -10479804, -16197962 },
5949
            { -7768587, 3326786, -28111797, 10783824, 19178761, 14905060,
5950
                22680049, 13906969, -15933690, 3797899 },
5951
        },
5952
        {
5953
            { 21721356, -4212746, -12206123, 9310182, -3882239, -13653110,
5954
                23740224, -2709232, 20491983, -8042152 },
5955
            { 9209270, -15135055, -13256557, -6167798, -731016, 15289673,
5956
                25947805, 15286587, 30997318, -6703063 },
5957
            { 7392032, 16618386, 23946583, -8039892, -13265164, -1533858,
5958
                -14197445, -2321576, 17649998, -250080 },
5959
        },
5960
        {
5961
            { -9301088, -14193827, 30609526, -3049543, -25175069, -1283752,
5962
                -15241566, -9525724, -2233253, 7662146 },
5963
            { -17558673, 1763594, -33114336, 15908610, -30040870, -12174295,
5964
                7335080, -8472199, -3174674, 3440183 },
5965
            { -19889700, -5977008, -24111293, -9688870, 10799743, -16571957,
5966
                40450, -4431835, 4862400, 1133 },
5967
        },
5968
        {
5969
            { -32856209, -7873957, -5422389, 14860950, -16319031, 7956142,
5970
                7258061, 311861, -30594991, -7379421 },
5971
            { -3773428, -1565936, 28985340, 7499440, 24445838, 9325937, 29727763,
5972
                16527196, 18278453, 15405622 },
5973
            { -4381906, 8508652, -19898366, -3674424, -5984453, 15149970,
5974
                -13313598, 843523, -21875062, 13626197 },
5975
        },
5976
        {
5977
            { 2281448, -13487055, -10915418, -2609910, 1879358, 16164207,
5978
                -10783882, 3953792, 13340839, 15928663 },
5979
            { 31727126, -7179855, -18437503, -8283652, 2875793, -16390330,
5980
                -25269894, -7014826, -23452306, 5964753 },
5981
            { 4100420, -5959452, -17179337, 6017714, -18705837, 12227141,
5982
                -26684835, 11344144, 2538215, -7570755 },
5983
        },
5984
        {
5985
            { -9433605, 6123113, 11159803, -2156608, 30016280, 14966241,
5986
                -20474983, 1485421, -629256, -15958862 },
5987
            { -26804558, 4260919, 11851389, 9658551, -32017107, 16367492,
5988
                -20205425, -13191288, 11659922, -11115118 },
5989
            { 26180396, 10015009, -30844224, -8581293, 5418197, 9480663, 2231568,
5990
                -10170080, 33100372, -1306171 },
5991
        },
5992
        {
5993
            { 15121113, -5201871, -10389905, 15427821, -27509937, -15992507,
5994
                21670947, 4486675, -5931810, -14466380 },
5995
            { 16166486, -9483733, -11104130, 6023908, -31926798, -1364923,
5996
                2340060, -16254968, -10735770, -10039824 },
5997
            { 28042865, -3557089, -12126526, 12259706, -3717498, -6945899,
5998
                6766453, -8689599, 18036436, 5803270 },
5999
        },
6000
    },
6001
    {
6002
        {
6003
            { -817581, 6763912, 11803561, 1585585, 10958447, -2671165, 23855391,
6004
                4598332, -6159431, -14117438 },
6005
            { -31031306, -14256194, 17332029, -2383520, 31312682, -5967183,
6006
                696309, 50292, -20095739, 11763584 },
6007
            { -594563, -2514283, -32234153, 12643980, 12650761, 14811489, 665117,
6008
                -12613632, -19773211, -10713562 },
6009
        },
6010
        {
6011
            { 30464590, -11262872, -4127476, -12734478, 19835327, -7105613,
6012
                -24396175, 2075773, -17020157, 992471 },
6013
            { 18357185, -6994433, 7766382, 16342475, -29324918, 411174, 14578841,
6014
                8080033, -11574335, -10601610 },
6015
            { 19598397, 10334610, 12555054, 2555664, 18821899, -10339780,
6016
                21873263, 16014234, 26224780, 16452269 },
6017
        },
6018
        {
6019
            { -30223925, 5145196, 5944548, 16385966, 3976735, 2009897, -11377804,
6020
                -7618186, -20533829, 3698650 },
6021
            { 14187449, 3448569, -10636236, -10810935, -22663880, -3433596,
6022
                7268410, -10890444, 27394301, 12015369 },
6023
            { 19695761, 16087646, 28032085, 12999827, 6817792, 11427614,
6024
                20244189, -1312777, -13259127, -3402461 },
6025
        },
6026
        {
6027
            { 30860103, 12735208, -1888245, -4699734, -16974906, 2256940,
6028
                -8166013, 12298312, -8550524, -10393462 },
6029
            { -5719826, -11245325, -1910649, 15569035, 26642876, -7587760,
6030
                -5789354, -15118654, -4976164, 12651793 },
6031
            { -2848395, 9953421, 11531313, -5282879, 26895123, -12697089,
6032
                -13118820, -16517902, 9768698, -2533218 },
6033
        },
6034
        {
6035
            { -24719459, 1894651, -287698, -4704085, 15348719, -8156530,
6036
                32767513, 12765450, 4940095, 10678226 },
6037
            { 18860224, 15980149, -18987240, -1562570, -26233012, -11071856,
6038
                -7843882, 13944024, -24372348, 16582019 },
6039
            { -15504260, 4970268, -29893044, 4175593, -20993212, -2199756,
6040
                -11704054, 15444560, -11003761, 7989037 },
6041
        },
6042
        {
6043
            { 31490452, 5568061, -2412803, 2182383, -32336847, 4531686,
6044
                -32078269, 6200206, -19686113, -14800171 },
6045
            { -17308668, -15879940, -31522777, -2831, -32887382, 16375549,
6046
                8680158, -16371713, 28550068, -6857132 },
6047
            { -28126887, -5688091, 16837845, -1820458, -6850681, 12700016,
6048
                -30039981, 4364038, 1155602, 5988841 },
6049
        },
6050
        {
6051
            { 21890435, -13272907, -12624011, 12154349, -7831873, 15300496,
6052
                23148983, -4470481, 24618407, 8283181 },
6053
            { -33136107, -10512751, 9975416, 6841041, -31559793, 16356536,
6054
                3070187, -7025928, 1466169, 10740210 },
6055
            { -1509399, -15488185, -13503385, -10655916, 32799044, 909394,
6056
                -13938903, -5779719, -32164649, -15327040 },
6057
        },
6058
        {
6059
            { 3960823, -14267803, -28026090, -15918051, -19404858, 13146868,
6060
                15567327, 951507, -3260321, -573935 },
6061
            { 24740841, 5052253, -30094131, 8961361, 25877428, 6165135,
6062
                -24368180, 14397372, -7380369, -6144105 },
6063
            { -28888365, 3510803, -28103278, -1158478, -11238128, -10631454,
6064
                -15441463, -14453128, -1625486, -6494814 },
6065
        },
6066
    },
6067
    {
6068
        {
6069
            { 793299, -9230478, 8836302, -6235707, -27360908, -2369593, 33152843,
6070
                -4885251, -9906200, -621852 },
6071
            { 5666233, 525582, 20782575, -8038419, -24538499, 14657740, 16099374,
6072
                1468826, -6171428, -15186581 },
6073
            { -4859255, -3779343, -2917758, -6748019, 7778750, 11688288,
6074
                -30404353, -9871238, -1558923, -9863646 },
6075
        },
6076
        {
6077
            { 10896332, -7719704, 824275, 472601, -19460308, 3009587, 25248958,
6078
                14783338, -30581476, -15757844 },
6079
            { 10566929, 12612572, -31944212, 11118703, -12633376, 12362879,
6080
                21752402, 8822496, 24003793, 14264025 },
6081
            { 27713862, -7355973, -11008240, 9227530, 27050101, 2504721,
6082
                23886875, -13117525, 13958495, -5732453 },
6083
        },
6084
        {
6085
            { -23481610, 4867226, -27247128, 3900521, 29838369, -8212291,
6086
                -31889399, -10041781, 7340521, -15410068 },
6087
            { 4646514, -8011124, -22766023, -11532654, 23184553, 8566613,
6088
                31366726, -1381061, -15066784, -10375192 },
6089
            { -17270517, 12723032, -16993061, 14878794, 21619651, -6197576,
6090
                27584817, 3093888, -8843694, 3849921 },
6091
        },
6092
        {
6093
            { -9064912, 2103172, 25561640, -15125738, -5239824, 9582958,
6094
                32477045, -9017955, 5002294, -15550259 },
6095
            { -12057553, -11177906, 21115585, -13365155, 8808712, -12030708,
6096
                16489530, 13378448, -25845716, 12741426 },
6097
            { -5946367, 10645103, -30911586, 15390284, -3286982, -7118677,
6098
                24306472, 15852464, 28834118, -7646072 },
6099
        },
6100
        {
6101
            { -17335748, -9107057, -24531279, 9434953, -8472084, -583362,
6102
                -13090771, 455841, 20461858, 5491305 },
6103
            { 13669248, -16095482, -12481974, -10203039, -14569770, -11893198,
6104
                -24995986, 11293807, -28588204, -9421832 },
6105
            { 28497928, 6272777, -33022994, 14470570, 8906179, -1225630,
6106
                18504674, -14165166, 29867745, -8795943 },
6107
        },
6108
        {
6109
            { -16207023, 13517196, -27799630, -13697798, 24009064, -6373891,
6110
                -6367600, -13175392, 22853429, -4012011 },
6111
            { 24191378, 16712145, -13931797, 15217831, 14542237, 1646131,
6112
                18603514, -11037887, 12876623, -2112447 },
6113
            { 17902668, 4518229, -411702, -2829247, 26878217, 5258055, -12860753,
6114
                608397, 16031844, 3723494 },
6115
        },
6116
        {
6117
            { -28632773, 12763728, -20446446, 7577504, 33001348, -13017745,
6118
                17558842, -7872890, 23896954, -4314245 },
6119
            { -20005381, -12011952, 31520464, 605201, 2543521, 5991821, -2945064,
6120
                7229064, -9919646, -8826859 },
6121
            { 28816045, 298879, -28165016, -15920938, 19000928, -1665890,
6122
                -12680833, -2949325, -18051778, -2082915 },
6123
        },
6124
        {
6125
            { 16000882, -344896, 3493092, -11447198, -29504595, -13159789,
6126
                12577740, 16041268, -19715240, 7847707 },
6127
            { 10151868, 10572098, 27312476, 7922682, 14825339, 4723128,
6128
                -32855931, -6519018, -10020567, 3852848 },
6129
            { -11430470, 15697596, -21121557, -4420647, 5386314, 15063598,
6130
                16514493, -15932110, 29330899, -15076224 },
6131
        },
6132
    },
6133
    {
6134
        {
6135
            { -25499735, -4378794, -15222908, -6901211, 16615731, 2051784,
6136
                3303702, 15490, -27548796, 12314391 },
6137
            { 15683520, -6003043, 18109120, -9980648, 15337968, -5997823,
6138
                -16717435, 15921866, 16103996, -3731215 },
6139
            { -23169824, -10781249, 13588192, -1628807, -3798557, -1074929,
6140
                -19273607, 5402699, -29815713, -9841101 },
6141
        },
6142
        {
6143
            { 23190676, 2384583, -32714340, 3462154, -29903655, -1529132,
6144
                -11266856, 8911517, -25205859, 2739713 },
6145
            { 21374101, -3554250, -33524649, 9874411, 15377179, 11831242,
6146
                -33529904, 6134907, 4931255, 11987849 },
6147
            { -7732, -2978858, -16223486, 7277597, 105524, -322051, -31480539,
6148
                13861388, -30076310, 10117930 },
6149
        },
6150
        {
6151
            { -29501170, -10744872, -26163768, 13051539, -25625564, 5089643,
6152
                -6325503, 6704079, 12890019, 15728940 },
6153
            { -21972360, -11771379, -951059, -4418840, 14704840, 2695116, 903376,
6154
                -10428139, 12885167, 8311031 },
6155
            { -17516482, 5352194, 10384213, -13811658, 7506451, 13453191,
6156
                26423267, 4384730, 1888765, -5435404 },
6157
        },
6158
        {
6159
            { -25817338, -3107312, -13494599, -3182506, 30896459, -13921729,
6160
                -32251644, -12707869, -19464434, -3340243 },
6161
            { -23607977, -2665774, -526091, 4651136, 5765089, 4618330, 6092245,
6162
                14845197, 17151279, -9854116 },
6163
            { -24830458, -12733720, -15165978, 10367250, -29530908, -265356,
6164
                22825805, -7087279, -16866484, 16176525 },
6165
        },
6166
        {
6167
            { -23583256, 6564961, 20063689, 3798228, -4740178, 7359225, 2006182,
6168
                -10363426, -28746253, -10197509 },
6169
            { -10626600, -4486402, -13320562, -5125317, 3432136, -6393229,
6170
                23632037, -1940610, 32808310, 1099883 },
6171
            { 15030977, 5768825, -27451236, -2887299, -6427378, -15361371,
6172
                -15277896, -6809350, 2051441, -15225865 },
6173
        },
6174
        {
6175
            { -3362323, -7239372, 7517890, 9824992, 23555850, 295369, 5148398,
6176
                -14154188, -22686354, 16633660 },
6177
            { 4577086, -16752288, 13249841, -15304328, 19958763, -14537274,
6178
                18559670, -10759549, 8402478, -9864273 },
6179
            { -28406330, -1051581, -26790155, -907698, -17212414, -11030789,
6180
                9453451, -14980072, 17983010, 9967138 },
6181
        },
6182
        {
6183
            { -25762494, 6524722, 26585488, 9969270, 24709298, 1220360, -1677990,
6184
                7806337, 17507396, 3651560 },
6185
            { -10420457, -4118111, 14584639, 15971087, -15768321, 8861010,
6186
                26556809, -5574557, -18553322, -11357135 },
6187
            { 2839101, 14284142, 4029895, 3472686, 14402957, 12689363, -26642121,
6188
                8459447, -5605463, -7621941 },
6189
        },
6190
        {
6191
            { -4839289, -3535444, 9744961, 2871048, 25113978, 3187018, -25110813,
6192
                -849066, 17258084, -7977739 },
6193
            { 18164541, -10595176, -17154882, -1542417, 19237078, -9745295,
6194
                23357533, -15217008, 26908270, 12150756 },
6195
            { -30264870, -7647865, 5112249, -7036672, -1499807, -6974257, 43168,
6196
                -5537701, -32302074, 16215819 },
6197
        },
6198
    },
6199
    {
6200
        {
6201
            { -6898905, 9824394, -12304779, -4401089, -31397141, -6276835,
6202
                32574489, 12532905, -7503072, -8675347 },
6203
            { -27343522, -16515468, -27151524, -10722951, 946346, 16291093,
6204
                254968, 7168080, 21676107, -1943028 },
6205
            { 21260961, -8424752, -16831886, -11920822, -23677961, 3968121,
6206
                -3651949, -6215466, -3556191, -7913075 },
6207
        },
6208
        {
6209
            { 16544754, 13250366, -16804428, 15546242, -4583003, 12757258,
6210
                -2462308, -8680336, -18907032, -9662799 },
6211
            { -2415239, -15577728, 18312303, 4964443, -15272530, -12653564,
6212
                26820651, 16690659, 25459437, -4564609 },
6213
            { -25144690, 11425020, 28423002, -11020557, -6144921, -15826224,
6214
                9142795, -2391602, -6432418, -1644817 },
6215
        },
6216
        {
6217
            { -23104652, 6253476, 16964147, -3768872, -25113972, -12296437,
6218
                -27457225, -16344658, 6335692, 7249989 },
6219
            { -30333227, 13979675, 7503222, -12368314, -11956721, -4621693,
6220
                -30272269, 2682242, 25993170, -12478523 },
6221
            { 4364628, 5930691, 32304656, -10044554, -8054781, 15091131,
6222
                22857016, -10598955, 31820368, 15075278 },
6223
        },
6224
        {
6225
            { 31879134, -8918693, 17258761, 90626, -8041836, -4917709, 24162788,
6226
                -9650886, -17970238, 12833045 },
6227
            { 19073683, 14851414, -24403169, -11860168, 7625278, 11091125,
6228
                -19619190, 2074449, -9413939, 14905377 },
6229
            { 24483667, -11935567, -2518866, -11547418, -1553130, 15355506,
6230
                -25282080, 9253129, 27628530, -7555480 },
6231
        },
6232
        {
6233
            { 17597607, 8340603, 19355617, 552187, 26198470, -3176583, 4593324,
6234
                -9157582, -14110875, 15297016 },
6235
            { 510886, 14337390, -31785257, 16638632, 6328095, 2713355, -20217417,
6236
                -11864220, 8683221, 2921426 },
6237
            { 18606791, 11874196, 27155355, -5281482, -24031742, 6265446,
6238
                -25178240, -1278924, 4674690, 13890525 },
6239
        },
6240
        {
6241
            { 13609624, 13069022, -27372361, -13055908, 24360586, 9592974,
6242
                14977157, 9835105, 4389687, 288396 },
6243
            { 9922506, -519394, 13613107, 5883594, -18758345, -434263, -12304062,
6244
                8317628, 23388070, 16052080 },
6245
            { 12720016, 11937594, -31970060, -5028689, 26900120, 8561328,
6246
                -20155687, -11632979, -14754271, -10812892 },
6247
        },
6248
        {
6249
            { 15961858, 14150409, 26716931, -665832, -22794328, 13603569,
6250
                11829573, 7467844, -28822128, 929275 },
6251
            { 11038231, -11582396, -27310482, -7316562, -10498527, -16307831,
6252
                -23479533, -9371869, -21393143, 2465074 },
6253
            { 20017163, -4323226, 27915242, 1529148, 12396362, 15675764,
6254
                13817261, -9658066, 2463391, -4622140 },
6255
        },
6256
        {
6257
            { -16358878, -12663911, -12065183, 4996454, -1256422, 1073572,
6258
                9583558, 12851107, 4003896, 12673717 },
6259
            { -1731589, -15155870, -3262930, 16143082, 19294135, 13385325,
6260
                14741514, -9103726, 7903886, 2348101 },
6261
            { 24536016, -16515207, 12715592, -3862155, 1511293, 10047386,
6262
                -3842346, -7129159, -28377538, 10048127 },
6263
        },
6264
    },
6265
    {
6266
        {
6267
            { -12622226, -6204820, 30718825, 2591312, -10617028, 12192840,
6268
                18873298, -7297090, -32297756, 15221632 },
6269
            { -26478122, -11103864, 11546244, -1852483, 9180880, 7656409,
6270
                -21343950, 2095755, 29769758, 6593415 },
6271
            { -31994208, -2907461, 4176912, 3264766, 12538965, -868111, 26312345,
6272
                -6118678, 30958054, 8292160 },
6273
        },
6274
        {
6275
            { 31429822, -13959116, 29173532, 15632448, 12174511, -2760094,
6276
                32808831, 3977186, 26143136, -3148876 },
6277
            { 22648901, 1402143, -22799984, 13746059, 7936347, 365344, -8668633,
6278
                -1674433, -3758243, -2304625 },
6279
            { -15491917, 8012313, -2514730, -12702462, -23965846, -10254029,
6280
                -1612713, -1535569, -16664475, 8194478 },
6281
        },
6282
        {
6283
            { 27338066, -7507420, -7414224, 10140405, -19026427, -6589889,
6284
                27277191, 8855376, 28572286, 3005164 },
6285
            { 26287124, 4821776, 25476601, -4145903, -3764513, -15788984,
6286
                -18008582, 1182479, -26094821, -13079595 },
6287
            { -7171154, 3178080, 23970071, 6201893, -17195577, -4489192,
6288
                -21876275, -13982627, 32208683, -1198248 },
6289
        },
6290
        {
6291
            { -16657702, 2817643, -10286362, 14811298, 6024667, 13349505,
6292
                -27315504, -10497842, -27672585, -11539858 },
6293
            { 15941029, -9405932, -21367050, 8062055, 31876073, -238629,
6294
                -15278393, -1444429, 15397331, -4130193 },
6295
            { 8934485, -13485467, -23286397, -13423241, -32446090, 14047986,
6296
                31170398, -1441021, -27505566, 15087184 },
6297
        },
6298
        {
6299
            { -18357243, -2156491, 24524913, -16677868, 15520427, -6360776,
6300
                -15502406, 11461896, 16788528, -5868942 },
6301
            { -1947386, 16013773, 21750665, 3714552, -17401782, -16055433,
6302
                -3770287, -10323320, 31322514, -11615635 },
6303
            { 21426655, -5650218, -13648287, -5347537, -28812189, -4920970,
6304
                -18275391, -14621414, 13040862, -12112948 },
6305
        },
6306
        {
6307
            { 11293895, 12478086, -27136401, 15083750, -29307421, 14748872,
6308
                14555558, -13417103, 1613711, 4896935 },
6309
            { -25894883, 15323294, -8489791, -8057900, 25967126, -13425460,
6310
                2825960, -4897045, -23971776, -11267415 },
6311
            { -15924766, -5229880, -17443532, 6410664, 3622847, 10243618,
6312
                20615400, 12405433, -23753030, -8436416 },
6313
        },
6314
        {
6315
            { -7091295, 12556208, -20191352, 9025187, -17072479, 4333801,
6316
                4378436, 2432030, 23097949, -566018 },
6317
            { 4565804, -16025654, 20084412, -7842817, 1724999, 189254, 24767264,
6318
                10103221, -18512313, 2424778 },
6319
            { 366633, -11976806, 8173090, -6890119, 30788634, 5745705, -7168678,
6320
                1344109, -3642553, 12412659 },
6321
        },
6322
        {
6323
            { -24001791, 7690286, 14929416, -168257, -32210835, -13412986,
6324
                24162697, -15326504, -3141501, 11179385 },
6325
            { 18289522, -14724954, 8056945, 16430056, -21729724, 7842514,
6326
                -6001441, -1486897, -18684645, -11443503 },
6327
            { 476239, 6601091, -6152790, -9723375, 17503545, -4863900, 27672959,
6328
                13403813, 11052904, 5219329 },
6329
        },
6330
    },
6331
    {
6332
        {
6333
            { 20678546, -8375738, -32671898, 8849123, -5009758, 14574752,
6334
                31186971, -3973730, 9014762, -8579056 },
6335
            { -13644050, -10350239, -15962508, 5075808, -1514661, -11534600,
6336
                -33102500, 9160280, 8473550, -3256838 },
6337
            { 24900749, 14435722, 17209120, -15292541, -22592275, 9878983,
6338
                -7689309, -16335821, -24568481, 11788948 },
6339
        },
6340
        {
6341
            { -3118155, -11395194, -13802089, 14797441, 9652448, -6845904,
6342
                -20037437, 10410733, -24568470, -1458691 },
6343
            { -15659161, 16736706, -22467150, 10215878, -9097177, 7563911,
6344
                11871841, -12505194, -18513325, 8464118 },
6345
            { -23400612, 8348507, -14585951, -861714, -3950205, -6373419,
6346
                14325289, 8628612, 33313881, -8370517 },
6347
        },
6348
        {
6349
            { -20186973, -4967935, 22367356, 5271547, -1097117, -4788838,
6350
                -24805667, -10236854, -8940735, -5818269 },
6351
            { -6948785, -1795212, -32625683, -16021179, 32635414, -7374245,
6352
                15989197, -12838188, 28358192, -4253904 },
6353
            { -23561781, -2799059, -32351682, -1661963, -9147719, 10429267,
6354
                -16637684, 4072016, -5351664, 5596589 },
6355
        },
6356
        {
6357
            { -28236598, -3390048, 12312896, 6213178, 3117142, 16078565,
6358
                29266239, 2557221, 1768301, 15373193 },
6359
            { -7243358, -3246960, -4593467, -7553353, -127927, -912245, -1090902,
6360
                -4504991, -24660491, 3442910 },
6361
            { -30210571, 5124043, 14181784, 8197961, 18964734, -11939093,
6362
                22597931, 7176455, -18585478, 13365930 },
6363
        },
6364
        {
6365
            { -7877390, -1499958, 8324673, 4690079, 6261860, 890446, 24538107,
6366
                -8570186, -9689599, -3031667 },
6367
            { 25008904, -10771599, -4305031, -9638010, 16265036, 15721635,
6368
                683793, -11823784, 15723479, -15163481 },
6369
            { -9660625, 12374379, -27006999, -7026148, -7724114, -12314514,
6370
                11879682, 5400171, 519526, -1235876 },
6371
        },
6372
        {
6373
            { 22258397, -16332233, -7869817, 14613016, -22520255, -2950923,
6374
                -20353881, 7315967, 16648397, 7605640 },
6375
            { -8081308, -8464597, -8223311, 9719710, 19259459, -15348212,
6376
                23994942, -5281555, -9468848, 4763278 },
6377
            { -21699244, 9220969, -15730624, 1084137, -25476107, -2852390,
6378
                31088447, -7764523, -11356529, 728112 },
6379
        },
6380
        {
6381
            { 26047220, -11751471, -6900323, -16521798, 24092068, 9158119,
6382
                -4273545, -12555558, -29365436, -5498272 },
6383
            { 17510331, -322857, 5854289, 8403524, 17133918, -3112612, -28111007,
6384
                12327945, 10750447, 10014012 },
6385
            { -10312768, 3936952, 9156313, -8897683, 16498692, -994647,
6386
                -27481051, -666732, 3424691, 7540221 },
6387
        },
6388
        {
6389
            { 30322361, -6964110, 11361005, -4143317, 7433304, 4989748, -7071422,
6390
                -16317219, -9244265, 15258046 },
6391
            { 13054562, -2779497, 19155474, 469045, -12482797, 4566042, 5631406,
6392
                2711395, 1062915, -5136345 },
6393
            { -19240248, -11254599, -29509029, -7499965, -5835763, 13005411,
6394
                -6066489, 12194497, 32960380, 1459310 },
6395
        },
6396
    },
6397
    {
6398
        {
6399
            { 19852034, 7027924, 23669353, 10020366, 8586503, -6657907, 394197,
6400
                -6101885, 18638003, -11174937 },
6401
            { 31395534, 15098109, 26581030, 8030562, -16527914, -5007134,
6402
                9012486, -7584354, -6643087, -5442636 },
6403
            { -9192165, -2347377, -1997099, 4529534, 25766844, 607986, -13222,
6404
                9677543, -32294889, -6456008 },
6405
        },
6406
        {
6407
            { -2444496, -149937, 29348902, 8186665, 1873760, 12489863, -30934579,
6408
                -7839692, -7852844, -8138429 },
6409
            { -15236356, -15433509, 7766470, 746860, 26346930, -10221762,
6410
                -27333451, 10754588, -9431476, 5203576 },
6411
            { 31834314, 14135496, -770007, 5159118, 20917671, -16768096,
6412
                -7467973, -7337524, 31809243, 7347066 },
6413
        },
6414
        {
6415
            { -9606723, -11874240, 20414459, 13033986, 13716524, -11691881,
6416
                19797970, -12211255, 15192876, -2087490 },
6417
            { -12663563, -2181719, 1168162, -3804809, 26747877, -14138091,
6418
                10609330, 12694420, 33473243, -13382104 },
6419
            { 33184999, 11180355, 15832085, -11385430, -1633671, 225884,
6420
                15089336, -11023903, -6135662, 14480053 },
6421
        },
6422
        {
6423
            { 31308717, -5619998, 31030840, -1897099, 15674547, -6582883,
6424
                5496208, 13685227, 27595050, 8737275 },
6425
            { -20318852, -15150239, 10933843, -16178022, 8335352, -7546022,
6426
                -31008351, -12610604, 26498114, 66511 },
6427
            { 22644454, -8761729, -16671776, 4884562, -3105614, -13559366,
6428
                30540766, -4286747, -13327787, -7515095 },
6429
        },
6430
        {
6431
            { -28017847, 9834845, 18617207, -2681312, -3401956, -13307506,
6432
                8205540, 13585437, -17127465, 15115439 },
6433
            { 23711543, -672915, 31206561, -8362711, 6164647, -9709987,
6434
                -33535882, -1426096, 8236921, 16492939 },
6435
            { -23910559, -13515526, -26299483, -4503841, 25005590, -7687270,
6436
                19574902, 10071562, 6708380, -6222424 },
6437
        },
6438
        {
6439
            { 2101391, -4930054, 19702731, 2367575, -15427167, 1047675, 5301017,
6440
                9328700, 29955601, -11678310 },
6441
            { 3096359, 9271816, -21620864, -15521844, -14847996, -7592937,
6442
                -25892142, -12635595, -9917575, 6216608 },
6443
            { -32615849, 338663, -25195611, 2510422, -29213566, -13820213,
6444
                24822830, -6146567, -26767480, 7525079 },
6445
        },
6446
        {
6447
            { -23066649, -13985623, 16133487, -7896178, -3389565, 778788,
6448
                -910336, -2782495, -19386633, 11994101 },
6449
            { 21691500, -13624626, -641331, -14367021, 3285881, -3483596,
6450
                -25064666, 9718258, -7477437, 13381418 },
6451
            { 18445390, -4202236, 14979846, 11622458, -1727110, -3582980,
6452
                23111648, -6375247, 28535282, 15779576 },
6453
        },
6454
        {
6455
            { 30098053, 3089662, -9234387, 16662135, -21306940, 11308411,
6456
                -14068454, 12021730, 9955285, -16303356 },
6457
            { 9734894, -14576830, -7473633, -9138735, 2060392, 11313496,
6458
                -18426029, 9924399, 20194861, 13380996 },
6459
            { -26378102, -7965207, -22167821, 15789297, -18055342, -6168792,
6460
                -1984914, 15707771, 26342023, 10146099 },
6461
        },
6462
    },
6463
    {
6464
        {
6465
            { -26016874, -219943, 21339191, -41388, 19745256, -2878700,
6466
                -29637280, 2227040, 21612326, -545728 },
6467
            { -13077387, 1184228, 23562814, -5970442, -20351244, -6348714,
6468
                25764461, 12243797, -20856566, 11649658 },
6469
            { -10031494, 11262626, 27384172, 2271902, 26947504, -15997771, 39944,
6470
                6114064, 33514190, 2333242 },
6471
        },
6472
        {
6473
            { -21433588, -12421821, 8119782, 7219913, -21830522, -9016134,
6474
                -6679750, -12670638, 24350578, -13450001 },
6475
            { -4116307, -11271533, -23886186, 4843615, -30088339, 690623,
6476
                -31536088, -10406836, 8317860, 12352766 },
6477
            { 18200138, -14475911, -33087759, -2696619, -23702521, -9102511,
6478
                -23552096, -2287550, 20712163, 6719373 },
6479
        },
6480
        {
6481
            { 26656208, 6075253, -7858556, 1886072, -28344043, 4262326, 11117530,
6482
                -3763210, 26224235, -3297458 },
6483
            { -17168938, -14854097, -3395676, -16369877, -19954045, 14050420,
6484
                21728352, 9493610, 18620611, -16428628 },
6485
            { -13323321, 13325349, 11432106, 5964811, 18609221, 6062965,
6486
                -5269471, -9725556, -30701573, -16479657 },
6487
        },
6488
        {
6489
            { -23860538, -11233159, 26961357, 1640861, -32413112, -16737940,
6490
                12248509, -5240639, 13735342, 1934062 },
6491
            { 25089769, 6742589, 17081145, -13406266, 21909293, -16067981,
6492
                -15136294, -3765346, -21277997, 5473616 },
6493
            { 31883677, -7961101, 1083432, -11572403, 22828471, 13290673,
6494
                -7125085, 12469656, 29111212, -5451014 },
6495
        },
6496
        {
6497
            { 24244947, -15050407, -26262976, 2791540, -14997599, 16666678,
6498
                24367466, 6388839, -10295587, 452383 },
6499
            { -25640782, -3417841, 5217916, 16224624, 19987036, -4082269,
6500
                -24236251, -5915248, 15766062, 8407814 },
6501
            { -20406999, 13990231, 15495425, 16395525, 5377168, 15166495,
6502
                -8917023, -4388953, -8067909, 2276718 },
6503
        },
6504
        {
6505
            { 30157918, 12924066, -17712050, 9245753, 19895028, 3368142,
6506
                -23827587, 5096219, 22740376, -7303417 },
6507
            { 2041139, -14256350, 7783687, 13876377, -25946985, -13352459,
6508
                24051124, 13742383, -15637599, 13295222 },
6509
            { 33338237, -8505733, 12532113, 7977527, 9106186, -1715251,
6510
                -17720195, -4612972, -4451357, -14669444 },
6511
        },
6512
        {
6513
            { -20045281, 5454097, -14346548, 6447146, 28862071, 1883651,
6514
                -2469266, -4141880, 7770569, 9620597 },
6515
            { 23208068, 7979712, 33071466, 8149229, 1758231, -10834995, 30945528,
6516
                -1694323, -33502340, -14767970 },
6517
            { 1439958, -16270480, -1079989, -793782, 4625402, 10647766, -5043801,
6518
                1220118, 30494170, -11440799 },
6519
        },
6520
        {
6521
            { -5037580, -13028295, -2970559, -3061767, 15640974, -6701666,
6522
                -26739026, 926050, -1684339, -13333647 },
6523
            { 13908495, -3549272, 30919928, -6273825, -21521863, 7989039,
6524
                9021034, 9078865, 3353509, 4033511 },
6525
            { -29663431, -15113610, 32259991, -344482, 24295849, -12912123,
6526
                23161163, 8839127, 27485041, 7356032 },
6527
        },
6528
    },
6529
    {
6530
        {
6531
            { 9661027, 705443, 11980065, -5370154, -1628543, 14661173, -6346142,
6532
                2625015, 28431036, -16771834 },
6533
            { -23839233, -8311415, -25945511, 7480958, -17681669, -8354183,
6534
                -22545972, 14150565, 15970762, 4099461 },
6535
            { 29262576, 16756590, 26350592, -8793563, 8529671, -11208050,
6536
                13617293, -9937143, 11465739, 8317062 },
6537
        },
6538
        {
6539
            { -25493081, -6962928, 32500200, -9419051, -23038724, -2302222,
6540
                14898637, 3848455, 20969334, -5157516 },
6541
            { -20384450, -14347713, -18336405, 13884722, -33039454, 2842114,
6542
                -21610826, -3649888, 11177095, 14989547 },
6543
            { -24496721, -11716016, 16959896, 2278463, 12066309, 10137771,
6544
                13515641, 2581286, -28487508, 9930240 },
6545
        },
6546
        {
6547
            { -17751622, -2097826, 16544300, -13009300, -15914807, -14949081,
6548
                18345767, -13403753, 16291481, -5314038 },
6549
            { -33229194, 2553288, 32678213, 9875984, 8534129, 6889387, -9676774,
6550
                6957617, 4368891, 9788741 },
6551
            { 16660756, 7281060, -10830758, 12911820, 20108584, -8101676,
6552
                -21722536, -8613148, 16250552, -11111103 },
6553
        },
6554
        {
6555
            { -19765507, 2390526, -16551031, 14161980, 1905286, 6414907, 4689584,
6556
                10604807, -30190403, 4782747 },
6557
            { -1354539, 14736941, -7367442, -13292886, 7710542, -14155590,
6558
                -9981571, 4383045, 22546403, 437323 },
6559
            { 31665577, -12180464, -16186830, 1491339, -18368625, 3294682,
6560
                27343084, 2786261, -30633590, -14097016 },
6561
        },
6562
        {
6563
            { -14467279, -683715, -33374107, 7448552, 19294360, 14334329,
6564
                -19690631, 2355319, -19284671, -6114373 },
6565
            { 15121312, -15796162, 6377020, -6031361, -10798111, -12957845,
6566
                18952177, 15496498, -29380133, 11754228 },
6567
            { -2637277, -13483075, 8488727, -14303896, 12728761, -1622493,
6568
                7141596, 11724556, 22761615, -10134141 },
6569
        },
6570
        {
6571
            { 16918416, 11729663, -18083579, 3022987, -31015732, -13339659,
6572
                -28741185, -12227393, 32851222, 11717399 },
6573
            { 11166634, 7338049, -6722523, 4531520, -29468672, -7302055,
6574
                31474879, 3483633, -1193175, -4030831 },
6575
            { -185635, 9921305, 31456609, -13536438, -12013818, 13348923,
6576
                33142652, 6546660, -19985279, -3948376 },
6577
        },
6578
        {
6579
            { -32460596, 11266712, -11197107, -7899103, 31703694, 3855903,
6580
                -8537131, -12833048, -30772034, -15486313 },
6581
            { -18006477, 12709068, 3991746, -6479188, -21491523, -10550425,
6582
                -31135347, -16049879, 10928917, 3011958 },
6583
            { -6957757, -15594337, 31696059, 334240, 29576716, 14796075,
6584
                -30831056, -12805180, 18008031, 10258577 },
6585
        },
6586
        {
6587
            { -22448644, 15655569, 7018479, -4410003, -30314266, -1201591,
6588
                -1853465, 1367120, 25127874, 6671743 },
6589
            { 29701166, -14373934, -10878120, 9279288, -17568, 13127210,
6590
                21382910, 11042292, 25838796, 4642684 },
6591
            { -20430234, 14955537, -24126347, 8124619, -5369288, -5990470,
6592
                30468147, -13900640, 18423289, 4177476 },
6593
        },
6594
    },
6595
};
6596
#endif
6597
6598
static uint8_t negative(signed char b)
6599
0
{
6600
0
    uint32_t x = b;
6601
6602
0
    x >>= 31; /* 1: yes; 0: no */
6603
0
    return x;
6604
0
}
6605
6606
static void table_select(ge_precomp *t, int pos, signed char b)
6607
0
{
6608
0
    ge_precomp minust;
6609
0
    uint8_t bnegative = negative(b);
6610
0
    uint8_t babs = b - ((uint8_t)((-bnegative) & b) << 1);
6611
6612
0
    ge_precomp_0(t);
6613
0
    cmov(t, &k25519Precomp[pos][0], equal(babs, 1));
6614
0
    cmov(t, &k25519Precomp[pos][1], equal(babs, 2));
6615
0
    cmov(t, &k25519Precomp[pos][2], equal(babs, 3));
6616
0
    cmov(t, &k25519Precomp[pos][3], equal(babs, 4));
6617
0
    cmov(t, &k25519Precomp[pos][4], equal(babs, 5));
6618
0
    cmov(t, &k25519Precomp[pos][5], equal(babs, 6));
6619
0
    cmov(t, &k25519Precomp[pos][6], equal(babs, 7));
6620
0
    cmov(t, &k25519Precomp[pos][7], equal(babs, 8));
6621
0
    fe_copy(minust.yplusx, t->yminusx);
6622
0
    fe_copy(minust.yminusx, t->yplusx);
6623
0
    fe_neg(minust.xy2d, t->xy2d);
6624
0
    cmov(t, &minust, bnegative);
6625
0
}
6626
6627
/*
6628
 * h = a * B
6629
 *
6630
 * where a = a[0]+256*a[1]+...+256^31 a[31]
6631
 * B is the Ed25519 base point (x,4/5) with x positive.
6632
 *
6633
 * Preconditions:
6634
 *   a[31] <= 127
6635
 */
6636
static void ge_scalarmult_base(ge_p3 *h, const uint8_t *a)
6637
0
{
6638
0
    signed char e[64];
6639
0
    signed char carry;
6640
0
    ge_p1p1 r;
6641
0
    ge_p2 s;
6642
0
    ge_precomp t;
6643
0
    int i;
6644
6645
0
    for (i = 0; i < 32; ++i) {
6646
0
        e[2 * i + 0] = (a[i] >> 0) & 15;
6647
0
        e[2 * i + 1] = (a[i] >> 4) & 15;
6648
0
    }
6649
    /* each e[i] is between 0 and 15 */
6650
    /* e[63] is between 0 and 7 */
6651
6652
0
    carry = 0;
6653
0
    for (i = 0; i < 63; ++i) {
6654
0
        e[i] += carry;
6655
0
        carry = e[i] + 8;
6656
0
        carry >>= 4;
6657
0
        e[i] -= carry << 4;
6658
0
    }
6659
0
    e[63] += carry;
6660
    /* each e[i] is between -8 and 8 */
6661
6662
0
    ge_p3_0(h);
6663
0
    for (i = 1; i < 64; i += 2) {
6664
0
        table_select(&t, i / 2, e[i]);
6665
0
        ge_madd(&r, h, &t);
6666
0
        ge_p1p1_to_p3(h, &r);
6667
0
    }
6668
6669
0
    ge_p3_dbl(&r, h);
6670
0
    ge_p1p1_to_p2(&s, &r);
6671
0
    ge_p2_dbl(&r, &s);
6672
0
    ge_p1p1_to_p2(&s, &r);
6673
0
    ge_p2_dbl(&r, &s);
6674
0
    ge_p1p1_to_p2(&s, &r);
6675
0
    ge_p2_dbl(&r, &s);
6676
0
    ge_p1p1_to_p3(h, &r);
6677
6678
0
    for (i = 0; i < 64; i += 2) {
6679
0
        table_select(&t, i / 2, e[i]);
6680
0
        ge_madd(&r, h, &t);
6681
0
        ge_p1p1_to_p3(h, &r);
6682
0
    }
6683
6684
0
    OPENSSL_cleanse(e, sizeof(e));
6685
0
}
6686
6687
#if !defined(BASE_2_51_IMPLEMENTED)
6688
/*
6689
 * Replace (f,g) with (g,f) if b == 1;
6690
 * replace (f,g) with (f,g) if b == 0.
6691
 *
6692
 * Preconditions: b in {0,1}.
6693
 */
6694
static void fe_cswap(fe f, fe g, unsigned int b)
6695
{
6696
    size_t i;
6697
6698
    b = 0 - b;
6699
    for (i = 0; i < 10; i++) {
6700
        int32_t x = f[i] ^ g[i];
6701
        x &= b;
6702
        f[i] ^= x;
6703
        g[i] ^= x;
6704
    }
6705
}
6706
6707
/*
6708
 * h = f * 121666
6709
 *
6710
 * Can overlap h with f.
6711
 *
6712
 * Preconditions:
6713
 *    |f| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
6714
 *
6715
 * Postconditions:
6716
 *    |h| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
6717
 */
6718
static void fe_mul121666(fe h, fe f)
6719
{
6720
    int32_t f0 = f[0];
6721
    int32_t f1 = f[1];
6722
    int32_t f2 = f[2];
6723
    int32_t f3 = f[3];
6724
    int32_t f4 = f[4];
6725
    int32_t f5 = f[5];
6726
    int32_t f6 = f[6];
6727
    int32_t f7 = f[7];
6728
    int32_t f8 = f[8];
6729
    int32_t f9 = f[9];
6730
    int64_t h0 = f0 * (int64_t)121666;
6731
    int64_t h1 = f1 * (int64_t)121666;
6732
    int64_t h2 = f2 * (int64_t)121666;
6733
    int64_t h3 = f3 * (int64_t)121666;
6734
    int64_t h4 = f4 * (int64_t)121666;
6735
    int64_t h5 = f5 * (int64_t)121666;
6736
    int64_t h6 = f6 * (int64_t)121666;
6737
    int64_t h7 = f7 * (int64_t)121666;
6738
    int64_t h8 = f8 * (int64_t)121666;
6739
    int64_t h9 = f9 * (int64_t)121666;
6740
    int64_t carry0;
6741
    int64_t carry1;
6742
    int64_t carry2;
6743
    int64_t carry3;
6744
    int64_t carry4;
6745
    int64_t carry5;
6746
    int64_t carry6;
6747
    int64_t carry7;
6748
    int64_t carry8;
6749
    int64_t carry9;
6750
6751
    carry9 = h9 + (1 << 24);
6752
    h0 += (carry9 >> 25) * 19;
6753
    h9 -= carry9 & kTop39Bits;
6754
    carry1 = h1 + (1 << 24);
6755
    h2 += carry1 >> 25;
6756
    h1 -= carry1 & kTop39Bits;
6757
    carry3 = h3 + (1 << 24);
6758
    h4 += carry3 >> 25;
6759
    h3 -= carry3 & kTop39Bits;
6760
    carry5 = h5 + (1 << 24);
6761
    h6 += carry5 >> 25;
6762
    h5 -= carry5 & kTop39Bits;
6763
    carry7 = h7 + (1 << 24);
6764
    h8 += carry7 >> 25;
6765
    h7 -= carry7 & kTop39Bits;
6766
6767
    carry0 = h0 + (1 << 25);
6768
    h1 += carry0 >> 26;
6769
    h0 -= carry0 & kTop38Bits;
6770
    carry2 = h2 + (1 << 25);
6771
    h3 += carry2 >> 26;
6772
    h2 -= carry2 & kTop38Bits;
6773
    carry4 = h4 + (1 << 25);
6774
    h5 += carry4 >> 26;
6775
    h4 -= carry4 & kTop38Bits;
6776
    carry6 = h6 + (1 << 25);
6777
    h7 += carry6 >> 26;
6778
    h6 -= carry6 & kTop38Bits;
6779
    carry8 = h8 + (1 << 25);
6780
    h9 += carry8 >> 26;
6781
    h8 -= carry8 & kTop38Bits;
6782
6783
    h[0] = (int32_t)h0;
6784
    h[1] = (int32_t)h1;
6785
    h[2] = (int32_t)h2;
6786
    h[3] = (int32_t)h3;
6787
    h[4] = (int32_t)h4;
6788
    h[5] = (int32_t)h5;
6789
    h[6] = (int32_t)h6;
6790
    h[7] = (int32_t)h7;
6791
    h[8] = (int32_t)h8;
6792
    h[9] = (int32_t)h9;
6793
}
6794
6795
static void x25519_scalar_mult_generic(uint8_t out[32],
6796
    const uint8_t scalar[32],
6797
    const uint8_t point[32])
6798
{
6799
    fe x1, x2, z2, x3, z3, tmp0, tmp1;
6800
    uint8_t e[32];
6801
    unsigned swap = 0;
6802
    int pos;
6803
6804
    memcpy(e, scalar, 32);
6805
    e[0] &= 248;
6806
    e[31] &= 127;
6807
    e[31] |= 64;
6808
    fe_frombytes(x1, point);
6809
    fe_1(x2);
6810
    fe_0(z2);
6811
    fe_copy(x3, x1);
6812
    fe_1(z3);
6813
6814
    for (pos = 254; pos >= 0; --pos) {
6815
        unsigned b = 1 & (e[pos / 8] >> (pos & 7));
6816
        swap ^= b;
6817
        fe_cswap(x2, x3, swap);
6818
        fe_cswap(z2, z3, swap);
6819
        swap = b;
6820
        fe_sub(tmp0, x3, z3);
6821
        fe_sub(tmp1, x2, z2);
6822
        fe_add(x2, x2, z2);
6823
        fe_add(z2, x3, z3);
6824
        fe_mul(z3, tmp0, x2);
6825
        fe_mul(z2, z2, tmp1);
6826
        fe_sq(tmp0, tmp1);
6827
        fe_sq(tmp1, x2);
6828
        fe_add(x3, z3, z2);
6829
        fe_sub(z2, z3, z2);
6830
        fe_mul(x2, tmp1, tmp0);
6831
        fe_sub(tmp1, tmp1, tmp0);
6832
        fe_sq(z2, z2);
6833
        fe_mul121666(z3, tmp1);
6834
        fe_sq(x3, x3);
6835
        fe_add(tmp0, tmp0, z3);
6836
        fe_mul(z3, x1, z2);
6837
        fe_mul(z2, tmp1, tmp0);
6838
    }
6839
6840
    fe_invert(z2, z2);
6841
    fe_mul(x2, x2, z2);
6842
    fe_tobytes(out, x2);
6843
6844
    OPENSSL_cleanse(e, sizeof(e));
6845
}
6846
6847
static void x25519_scalar_mult(uint8_t out[32], const uint8_t scalar[32],
6848
    const uint8_t point[32])
6849
{
6850
    x25519_scalar_mult_generic(out, scalar, point);
6851
}
6852
#endif
6853
6854
static void slide(signed char *r, const uint8_t *a)
6855
0
{
6856
0
    int i;
6857
0
    int b;
6858
0
    int k;
6859
6860
0
    for (i = 0; i < 256; ++i) {
6861
0
        r[i] = 1 & (a[i >> 3] >> (i & 7));
6862
0
    }
6863
6864
0
    for (i = 0; i < 256; ++i) {
6865
0
        if (r[i]) {
6866
0
            for (b = 1; b <= 6 && i + b < 256; ++b) {
6867
0
                if (r[i + b]) {
6868
0
                    if (r[i] + (r[i + b] << b) <= 15) {
6869
0
                        r[i] += r[i + b] << b;
6870
0
                        r[i + b] = 0;
6871
0
                    } else if (r[i] - (r[i + b] << b) >= -15) {
6872
0
                        r[i] -= r[i + b] << b;
6873
0
                        for (k = i + b; k < 256; ++k) {
6874
0
                            if (!r[k]) {
6875
0
                                r[k] = 1;
6876
0
                                break;
6877
0
                            }
6878
0
                            r[k] = 0;
6879
0
                        }
6880
0
                    } else {
6881
0
                        break;
6882
0
                    }
6883
0
                }
6884
0
            }
6885
0
        }
6886
0
    }
6887
0
}
6888
6889
#if defined(BASE_2_51_IMPLEMENTED)
6890
static const ge_precomp Bi[8] = {
6891
    {
6892
        { 0x493c6f58c3b85, 0x0df7181c325f7, 0x0f50b0b3e4cb7,
6893
            0x5329385a44c32, 0x07cf9d3a33d4b },
6894
        { 0x03905d740913e, 0x0ba2817d673a2, 0x23e2827f4e67c,
6895
            0x133d2e0c21a34, 0x44fd2f9298f81 },
6896
        { 0x11205877aaa68, 0x479955893d579, 0x50d66309b67a0,
6897
            0x2d42d0dbee5ee, 0x6f117b689f0c6 },
6898
    },
6899
    {
6900
        { 0x5b0a84cee9730, 0x61d10c97155e4, 0x4059cc8096a10,
6901
            0x47a608da8014f, 0x7a164e1b9a80f },
6902
        { 0x11fe8a4fcd265, 0x7bcb8374faacc, 0x52f5af4ef4d4f,
6903
            0x5314098f98d10, 0x2ab91587555bd },
6904
        { 0x6933f0dd0d889, 0x44386bb4c4295, 0x3cb6d3162508c,
6905
            0x26368b872a2c6, 0x5a2826af12b9b },
6906
    },
6907
    {
6908
        { 0x2bc4408a5bb33, 0x078ebdda05442, 0x2ffb112354123,
6909
            0x375ee8df5862d, 0x2945ccf146e20 },
6910
        { 0x182c3a447d6ba, 0x22964e536eff2, 0x192821f540053,
6911
            0x2f9f19e788e5c, 0x154a7e73eb1b5 },
6912
        { 0x3dbf1812a8285, 0x0fa17ba3f9797, 0x6f69cb49c3820,
6913
            0x34d5a0db3858d, 0x43aabe696b3bb },
6914
    },
6915
    {
6916
        { 0x25cd0944ea3bf, 0x75673b81a4d63, 0x150b925d1c0d4,
6917
            0x13f38d9294114, 0x461bea69283c9 },
6918
        { 0x72c9aaa3221b1, 0x267774474f74d, 0x064b0e9b28085,
6919
            0x3f04ef53b27c9, 0x1d6edd5d2e531 },
6920
        { 0x36dc801b8b3a2, 0x0e0a7d4935e30, 0x1deb7cecc0d7d,
6921
            0x053a94e20dd2c, 0x7a9fbb1c6a0f9 },
6922
    },
6923
    {
6924
        { 0x6678aa6a8632f, 0x5ea3788d8b365, 0x21bd6d6994279,
6925
            0x7ace75919e4e3, 0x34b9ed338add7 },
6926
        { 0x6217e039d8064, 0x6dea408337e6d, 0x57ac112628206,
6927
            0x647cb65e30473, 0x49c05a51fadc9 },
6928
        { 0x4e8bf9045af1b, 0x514e33a45e0d6, 0x7533c5b8bfe0f,
6929
            0x583557b7e14c9, 0x73c172021b008 },
6930
    },
6931
    {
6932
        { 0x700848a802ade, 0x1e04605c4e5f7, 0x5c0d01b9767fb,
6933
            0x7d7889f42388b, 0x4275aae2546d8 },
6934
        { 0x75b0249864348, 0x52ee11070262b, 0x237ae54fb5acd,
6935
            0x3bfd1d03aaab5, 0x18ab598029d5c },
6936
        { 0x32cc5fd6089e9, 0x426505c949b05, 0x46a18880c7ad2,
6937
            0x4a4221888ccda, 0x3dc65522b53df },
6938
    },
6939
    {
6940
        { 0x0c222a2007f6d, 0x356b79bdb77ee, 0x41ee81efe12ce,
6941
            0x120a9bd07097d, 0x234fd7eec346f },
6942
        { 0x7013b327fbf93, 0x1336eeded6a0d, 0x2b565a2bbf3af,
6943
            0x253ce89591955, 0x0267882d17602 },
6944
        { 0x0a119732ea378, 0x63bf1ba8e2a6c, 0x69f94cc90df9a,
6945
            0x431d1779bfc48, 0x497ba6fdaa097 },
6946
    },
6947
    {
6948
        { 0x6cc0313cfeaa0, 0x1a313848da499, 0x7cb534219230a,
6949
            0x39596dedefd60, 0x61e22917f12de },
6950
        { 0x3cd86468ccf0b, 0x48553221ac081, 0x6c9464b4e0a6e,
6951
            0x75fba84180403, 0x43b5cd4218d05 },
6952
        { 0x2762f9bd0b516, 0x1c6e7fbddcbb3, 0x75909c3ace2bd,
6953
            0x42101972d3ec9, 0x511d61210ae4d },
6954
    },
6955
};
6956
#else
6957
static const ge_precomp Bi[8] = {
6958
    {
6959
        { 25967493, -14356035, 29566456, 3660896, -12694345, 4014787, 27544626,
6960
            -11754271, -6079156, 2047605 },
6961
        { -12545711, 934262, -2722910, 3049990, -727428, 9406986, 12720692,
6962
            5043384, 19500929, -15469378 },
6963
        { -8738181, 4489570, 9688441, -14785194, 10184609, -12363380, 29287919,
6964
            11864899, -24514362, -4438546 },
6965
    },
6966
    {
6967
        { 15636291, -9688557, 24204773, -7912398, 616977, -16685262, 27787600,
6968
            -14772189, 28944400, -1550024 },
6969
        { 16568933, 4717097, -11556148, -1102322, 15682896, -11807043, 16354577,
6970
            -11775962, 7689662, 11199574 },
6971
        { 30464156, -5976125, -11779434, -15670865, 23220365, 15915852, 7512774,
6972
            10017326, -17749093, -9920357 },
6973
    },
6974
    {
6975
        { 10861363, 11473154, 27284546, 1981175, -30064349, 12577861, 32867885,
6976
            14515107, -15438304, 10819380 },
6977
        { 4708026, 6336745, 20377586, 9066809, -11272109, 6594696, -25653668,
6978
            12483688, -12668491, 5581306 },
6979
        { 19563160, 16186464, -29386857, 4097519, 10237984, -4348115, 28542350,
6980
            13850243, -23678021, -15815942 },
6981
    },
6982
    {
6983
        { 5153746, 9909285, 1723747, -2777874, 30523605, 5516873, 19480852,
6984
            5230134, -23952439, -15175766 },
6985
        { -30269007, -3463509, 7665486, 10083793, 28475525, 1649722, 20654025,
6986
            16520125, 30598449, 7715701 },
6987
        { 28881845, 14381568, 9657904, 3680757, -20181635, 7843316, -31400660,
6988
            1370708, 29794553, -1409300 },
6989
    },
6990
    {
6991
        { -22518993, -6692182, 14201702, -8745502, -23510406, 8844726, 18474211,
6992
            -1361450, -13062696, 13821877 },
6993
        { -6455177, -7839871, 3374702, -4740862, -27098617, -10571707, 31655028,
6994
            -7212327, 18853322, -14220951 },
6995
        { 4566830, -12963868, -28974889, -12240689, -7602672, -2830569, -8514358,
6996
            -10431137, 2207753, -3209784 },
6997
    },
6998
    {
6999
        { -25154831, -4185821, 29681144, 7868801, -6854661, -9423865, -12437364,
7000
            -663000, -31111463, -16132436 },
7001
        { 25576264, -2703214, 7349804, -11814844, 16472782, 9300885, 3844789,
7002
            15725684, 171356, 6466918 },
7003
        { 23103977, 13316479, 9739013, -16149481, 817875, -15038942, 8965339,
7004
            -14088058, -30714912, 16193877 },
7005
    },
7006
    {
7007
        { -33521811, 3180713, -2394130, 14003687, -16903474, -16270840, 17238398,
7008
            4729455, -18074513, 9256800 },
7009
        { -25182317, -4174131, 32336398, 5036987, -21236817, 11360617, 22616405,
7010
            9761698, -19827198, 630305 },
7011
        { -13720693, 2639453, -24237460, -7406481, 9494427, -5774029, -6554551,
7012
            -15960994, -2449256, -14291300 },
7013
    },
7014
    {
7015
        { -3151181, -5046075, 9282714, 6866145, -31907062, -863023, -18940575,
7016
            15033784, 25105118, -7894876 },
7017
        { -24326370, 15950226, -31801215, -14592823, -11662737, -5090925,
7018
            1573892, -2625887, 2198790, -15804619 },
7019
        { -3099351, 10324967, -2241613, 7453183, -5446979, -2735503, -13812022,
7020
            -16236442, -32461234, -12290683 },
7021
    },
7022
};
7023
#endif
7024
7025
/*
7026
 * r = a * A + b * B
7027
 *
7028
 * where a = a[0]+256*a[1]+...+256^31 a[31].
7029
 * and b = b[0]+256*b[1]+...+256^31 b[31].
7030
 * B is the Ed25519 base point (x,4/5) with x positive.
7031
 */
7032
static void ge_double_scalarmult_vartime(ge_p2 *r, const uint8_t *a,
7033
    const ge_p3 *A, const uint8_t *b)
7034
0
{
7035
0
    signed char aslide[256];
7036
0
    signed char bslide[256];
7037
0
    ge_cached Ai[8]; /* A,3A,5A,7A,9A,11A,13A,15A */
7038
0
    ge_p1p1 t;
7039
0
    ge_p3 u;
7040
0
    ge_p3 A2;
7041
0
    int i;
7042
7043
0
    slide(aslide, a);
7044
0
    slide(bslide, b);
7045
7046
0
    ge_p3_to_cached(&Ai[0], A);
7047
0
    ge_p3_dbl(&t, A);
7048
0
    ge_p1p1_to_p3(&A2, &t);
7049
0
    ge_add(&t, &A2, &Ai[0]);
7050
0
    ge_p1p1_to_p3(&u, &t);
7051
0
    ge_p3_to_cached(&Ai[1], &u);
7052
0
    ge_add(&t, &A2, &Ai[1]);
7053
0
    ge_p1p1_to_p3(&u, &t);
7054
0
    ge_p3_to_cached(&Ai[2], &u);
7055
0
    ge_add(&t, &A2, &Ai[2]);
7056
0
    ge_p1p1_to_p3(&u, &t);
7057
0
    ge_p3_to_cached(&Ai[3], &u);
7058
0
    ge_add(&t, &A2, &Ai[3]);
7059
0
    ge_p1p1_to_p3(&u, &t);
7060
0
    ge_p3_to_cached(&Ai[4], &u);
7061
0
    ge_add(&t, &A2, &Ai[4]);
7062
0
    ge_p1p1_to_p3(&u, &t);
7063
0
    ge_p3_to_cached(&Ai[5], &u);
7064
0
    ge_add(&t, &A2, &Ai[5]);
7065
0
    ge_p1p1_to_p3(&u, &t);
7066
0
    ge_p3_to_cached(&Ai[6], &u);
7067
0
    ge_add(&t, &A2, &Ai[6]);
7068
0
    ge_p1p1_to_p3(&u, &t);
7069
0
    ge_p3_to_cached(&Ai[7], &u);
7070
7071
0
    ge_p2_0(r);
7072
7073
0
    for (i = 255; i >= 0; --i) {
7074
0
        if (aslide[i] || bslide[i]) {
7075
0
            break;
7076
0
        }
7077
0
    }
7078
7079
0
    for (; i >= 0; --i) {
7080
0
        ge_p2_dbl(&t, r);
7081
7082
0
        if (aslide[i] > 0) {
7083
0
            ge_p1p1_to_p3(&u, &t);
7084
0
            ge_add(&t, &u, &Ai[aslide[i] / 2]);
7085
0
        } else if (aslide[i] < 0) {
7086
0
            ge_p1p1_to_p3(&u, &t);
7087
0
            ge_sub(&t, &u, &Ai[(-aslide[i]) / 2]);
7088
0
        }
7089
7090
0
        if (bslide[i] > 0) {
7091
0
            ge_p1p1_to_p3(&u, &t);
7092
0
            ge_madd(&t, &u, &Bi[bslide[i] / 2]);
7093
0
        } else if (bslide[i] < 0) {
7094
0
            ge_p1p1_to_p3(&u, &t);
7095
0
            ge_msub(&t, &u, &Bi[(-bslide[i]) / 2]);
7096
0
        }
7097
7098
0
        ge_p1p1_to_p2(r, &t);
7099
0
    }
7100
0
}
7101
7102
/*
7103
 * The set of scalars is \Z/l
7104
 * where l = 2^252 + 27742317777372353535851937790883648493.
7105
 *
7106
 * Input:
7107
 *   s[0]+256*s[1]+...+256^63*s[63] = s
7108
 *
7109
 * Output:
7110
 *   s[0]+256*s[1]+...+256^31*s[31] = s mod l
7111
 *   where l = 2^252 + 27742317777372353535851937790883648493.
7112
 *   Overwrites s in place.
7113
 */
7114
static void x25519_sc_reduce(uint8_t *s)
7115
0
{
7116
0
    int64_t s0 = kBottom21Bits & load_3(s);
7117
0
    int64_t s1 = kBottom21Bits & (load_4(s + 2) >> 5);
7118
0
    int64_t s2 = kBottom21Bits & (load_3(s + 5) >> 2);
7119
0
    int64_t s3 = kBottom21Bits & (load_4(s + 7) >> 7);
7120
0
    int64_t s4 = kBottom21Bits & (load_4(s + 10) >> 4);
7121
0
    int64_t s5 = kBottom21Bits & (load_3(s + 13) >> 1);
7122
0
    int64_t s6 = kBottom21Bits & (load_4(s + 15) >> 6);
7123
0
    int64_t s7 = kBottom21Bits & (load_3(s + 18) >> 3);
7124
0
    int64_t s8 = kBottom21Bits & load_3(s + 21);
7125
0
    int64_t s9 = kBottom21Bits & (load_4(s + 23) >> 5);
7126
0
    int64_t s10 = kBottom21Bits & (load_3(s + 26) >> 2);
7127
0
    int64_t s11 = kBottom21Bits & (load_4(s + 28) >> 7);
7128
0
    int64_t s12 = kBottom21Bits & (load_4(s + 31) >> 4);
7129
0
    int64_t s13 = kBottom21Bits & (load_3(s + 34) >> 1);
7130
0
    int64_t s14 = kBottom21Bits & (load_4(s + 36) >> 6);
7131
0
    int64_t s15 = kBottom21Bits & (load_3(s + 39) >> 3);
7132
0
    int64_t s16 = kBottom21Bits & load_3(s + 42);
7133
0
    int64_t s17 = kBottom21Bits & (load_4(s + 44) >> 5);
7134
0
    int64_t s18 = kBottom21Bits & (load_3(s + 47) >> 2);
7135
0
    int64_t s19 = kBottom21Bits & (load_4(s + 49) >> 7);
7136
0
    int64_t s20 = kBottom21Bits & (load_4(s + 52) >> 4);
7137
0
    int64_t s21 = kBottom21Bits & (load_3(s + 55) >> 1);
7138
0
    int64_t s22 = kBottom21Bits & (load_4(s + 57) >> 6);
7139
0
    int64_t s23 = (load_4(s + 60) >> 3);
7140
0
    int64_t carry0;
7141
0
    int64_t carry1;
7142
0
    int64_t carry2;
7143
0
    int64_t carry3;
7144
0
    int64_t carry4;
7145
0
    int64_t carry5;
7146
0
    int64_t carry6;
7147
0
    int64_t carry7;
7148
0
    int64_t carry8;
7149
0
    int64_t carry9;
7150
0
    int64_t carry10;
7151
0
    int64_t carry11;
7152
0
    int64_t carry12;
7153
0
    int64_t carry13;
7154
0
    int64_t carry14;
7155
0
    int64_t carry15;
7156
0
    int64_t carry16;
7157
7158
0
    s11 += s23 * 666643;
7159
0
    s12 += s23 * 470296;
7160
0
    s13 += s23 * 654183;
7161
0
    s14 -= s23 * 997805;
7162
0
    s15 += s23 * 136657;
7163
0
    s16 -= s23 * 683901;
7164
0
    s23 = 0;
7165
7166
0
    s10 += s22 * 666643;
7167
0
    s11 += s22 * 470296;
7168
0
    s12 += s22 * 654183;
7169
0
    s13 -= s22 * 997805;
7170
0
    s14 += s22 * 136657;
7171
0
    s15 -= s22 * 683901;
7172
0
    s22 = 0;
7173
7174
0
    s9 += s21 * 666643;
7175
0
    s10 += s21 * 470296;
7176
0
    s11 += s21 * 654183;
7177
0
    s12 -= s21 * 997805;
7178
0
    s13 += s21 * 136657;
7179
0
    s14 -= s21 * 683901;
7180
0
    s21 = 0;
7181
7182
0
    s8 += s20 * 666643;
7183
0
    s9 += s20 * 470296;
7184
0
    s10 += s20 * 654183;
7185
0
    s11 -= s20 * 997805;
7186
0
    s12 += s20 * 136657;
7187
0
    s13 -= s20 * 683901;
7188
0
    s20 = 0;
7189
7190
0
    s7 += s19 * 666643;
7191
0
    s8 += s19 * 470296;
7192
0
    s9 += s19 * 654183;
7193
0
    s10 -= s19 * 997805;
7194
0
    s11 += s19 * 136657;
7195
0
    s12 -= s19 * 683901;
7196
0
    s19 = 0;
7197
7198
0
    s6 += s18 * 666643;
7199
0
    s7 += s18 * 470296;
7200
0
    s8 += s18 * 654183;
7201
0
    s9 -= s18 * 997805;
7202
0
    s10 += s18 * 136657;
7203
0
    s11 -= s18 * 683901;
7204
0
    s18 = 0;
7205
7206
0
    carry6 = (s6 + (1 << 20)) >> 21;
7207
0
    s7 += carry6;
7208
0
    s6 -= carry6 * (1 << 21);
7209
0
    carry8 = (s8 + (1 << 20)) >> 21;
7210
0
    s9 += carry8;
7211
0
    s8 -= carry8 * (1 << 21);
7212
0
    carry10 = (s10 + (1 << 20)) >> 21;
7213
0
    s11 += carry10;
7214
0
    s10 -= carry10 * (1 << 21);
7215
0
    carry12 = (s12 + (1 << 20)) >> 21;
7216
0
    s13 += carry12;
7217
0
    s12 -= carry12 * (1 << 21);
7218
0
    carry14 = (s14 + (1 << 20)) >> 21;
7219
0
    s15 += carry14;
7220
0
    s14 -= carry14 * (1 << 21);
7221
0
    carry16 = (s16 + (1 << 20)) >> 21;
7222
0
    s17 += carry16;
7223
0
    s16 -= carry16 * (1 << 21);
7224
7225
0
    carry7 = (s7 + (1 << 20)) >> 21;
7226
0
    s8 += carry7;
7227
0
    s7 -= carry7 * (1 << 21);
7228
0
    carry9 = (s9 + (1 << 20)) >> 21;
7229
0
    s10 += carry9;
7230
0
    s9 -= carry9 * (1 << 21);
7231
0
    carry11 = (s11 + (1 << 20)) >> 21;
7232
0
    s12 += carry11;
7233
0
    s11 -= carry11 * (1 << 21);
7234
0
    carry13 = (s13 + (1 << 20)) >> 21;
7235
0
    s14 += carry13;
7236
0
    s13 -= carry13 * (1 << 21);
7237
0
    carry15 = (s15 + (1 << 20)) >> 21;
7238
0
    s16 += carry15;
7239
0
    s15 -= carry15 * (1 << 21);
7240
7241
0
    s5 += s17 * 666643;
7242
0
    s6 += s17 * 470296;
7243
0
    s7 += s17 * 654183;
7244
0
    s8 -= s17 * 997805;
7245
0
    s9 += s17 * 136657;
7246
0
    s10 -= s17 * 683901;
7247
0
    s17 = 0;
7248
7249
0
    s4 += s16 * 666643;
7250
0
    s5 += s16 * 470296;
7251
0
    s6 += s16 * 654183;
7252
0
    s7 -= s16 * 997805;
7253
0
    s8 += s16 * 136657;
7254
0
    s9 -= s16 * 683901;
7255
0
    s16 = 0;
7256
7257
0
    s3 += s15 * 666643;
7258
0
    s4 += s15 * 470296;
7259
0
    s5 += s15 * 654183;
7260
0
    s6 -= s15 * 997805;
7261
0
    s7 += s15 * 136657;
7262
0
    s8 -= s15 * 683901;
7263
0
    s15 = 0;
7264
7265
0
    s2 += s14 * 666643;
7266
0
    s3 += s14 * 470296;
7267
0
    s4 += s14 * 654183;
7268
0
    s5 -= s14 * 997805;
7269
0
    s6 += s14 * 136657;
7270
0
    s7 -= s14 * 683901;
7271
0
    s14 = 0;
7272
7273
0
    s1 += s13 * 666643;
7274
0
    s2 += s13 * 470296;
7275
0
    s3 += s13 * 654183;
7276
0
    s4 -= s13 * 997805;
7277
0
    s5 += s13 * 136657;
7278
0
    s6 -= s13 * 683901;
7279
0
    s13 = 0;
7280
7281
0
    s0 += s12 * 666643;
7282
0
    s1 += s12 * 470296;
7283
0
    s2 += s12 * 654183;
7284
0
    s3 -= s12 * 997805;
7285
0
    s4 += s12 * 136657;
7286
0
    s5 -= s12 * 683901;
7287
0
    s12 = 0;
7288
7289
0
    carry0 = (s0 + (1 << 20)) >> 21;
7290
0
    s1 += carry0;
7291
0
    s0 -= carry0 * (1 << 21);
7292
0
    carry2 = (s2 + (1 << 20)) >> 21;
7293
0
    s3 += carry2;
7294
0
    s2 -= carry2 * (1 << 21);
7295
0
    carry4 = (s4 + (1 << 20)) >> 21;
7296
0
    s5 += carry4;
7297
0
    s4 -= carry4 * (1 << 21);
7298
0
    carry6 = (s6 + (1 << 20)) >> 21;
7299
0
    s7 += carry6;
7300
0
    s6 -= carry6 * (1 << 21);
7301
0
    carry8 = (s8 + (1 << 20)) >> 21;
7302
0
    s9 += carry8;
7303
0
    s8 -= carry8 * (1 << 21);
7304
0
    carry10 = (s10 + (1 << 20)) >> 21;
7305
0
    s11 += carry10;
7306
0
    s10 -= carry10 * (1 << 21);
7307
7308
0
    carry1 = (s1 + (1 << 20)) >> 21;
7309
0
    s2 += carry1;
7310
0
    s1 -= carry1 * (1 << 21);
7311
0
    carry3 = (s3 + (1 << 20)) >> 21;
7312
0
    s4 += carry3;
7313
0
    s3 -= carry3 * (1 << 21);
7314
0
    carry5 = (s5 + (1 << 20)) >> 21;
7315
0
    s6 += carry5;
7316
0
    s5 -= carry5 * (1 << 21);
7317
0
    carry7 = (s7 + (1 << 20)) >> 21;
7318
0
    s8 += carry7;
7319
0
    s7 -= carry7 * (1 << 21);
7320
0
    carry9 = (s9 + (1 << 20)) >> 21;
7321
0
    s10 += carry9;
7322
0
    s9 -= carry9 * (1 << 21);
7323
0
    carry11 = (s11 + (1 << 20)) >> 21;
7324
0
    s12 += carry11;
7325
0
    s11 -= carry11 * (1 << 21);
7326
7327
0
    s0 += s12 * 666643;
7328
0
    s1 += s12 * 470296;
7329
0
    s2 += s12 * 654183;
7330
0
    s3 -= s12 * 997805;
7331
0
    s4 += s12 * 136657;
7332
0
    s5 -= s12 * 683901;
7333
0
    s12 = 0;
7334
7335
0
    carry0 = s0 >> 21;
7336
0
    s1 += carry0;
7337
0
    s0 -= carry0 * (1 << 21);
7338
0
    carry1 = s1 >> 21;
7339
0
    s2 += carry1;
7340
0
    s1 -= carry1 * (1 << 21);
7341
0
    carry2 = s2 >> 21;
7342
0
    s3 += carry2;
7343
0
    s2 -= carry2 * (1 << 21);
7344
0
    carry3 = s3 >> 21;
7345
0
    s4 += carry3;
7346
0
    s3 -= carry3 * (1 << 21);
7347
0
    carry4 = s4 >> 21;
7348
0
    s5 += carry4;
7349
0
    s4 -= carry4 * (1 << 21);
7350
0
    carry5 = s5 >> 21;
7351
0
    s6 += carry5;
7352
0
    s5 -= carry5 * (1 << 21);
7353
0
    carry6 = s6 >> 21;
7354
0
    s7 += carry6;
7355
0
    s6 -= carry6 * (1 << 21);
7356
0
    carry7 = s7 >> 21;
7357
0
    s8 += carry7;
7358
0
    s7 -= carry7 * (1 << 21);
7359
0
    carry8 = s8 >> 21;
7360
0
    s9 += carry8;
7361
0
    s8 -= carry8 * (1 << 21);
7362
0
    carry9 = s9 >> 21;
7363
0
    s10 += carry9;
7364
0
    s9 -= carry9 * (1 << 21);
7365
0
    carry10 = s10 >> 21;
7366
0
    s11 += carry10;
7367
0
    s10 -= carry10 * (1 << 21);
7368
0
    carry11 = s11 >> 21;
7369
0
    s12 += carry11;
7370
0
    s11 -= carry11 * (1 << 21);
7371
7372
0
    s0 += s12 * 666643;
7373
0
    s1 += s12 * 470296;
7374
0
    s2 += s12 * 654183;
7375
0
    s3 -= s12 * 997805;
7376
0
    s4 += s12 * 136657;
7377
0
    s5 -= s12 * 683901;
7378
0
    s12 = 0;
7379
7380
0
    carry0 = s0 >> 21;
7381
0
    s1 += carry0;
7382
0
    s0 -= carry0 * (1 << 21);
7383
0
    carry1 = s1 >> 21;
7384
0
    s2 += carry1;
7385
0
    s1 -= carry1 * (1 << 21);
7386
0
    carry2 = s2 >> 21;
7387
0
    s3 += carry2;
7388
0
    s2 -= carry2 * (1 << 21);
7389
0
    carry3 = s3 >> 21;
7390
0
    s4 += carry3;
7391
0
    s3 -= carry3 * (1 << 21);
7392
0
    carry4 = s4 >> 21;
7393
0
    s5 += carry4;
7394
0
    s4 -= carry4 * (1 << 21);
7395
0
    carry5 = s5 >> 21;
7396
0
    s6 += carry5;
7397
0
    s5 -= carry5 * (1 << 21);
7398
0
    carry6 = s6 >> 21;
7399
0
    s7 += carry6;
7400
0
    s6 -= carry6 * (1 << 21);
7401
0
    carry7 = s7 >> 21;
7402
0
    s8 += carry7;
7403
0
    s7 -= carry7 * (1 << 21);
7404
0
    carry8 = s8 >> 21;
7405
0
    s9 += carry8;
7406
0
    s8 -= carry8 * (1 << 21);
7407
0
    carry9 = s9 >> 21;
7408
0
    s10 += carry9;
7409
0
    s9 -= carry9 * (1 << 21);
7410
0
    carry10 = s10 >> 21;
7411
0
    s11 += carry10;
7412
0
    s10 -= carry10 * (1 << 21);
7413
7414
0
    s[0] = (uint8_t)(s0 >> 0);
7415
0
    s[1] = (uint8_t)(s0 >> 8);
7416
0
    s[2] = (uint8_t)((s0 >> 16) | (s1 << 5));
7417
0
    s[3] = (uint8_t)(s1 >> 3);
7418
0
    s[4] = (uint8_t)(s1 >> 11);
7419
0
    s[5] = (uint8_t)((s1 >> 19) | (s2 << 2));
7420
0
    s[6] = (uint8_t)(s2 >> 6);
7421
0
    s[7] = (uint8_t)((s2 >> 14) | (s3 << 7));
7422
0
    s[8] = (uint8_t)(s3 >> 1);
7423
0
    s[9] = (uint8_t)(s3 >> 9);
7424
0
    s[10] = (uint8_t)((s3 >> 17) | (s4 << 4));
7425
0
    s[11] = (uint8_t)(s4 >> 4);
7426
0
    s[12] = (uint8_t)(s4 >> 12);
7427
0
    s[13] = (uint8_t)((s4 >> 20) | (s5 << 1));
7428
0
    s[14] = (uint8_t)(s5 >> 7);
7429
0
    s[15] = (uint8_t)((s5 >> 15) | (s6 << 6));
7430
0
    s[16] = (uint8_t)(s6 >> 2);
7431
0
    s[17] = (uint8_t)(s6 >> 10);
7432
0
    s[18] = (uint8_t)((s6 >> 18) | (s7 << 3));
7433
0
    s[19] = (uint8_t)(s7 >> 5);
7434
0
    s[20] = (uint8_t)(s7 >> 13);
7435
0
    s[21] = (uint8_t)(s8 >> 0);
7436
0
    s[22] = (uint8_t)(s8 >> 8);
7437
0
    s[23] = (uint8_t)((s8 >> 16) | (s9 << 5));
7438
0
    s[24] = (uint8_t)(s9 >> 3);
7439
0
    s[25] = (uint8_t)(s9 >> 11);
7440
0
    s[26] = (uint8_t)((s9 >> 19) | (s10 << 2));
7441
0
    s[27] = (uint8_t)(s10 >> 6);
7442
0
    s[28] = (uint8_t)((s10 >> 14) | (s11 << 7));
7443
0
    s[29] = (uint8_t)(s11 >> 1);
7444
0
    s[30] = (uint8_t)(s11 >> 9);
7445
0
    s[31] = (uint8_t)(s11 >> 17);
7446
0
}
7447
7448
/*
7449
 * Input:
7450
 *   a[0]+256*a[1]+...+256^31*a[31] = a
7451
 *   b[0]+256*b[1]+...+256^31*b[31] = b
7452
 *   c[0]+256*c[1]+...+256^31*c[31] = c
7453
 *
7454
 * Output:
7455
 *   s[0]+256*s[1]+...+256^31*s[31] = (ab+c) mod l
7456
 *   where l = 2^252 + 27742317777372353535851937790883648493.
7457
 */
7458
static void sc_muladd(uint8_t *s, const uint8_t *a, const uint8_t *b,
7459
    const uint8_t *c)
7460
0
{
7461
0
    int64_t a0 = kBottom21Bits & load_3(a);
7462
0
    int64_t a1 = kBottom21Bits & (load_4(a + 2) >> 5);
7463
0
    int64_t a2 = kBottom21Bits & (load_3(a + 5) >> 2);
7464
0
    int64_t a3 = kBottom21Bits & (load_4(a + 7) >> 7);
7465
0
    int64_t a4 = kBottom21Bits & (load_4(a + 10) >> 4);
7466
0
    int64_t a5 = kBottom21Bits & (load_3(a + 13) >> 1);
7467
0
    int64_t a6 = kBottom21Bits & (load_4(a + 15) >> 6);
7468
0
    int64_t a7 = kBottom21Bits & (load_3(a + 18) >> 3);
7469
0
    int64_t a8 = kBottom21Bits & load_3(a + 21);
7470
0
    int64_t a9 = kBottom21Bits & (load_4(a + 23) >> 5);
7471
0
    int64_t a10 = kBottom21Bits & (load_3(a + 26) >> 2);
7472
0
    int64_t a11 = (load_4(a + 28) >> 7);
7473
0
    int64_t b0 = kBottom21Bits & load_3(b);
7474
0
    int64_t b1 = kBottom21Bits & (load_4(b + 2) >> 5);
7475
0
    int64_t b2 = kBottom21Bits & (load_3(b + 5) >> 2);
7476
0
    int64_t b3 = kBottom21Bits & (load_4(b + 7) >> 7);
7477
0
    int64_t b4 = kBottom21Bits & (load_4(b + 10) >> 4);
7478
0
    int64_t b5 = kBottom21Bits & (load_3(b + 13) >> 1);
7479
0
    int64_t b6 = kBottom21Bits & (load_4(b + 15) >> 6);
7480
0
    int64_t b7 = kBottom21Bits & (load_3(b + 18) >> 3);
7481
0
    int64_t b8 = kBottom21Bits & load_3(b + 21);
7482
0
    int64_t b9 = kBottom21Bits & (load_4(b + 23) >> 5);
7483
0
    int64_t b10 = kBottom21Bits & (load_3(b + 26) >> 2);
7484
0
    int64_t b11 = (load_4(b + 28) >> 7);
7485
0
    int64_t c0 = kBottom21Bits & load_3(c);
7486
0
    int64_t c1 = kBottom21Bits & (load_4(c + 2) >> 5);
7487
0
    int64_t c2 = kBottom21Bits & (load_3(c + 5) >> 2);
7488
0
    int64_t c3 = kBottom21Bits & (load_4(c + 7) >> 7);
7489
0
    int64_t c4 = kBottom21Bits & (load_4(c + 10) >> 4);
7490
0
    int64_t c5 = kBottom21Bits & (load_3(c + 13) >> 1);
7491
0
    int64_t c6 = kBottom21Bits & (load_4(c + 15) >> 6);
7492
0
    int64_t c7 = kBottom21Bits & (load_3(c + 18) >> 3);
7493
0
    int64_t c8 = kBottom21Bits & load_3(c + 21);
7494
0
    int64_t c9 = kBottom21Bits & (load_4(c + 23) >> 5);
7495
0
    int64_t c10 = kBottom21Bits & (load_3(c + 26) >> 2);
7496
0
    int64_t c11 = (load_4(c + 28) >> 7);
7497
0
    int64_t s0;
7498
0
    int64_t s1;
7499
0
    int64_t s2;
7500
0
    int64_t s3;
7501
0
    int64_t s4;
7502
0
    int64_t s5;
7503
0
    int64_t s6;
7504
0
    int64_t s7;
7505
0
    int64_t s8;
7506
0
    int64_t s9;
7507
0
    int64_t s10;
7508
0
    int64_t s11;
7509
0
    int64_t s12;
7510
0
    int64_t s13;
7511
0
    int64_t s14;
7512
0
    int64_t s15;
7513
0
    int64_t s16;
7514
0
    int64_t s17;
7515
0
    int64_t s18;
7516
0
    int64_t s19;
7517
0
    int64_t s20;
7518
0
    int64_t s21;
7519
0
    int64_t s22;
7520
0
    int64_t s23;
7521
0
    int64_t carry0;
7522
0
    int64_t carry1;
7523
0
    int64_t carry2;
7524
0
    int64_t carry3;
7525
0
    int64_t carry4;
7526
0
    int64_t carry5;
7527
0
    int64_t carry6;
7528
0
    int64_t carry7;
7529
0
    int64_t carry8;
7530
0
    int64_t carry9;
7531
0
    int64_t carry10;
7532
0
    int64_t carry11;
7533
0
    int64_t carry12;
7534
0
    int64_t carry13;
7535
0
    int64_t carry14;
7536
0
    int64_t carry15;
7537
0
    int64_t carry16;
7538
0
    int64_t carry17;
7539
0
    int64_t carry18;
7540
0
    int64_t carry19;
7541
0
    int64_t carry20;
7542
0
    int64_t carry21;
7543
0
    int64_t carry22;
7544
7545
0
    s0 = c0 + a0 * b0;
7546
0
    s1 = c1 + a0 * b1 + a1 * b0;
7547
0
    s2 = c2 + a0 * b2 + a1 * b1 + a2 * b0;
7548
0
    s3 = c3 + a0 * b3 + a1 * b2 + a2 * b1 + a3 * b0;
7549
0
    s4 = c4 + a0 * b4 + a1 * b3 + a2 * b2 + a3 * b1 + a4 * b0;
7550
0
    s5 = c5 + a0 * b5 + a1 * b4 + a2 * b3 + a3 * b2 + a4 * b1 + a5 * b0;
7551
0
    s6 = c6 + a0 * b6 + a1 * b5 + a2 * b4 + a3 * b3 + a4 * b2 + a5 * b1 + a6 * b0;
7552
0
    s7 = c7 + a0 * b7 + a1 * b6 + a2 * b5 + a3 * b4 + a4 * b3 + a5 * b2 + a6 * b1 + a7 * b0;
7553
0
    s8 = c8 + a0 * b8 + a1 * b7 + a2 * b6 + a3 * b5 + a4 * b4 + a5 * b3 + a6 * b2 + a7 * b1 + a8 * b0;
7554
0
    s9 = c9 + a0 * b9 + a1 * b8 + a2 * b7 + a3 * b6 + a4 * b5 + a5 * b4 + a6 * b3 + a7 * b2 + a8 * b1 + a9 * b0;
7555
0
    s10 = c10 + a0 * b10 + a1 * b9 + a2 * b8 + a3 * b7 + a4 * b6 + a5 * b5 + a6 * b4 + a7 * b3 + a8 * b2 + a9 * b1 + a10 * b0;
7556
0
    s11 = c11 + a0 * b11 + a1 * b10 + a2 * b9 + a3 * b8 + a4 * b7 + a5 * b6 + a6 * b5 + a7 * b4 + a8 * b3 + a9 * b2 + a10 * b1 + a11 * b0;
7557
0
    s12 = a1 * b11 + a2 * b10 + a3 * b9 + a4 * b8 + a5 * b7 + a6 * b6 + a7 * b5 + a8 * b4 + a9 * b3 + a10 * b2 + a11 * b1;
7558
0
    s13 = a2 * b11 + a3 * b10 + a4 * b9 + a5 * b8 + a6 * b7 + a7 * b6 + a8 * b5 + a9 * b4 + a10 * b3 + a11 * b2;
7559
0
    s14 = a3 * b11 + a4 * b10 + a5 * b9 + a6 * b8 + a7 * b7 + a8 * b6 + a9 * b5 + a10 * b4 + a11 * b3;
7560
0
    s15 = a4 * b11 + a5 * b10 + a6 * b9 + a7 * b8 + a8 * b7 + a9 * b6 + a10 * b5 + a11 * b4;
7561
0
    s16 = a5 * b11 + a6 * b10 + a7 * b9 + a8 * b8 + a9 * b7 + a10 * b6 + a11 * b5;
7562
0
    s17 = a6 * b11 + a7 * b10 + a8 * b9 + a9 * b8 + a10 * b7 + a11 * b6;
7563
0
    s18 = a7 * b11 + a8 * b10 + a9 * b9 + a10 * b8 + a11 * b7;
7564
0
    s19 = a8 * b11 + a9 * b10 + a10 * b9 + a11 * b8;
7565
0
    s20 = a9 * b11 + a10 * b10 + a11 * b9;
7566
0
    s21 = a10 * b11 + a11 * b10;
7567
0
    s22 = a11 * b11;
7568
0
    s23 = 0;
7569
7570
0
    carry0 = (s0 + (1 << 20)) >> 21;
7571
0
    s1 += carry0;
7572
0
    s0 -= carry0 * (1 << 21);
7573
0
    carry2 = (s2 + (1 << 20)) >> 21;
7574
0
    s3 += carry2;
7575
0
    s2 -= carry2 * (1 << 21);
7576
0
    carry4 = (s4 + (1 << 20)) >> 21;
7577
0
    s5 += carry4;
7578
0
    s4 -= carry4 * (1 << 21);
7579
0
    carry6 = (s6 + (1 << 20)) >> 21;
7580
0
    s7 += carry6;
7581
0
    s6 -= carry6 * (1 << 21);
7582
0
    carry8 = (s8 + (1 << 20)) >> 21;
7583
0
    s9 += carry8;
7584
0
    s8 -= carry8 * (1 << 21);
7585
0
    carry10 = (s10 + (1 << 20)) >> 21;
7586
0
    s11 += carry10;
7587
0
    s10 -= carry10 * (1 << 21);
7588
0
    carry12 = (s12 + (1 << 20)) >> 21;
7589
0
    s13 += carry12;
7590
0
    s12 -= carry12 * (1 << 21);
7591
0
    carry14 = (s14 + (1 << 20)) >> 21;
7592
0
    s15 += carry14;
7593
0
    s14 -= carry14 * (1 << 21);
7594
0
    carry16 = (s16 + (1 << 20)) >> 21;
7595
0
    s17 += carry16;
7596
0
    s16 -= carry16 * (1 << 21);
7597
0
    carry18 = (s18 + (1 << 20)) >> 21;
7598
0
    s19 += carry18;
7599
0
    s18 -= carry18 * (1 << 21);
7600
0
    carry20 = (s20 + (1 << 20)) >> 21;
7601
0
    s21 += carry20;
7602
0
    s20 -= carry20 * (1 << 21);
7603
0
    carry22 = (s22 + (1 << 20)) >> 21;
7604
0
    s23 += carry22;
7605
0
    s22 -= carry22 * (1 << 21);
7606
7607
0
    carry1 = (s1 + (1 << 20)) >> 21;
7608
0
    s2 += carry1;
7609
0
    s1 -= carry1 * (1 << 21);
7610
0
    carry3 = (s3 + (1 << 20)) >> 21;
7611
0
    s4 += carry3;
7612
0
    s3 -= carry3 * (1 << 21);
7613
0
    carry5 = (s5 + (1 << 20)) >> 21;
7614
0
    s6 += carry5;
7615
0
    s5 -= carry5 * (1 << 21);
7616
0
    carry7 = (s7 + (1 << 20)) >> 21;
7617
0
    s8 += carry7;
7618
0
    s7 -= carry7 * (1 << 21);
7619
0
    carry9 = (s9 + (1 << 20)) >> 21;
7620
0
    s10 += carry9;
7621
0
    s9 -= carry9 * (1 << 21);
7622
0
    carry11 = (s11 + (1 << 20)) >> 21;
7623
0
    s12 += carry11;
7624
0
    s11 -= carry11 * (1 << 21);
7625
0
    carry13 = (s13 + (1 << 20)) >> 21;
7626
0
    s14 += carry13;
7627
0
    s13 -= carry13 * (1 << 21);
7628
0
    carry15 = (s15 + (1 << 20)) >> 21;
7629
0
    s16 += carry15;
7630
0
    s15 -= carry15 * (1 << 21);
7631
0
    carry17 = (s17 + (1 << 20)) >> 21;
7632
0
    s18 += carry17;
7633
0
    s17 -= carry17 * (1 << 21);
7634
0
    carry19 = (s19 + (1 << 20)) >> 21;
7635
0
    s20 += carry19;
7636
0
    s19 -= carry19 * (1 << 21);
7637
0
    carry21 = (s21 + (1 << 20)) >> 21;
7638
0
    s22 += carry21;
7639
0
    s21 -= carry21 * (1 << 21);
7640
7641
0
    s11 += s23 * 666643;
7642
0
    s12 += s23 * 470296;
7643
0
    s13 += s23 * 654183;
7644
0
    s14 -= s23 * 997805;
7645
0
    s15 += s23 * 136657;
7646
0
    s16 -= s23 * 683901;
7647
0
    s23 = 0;
7648
7649
0
    s10 += s22 * 666643;
7650
0
    s11 += s22 * 470296;
7651
0
    s12 += s22 * 654183;
7652
0
    s13 -= s22 * 997805;
7653
0
    s14 += s22 * 136657;
7654
0
    s15 -= s22 * 683901;
7655
0
    s22 = 0;
7656
7657
0
    s9 += s21 * 666643;
7658
0
    s10 += s21 * 470296;
7659
0
    s11 += s21 * 654183;
7660
0
    s12 -= s21 * 997805;
7661
0
    s13 += s21 * 136657;
7662
0
    s14 -= s21 * 683901;
7663
0
    s21 = 0;
7664
7665
0
    s8 += s20 * 666643;
7666
0
    s9 += s20 * 470296;
7667
0
    s10 += s20 * 654183;
7668
0
    s11 -= s20 * 997805;
7669
0
    s12 += s20 * 136657;
7670
0
    s13 -= s20 * 683901;
7671
0
    s20 = 0;
7672
7673
0
    s7 += s19 * 666643;
7674
0
    s8 += s19 * 470296;
7675
0
    s9 += s19 * 654183;
7676
0
    s10 -= s19 * 997805;
7677
0
    s11 += s19 * 136657;
7678
0
    s12 -= s19 * 683901;
7679
0
    s19 = 0;
7680
7681
0
    s6 += s18 * 666643;
7682
0
    s7 += s18 * 470296;
7683
0
    s8 += s18 * 654183;
7684
0
    s9 -= s18 * 997805;
7685
0
    s10 += s18 * 136657;
7686
0
    s11 -= s18 * 683901;
7687
0
    s18 = 0;
7688
7689
0
    carry6 = (s6 + (1 << 20)) >> 21;
7690
0
    s7 += carry6;
7691
0
    s6 -= carry6 * (1 << 21);
7692
0
    carry8 = (s8 + (1 << 20)) >> 21;
7693
0
    s9 += carry8;
7694
0
    s8 -= carry8 * (1 << 21);
7695
0
    carry10 = (s10 + (1 << 20)) >> 21;
7696
0
    s11 += carry10;
7697
0
    s10 -= carry10 * (1 << 21);
7698
0
    carry12 = (s12 + (1 << 20)) >> 21;
7699
0
    s13 += carry12;
7700
0
    s12 -= carry12 * (1 << 21);
7701
0
    carry14 = (s14 + (1 << 20)) >> 21;
7702
0
    s15 += carry14;
7703
0
    s14 -= carry14 * (1 << 21);
7704
0
    carry16 = (s16 + (1 << 20)) >> 21;
7705
0
    s17 += carry16;
7706
0
    s16 -= carry16 * (1 << 21);
7707
7708
0
    carry7 = (s7 + (1 << 20)) >> 21;
7709
0
    s8 += carry7;
7710
0
    s7 -= carry7 * (1 << 21);
7711
0
    carry9 = (s9 + (1 << 20)) >> 21;
7712
0
    s10 += carry9;
7713
0
    s9 -= carry9 * (1 << 21);
7714
0
    carry11 = (s11 + (1 << 20)) >> 21;
7715
0
    s12 += carry11;
7716
0
    s11 -= carry11 * (1 << 21);
7717
0
    carry13 = (s13 + (1 << 20)) >> 21;
7718
0
    s14 += carry13;
7719
0
    s13 -= carry13 * (1 << 21);
7720
0
    carry15 = (s15 + (1 << 20)) >> 21;
7721
0
    s16 += carry15;
7722
0
    s15 -= carry15 * (1 << 21);
7723
7724
0
    s5 += s17 * 666643;
7725
0
    s6 += s17 * 470296;
7726
0
    s7 += s17 * 654183;
7727
0
    s8 -= s17 * 997805;
7728
0
    s9 += s17 * 136657;
7729
0
    s10 -= s17 * 683901;
7730
0
    s17 = 0;
7731
7732
0
    s4 += s16 * 666643;
7733
0
    s5 += s16 * 470296;
7734
0
    s6 += s16 * 654183;
7735
0
    s7 -= s16 * 997805;
7736
0
    s8 += s16 * 136657;
7737
0
    s9 -= s16 * 683901;
7738
0
    s16 = 0;
7739
7740
0
    s3 += s15 * 666643;
7741
0
    s4 += s15 * 470296;
7742
0
    s5 += s15 * 654183;
7743
0
    s6 -= s15 * 997805;
7744
0
    s7 += s15 * 136657;
7745
0
    s8 -= s15 * 683901;
7746
0
    s15 = 0;
7747
7748
0
    s2 += s14 * 666643;
7749
0
    s3 += s14 * 470296;
7750
0
    s4 += s14 * 654183;
7751
0
    s5 -= s14 * 997805;
7752
0
    s6 += s14 * 136657;
7753
0
    s7 -= s14 * 683901;
7754
0
    s14 = 0;
7755
7756
0
    s1 += s13 * 666643;
7757
0
    s2 += s13 * 470296;
7758
0
    s3 += s13 * 654183;
7759
0
    s4 -= s13 * 997805;
7760
0
    s5 += s13 * 136657;
7761
0
    s6 -= s13 * 683901;
7762
0
    s13 = 0;
7763
7764
0
    s0 += s12 * 666643;
7765
0
    s1 += s12 * 470296;
7766
0
    s2 += s12 * 654183;
7767
0
    s3 -= s12 * 997805;
7768
0
    s4 += s12 * 136657;
7769
0
    s5 -= s12 * 683901;
7770
0
    s12 = 0;
7771
7772
0
    carry0 = (s0 + (1 << 20)) >> 21;
7773
0
    s1 += carry0;
7774
0
    s0 -= carry0 * (1 << 21);
7775
0
    carry2 = (s2 + (1 << 20)) >> 21;
7776
0
    s3 += carry2;
7777
0
    s2 -= carry2 * (1 << 21);
7778
0
    carry4 = (s4 + (1 << 20)) >> 21;
7779
0
    s5 += carry4;
7780
0
    s4 -= carry4 * (1 << 21);
7781
0
    carry6 = (s6 + (1 << 20)) >> 21;
7782
0
    s7 += carry6;
7783
0
    s6 -= carry6 * (1 << 21);
7784
0
    carry8 = (s8 + (1 << 20)) >> 21;
7785
0
    s9 += carry8;
7786
0
    s8 -= carry8 * (1 << 21);
7787
0
    carry10 = (s10 + (1 << 20)) >> 21;
7788
0
    s11 += carry10;
7789
0
    s10 -= carry10 * (1 << 21);
7790
7791
0
    carry1 = (s1 + (1 << 20)) >> 21;
7792
0
    s2 += carry1;
7793
0
    s1 -= carry1 * (1 << 21);
7794
0
    carry3 = (s3 + (1 << 20)) >> 21;
7795
0
    s4 += carry3;
7796
0
    s3 -= carry3 * (1 << 21);
7797
0
    carry5 = (s5 + (1 << 20)) >> 21;
7798
0
    s6 += carry5;
7799
0
    s5 -= carry5 * (1 << 21);
7800
0
    carry7 = (s7 + (1 << 20)) >> 21;
7801
0
    s8 += carry7;
7802
0
    s7 -= carry7 * (1 << 21);
7803
0
    carry9 = (s9 + (1 << 20)) >> 21;
7804
0
    s10 += carry9;
7805
0
    s9 -= carry9 * (1 << 21);
7806
0
    carry11 = (s11 + (1 << 20)) >> 21;
7807
0
    s12 += carry11;
7808
0
    s11 -= carry11 * (1 << 21);
7809
7810
0
    s0 += s12 * 666643;
7811
0
    s1 += s12 * 470296;
7812
0
    s2 += s12 * 654183;
7813
0
    s3 -= s12 * 997805;
7814
0
    s4 += s12 * 136657;
7815
0
    s5 -= s12 * 683901;
7816
0
    s12 = 0;
7817
7818
0
    carry0 = s0 >> 21;
7819
0
    s1 += carry0;
7820
0
    s0 -= carry0 * (1 << 21);
7821
0
    carry1 = s1 >> 21;
7822
0
    s2 += carry1;
7823
0
    s1 -= carry1 * (1 << 21);
7824
0
    carry2 = s2 >> 21;
7825
0
    s3 += carry2;
7826
0
    s2 -= carry2 * (1 << 21);
7827
0
    carry3 = s3 >> 21;
7828
0
    s4 += carry3;
7829
0
    s3 -= carry3 * (1 << 21);
7830
0
    carry4 = s4 >> 21;
7831
0
    s5 += carry4;
7832
0
    s4 -= carry4 * (1 << 21);
7833
0
    carry5 = s5 >> 21;
7834
0
    s6 += carry5;
7835
0
    s5 -= carry5 * (1 << 21);
7836
0
    carry6 = s6 >> 21;
7837
0
    s7 += carry6;
7838
0
    s6 -= carry6 * (1 << 21);
7839
0
    carry7 = s7 >> 21;
7840
0
    s8 += carry7;
7841
0
    s7 -= carry7 * (1 << 21);
7842
0
    carry8 = s8 >> 21;
7843
0
    s9 += carry8;
7844
0
    s8 -= carry8 * (1 << 21);
7845
0
    carry9 = s9 >> 21;
7846
0
    s10 += carry9;
7847
0
    s9 -= carry9 * (1 << 21);
7848
0
    carry10 = s10 >> 21;
7849
0
    s11 += carry10;
7850
0
    s10 -= carry10 * (1 << 21);
7851
0
    carry11 = s11 >> 21;
7852
0
    s12 += carry11;
7853
0
    s11 -= carry11 * (1 << 21);
7854
7855
0
    s0 += s12 * 666643;
7856
0
    s1 += s12 * 470296;
7857
0
    s2 += s12 * 654183;
7858
0
    s3 -= s12 * 997805;
7859
0
    s4 += s12 * 136657;
7860
0
    s5 -= s12 * 683901;
7861
0
    s12 = 0;
7862
7863
0
    carry0 = s0 >> 21;
7864
0
    s1 += carry0;
7865
0
    s0 -= carry0 * (1 << 21);
7866
0
    carry1 = s1 >> 21;
7867
0
    s2 += carry1;
7868
0
    s1 -= carry1 * (1 << 21);
7869
0
    carry2 = s2 >> 21;
7870
0
    s3 += carry2;
7871
0
    s2 -= carry2 * (1 << 21);
7872
0
    carry3 = s3 >> 21;
7873
0
    s4 += carry3;
7874
0
    s3 -= carry3 * (1 << 21);
7875
0
    carry4 = s4 >> 21;
7876
0
    s5 += carry4;
7877
0
    s4 -= carry4 * (1 << 21);
7878
0
    carry5 = s5 >> 21;
7879
0
    s6 += carry5;
7880
0
    s5 -= carry5 * (1 << 21);
7881
0
    carry6 = s6 >> 21;
7882
0
    s7 += carry6;
7883
0
    s6 -= carry6 * (1 << 21);
7884
0
    carry7 = s7 >> 21;
7885
0
    s8 += carry7;
7886
0
    s7 -= carry7 * (1 << 21);
7887
0
    carry8 = s8 >> 21;
7888
0
    s9 += carry8;
7889
0
    s8 -= carry8 * (1 << 21);
7890
0
    carry9 = s9 >> 21;
7891
0
    s10 += carry9;
7892
0
    s9 -= carry9 * (1 << 21);
7893
0
    carry10 = s10 >> 21;
7894
0
    s11 += carry10;
7895
0
    s10 -= carry10 * (1 << 21);
7896
7897
0
    s[0] = (uint8_t)(s0 >> 0);
7898
0
    s[1] = (uint8_t)(s0 >> 8);
7899
0
    s[2] = (uint8_t)((s0 >> 16) | (s1 << 5));
7900
0
    s[3] = (uint8_t)(s1 >> 3);
7901
0
    s[4] = (uint8_t)(s1 >> 11);
7902
0
    s[5] = (uint8_t)((s1 >> 19) | (s2 << 2));
7903
0
    s[6] = (uint8_t)(s2 >> 6);
7904
0
    s[7] = (uint8_t)((s2 >> 14) | (s3 << 7));
7905
0
    s[8] = (uint8_t)(s3 >> 1);
7906
0
    s[9] = (uint8_t)(s3 >> 9);
7907
0
    s[10] = (uint8_t)((s3 >> 17) | (s4 << 4));
7908
0
    s[11] = (uint8_t)(s4 >> 4);
7909
0
    s[12] = (uint8_t)(s4 >> 12);
7910
0
    s[13] = (uint8_t)((s4 >> 20) | (s5 << 1));
7911
0
    s[14] = (uint8_t)(s5 >> 7);
7912
0
    s[15] = (uint8_t)((s5 >> 15) | (s6 << 6));
7913
0
    s[16] = (uint8_t)(s6 >> 2);
7914
0
    s[17] = (uint8_t)(s6 >> 10);
7915
0
    s[18] = (uint8_t)((s6 >> 18) | (s7 << 3));
7916
0
    s[19] = (uint8_t)(s7 >> 5);
7917
0
    s[20] = (uint8_t)(s7 >> 13);
7918
0
    s[21] = (uint8_t)(s8 >> 0);
7919
0
    s[22] = (uint8_t)(s8 >> 8);
7920
0
    s[23] = (uint8_t)((s8 >> 16) | (s9 << 5));
7921
0
    s[24] = (uint8_t)(s9 >> 3);
7922
0
    s[25] = (uint8_t)(s9 >> 11);
7923
0
    s[26] = (uint8_t)((s9 >> 19) | (s10 << 2));
7924
0
    s[27] = (uint8_t)(s10 >> 6);
7925
0
    s[28] = (uint8_t)((s10 >> 14) | (s11 << 7));
7926
0
    s[29] = (uint8_t)(s11 >> 1);
7927
0
    s[30] = (uint8_t)(s11 >> 9);
7928
0
    s[31] = (uint8_t)(s11 >> 17);
7929
0
}
7930
7931
static int hash_init_with_dom(EVP_MD_CTX *hash_ctx,
7932
    EVP_MD *sha512,
7933
    const uint8_t dom2flag,
7934
    const uint8_t phflag,
7935
    const uint8_t *context,
7936
    const size_t context_len)
7937
0
{
7938
    /* ASCII: "SigEd25519 no Ed25519 collisions", in hex for EBCDIC compatibility */
7939
0
    const char dom_s[] = "\x53\x69\x67\x45\x64\x32\x35\x35\x31\x39\x20\x6e"
7940
0
                         "\x6f\x20\x45\x64\x32\x35\x35\x31\x39\x20\x63\x6f"
7941
0
                         "\x6c\x6c\x69\x73\x69\x6f\x6e\x73";
7942
0
    uint8_t dom[2];
7943
7944
0
    if (!EVP_DigestInit_ex(hash_ctx, sha512, NULL))
7945
0
        return 0;
7946
7947
    /* return early if dom2flag is not set */
7948
0
    if (!dom2flag)
7949
0
        return 1;
7950
7951
0
    if (context_len > UINT8_MAX)
7952
0
        return 0;
7953
7954
0
    dom[0] = (uint8_t)(phflag >= 1 ? 1 : 0);
7955
0
    dom[1] = (uint8_t)context_len;
7956
7957
0
    if (!EVP_DigestUpdate(hash_ctx, dom_s, sizeof(dom_s) - 1)
7958
0
        || !EVP_DigestUpdate(hash_ctx, dom, sizeof(dom))
7959
0
        || !EVP_DigestUpdate(hash_ctx, context, context_len)) {
7960
0
        return 0;
7961
0
    }
7962
7963
0
    return 1;
7964
0
}
7965
7966
int ossl_ed25519_sign(uint8_t *out_sig, const uint8_t *tbs, size_t tbs_len,
7967
    const uint8_t public_key[32], const uint8_t private_key[32],
7968
    const uint8_t dom2flag, const uint8_t phflag, const uint8_t csflag,
7969
    const uint8_t *context, size_t context_len,
7970
    OSSL_LIB_CTX *libctx, const char *propq)
7971
0
{
7972
0
    uint8_t az[SHA512_DIGEST_LENGTH];
7973
0
    uint8_t nonce[SHA512_DIGEST_LENGTH];
7974
0
    ge_p3 R;
7975
0
    uint8_t hram[SHA512_DIGEST_LENGTH];
7976
0
    EVP_MD *sha512 = EVP_MD_fetch(libctx, SN_sha512, propq);
7977
0
    EVP_MD_CTX *hash_ctx = EVP_MD_CTX_new();
7978
0
    unsigned int sz;
7979
0
    int res = 0;
7980
7981
0
    if (context == NULL)
7982
0
        context_len = 0;
7983
7984
    /* if csflag is set, then a non-empty context-string is required */
7985
0
    if (csflag && context_len == 0)
7986
0
        goto err;
7987
7988
    /* if dom2flag is not set, then an empty context-string is required */
7989
0
    if (!dom2flag && context_len > 0)
7990
0
        goto err;
7991
7992
0
    if (sha512 == NULL || hash_ctx == NULL)
7993
0
        goto err;
7994
7995
0
    if (!EVP_DigestInit_ex(hash_ctx, sha512, NULL)
7996
0
        || !EVP_DigestUpdate(hash_ctx, private_key, 32)
7997
0
        || !EVP_DigestFinal_ex(hash_ctx, az, &sz))
7998
0
        goto err;
7999
8000
0
    az[0] &= 248;
8001
0
    az[31] &= 63;
8002
0
    az[31] |= 64;
8003
8004
0
    if (!hash_init_with_dom(hash_ctx, sha512, dom2flag, phflag, context, context_len)
8005
0
        || !EVP_DigestUpdate(hash_ctx, az + 32, 32)
8006
0
        || !EVP_DigestUpdate(hash_ctx, tbs, tbs_len)
8007
0
        || !EVP_DigestFinal_ex(hash_ctx, nonce, &sz))
8008
0
        goto err;
8009
8010
0
    x25519_sc_reduce(nonce);
8011
0
    ge_scalarmult_base(&R, nonce);
8012
0
    ge_p3_tobytes(out_sig, &R);
8013
8014
0
    if (!hash_init_with_dom(hash_ctx, sha512, dom2flag, phflag, context, context_len)
8015
0
        || !EVP_DigestUpdate(hash_ctx, out_sig, 32)
8016
0
        || !EVP_DigestUpdate(hash_ctx, public_key, 32)
8017
0
        || !EVP_DigestUpdate(hash_ctx, tbs, tbs_len)
8018
0
        || !EVP_DigestFinal_ex(hash_ctx, hram, &sz))
8019
0
        goto err;
8020
8021
0
    x25519_sc_reduce(hram);
8022
0
    sc_muladd(out_sig + 32, hram, az, nonce);
8023
8024
0
    res = 1;
8025
0
err:
8026
0
    OPENSSL_cleanse(nonce, sizeof(nonce));
8027
0
    OPENSSL_cleanse(az, sizeof(az));
8028
0
    EVP_MD_free(sha512);
8029
0
    EVP_MD_CTX_free(hash_ctx);
8030
0
    return res;
8031
0
}
8032
8033
/*
8034
 * This function should not be necessary since ossl_ed25519_verify() already
8035
 * does this check internally.
8036
 * For some reason the FIPS ACVP requires a EDDSA KeyVer test.
8037
 */
8038
int ossl_ed25519_pubkey_verify(const uint8_t *pub, size_t pub_len)
8039
0
{
8040
0
    ge_p3 A;
8041
8042
0
    if (pub_len != ED25519_KEYLEN)
8043
0
        return 0;
8044
0
    return (ge_frombytes_vartime(&A, pub) == 0);
8045
0
}
8046
8047
static const char allzeroes[15];
8048
8049
int ossl_ed25519_verify(const uint8_t *tbs, size_t tbs_len,
8050
    const uint8_t signature[64], const uint8_t public_key[32],
8051
    const uint8_t dom2flag, const uint8_t phflag, const uint8_t csflag,
8052
    const uint8_t *context, size_t context_len,
8053
    OSSL_LIB_CTX *libctx, const char *propq)
8054
0
{
8055
0
    int i;
8056
0
    ge_p3 A;
8057
0
    const uint8_t *r, *s;
8058
0
    EVP_MD *sha512;
8059
0
    EVP_MD_CTX *hash_ctx = NULL;
8060
0
    unsigned int sz;
8061
0
    int res = 0;
8062
0
    ge_p2 R;
8063
0
    uint8_t rcheck[32];
8064
0
    uint8_t h[SHA512_DIGEST_LENGTH];
8065
    /* 27742317777372353535851937790883648493 in little endian format */
8066
0
    const uint8_t l_low[16] = {
8067
0
        0xED, 0xD3, 0xF5, 0x5C, 0x1A, 0x63, 0x12, 0x58, 0xD6, 0x9C, 0xF7, 0xA2,
8068
0
        0xDE, 0xF9, 0xDE, 0x14
8069
0
    };
8070
8071
0
    if (context == NULL)
8072
0
        context_len = 0;
8073
8074
    /* if csflag is set, then a non-empty context-string is required */
8075
0
    if (csflag && context_len == 0)
8076
0
        return 0;
8077
8078
    /* if dom2flag is not set, then an empty context-string is required */
8079
0
    if (!dom2flag && context_len > 0)
8080
0
        return 0;
8081
8082
0
    r = signature;
8083
0
    s = signature + 32;
8084
8085
    /*
8086
     * Check 0 <= s < L where L = 2^252 + 27742317777372353535851937790883648493
8087
     *
8088
     * If not the signature is publicly invalid. Since it's public we can do the
8089
     * check in variable time.
8090
     *
8091
     * First check the most significant byte
8092
     */
8093
0
    if (s[31] > 0x10)
8094
0
        return 0;
8095
0
    if (s[31] == 0x10) {
8096
        /*
8097
         * Most significant byte indicates a value close to 2^252 so check the
8098
         * rest
8099
         */
8100
0
        if (memcmp(s + 16, allzeroes, sizeof(allzeroes)) != 0)
8101
0
            return 0;
8102
0
        for (i = 15; i >= 0; i--) {
8103
0
            if (s[i] < l_low[i])
8104
0
                break;
8105
0
            if (s[i] > l_low[i])
8106
0
                return 0;
8107
0
        }
8108
0
        if (i < 0)
8109
0
            return 0;
8110
0
    }
8111
8112
0
    if (ge_frombytes_vartime(&A, public_key) != 0) {
8113
0
        return 0;
8114
0
    }
8115
8116
0
    fe_neg(A.X, A.X);
8117
0
    fe_neg(A.T, A.T);
8118
8119
0
    sha512 = EVP_MD_fetch(libctx, SN_sha512, propq);
8120
0
    if (sha512 == NULL)
8121
0
        return 0;
8122
0
    hash_ctx = EVP_MD_CTX_new();
8123
0
    if (hash_ctx == NULL)
8124
0
        goto err;
8125
8126
0
    if (!hash_init_with_dom(hash_ctx, sha512, dom2flag, phflag, context, context_len)
8127
0
        || !EVP_DigestUpdate(hash_ctx, r, 32)
8128
0
        || !EVP_DigestUpdate(hash_ctx, public_key, 32)
8129
0
        || !EVP_DigestUpdate(hash_ctx, tbs, tbs_len)
8130
0
        || !EVP_DigestFinal_ex(hash_ctx, h, &sz))
8131
0
        goto err;
8132
8133
0
    x25519_sc_reduce(h);
8134
8135
0
    ge_double_scalarmult_vartime(&R, h, &A, s);
8136
8137
0
    ge_tobytes(rcheck, &R);
8138
8139
0
    res = CRYPTO_memcmp(rcheck, r, sizeof(rcheck)) == 0;
8140
8141
    /* note that we have used the strict verification equation here.
8142
     * we checked that  ENC( [h](-A) + [s]B ) == r
8143
     * B is the base point.
8144
     *
8145
     * the less strict verification equation uses the curve cofactor:
8146
     *          [h*8](-A) + [s*8]B == [8]R
8147
     */
8148
0
err:
8149
0
    EVP_MD_free(sha512);
8150
0
    EVP_MD_CTX_free(hash_ctx);
8151
0
    return res;
8152
0
}
8153
8154
int ossl_ed25519_public_from_private(OSSL_LIB_CTX *ctx, uint8_t out_public_key[32],
8155
    const uint8_t private_key[32],
8156
    const char *propq)
8157
0
{
8158
0
    uint8_t az[SHA512_DIGEST_LENGTH];
8159
0
    ge_p3 A;
8160
0
    int r;
8161
0
    EVP_MD *sha512 = NULL;
8162
8163
0
    sha512 = EVP_MD_fetch(ctx, SN_sha512, propq);
8164
0
    if (sha512 == NULL)
8165
0
        return 0;
8166
0
    r = EVP_Digest(private_key, 32, az, NULL, sha512, NULL);
8167
0
    EVP_MD_free(sha512);
8168
0
    if (!r) {
8169
0
        OPENSSL_cleanse(az, sizeof(az));
8170
0
        return 0;
8171
0
    }
8172
8173
0
    az[0] &= 248;
8174
0
    az[31] &= 63;
8175
0
    az[31] |= 64;
8176
8177
0
    ge_scalarmult_base(&A, az);
8178
0
    ge_p3_tobytes(out_public_key, &A);
8179
8180
0
    OPENSSL_cleanse(az, sizeof(az));
8181
0
    return 1;
8182
0
}
8183
8184
int ossl_x25519(uint8_t out_shared_key[32], const uint8_t private_key[32],
8185
    const uint8_t peer_public_value[32])
8186
0
{
8187
0
    static const uint8_t kZeros[32] = { 0 };
8188
0
    x25519_scalar_mult(out_shared_key, private_key, peer_public_value);
8189
    /* The all-zero output results when the input is a point of small order. */
8190
0
    return CRYPTO_memcmp(kZeros, out_shared_key, 32) != 0;
8191
0
}
8192
8193
void ossl_x25519_public_from_private(uint8_t out_public_value[32],
8194
    const uint8_t private_key[32])
8195
0
{
8196
0
    uint8_t e[32];
8197
0
    ge_p3 A;
8198
0
    fe zplusy, zminusy, zminusy_inv;
8199
8200
0
    memcpy(e, private_key, 32);
8201
0
    e[0] &= 248;
8202
0
    e[31] &= 127;
8203
0
    e[31] |= 64;
8204
8205
0
    ge_scalarmult_base(&A, e);
8206
8207
    /*
8208
     * We only need the u-coordinate of the curve25519 point.
8209
     * The map is u=(y+1)/(1-y). Since y=Y/Z, this gives
8210
     * u=(Z+Y)/(Z-Y).
8211
     */
8212
0
    fe_add(zplusy, A.Z, A.Y);
8213
0
    fe_sub(zminusy, A.Z, A.Y);
8214
0
    fe_invert(zminusy_inv, zminusy);
8215
0
    fe_mul(zplusy, zplusy, zminusy_inv);
8216
0
    fe_tobytes(out_public_value, zplusy);
8217
8218
0
    OPENSSL_cleanse(e, sizeof(e));
8219
0
}