@foo += bar ^^^^^^^^^^^
Returns the string that is used to insert a space before the ‘:’ in JSON
objects.
Sets the string that is used to insert a space before the ‘:’ in JSON
objects.
Sets the curve parameters. generator must be an instance of EC::Point
that is on the curve. order and cofactor are integers.
See the OpenSSL
documentation for EC_GROUP_set_generator()
Like Enumerable#reject
, but chains operation to be lazy-evaluated.
Like Enumerable#grep
, but chains operation to be lazy-evaluated.
Like Enumerable#grep_v
, but chains operation to be lazy-evaluated.
Expands lazy
enumerator to an array. See Enumerable#to_a
.
Expands lazy
enumerator to an array. See Enumerable#to_a
.
Rewinds the enumerator chain by calling the “rewind” method on each enumerable in reverse order. Each call is performed only if the enumerable responds to the method.
Rewinds the product enumerator by calling the “rewind” method on each enumerable in reverse order. Each call is performed only if the enumerable responds to the method.
Returns the number that defines the common difference between two adjacent elements in this arithmetic sequence.
Returns the first number in this arithmetic sequence, or an array of the first n
elements.
Returns the last number in this arithmetic sequence, or an array of the last n
elements.
Returns the hash value of a given string. This is equivalent to Digest::Class.new(*parameters)
.digest(string), where extra parameters, if any, are passed through to the constructor and the string is passed to digest()
.
Returns the hex-encoded hash value of a given string. This is almost equivalent to Digest.hexencode
(Digest::Class.new(*parameters)
.digest(string)).
Returns the base64 encoded hash value of a given string. The return value is properly padded with ‘=’ and contains no line feeds.
Reset the digest to its initial state and return self
.
Reset the digest to the initial state and return self.
Wakes up all threads waiting for this lock.
Returns the string representation of the bignum.
BN.new
can parse the encoded string to convert back into an OpenSSL::BN
.
base
The format. Must be one of the following:
0
- MPI format. See the man page BN_bn2mpi(3) for details.
2
- Variable-length and big-endian binary encoding. The sign of the bignum is ignored.
10
- Decimal number representation, with a leading ‘-’ for a negative bignum.
16
- Hexadecimal number representation, with a leading ‘-’ for a negative bignum.