Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BigInt::modpow #18

Merged
merged 1 commit into from
Feb 9, 2018
Merged

Add BigInt::modpow #18

merged 1 commit into from
Feb 9, 2018

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Feb 8, 2018

This performs modular exponentiation on signed BigInt. The exponent
must be positive, and the modulus must be non-zero. The implementation
leverages BigUint::modpow, fixing the signs as needed afterward.

Closes #17.

This performs modular exponentiation on signed `BigInt`.  The exponent
must be positive, and the modulus must be non-zero.  The implementation
leverages `BigUint::modpow`, fixing the signs as needed afterward.
@cuviper
Copy link
Member Author

cuviper commented Feb 8, 2018

bors r+

bors bot added a commit that referenced this pull request Feb 8, 2018
18: Add BigInt::modpow r=cuviper a=cuviper

This performs modular exponentiation on signed `BigInt`.  The exponent
must be positive, and the modulus must be non-zero.  The implementation
leverages `BigUint::modpow`, fixing the signs as needed afterward.

Closes #17.
@bors
Copy link
Contributor

bors bot commented Feb 9, 2018

Build succeeded

@bors bors bot merged commit f4cc2ab into rust-num:master Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add BigInt::modpow
1 participant