Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodiDiscreteLogField.ScalarFixBitLength

function ScalarFixBitLength: Integer;
Non-zero for the curves whose private scalar is a fixed-width bit string rather than a value reduced modulo the group order: the Montgomery curves X25519 (256) and X448 (448) and the Edwards curves Ed25519 (256) and Ed448 (448). Zero for ordinary Weierstrass curves and finite-field groups. Key-generation reads this to decide how to draw the private scalar -- non-zero means take that many raw random bits; zero means draw a value in 1..GroupOrder. An application normally never calls it directly.