Structs§
- Misc
Params - Miscellaneous parameters for the WebGPU shader
Functions§
- bytes_
to_ field - Convert bytes to a field element
- calc_
bitwidth - Calculate the bitwidth of the field characteristic
- calc_
inv_ and_ pprime - Calculate the Montgomery inverse and the Montgomery reduction parameter
- calc_
rinv_ and_ n0 - Calculate the Montgomery radix inverse and the Montgomery reduction parameter
- compute_
misc_ params - Compute miscellaneous parameters for the WebGPU shader
- debug
- Debug print
- field_
to_ bytes - Convert a field element to bytes
- field_
to_ u8_ vec_ for_ gpu - Split a field element into limbs and convert each limb to a vector of bytes.
- fields_
to_ u8_ vec_ for_ gpu - Split each field element into limbs and convert each limb to a vector of bytes.
- from_
words_ le_ without_ assertion - Convert u16 limbs into a field element
- gen_mu
- Generate the Montgomery magic number
- gen_
mu_ limbs - Generate the GPU representation of the Montgomery magic number
- gen_
one_ limbs - Generate the GPU representation of one
- gen_
p_ limbs - Generate the GPU representation of the field characteristic
- gen_
p_ limbs_ plus_ one - Generate the GPU representation of the field characteristic padded with a zero limb
- gen_
r_ limbs - Generate the GPU representation of the Montgomery radix
- gen_
rinv_ limbs - Generate the GPU representation of the Montgomery radix inverse
- gen_
zero_ limbs - Generate the GPU representation of zero
- points_
to_ bytes_ for_ gpu - Convert a vector of points to a vector of bytes
- to_
biguint_ le - Convert a vector of u32 limbs into a BigUint
- to_
words_ le - Convert a BigUint into u32 limbs
- to_
words_ le_ from_ field - Convert a field element into u32 limbs
- to_
words_ le_ from_ le_ bytes - Convert a binary representation into u32 limbs.
- u8s_
to_ field_ without_ assertion - Convert a vector of bytes into a field element
- u8s_
to_ fields_ without_ assertion - Convert a vector of bytes into a vector of field elements