Module gridiron::digits::util

source ·

Functions

This reveals the exponent so it should not be called with secret values.
Returns (high, low) where high uses extra bit for carry and low has a cleared 32nd bit
Returns array with least sig in pos 0 and carry in pos 2
Sum t n times. Reveals the value of n.
This function assumes that the buf pointer has at least 4 spaces starting at the beginning of the slice. You need to assure this before calling.
Convert the src into the limbs. This does not mod off the value. This will take the first len bytes and split them into 31 bit limbs. Note that this will not check anything about the length of limbs and could be unsafe… BE CAREFUL!