Module add

Module add 

Source
Expand description

Addition operations for BigInt.

Implements constant-time addition using the adc (add with carry) algorithm as specified in the Arithmetic Algorithm Specification.

§Constant-Time Behavior

All addition operations execute in constant time regardless of input values, making them suitable for cryptographic applications where timing attacks must be prevented.

§Error Handling

Operations may return BigIntError::Overflow if the result would exceed the configured maximum limb capacity of the BigInt.

Functions§

add
Add two BigInt values with proper sign handling.
add_assign
In-place addition for BigInt.
add_magnitude
Add two BigInt magnitudes (unsigned addition).