Skip to main content

Module scalar

Module scalar 

Source
Expand description

Minimal scalar representation and primitives used by the fast backend.

This module deliberately contains only the operations required by the fixed-64 reducer and recoder. Keeping them here makes the hardware backend a self-contained crate without pulling in the older serial scalar engine.

Structs§

ScalarWords
A scalar represented as four little-endian 64-bit words.

Functions§

scalar_ge_kernel
Compare two four-word unsigned values.
scalar_l_kernel
Return the Ed25519 group order l in synthesizable code.
scalar_shift_in_kernel
Shift a four-word value left and insert one least-significant bit.
scalar_sub_kernel
Subtract two four-word values with propagated borrow.
scalar_zero_kernel
Return scalar zero in synthesizable code.