るりまサーチ (Ruby 2.7.0)

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

別のキーワード

  1. openssl to_bn
  2. bn new
  3. bn prime?
  4. new openssl::bn
  5. openssl bn

クラス

検索結果

OpenSSL::BN#sqr -> OpenSSL::BN (97288.0)

自身の2乗を計算します。

...自身の2乗を計算します。

@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_sqr...

OpenSSL::BN#mod_sqr(m) -> OpenSSL::BN (61288.0)

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

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

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