diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:47:55 +0000 |
commit | 2aadc03ef15cb5ca5cc2af8a7c08e070742f0ac4 (patch) | |
tree | 033cc839730fda84ff08db877037977be94e5e3a /vendor/fiat-crypto/src/curve25519_solinas_64.rs | |
parent | Initial commit. (diff) | |
download | cargo-upstream.tar.xz cargo-upstream.zip |
Adding upstream version 0.70.1+ds1.upstream/0.70.1+ds1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/fiat-crypto/src/curve25519_solinas_64.rs')
-rw-r--r-- | vendor/fiat-crypto/src/curve25519_solinas_64.rs | 482 |
1 files changed, 482 insertions, 0 deletions
diff --git a/vendor/fiat-crypto/src/curve25519_solinas_64.rs b/vendor/fiat-crypto/src/curve25519_solinas_64.rs new file mode 100644 index 0000000..edda9bb --- /dev/null +++ b/vendor/fiat-crypto/src/curve25519_solinas_64.rs @@ -0,0 +1,482 @@ +//! Autogenerated: 'src/ExtractionOCaml/solinas_reduction' --lang Rust --inline curve25519_solinas 64 '2^255 - 19' mul square +//! curve description: curve25519_solinas +//! machine_wordsize = 64 (from "64") +//! requested operations: mul, square +//! s-c = 2^255 - [(1, 19)] (from "2^255 - 19") +//! +//! Computed values: +//! + +#![allow(unused_parens)] +#![allow(non_camel_case_types)] + +pub type fiat_curve25519_solinas_u1 = u8; +pub type fiat_curve25519_solinas_i1 = i8; +pub type fiat_curve25519_solinas_u2 = u8; +pub type fiat_curve25519_solinas_i2 = i8; + + +/// The function fiat_curve25519_solinas_addcarryx_u64 is an addition with carry. +/// +/// Postconditions: +/// out1 = (arg1 + arg2 + arg3) mod 2^64 +/// out2 = ⌊(arg1 + arg2 + arg3) / 2^64⌋ +/// +/// Input Bounds: +/// arg1: [0x0 ~> 0x1] +/// arg2: [0x0 ~> 0xffffffffffffffff] +/// arg3: [0x0 ~> 0xffffffffffffffff] +/// Output Bounds: +/// out1: [0x0 ~> 0xffffffffffffffff] +/// out2: [0x0 ~> 0x1] +#[inline] +pub fn fiat_curve25519_solinas_addcarryx_u64(out1: &mut u64, out2: &mut fiat_curve25519_solinas_u1, arg1: fiat_curve25519_solinas_u1, arg2: u64, arg3: u64) -> () { + let x1: u128 = (((arg1 as u128) + (arg2 as u128)) + (arg3 as u128)); + let x2: u64 = ((x1 & (0xffffffffffffffff as u128)) as u64); + let x3: fiat_curve25519_solinas_u1 = ((x1 >> 64) as fiat_curve25519_solinas_u1); + *out1 = x2; + *out2 = x3; +} + +/// The function fiat_curve25519_solinas_subborrowx_u64 is a subtraction with borrow. +/// +/// Postconditions: +/// out1 = (-arg1 + arg2 + -arg3) mod 2^64 +/// out2 = -⌊(-arg1 + arg2 + -arg3) / 2^64⌋ +/// +/// Input Bounds: +/// arg1: [0x0 ~> 0x1] +/// arg2: [0x0 ~> 0xffffffffffffffff] +/// arg3: [0x0 ~> 0xffffffffffffffff] +/// Output Bounds: +/// out1: [0x0 ~> 0xffffffffffffffff] +/// out2: [0x0 ~> 0x1] +#[inline] +pub fn fiat_curve25519_solinas_subborrowx_u64(out1: &mut u64, out2: &mut fiat_curve25519_solinas_u1, arg1: fiat_curve25519_solinas_u1, arg2: u64, arg3: u64) -> () { + let x1: i128 = (((arg2 as i128) - (arg1 as i128)) - (arg3 as i128)); + let x2: fiat_curve25519_solinas_i1 = ((x1 >> 64) as fiat_curve25519_solinas_i1); + let x3: u64 = ((x1 & (0xffffffffffffffff as i128)) as u64); + *out1 = x3; + *out2 = (((0x0 as fiat_curve25519_solinas_i2) - (x2 as fiat_curve25519_solinas_i2)) as fiat_curve25519_solinas_u1); +} + +/// The function fiat_curve25519_solinas_mulx_u64 is a multiplication, returning the full double-width result. +/// +/// Postconditions: +/// out1 = (arg1 * arg2) mod 2^64 +/// out2 = ⌊arg1 * arg2 / 2^64⌋ +/// +/// Input Bounds: +/// arg1: [0x0 ~> 0xffffffffffffffff] +/// arg2: [0x0 ~> 0xffffffffffffffff] +/// Output Bounds: +/// out1: [0x0 ~> 0xffffffffffffffff] +/// out2: [0x0 ~> 0xffffffffffffffff] +#[inline] +pub fn fiat_curve25519_solinas_mulx_u64(out1: &mut u64, out2: &mut u64, arg1: u64, arg2: u64) -> () { + let x1: u128 = ((arg1 as u128) * (arg2 as u128)); + let x2: u64 = ((x1 & (0xffffffffffffffff as u128)) as u64); + let x3: u64 = ((x1 >> 64) as u64); + *out1 = x2; + *out2 = x3; +} + +/// The function fiat_curve25519_solinas_cmovznz_u64 is a single-word conditional move. +/// +/// Postconditions: +/// out1 = (if arg1 = 0 then arg2 else arg3) +/// +/// Input Bounds: +/// arg1: [0x0 ~> 0x1] +/// arg2: [0x0 ~> 0xffffffffffffffff] +/// arg3: [0x0 ~> 0xffffffffffffffff] +/// Output Bounds: +/// out1: [0x0 ~> 0xffffffffffffffff] +#[inline] +pub fn fiat_curve25519_solinas_cmovznz_u64(out1: &mut u64, arg1: fiat_curve25519_solinas_u1, arg2: u64, arg3: u64) -> () { + let x1: fiat_curve25519_solinas_u1 = (!(!arg1)); + let x2: u64 = ((((((0x0 as fiat_curve25519_solinas_i2) - (x1 as fiat_curve25519_solinas_i2)) as fiat_curve25519_solinas_i1) as i128) & (0xffffffffffffffff as i128)) as u64); + let x3: u64 = ((x2 & arg3) | ((!x2) & arg2)); + *out1 = x3; +} + +/// The function fiat_curve25519_solinas_mul multiplies two field elements. +/// +/// Postconditions: +/// eval out1 mod 57896044618658097711785492504343953926634992332820282019728792003956564819949 = (eval arg1 * eval arg2) mod 57896044618658097711785492504343953926634992332820282019728792003956564819949 +/// +/// Input Bounds: +/// arg1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] +/// arg2: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] +/// Output Bounds: +/// out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] +#[inline] +pub fn fiat_curve25519_solinas_mul(out1: &mut [u64; 4], arg1: &[u64; 4], arg2: &[u64; 4]) -> () { + let mut x1: u64 = 0; + let mut x2: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x1, &mut x2, (arg1[3]), (arg2[3])); + let mut x3: u64 = 0; + let mut x4: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x3, &mut x4, (arg1[3]), (arg2[2])); + let mut x5: u64 = 0; + let mut x6: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x5, &mut x6, (arg1[3]), (arg2[1])); + let mut x7: u64 = 0; + let mut x8: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x7, &mut x8, (arg1[3]), (arg2[0])); + let mut x9: u64 = 0; + let mut x10: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x9, &mut x10, (arg1[2]), (arg2[3])); + let mut x11: u64 = 0; + let mut x12: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x11, &mut x12, (arg1[2]), (arg2[2])); + let mut x13: u64 = 0; + let mut x14: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x13, &mut x14, (arg1[2]), (arg2[1])); + let mut x15: u64 = 0; + let mut x16: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x15, &mut x16, (arg1[2]), (arg2[0])); + let mut x17: u64 = 0; + let mut x18: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x17, &mut x18, (arg1[1]), (arg2[3])); + let mut x19: u64 = 0; + let mut x20: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x19, &mut x20, (arg1[1]), (arg2[2])); + let mut x21: u64 = 0; + let mut x22: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x21, &mut x22, (arg1[1]), (arg2[1])); + let mut x23: u64 = 0; + let mut x24: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x23, &mut x24, (arg1[1]), (arg2[0])); + let mut x25: u64 = 0; + let mut x26: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x25, &mut x26, (arg1[0]), (arg2[3])); + let mut x27: u64 = 0; + let mut x28: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x27, &mut x28, (arg1[0]), (arg2[2])); + let mut x29: u64 = 0; + let mut x30: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x29, &mut x30, (arg1[0]), (arg2[1])); + let mut x31: u64 = 0; + let mut x32: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x31, &mut x32, (arg1[0]), (arg2[0])); + let mut x33: u64 = 0; + let mut x34: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x33, &mut x34, 0x0, x28, x7); + let mut x35: u64 = 0; + let mut x36: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x35, &mut x36, x34, x26, x5); + let x37: u64 = ((x36 as u64) + x18); + let mut x38: u64 = 0; + let mut x39: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x38, &mut x39, 0x0, x33, x13); + let mut x40: u64 = 0; + let mut x41: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x40, &mut x41, x39, x35, x8); + let mut x42: u64 = 0; + let mut x43: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x42, &mut x43, x41, x37, (0x0 as u64)); + let x44: u64 = ((x43 as u64) + x10); + let mut x45: u64 = 0; + let mut x46: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x45, &mut x46, 0x0, x30, x15); + let mut x47: u64 = 0; + let mut x48: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x47, &mut x48, x46, x38, x16); + let mut x49: u64 = 0; + let mut x50: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x49, &mut x50, x48, x40, x11); + let mut x51: u64 = 0; + let mut x52: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x51, &mut x52, x50, x42, x3); + let mut x53: u64 = 0; + let mut x54: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x53, &mut x54, x52, x44, (0x0 as u64)); + let x55: u64 = ((x54 as u64) + x2); + let mut x56: u64 = 0; + let mut x57: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x56, &mut x57, 0x0, x45, x21); + let mut x58: u64 = 0; + let mut x59: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x58, &mut x59, x57, x47, x19); + let mut x60: u64 = 0; + let mut x61: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x60, &mut x61, x59, x49, x14); + let mut x62: u64 = 0; + let mut x63: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x62, &mut x63, x61, x51, x6); + let mut x64: u64 = 0; + let mut x65: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x64, &mut x65, x63, x53, (0x0 as u64)); + let mut x66: u64 = 0; + let mut x67: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x66, &mut x67, x65, x55, (0x0 as u64)); + let mut x68: u64 = 0; + let mut x69: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x68, &mut x69, 0x0, x32, x23); + let mut x70: u64 = 0; + let mut x71: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x70, &mut x71, x69, x56, x24); + let mut x72: u64 = 0; + let mut x73: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x72, &mut x73, x71, x58, x22); + let mut x74: u64 = 0; + let mut x75: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x74, &mut x75, x73, x60, x17); + let mut x76: u64 = 0; + let mut x77: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x76, &mut x77, x75, x62, x9); + let mut x78: u64 = 0; + let mut x79: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x78, &mut x79, x77, x64, x1); + let mut x80: u64 = 0; + let mut x81: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x80, &mut x81, x79, x66, (0x0 as u64)); + let mut x82: u64 = 0; + let mut x83: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x82, &mut x83, 0x0, x68, x29); + let mut x84: u64 = 0; + let mut x85: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x84, &mut x85, x83, x70, x27); + let mut x86: u64 = 0; + let mut x87: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x86, &mut x87, x85, x72, x25); + let mut x88: u64 = 0; + let mut x89: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x88, &mut x89, x87, x74, x20); + let mut x90: u64 = 0; + let mut x91: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x90, &mut x91, x89, x76, x12); + let mut x92: u64 = 0; + let mut x93: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x92, &mut x93, x91, x78, x4); + let mut x94: u64 = 0; + let mut x95: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x94, &mut x95, x93, x80, (0x0 as u64)); + let mut x96: u64 = 0; + let mut x97: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x96, &mut x97, 0x26, x94); + let mut x98: u64 = 0; + let mut x99: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x98, &mut x99, 0x26, x92); + let mut x100: u64 = 0; + let mut x101: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x100, &mut x101, 0x26, x90); + let mut x102: u64 = 0; + let mut x103: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x102, &mut x103, 0x26, x88); + let mut x104: u64 = 0; + let mut x105: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x104, &mut x105, 0x0, x82, x100); + let mut x106: u64 = 0; + let mut x107: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x106, &mut x107, x105, x84, x98); + let mut x108: u64 = 0; + let mut x109: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x108, &mut x109, x107, x86, x96); + let x110: u64 = ((x109 as u64) + x97); + let mut x111: u64 = 0; + let mut x112: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x111, &mut x112, 0x0, x31, x102); + let mut x113: u64 = 0; + let mut x114: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x113, &mut x114, x112, x104, x103); + let mut x115: u64 = 0; + let mut x116: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x115, &mut x116, x114, x106, x101); + let mut x117: u64 = 0; + let mut x118: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x117, &mut x118, x116, x108, x99); + let x119: u64 = ((x118 as u64) + x110); + let mut x120: u64 = 0; + let mut x121: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x120, &mut x121, 0x26, x119); + let mut x122: u64 = 0; + let mut x123: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x122, &mut x123, 0x0, x111, x120); + let mut x124: u64 = 0; + let mut x125: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x124, &mut x125, x123, x113, (0x0 as u64)); + let mut x126: u64 = 0; + let mut x127: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x126, &mut x127, x125, x115, (0x0 as u64)); + let mut x128: u64 = 0; + let mut x129: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x128, &mut x129, x127, x117, (0x0 as u64)); + let mut x130: u64 = 0; + fiat_curve25519_solinas_cmovznz_u64(&mut x130, x129, (0x0 as u64), 0x26); + let mut x131: u64 = 0; + let mut x132: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x131, &mut x132, 0x0, x130, x122); + out1[0] = x131; + out1[1] = x124; + out1[2] = x126; + out1[3] = x128; +} + +/// The function fiat_curve25519_solinas_square squares a field element. +/// +/// Postconditions: +/// eval out1 mod 57896044618658097711785492504343953926634992332820282019728792003956564819949 = (eval arg1 * eval arg1) mod 57896044618658097711785492504343953926634992332820282019728792003956564819949 +/// +/// Input Bounds: +/// arg1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] +/// Output Bounds: +/// out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]] +#[inline] +pub fn fiat_curve25519_solinas_square(out1: &mut [u64; 4], arg1: &[u64; 4]) -> () { + let mut x1: u64 = 0; + let mut x2: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x1, &mut x2, (arg1[0]), (arg1[3])); + let mut x3: u64 = 0; + let mut x4: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x3, &mut x4, (arg1[0]), (arg1[2])); + let mut x5: u64 = 0; + let mut x6: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x5, &mut x6, (arg1[0]), (arg1[1])); + let mut x7: u64 = 0; + let mut x8: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x7, &mut x8, (arg1[3]), (arg1[2])); + let mut x9: u64 = 0; + let mut x10: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x9, &mut x10, (arg1[3]), (arg1[1])); + let mut x11: u64 = 0; + let mut x12: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x11, &mut x12, 0x0, x6, x3); + let mut x13: u64 = 0; + let mut x14: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x13, &mut x14, x12, x4, x1); + let mut x15: u64 = 0; + let mut x16: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x15, &mut x16, x14, x2, x9); + let mut x17: u64 = 0; + let mut x18: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x17, &mut x18, x16, x10, x7); + let x19: u64 = ((x18 as u64) + x8); + let mut x20: u64 = 0; + let mut x21: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x20, &mut x21, (arg1[1]), (arg1[2])); + let mut x22: u64 = 0; + let mut x23: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x22, &mut x23, 0x0, x13, x20); + let mut x24: u64 = 0; + let mut x25: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x24, &mut x25, x23, x15, x21); + let mut x26: u64 = 0; + let mut x27: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x26, &mut x27, x25, x17, (0x0 as u64)); + let mut x28: u64 = 0; + let mut x29: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x28, &mut x29, x27, x19, (0x0 as u64)); + let mut x30: u64 = 0; + let mut x31: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x30, &mut x31, 0x0, x5, x5); + let mut x32: u64 = 0; + let mut x33: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x32, &mut x33, x31, x11, x11); + let mut x34: u64 = 0; + let mut x35: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x34, &mut x35, x33, x22, x22); + let mut x36: u64 = 0; + let mut x37: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x36, &mut x37, x35, x24, x24); + let mut x38: u64 = 0; + let mut x39: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x38, &mut x39, x37, x26, x26); + let mut x40: u64 = 0; + let mut x41: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x40, &mut x41, x39, x28, x28); + let x42: u64 = (((x41 as u64) + (x29 as u64)) + (x29 as u64)); + let mut x43: u64 = 0; + let mut x44: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x43, &mut x44, (arg1[3]), (arg1[3])); + let mut x45: u64 = 0; + let mut x46: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x45, &mut x46, (arg1[2]), (arg1[2])); + let mut x47: u64 = 0; + let mut x48: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x47, &mut x48, (arg1[1]), (arg1[1])); + let mut x49: u64 = 0; + let mut x50: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x49, &mut x50, (arg1[0]), (arg1[0])); + let mut x51: u64 = 0; + let mut x52: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x51, &mut x52, 0x0, x30, x50); + let mut x53: u64 = 0; + let mut x54: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x53, &mut x54, x52, x32, x47); + let mut x55: u64 = 0; + let mut x56: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x55, &mut x56, x54, x34, x48); + let mut x57: u64 = 0; + let mut x58: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x57, &mut x58, x56, x36, x45); + let mut x59: u64 = 0; + let mut x60: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x59, &mut x60, x58, x38, x46); + let mut x61: u64 = 0; + let mut x62: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x61, &mut x62, x60, x40, x43); + let mut x63: u64 = 0; + let mut x64: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x63, &mut x64, x62, x42, x44); + let mut x65: u64 = 0; + let mut x66: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x65, &mut x66, 0x26, x63); + let mut x67: u64 = 0; + let mut x68: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x67, &mut x68, 0x26, x61); + let mut x69: u64 = 0; + let mut x70: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x69, &mut x70, 0x26, x59); + let mut x71: u64 = 0; + let mut x72: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x71, &mut x72, 0x26, x57); + let mut x73: u64 = 0; + let mut x74: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x73, &mut x74, 0x0, x51, x69); + let mut x75: u64 = 0; + let mut x76: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x75, &mut x76, x74, x53, x67); + let mut x77: u64 = 0; + let mut x78: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x77, &mut x78, x76, x55, x65); + let x79: u64 = ((x78 as u64) + x66); + let mut x80: u64 = 0; + let mut x81: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x80, &mut x81, 0x0, x49, x71); + let mut x82: u64 = 0; + let mut x83: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x82, &mut x83, x81, x73, x72); + let mut x84: u64 = 0; + let mut x85: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x84, &mut x85, x83, x75, x70); + let mut x86: u64 = 0; + let mut x87: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x86, &mut x87, x85, x77, x68); + let x88: u64 = ((x87 as u64) + x79); + let mut x89: u64 = 0; + let mut x90: u64 = 0; + fiat_curve25519_solinas_mulx_u64(&mut x89, &mut x90, 0x26, x88); + let mut x91: u64 = 0; + let mut x92: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x91, &mut x92, 0x0, x80, x89); + let mut x93: u64 = 0; + let mut x94: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x93, &mut x94, x92, x82, (0x0 as u64)); + let mut x95: u64 = 0; + let mut x96: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x95, &mut x96, x94, x84, (0x0 as u64)); + let mut x97: u64 = 0; + let mut x98: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x97, &mut x98, x96, x86, (0x0 as u64)); + let mut x99: u64 = 0; + fiat_curve25519_solinas_cmovznz_u64(&mut x99, x98, (0x0 as u64), 0x26); + let mut x100: u64 = 0; + let mut x101: fiat_curve25519_solinas_u1 = 0; + fiat_curve25519_solinas_addcarryx_u64(&mut x100, &mut x101, 0x0, x99, x91); + out1[0] = x100; + out1[1] = x93; + out1[2] = x95; + out1[3] = x97; +} |