るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 5 > >>

OpenSSL::BN#**(other) -> OpenSSL::BN (102.0)

自身の other 乗を返します。

...自身の other 乗を返します。

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

OpenSSL::BN#+(other) -> OpenSSL::BN (102.0)

自身と other の和を返します。

...自身と other の和を返します。

@param other 足す整数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_add...

OpenSSL::BN#-(other) -> OpenSSL::BN (102.0)

自身から other を引いた値を返します。

...自身から other を引いた値を返します。

@param other 引く整数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_sub...

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

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

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

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

OpenSSL::BN#<<(other) -> OpenSSL::BN (102.0)

自身を other ビット左シフトした値を返します。

...自身を other ビット左シフトした値を返します。

//emlist[][ruby]{
bn = 1.to_bn
pp bn << 1 # => #<OpenSSL::BN 2>
pp bn # => #<OpenSSL::BN 1>
//}

@param other シフトするビット数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#lshift!...

絞り込み条件を変える

OpenSSL::BN#<=>(other) -> -1 | 0 | 1 (102.0)

自身と other を比較し、自身が小さいときには -1、 等しいときには 0、大きいときには 1 を返します。

...身と other を比較し、自身が小さいときには -1、
等しいときには 0、大きいときには 1 を返します。

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

OpenSSL::BN
.new(5) <=> 5 # => 0

OpenSSL::BN
.new(5) <=> OpenSSL::BN.new(9) # => -1
OpenSSL::BN
.new(5) <=> OpenSSL::BN.new(5)...
...# => 0
OpenSSL::BN
.new(5) <=> OpenSSL::BN.new(-5) # => 1
//}

@param other 比較する整数
@raise TypeError 比較できないときに発生します。
@see OpenSSL::BN#ucmp...

OpenSSL::BN#==(other) -> bool (102.0)

自身と other が等しい場合に true を返します。

...自身と other が等しい場合に true を返します。

@param other 比較する数...

OpenSSL::BN#===(other) -> bool (102.0)

自身と other が等しい場合に true を返します。

...自身と other が等しい場合に true を返します。

@param other 比較する数...

OpenSSL::BN#>>(other) -> OpenSSL::BN (102.0)

自身を other ビット右シフトした値を返します。

...自身を other ビット右シフトした値を返します。

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

bn = 2.to_bn
bn >> 1 # => #<OpenSSL::BN 1>
bn # => #<OpenSSL::BN 2>
//}

@param other シフトするビット数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#rshift!...
<< < 1 2 3 4 5 > >>