Returns true if this specification is installable on this platform.
Enumerates trusted certificates.
Loads the given certificate_file
Pushes a new {DependencyState} that encapsulates both existing and new requirements @param [Array] new_requirements @param [Boolean] requires_sort @param [Object] new_activated @return [void]
Like Enumerable#select
, but chains operation to be lazy-evaluated.
Like Enumerable#filter_map
, but chains operation to be lazy-evaluated.
(1..).lazy.filter_map { |i| i * 2 if i.even? }.first(5) #=> [4, 8, 12, 16, 20]
Like Enumerable#take_while
, but chains operation to be lazy-evaluated.
Like Enumerable#drop_while
, but chains operation to be lazy-evaluated.
Returns the Object#object_id
of the internal object.
Sets the length of the authentication tag to be generated or to be given for AEAD ciphers that requires it as in input parameter. Note that not all AEAD ciphers support this method.
In OCB mode, the length must be supplied both when encrypting and when decrypting, and must be before specifying an IV.
Sets the length of the plaintext / ciphertext message that will be processed in CCM mode. Make sure to call this method after key=
and iv=
have been set, and before auth_data=
.
Only call this method after calling Cipher#encrypt
or Cipher#decrypt
.
Loads the given private key identified by id and data.
An EngineError
is raised of the OpenSSL::PKey
is unavailable.
Load an iseq object from binary format String
object created by RubyVM::InstructionSequence.to_binary
.
This loader does not have a verifier, so that loading broken/modified binary causes critical problem.
You should not load binary data provided by others. You should use binary data translated by yourself.
Create a new session id.
The session id is a secure random number by SecureRandom
if possible, otherwise an SHA512 hash based upon the time, a random number, and a constant string. This routine is used internally for automatically generated session ids.