るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.047秒)

別のキーワード

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

クラス

検索結果

OpenSSL::BN#mod_mul(other, m) -> OpenSSL::BN (29241.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 (11122.0)

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

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

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