Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > opensslライブラリ > OpenSSL::BNクラス
クラスの継承リスト: OpenSSL::BN < Comparable < Object < Kernel
OpenSSL内で利用される多倍長整数クラスです。
通常多倍長整数を利用するには Bignum を用いてください。
定義 | 説明 | |
---|---|---|
generate_prime(bits, safe=true, add=nil, rem=nil) -> OpenSSL::BN
|
ランダム(疑似乱数的)な bits ビットの素数を返します。 |
|
new(str, base=10) -> OpenSSL::BN
|
文字列を多倍長整数オブジェクト(OpenSSL::BN)を生成します。 |
|
pseudo_rand(bits, fill=0, odd=false) -> OpenSSL::BN
|
乱数を生成し、返します。 |
|
pseudo_rand_range(range) -> OpenSSL::BN
|
乱数を 0 から range-1 までの間で生成し、返します。 |
|
rand(bits, fill=0, odd=false) -> OpenSSL::BN
|
暗号論的に強い疑似乱数を生成し、返します。 |
|
rand_range(range) -> OpenSSL::BN
|
暗号論的に強い疑似乱数を 0 から range-1 までの間で生成し、返します。 |
<
<=
>
>=
between?
=~
__id__
__send__
_dump
class
clone
dclone
display
enum_for
equal?
extend
freeze
frozen?
hash
initialize
initialize_copy
inspect
instance_eval
instance_exec
instance_of?
instance_variable_defined?
instance_variable_get
instance_variable_set
instance_variables
is_a?
marshal_dump
marshal_load
method
method_missing
methods
nil?
pretty_inspect
pretty_print
pretty_print_cycle
pretty_print_inspect
pretty_print_instance_variables
private_methods
protected_methods
public_methods
remove_instance_variable
respond_to?
singleton_method_added
singleton_method_removed
singleton_method_undefined
singleton_methods
taint
tainted?
tap
to_a
to_ary
to_hash
to_io
to_proc
to_regexp
to_str
to_yaml
to_yaml_properties
to_yaml_style
untaint