るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.103秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:iv=[x] > バージョン:2.2.0[x] > クラス:OpenSSL::BN[x]

別のキーワード

  1. cipher iv=
  2. openssl iv=
  3. cipher iv_len
  4. openssl iv_len
  5. cipher random_iv

ライブラリ

検索結果

OpenSSL::BN#prime_fasttest?(checks=nil, vtrivdiv=true) -> bool (307.0)

自身が素数であるなら true を返します。

...ある
OpenSSL::BN
.new("181").prime_fasttest?(nil, true) # => false
OpenSSL::BN
.new("181").prime_fasttest?(nil, false) # => true
//}

@param checks Miller-Robin法の繰り返しの回数
@param vtrivdiv 真なら小さな素数で割ることでの素数判定を試みます
@raise OpenSSL::BNError...
...判定時にエラーが発生
@see OpenSSL::BN#prime?...