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

Mod pow spike #1320

Closed
wants to merge 5 commits into
base: trunk
from

Conversation

3 participants
@metanest

metanest commented Apr 5, 2016

A new method, Integer#mod_pow.

x.mod_pow(a, m) -> (x**a) % m

@metanest metanest closed this Dec 30, 2016

@metanest metanest reopened this Dec 30, 2016

Show outdated Hide outdated numeric.c Outdated
@mrkn

This comment has been minimized.

Show comment
Hide comment
@mrkn

mrkn Feb 22, 2017

Contributor

@metanest Could you write tests for the new feature?

Contributor

mrkn commented Feb 22, 2017

@metanest Could you write tests for the new feature?

@mrkn mrkn self-assigned this Feb 22, 2017

@Ptico

This comment has been minimized.

Show comment
Hide comment
@Ptico

Ptico Oct 17, 2017

mod pow often used for crypto, so may be it's better to use mpz_powm_sec?

Ptico commented Oct 17, 2017

mod pow often used for crypto, so may be it's better to use mpz_powm_sec?

@mrkn

This comment has been minimized.

Show comment
Hide comment
@mrkn

mrkn Dec 1, 2017

Contributor

MEMO: The corresponding issue is https://bugs.ruby-lang.org/issues/12508

Contributor

mrkn commented Dec 1, 2017

MEMO: The corresponding issue is https://bugs.ruby-lang.org/issues/12508

@matzbot matzbot closed this in 9b09cc8 Dec 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment