Module fiat_crypto::p448_solinas_64
source · Expand description
Autogenerated: ‘src/ExtractionOCaml/unsaturated_solinas’ –lang Rust –inline p448 64 8 ‘2^448 - 2^224 - 1’ carry_mul carry_square carry add sub opp selectznz to_bytes from_bytes relax curve description: p448 machine_wordsize = 64 (from “64”) requested operations: carry_mul, carry_square, carry, add, sub, opp, selectznz, to_bytes, from_bytes, relax n = 8 (from “8”) s-c = 2^448 - [(2^224, 1), (1, 1)] (from “2^448 - 2^224 - 1”) tight_bounds_multiplier = 1 (from “”)
Computed values: carry_chain = [3, 7, 4, 0, 5, 1, 6, 2, 7, 3, 4, 0] eval z = z[0] + (z[1] << 56) + (z[2] << 112) + (z[3] << 168) + (z[4] << 224) + (z[5] << 0x118) + (z[6] << 0x150) + (z[7] << 0x188) bytes_eval z = z[0] + (z[1] << 8) + (z[2] << 16) + (z[3] << 24) + (z[4] << 32) + (z[5] << 40) + (z[6] << 48) + (z[7] << 56) + (z[8] << 64) + (z[9] << 72) + (z[10] << 80) + (z[11] << 88) + (z[12] << 96) + (z[13] << 104) + (z[14] << 112) + (z[15] << 120) + (z[16] << 128) + (z[17] << 136) + (z[18] << 144) + (z[19] << 152) + (z[20] << 160) + (z[21] << 168) + (z[22] << 176) + (z[23] << 184) + (z[24] << 192) + (z[25] << 200) + (z[26] << 208) + (z[27] << 216) + (z[28] << 224) + (z[29] << 232) + (z[30] << 240) + (z[31] << 248) + (z[32] << 256) + (z[33] << 0x108) + (z[34] << 0x110) + (z[35] << 0x118) + (z[36] << 0x120) + (z[37] << 0x128) + (z[38] << 0x130) + (z[39] << 0x138) + (z[40] << 0x140) + (z[41] << 0x148) + (z[42] << 0x150) + (z[43] << 0x158) + (z[44] << 0x160) + (z[45] << 0x168) + (z[46] << 0x170) + (z[47] << 0x178) + (z[48] << 0x180) + (z[49] << 0x188) + (z[50] << 0x190) + (z[51] << 0x198) + (z[52] << 0x1a0) + (z[53] << 0x1a8) + (z[54] << 0x1b0) + (z[55] << 0x1b8) balance = [0x1fffffffffffffe, 0x1fffffffffffffe, 0x1fffffffffffffe, 0x1fffffffffffffe, 0x1fffffffffffffc, 0x1fffffffffffffe, 0x1fffffffffffffe, 0x1fffffffffffffe]
Functions
- The function fiat_p448_add adds two field elements.
- The function fiat_p448_addcarryx_u56 is an addition with carry.
- The function fiat_p448_carry reduces a field element.
- The function fiat_p448_carry_mul multiplies two field elements and reduces the result.
- The function fiat_p448_carry_square squares a field element and reduces the result.
- The function fiat_p448_cmovznz_u64 is a single-word conditional move.
- The function fiat_p448_from_bytes deserializes a field element from bytes in little-endian order.
- The function fiat_p448_opp negates a field element.
- The function fiat_p448_relax is the identity function converting from tight field elements to loose field elements.
- The function fiat_p448_selectznz is a multi-limb conditional select.
- The function fiat_p448_sub subtracts two field elements.
- The function fiat_p448_subborrowx_u56 is a subtraction with borrow.
- The function fiat_p448_to_bytes serializes a field element to bytes in little-endian order.