るりまサーチ

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

別のキーワード

  1. openssl new
  2. openssl digest
  3. openssl to_der
  4. openssl to_s
  5. openssl hexdigest

キーワード

検索結果

<< < ... 66 67 68 >>

Integer#to_bn -> OpenSSL::BN (8256.0)

Integer を同じ数を表す OpenSSL::BN のオブジェクトに 変換します。

... OpenSSL::BN のオブジェクトに
変換します。

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

p
p 5.to_bn #=> #<OpenSSL::BN 5>
p
p (-5).to_bn #=> #<OpenSSL::BN -5>
//}

なお、実装は、以下のようになっています。

//emlist[][ruby]{
class Integer
def to_bn
Open...
...SSL::BN::new(self)
end
end
//}

@see OpenSSL::BN.new, OpenSSL::BN#to_i...
... OpenSSL::BN のオブジェクトに
変換します。

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

p
p 5.to_bn #=> #<OpenSSL::BN 5>
p
p (-5).to_bn #=> #<OpenSSL::BN -5>
//}

なお、実装は、以下のようになっています。

//emlist[][ruby]{
class Integer
def to_bn
OpenSSL
::BN::n...
...ew(self)
end
end
//}

@see OpenSSL::BN.new, OpenSSL::BN#to_i...
<< < ... 66 67 68 >>