[][src]Module fiat_crypto::p448_solinas_64

Autogenerated: src/ExtractionOCaml/unsaturated_solinas --lang=Rust p448 8 '2^448 - 2^224 - 1' 64 carry_mul carry_square carry add sub opp selectznz to_bytes from_bytes curve description: p448 requested operations: carry_mul, carry_square, carry, add, sub, opp, selectznz, to_bytes, from_bytes n = 8 (from "8") s-c = 2^448 - [(2^224, 1), (1, 1)] (from "2^448 - 2^224 - 1") machine_wordsize = 64 (from "64")

Computed values: carry_chain = [3, 7, 4, 0, 5, 1, 6, 2, 7, 3, 4, 0]

Functions

fiat_p448_carry_mul

The function fiat_p448_carry_mul multiplies two field elements and reduces the result. Postconditions: eval out1 mod m = (eval arg1 * eval arg2) mod m

fiat_p448_carry_square

The function fiat_p448_carry_square squares a field element and reduces the result. Postconditions: eval out1 mod m = (eval arg1 * eval arg1) mod m

fiat_p448_carry

The function fiat_p448_carry reduces a field element. Postconditions: eval out1 mod m = eval arg1 mod m

fiat_p448_add

The function fiat_p448_add adds two field elements. Postconditions: eval out1 mod m = (eval arg1 + eval arg2) mod m

fiat_p448_sub

The function fiat_p448_sub subtracts two field elements. Postconditions: eval out1 mod m = (eval arg1 - eval arg2) mod m

fiat_p448_opp

The function fiat_p448_opp negates a field element. Postconditions: eval out1 mod m = -eval arg1 mod m

fiat_p448_selectznz

The function fiat_p448_selectznz is a multi-limb conditional select. Postconditions: eval out1 = (if arg1 = 0 then eval arg2 else eval arg3)

fiat_p448_to_bytes

The function fiat_p448_to_bytes serializes a field element to bytes in little-endian order. Postconditions: out1 = map (λ x, ⌊((eval arg1 mod m) mod 2^(8 * (x + 1))) / 2^(8 * x)⌋) [0..55]

fiat_p448_from_bytes

The function fiat_p448_from_bytes deserializes a field element from bytes in little-endian order. Postconditions: eval out1 mod m = bytes_eval arg1 mod m

fiat_p448_addcarryx_u56

The function fiat_p448_addcarryx_u56 is an addition with carry. Postconditions: out1 = (arg1 + arg2 + arg3) mod 2^56 out2 = ⌊(arg1 + arg2 + arg3) / 2^56⌋

fiat_p448_cmovznz_u64

The function fiat_p448_cmovznz_u64 is a single-word conditional move. Postconditions: out1 = (if arg1 = 0 then arg2 else arg3)

fiat_p448_subborrowx_u56

The function fiat_p448_subborrowx_u56 is a subtraction with borrow. Postconditions: out1 = (-arg1 + arg2 + -arg3) mod 2^56 out2 = -⌊(-arg1 + arg2 + -arg3) / 2^56⌋

Type Definitions

fiat_p448_i1
fiat_p448_i2
fiat_p448_u1
fiat_p448_u2