instance method OpenSSL::BN#mod_add
mod_add(other, m) -> OpenSSL::BN
-
(self + other) % m を返します。
例:
BN.new("7").mod_add(BN.new("3"), BN.new("6")) # => 4
- [PARAM] other:
- 和を取る数
- [PARAM] m:
- 剰余を取る数
- [EXCEPTION] OpenSSL::BNError:
- 計算時エラー
class OpenSSL::BN