るりまサーチ

最速Rubyリファレンスマニュアル検索!
2636件ヒット [1-100件を表示] (0.062秒)

別のキーワード

  1. string b
  2. _builtin b
  3. b string
  4. b _builtin

キーワード

検索結果

<< 1 2 3 ... > >>

OpenSSL::BN#to_bn -> self (9103.0)

自分自身を返します。

自分自身を返します。

Integer#to_bn -> OpenSSL::BN (6203.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::OCSP::Response#basic -> OpenSSL::OCSP::BasicResponse | nil (6203.0)

Response オブジェクトが保持している BasicResponse オブジェクトを 返します。

...Response オブジェクトが保持している BasicResponse オブジェクトを
返します。

@see OpenSSL::OCSP::BasicResponse...

OpenSSL::PKey::EC::Point#to_bn -> OpenSSL::BN (6203.0)

点を整数に変換します。

...点を整数に変換します。

@raise OpenSSL::PKey::EC::Point::Error 変換に失敗した場合に発生します...

OpenSSL::X509::Request#add_attribute(attr) -> OpenSSL::X509::Attribute (6203.0)

新たな attribute を CSR に追加します。

...新たな attribute を CSR に追加します。

@param attr 追加する attribute(OpenSSL::X509::Attribute の
インスタンス)
@return 渡した attribute オブジェクトを返します
@see OpenSSL::X509::Request#attribute,
OpenSSL
::X509::Request#attribute=...

絞り込み条件を変える

OpenSSL::X509::Request#attributes -> [OpenSSL::X509::Attribute] (6203.0)

CSR が保持している attribute を OpenSSL::X509::Attribute の配列で返します。

...attribute を OpenSSL::X509::Attribute
の配列で返します。

attribute とは X.509 証明書署名要求 に含まれる申請者に関する
追加的な情報です。必須ではありません。X.509v3 拡張領域を
CSR に含めるときは "reqExt" という oid の attribute を...
...追加
します。

@see OpenSSL::X509::Request#attribute=,
OpenSSL
::X509::Request#add_attribute...

OpenSSL::X509::Request#subject=(subject) (6203.0)

証明書署名要求の申請者名を設定します。

...証明書署名要求の申請者名を設定します。

@param subject 設定する名前を OpenSSL::X509::Name で渡します
@raise OpenSSL::X509::RequestError 名前の設定に失敗した場合に発生します
@see OpenSSL::X509::Request#subject...

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

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

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

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

b
n = 0b1111_1111.to_bn

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

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

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

OpenSSL::BN#num_bytes -> Integer (6115.0)

自身を表現するのに使っているバイト数を返します。

...自身を表現するのに使っているバイト数を返します。

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

p 0.to_bn.num_bytes # => 0
p 255.to_bn.num_bytes # => 1
p 256.to_bn.num_bytes # => 2

p 0b111_11111.to_bn.num_bytes # => 1
p 0b1000_00000.to_bn.num_bytes # => 2
//}...
<< 1 2 3 ... > >>