Module variable_precision

Module variable_precision 

Source
Expand description

Variable-precision arithmetic for custom moduli and limb counts.

Provides VariablePrecision context for performing arithmetic with custom field moduli and varying numbers of limbs. Supports multiple reduction algorithms (Montgomery, Barrett, Solinas) optimized for different modulus types. Variable-precision arithmetic support.

This module provides support for arithmetic with different limb counts and field sizes, preparing for future cryptographic primitives.

Structsยง

VariablePrecision
Variable-precision arithmetic support for cryptographic computations.