Results for: "String#[]"

Like Enumerable#select, but chains operation to be lazy-evaluated.

If a block is given, returns a lazy enumerator that will iterate over the given block for each element with an index, which starts from offset, and returns a lazy enumerator that yields the same values (without the index).

If a block is not given, returns a new lazy enumerator that includes the index, starting from offset.

offset

the starting index to use

See Enumerator#with_index.

Return the block length of the digest in bytes.

Return the block length of the digest in bytes.

Digest::SHA256.new.block_length * 8
# => 512
Digest::SHA384.new.block_length * 8
# => 1024
Digest::SHA512.new.block_length * 8
# => 1024
No documentation available
No documentation available

Returns the Fiddle::Pointer of this handle.

No documentation available

Get the underlying pointer for ruby object val and return it as a Fiddle::Pointer object.

No documentation available

Returns the integer memory location of this pointer.

No documentation available
No documentation available

Generates a cryptographically strong pseudo-random number in the range 0…range.

See also the man page BN_rand_range(3).

Generates a random prime number of bit length bits. If safe is set to true, generates a safe prime. If add is specified, generates a prime that fulfills condition p % add = rem.

Parameters

No documentation available
No documentation available
No documentation available
No documentation available

Returns the block length of the digest algorithm, i.e. the length in bytes of an individual block. Most modern algorithms partition a message to be digested into a sequence of fix-sized blocks that are processed consecutively.

Example

digest = OpenSSL::Digest.new('SHA1')
puts digest.block_length # => 64
No documentation available
No documentation available

Sends the given command to this engine.

Raises an EngineError if the command fails.

No documentation available
No documentation available
Search took: 4ms  ·  Total Results: 4239