るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. openssl bnerror
  2. openssl openssl::bnerror
  3. bnerror openssl
  4. bnerror openssl::bn
  5. mask_bits! openssl::bnerror

ライブラリ

クラス

検索結果

OpenSSL::BN#mod_add(other, m) -> OpenSSL::BN (54343.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 (40.0)

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

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

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