るりまサーチ (Ruby 2.6.0)

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

別のキーワード

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

クラス

検索結果

OpenSSL::BN#mod_mul(other, m) -> OpenSSL::BN (87721.0)

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

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

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

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

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

OpenSSL::BN#*(other) -> OpenSSL::BN (33364.0)

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

...自身と other の積を返します。

@param other かける数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_mul...