Constants
No documentation available
Class Methods

See the OpenSSL documentation for EC_builtin_curves()

See the OpenSSL documentation for:

EC_KEY_*
Instance Methods

Raises an exception if the key is invalid.

See the OpenSSL documentation for EC_KEY_check_key()

See the OpenSSL documentation for ECDH_compute_key()

See the OpenSSL documentation for ECDSA_sign()

See the OpenSSL documentation for ECDSA_verify()

Outputs the EC key in PEM encoding. If cipher and pass_phrase are given they will be used to encrypt the key. cipher must be an OpenSSL::Cipher::Cipher instance. Note that encryption will only be effective for a private key, public keys will always be encoded in plain text.

See the OpenSSL documentation for EC_KEY_generate_key()

Returns a constant OpenSSL::EC::Group that is tied to the key. Modifying the returned group can make the key invalid.

Returns the same object passed, not the group object associated with the key. If you wish to access the group object tied to the key call key.group after setting the group.

Setting the group will immediately destroy any previously assigned group object. The group is internally copied by OpenSSL. Modifying the original group after assignment will not effect the internal key structure. (your changes may be lost). BE CAREFUL.

EC_KEY_set_group calls EC_GROUP_free(key->group) then EC_GROUP_dup(), not EC_GROUP_copy. This documentation is accurate for OpenSSL 0.9.8b.

See the OpenSSL documentation for EC_KEY_get0_private_key()

See the OpenSSL documentation for EC_KEY_set_private_key()

Both public_key? and private_key? may return false at the same time unlike other PKey classes.

See the OpenSSL documentation for EC_KEY_get0_public_key()

See the OpenSSL documentation for EC_KEY_set_public_key()

Both public_key? and private_key? may return false at the same time unlike other PKey classes.

See the OpenSSL documentation for i2d_ECPrivateKey_bio()

See the OpenSSL documentation for EC_KEY_print()