pub trait GpuField: GpuName {
    fn one() -> Vec<u32>;
    fn r2() -> Vec<u32>;
    fn modulus() -> Vec<u32>;

    fn sub_field_name() -> Option<String> { ... }
}
Expand description

A prime field that returns the values in a representation that is suited for the use on a GPU.

Required Methods

Returns 1 as a vector of 32-bit limbs in little-endian non-Montgomery form (least significant limb first).

Returns R ^ 2 mod P as a vector of 32-bit limbs in little-endian non-Montgomery form (least significant limb first).

Returns the field modulus as a vector of 32-bit limbs in non-Montgomery form (least significant limb first).

Provided Methods

If the field is an extension field, then the name of the sub-field is returned.

Implementors