on_curve?

point.on_curve? => true | false Instance Public methods

set_to_infinity!

point.set_to_infinity! => self Instance Public methods

to_bn

point.to_bn => OpenSSL::BN Instance Public methods See the OpenSSL documentation for EC_POINT_point2bn()

builtin_curves

EC.builtin_curves => [[name, comment], ...] Class Public methods See the OpenSSL documentation for EC_builtin_curves()

new

OpenSSL::PKey::EC.new()OpenSSL::PKey::EC.new(ec_key)OpenSSL::PKey::EC.new(ec_group)OpenSSL::PKey::EC.new("secp112r1")OpenSSL::PKey::EC.new(pem_string)OpenSSL::PKey::EC.new(pem_string [, pwd])OpenSSL::PKey::EC.new(der_string) Class Public methods See the OpenSSL documentation for: EC_KEY_*

check_key

key.check_key => true Instance Public methods Raises an exception if the key is invalid. See the OpenSSL documentation for EC_KEY_check_key()

dh_compute_key

key.dh_compute_key(pubkey) => String Instance Public methods See the OpenSSL documentation for ECDH_compute_key()

dsa_sign_asn1

key.dsa_sign_asn1(data) => String Instance Public methods See the OpenSSL documentation for ECDSA_sign()

dsa_verify_asn1

key.dsa_verify_asn1(data, sig) => true or false Instance Public methods See the OpenSSL documentation for ECDSA_verify()

export

key.export => Stringkey.export(cipher, pass_phrase) => String Instance Public methods 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. to_pem