Native Ed25519 arithmetic #
RFC 8032 arithmetic over ZMod p, with the affine twisted-Edwards addition formula.
@[reducible, inline]
Instances For
@[reducible, inline]
Equations
- Cryptlib.Primitives.Sign.Ed25519Math.ell = 2 ^ 252 + 27742317777372353535851937790883648493
Instances For
@[reducible, inline]
Instances For
Equations
- Cryptlib.Primitives.Sign.Ed25519Math.d = -121665 / 121666
Instances For
Equations
Instances For
@[instance_reducible]
Equations
- Cryptlib.Primitives.Sign.Ed25519Math.zero = { x := 0, y := 1 }
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[irreducible]
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- Cryptlib.Primitives.Sign.Ed25519Math.natToBytes width n = List.map (fun (i : ℕ) => (n >>> (8 * i)).toUInt8) (List.range width)
Instances For
Equations
- Cryptlib.Primitives.Sign.Ed25519Math.leBytes z width = Cryptlib.Primitives.Sign.Ed25519Math.natToBytes width (ZMod.val z)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[irreducible]
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Cryptlib.Primitives.Sign.Ed25519Math.sqrtMinusOne = 19681161376707505956807079304988542015446066515923890162744021073123829784752
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.