944件ヒット
[1-100件を表示]
(0.033秒)
別のキーワード
クラス
- Integer (12)
-
OpenSSL
:: BN (524) -
OpenSSL
:: OCSP :: CertificateId (12) -
OpenSSL
:: PKey :: DH (120) -
OpenSSL
:: PKey :: DSA (72) -
OpenSSL
:: PKey :: EC (24) -
OpenSSL
:: PKey :: EC :: Group (36) -
OpenSSL
:: PKey :: EC :: Point (12) -
OpenSSL
:: PKey :: RSA (108) -
OpenSSL
:: X509 :: Revoked (24)
キーワード
- % (12)
- * (12)
- ** (12)
- + (12)
- - (12)
-
/ (12) - << (12)
- <=> (12)
- == (12)
- === (12)
- >> (12)
-
bit
_ set? (12) -
clear
_ bit! (12) - cmp (12)
- coerce (12)
- cofactor (12)
-
compute
_ key (12) - copy (12)
- d (12)
- dmp1 (12)
- dmq1 (12)
- e (12)
- eql? (12)
- g (24)
- g= (12)
- gcd (12)
- iqmp (12)
- lshift! (12)
-
mask
_ bits! (12) -
mod
_ add (12) -
mod
_ exp (12) -
mod
_ inverse (12) -
mod
_ mul (12) -
mod
_ sqr (12) -
mod
_ sub (12) - n (12)
- negative? (8)
-
num
_ bits (12) -
num
_ bytes (12) - odd? (12)
- one? (12)
- order (12)
- p (36)
- p= (12)
- params (36)
-
pretty
_ print (12) - prime? (24)
-
prime
_ fasttest? (12) -
priv
_ key (24) -
priv
_ key= (12) -
private
_ key (12) -
private
_ key= (12) -
pub
_ key (24) -
pub
_ key= (12) - q (24)
- rshift! (12)
- serial (24)
- serial= (12)
-
set
_ bit! (12) -
set
_ generator (12) - sqr (12)
-
to
_ bn (36) -
to
_ i (12) -
to
_ int (12) -
to
_ s (12) - ucmp (12)
- zero? (12)
検索結果
先頭5件
-
OpenSSL
:: BN # to _ bn -> self (9104.0) -
自分自身を返します。
自分自身を返します。 -
Integer
# to _ bn -> OpenSSL :: BN (6269.0) -
Integer を同じ数を表す OpenSSL::BN のオブジェクトに 変換します。
...す OpenSSL::BN のオブジェクトに
変換します。
//emlist[][ruby]{
require 'pp'
require 'openssl'
pp 5.to_bn #=> #<OpenSSL::BN 5>
pp (-5).to_bn #=> #<OpenSSL::BN -5>
//}
なお、実装は、以下のようになっています。
//emlist[][ruby]{
class Integer
def to_bn
O......penSSL::BN::new(self)
end
end
//}
@see OpenSSL::BN.new, OpenSSL::BN#to_i......す OpenSSL::BN のオブジェクトに
変換します。
//emlist[][ruby]{
require 'openssl'
pp 5.to_bn #=> #<OpenSSL::BN 5>
pp (-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... -
OpenSSL
:: PKey :: EC :: Point # to _ bn -> OpenSSL :: BN (6205.0) -
点を整数に変換します。
...点を整数に変換します。
@raise OpenSSL::PKey::EC::Point::Error 変換に失敗した場合に発生します... -
OpenSSL
:: BN # / (other) -> [OpenSSL :: BN , OpenSSL :: BN] (3211.0) -
自身を other で割った商と余りを配列で返します。
...自身を other で割った商と余りを配列で返します。
@param other 除数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_inverse... -
OpenSSL
:: BN # <<(other) -> OpenSSL :: BN (3146.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) -> OpenSSL :: BN (3146.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!... -
OpenSSL
:: BN # mod _ add(other , m) -> OpenSSL :: BN (3122.0) -
(self + other) % m を返します。
...(self + other) % m を返します。
//emlist[][ruby]{
require 'openssl'
OpenSSL::BN.new("7").mod_add(OpenSSL::BN.new("3"), OpenSSL::BN.new("6")) # => 4
//}
@param other 和を取る数
@param m 剰余を取る数
@raise OpenSSL::BNError 計算時エラー... -
OpenSSL
:: BN # mod _ exp(other , m) -> OpenSSL :: BN (3122.0) -
(self ** other) % m を返します。
...(self ** other) % m を返します。
//emlist[][ruby]{
require 'openssl'
OpenSSL::BN.new("7").mod_exp(OpenSSL::BN.new("3"), OpenSSL::BN.new("6")) # => 1
//}
@param other 指数
@param m 剰余を取る数
@raise OpenSSL::BNError 計算時エラー... -
OpenSSL
:: BN # mod _ mul(other , m) -> OpenSSL :: BN (3122.0) -
(self * other) % m を返します。
...(self * other) % m を返します。
//emlist[][ruby]{
require 'openssl'
OpenSSL::BN.new("7").mod_mul(OpenSSL::BN.new("3"), OpenSSL::BN.new("6")) # => 3
//}
@param other 積を取る数
@param m 剰余を取る数
@raise OpenSSL::BNError 計算時エラー...