Expand description
Class groups of binary quadratic forms, using GNU MP (GMP) for arbitrary-precision arithmetic.
Build requirement: a system libgmp development package (libgmp-dev
on Debian/Ubuntu, gmp on Homebrew). The arithmetic backend is a vendored
rust-gmp copy; replacing it is planned for 0.3.0 and is not part of this
0.2.x series.
Re-exports§
pub use self::gmp_classgroup::do_compute;pub use self::gmp_classgroup::ffi::export_obj;pub use self::gmp_classgroup::ffi::import_obj;
Modules§
- gmp
- Vendored
rust-gmpsubset used byvdf-classgroup. - gmp_
classgroup
Traits§
Functions§
- export_
obj - Exports
objtovas an array of 2’s complement, big-endian bytes. Ifvis too small to hold the result, returnsErr(s), wheresis the size needed to hold the exported version ofobj. - import_
obj - Unmarshals a buffer to an
Mpz.bufis interpreted as a 2’s complement, big-endian integer. If the buffer is empty, zero is returned.