Results for: "slice"

The return value is always true since every private key is also a public key.

No documentation available

Indicate that the request is for a gem explicitly requested by the user

Indicate that the request is for a gem requested as a dependency of another gem

Loads the given public key identified by id and data.

An EngineError is raised of the OpenSSL::PKey is unavailable.

Compile a ImplicitNode node

Dispatch enter and leave events for ImplicitNode nodes and continue walking the tree.

Inspect a ImplicitNode node.

Copy a ImplicitNode node

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

Join lines with a trailing slash

source = <<~'EOM'
  it "code can be split" \
     "across multiple lines" do
EOM

lines = CleanDocument.new(source: source).join_consecutive!.lines
expect(lines[0].to_s).to eq(source)
expect(lines[1].to_s).to eq("")
No documentation available
No documentation available

Create a new ImplicitRestNode node.

Create a new SourceLineNode node.

Gets the right public key from a PKey instance

Returns a new DH instance that carries just the DH parameters.

Contrary to the method name, the returned DH object contains only parameters and not the public key.

This method is provided for backwards compatibility. In most cases, there is no need to call this method.

For the purpose of re-generating the key pair while keeping the parameters, check OpenSSL::PKey.generate_key.

Example:

# OpenSSL::PKey::DH.generate by default generates a random key pair
dh1 = OpenSSL::PKey::DH.generate(2048)
p dh1.priv_key #=> #<OpenSSL::BN 1288347...>
dhcopy = dh1.public_key
p dhcopy.priv_key #=> nil

Returns a new DSA instance that carries just the DSA parameters and the public key.

This method is provided for backwards compatibility. In most cases, there is no need to call this method.

For the purpose of serializing the public key, to PEM or DER encoding of X.509 SubjectPublicKeyInfo format, check PKey#public_to_pem and PKey#public_to_der.

See the OpenSSL documentation for EC_KEY_get0_public_key()

See the OpenSSL documentation for EC_KEY_set_public_key()

Returns whether this EC instance has a public key. The public key (EC::Point) can be retrieved with EC#public_key.

Search took: 4ms  ·  Total Results: 1423