module IntegerWithPow

Public Instance Methods

pow(b, m) click to toggle source

Integer#pow was introduced in Ruby 2.5 Use OpenSSL’s modular exponentiation in older Rubies

# File lib/aws/cognito_srp.rb, line 18
def pow(b, m)
  self.to_bn.mod_exp(b, m).to_i
end