- to_bn -> OpenSSL::BN[permalink][rdoc][edit] [added by openssl]
- 
Integer を同じ数を表す OpenSSL::BN のオブジェクトに変換します。 require 'openssl' pp 5.to_bn #=> #<OpenSSL::BN 5> pp (-5).to_bn #=> #<OpenSSL::BN -5>なお、実装は、以下のようになっています。 class Integer def to_bn OpenSSL::BN::new(self) end end[SEE_ALSO] OpenSSL::BN.new, OpenSSL::BN#to_i