るりまサーチ (Ruby 2.1.0)

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

別のキーワード

  1. matrix inverse
  2. bn mod_inverse
  3. openssl mod_inverse
  4. inverse matrix

クラス

キーワード

検索結果

OpenSSL::BN#mod_inverse(m) -> OpenSSL::BN (18331.0)

自身の mod m における逆元を返します。

...(self * r) % m == 1 となる r を返します。
存在しない場合は例外 OpenSSL::BNError が発生します。

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

p 3.to_bn.mod_inverse(5) # => 2
p (3 * 2) % 5 # => 1
//}

@param m mod を取る数
@raise OpenSSL::BNError 計算時エラー...

OpenSSL::PKey::RSA#iqmp -> OpenSSL::BN (58.0)

鍵の coefficient (inverse of q mod p) です。

鍵の coefficient (inverse of q mod p) です。

秘密鍵の情報です。

OpenSSL::BN#/(other) -> [OpenSSL::BN, OpenSSL::BN] (28.0)

自身を other で割った商と余りを配列で返します。

...自身を other で割った商と余りを配列で返します。

@param other 除数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_inverse...