1 unstable release
0.1.1 | Dec 28, 2024 |
---|
#1135 in Math
136 downloads per month
Used in 3 crates
(via rust_ev_crypto_primitives)
35KB
465 lines
GMPMEE for rug
The rug-gmpmee crate provides an implementation for rug of the GMP Modular Exponentiation Extension (GMPMEE), which is a minor extension of GMP. It adds simultaneous modular exponentiation and fixed base modular exponentiation functionality to the set of integer functions (the mpz-functions), as well as special purpose primality testing routines.
It contains the following implementations:
-Mmulti-exponentation (spowm
)
- Fixed base exponentiation (
fpowm
). It contains a possibility to cache the precomputation table - Miller-Rabin primality test
Using rug-gmpmee
See the gmpmee-sys crate.
Licence
The rub-gmpmee crate is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See the full text of the LICENSE for details.
Dependencies
~23MB
~544K SLoC