generate_key

key.generate_key => self Instance Public methods See the OpenSSL documentation for EC_KEY_generate_key()

group

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

group=

key.group = group => group Instance Public methods 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.

private_key

key.private_key => OpenSSL::BN Instance Public methods See the OpenSSL documentation for EC_KEY_get0_private_key()

private_key=

key.private_key = openssl_bn Instance Public methods See the OpenSSL documentation for EC_KEY_set_private_key()

private_key?

key.private_key? => true or false Instance Public methods Both #public_key? and #private_key? may return false at the same time unlike other PKey classes.

public_key

key.public_key => OpenSSL::PKey::EC::Point Instance Public methods See the OpenSSL documentation for EC_KEY_get0_public_key()

public_key=

key.public_key = ec_point Instance Public methods See the OpenSSL documentation for EC_KEY_set_public_key()

public_key?

key.public_key? => true or false Instance Public methods Both #public_key? and #private_key? may return false at the same time unlike other PKey classes.

to_der

key.to_der => String Instance Public methods See the OpenSSL documentation for i2d_ECPrivateKey_bio()