るりまサーチ

最速Rubyリファレンスマニュアル検索!
407件ヒット [1-100件を表示] (0.021秒)
トップページ > ライブラリ:openssl[x] > クエリ:BNError[x]

別のキーワード

  1. openssl bnerror
  2. openssl openssl::bnerror
  3. bnerror openssl
  4. bnerror openssl::bn
  5. mask_bits! openssl::bnerror

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

OpenSSL::BNError (18002.0)

OpenSSL::BN 関連のエラーを表す例外です。

...OpenSSL::BN 関連のエラーを表す例外です。...

OpenSSL::BN#mask_bits!(n) -> self (14.0)

自身を下位 n ビットでマスクし、破壊的に変更します。

...場合は例外 OpenSSL::BNError
が発生します。

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

bn = 0b1111_1111.to_bn

bn.mask_bits!(8)
p "%b" % bn # => "11111111"

bn.mask_bits!(3)
p "%b" % bn # => "111"
//}

@param n マスクするビット数
@raise OpenSSL::BNError 計算時エラ...

OpenSSL::BN#mod_inverse(m) -> OpenSSL::BN (14.0)

自身の mod m における逆元を返します。

...(self * r) % m == 1 となる r を返します。
存在しない場合は例外 OpenSSL::BNError が発生します。

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

p 3.to_bn.mod_inverse(5) # => 2
p (3 * 2) % 5 # => 1
//}

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

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

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

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

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

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

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

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

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

絞り込み条件を変える

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

自身の other 乗を返します。

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

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

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

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

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

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

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

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

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

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

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

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

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

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

OpenSSL::BN#<<(other) -> OpenSSL::BN (8.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!...

絞り込み条件を変える

<< 1 2 3 ... > >>