るりまサーチ

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

別のキーワード

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

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 ... > >>

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

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

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

@param other かける数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_mul...

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

自身の other 乗を返します。

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

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

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

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

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

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

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

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

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

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

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

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

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

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

絞り込み条件を変える

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

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

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

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

OpenSSL::BN#%(other) -> OpenSSL::BN (11109.0)

自身を other で割り算した余りを返します。

...自身を other で割り算した余りを返します。

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

OpenSSL::BN#gcd(other) -> OpenSSL::BN (11109.0)

GCD(最大公約数)を返します。

...GCD(最大公約数)を返します。

@param other 自身との GCD を計算する数
@raise OpenSSL::BNError 計算時エラー...

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

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

...きには 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 比較する整数
@rais...
...e TypeError 比較できないときに発生します。
@see OpenSSL::BN#ucmp...
<< < 1 2 3 4 ... > >>