るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.041秒)
トップページ > クエリ:openssl[x] > バージョン:2.4.0[x] > クエリ:mod_add[x]

別のキーワード

  1. openssl mod_exp
  2. openssl mod_sqr
  3. openssl mod_mul
  4. openssl mod_sub

ライブラリ

クラス

検索結果

OpenSSL::BN#mod_add(other, m) -> OpenSSL::BN (87715.0)

(self + other) % m を返します。

(self + other) % m を返します。

//emlist[][ruby]{
require 'openssl'

OpenSSL::BN.new("7").mod_add(OpenSSL::BN.new("3"), OpenSSL::BN.new("6")) # => 4
//}

@param other 和を取る数
@param m 剰余を取る数
@raise OpenSSL::BNError 計算時エラー

OpenSSL::BN#+(other) -> OpenSSL::BN (33358.0)

自身と other の和を返します。

自身と other の和を返します。

@param other 足す整数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_add