1196件ヒット
[101-200件を表示]
(0.047秒)
ライブラリ
- openssl (1184)
クラス
- Integer (12)
-
OpenSSL
:: ASN1 :: Integer (24) -
OpenSSL
:: BN (620) -
OpenSSL
:: OCSP :: CertificateId (12) -
OpenSSL
:: PKey :: DH (120) -
OpenSSL
:: PKey :: DSA (72) -
OpenSSL
:: PKey :: EC (24) -
OpenSSL
:: PKey :: EC :: Group (60) -
OpenSSL
:: PKey :: EC :: Point (48) -
OpenSSL
:: PKey :: RSA (108) -
OpenSSL
:: X509 :: Revoked (24)
モジュール
-
OpenSSL
:: ASN1 (24)
キーワード
- % (12)
- * (12)
- ** (12)
- + (12)
- - (12)
-
/ (12) - << (12)
- <=> (12)
- == (12)
- === (12)
- >> (12)
- BNError (12)
- Integer (24)
-
NEWS for Ruby 2
. 1 . 0 (12) - Random (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)
-
generate
_ prime (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)
- new (120)
-
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) -
pseudo
_ rand (12) -
pseudo
_ rand _ range (12) -
pub
_ key (24) -
pub
_ key= (12) - q (24)
- rand (12)
-
rand
_ range (12) - 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 # >>(other) -> OpenSSL :: BN (14274.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 . new(integer) -> OpenSSL :: BN (14274.0) -
整数オブジェクト(Integer)から多倍長整数オブジェクト (OpenSSL::BN)を生成します。
...整数オブジェクト(Integer)から多倍長整数オブジェクト
(OpenSSL::BN)を生成します。
@param integer 整数オブジェクト
@see Integer#to_bn... -
OpenSSL
:: BN # <<(other) -> OpenSSL :: BN (14268.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 # mod _ add(other , m) -> OpenSSL :: BN (14250.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 (14250.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 (14250.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 計算時エラー... -
OpenSSL
:: BN # mod _ sub(other , m) -> OpenSSL :: BN (14250.0) -
(self - other) % m を返します。
...(self - other) % m を返します。
//emlist[][ruby]{
require 'openssl'
OpenSSL::BN.new("27").mod_sub(OpenSSL::BN.new("3"), OpenSSL::BN.new("5")) # => 4
//}
@param other 引く数
@param m 剰余を取る数
@raise OpenSSL::BNError 計算時エラー... -
OpenSSL
:: BN . pseudo _ rand(bits , fill=0 , odd=false) -> OpenSSL :: BN (14232.0) -
乱数を生成し、返します。
...@param bits 発生させる数のビット数
@param fill 上位ビットの性質を決める整数
@param odd 真なら発生させる数は奇数のみとなる
@raise OpenSSL::BNError 乱数の生成に失敗した場合に発生します
@see OpenSSL::BN.rand, OpenSSL::BN.pseudo_rand_range... -
OpenSSL
:: BN . pseudo _ rand _ range(range) -> OpenSSL :: BN (14232.0) -
乱数を 0 から range-1 までの間で生成し、返します。
...を 0 から range-1 までの間で生成し、返します。
乱数系列に暗号論的な強さはありません。
@param range 生成する乱数の範囲
@raise OpenSSL::BNError 乱数の生成に失敗した場合に発生します
@see OpenSSL::BN.pseudo_rand, OpenSSL::BN.rand_range...