Crypt-OpenSSL-EC
view release on metacpan or search on metacpan
lib/Crypt/OpenSSL/EC.pm view on Meta::CPAN
This should normally not be called from Perl, since EC_GROUP objects created by this
library are auto-destroyed when they become unreferenced.
=item Crypt::OpenSSL::EC::EC_GROUP::clear_free($group);
Clears and frees a EC_GROUP object
This should normally not be called from Perl, since EC_GROUP objects created by this
library are auto-destroyed when they become unreferenced.
=item Crypt::OpenSSL::EC::EC_KEY::new();
Creates a new EC_KEY object.
return EC_KEY object or NULL if an error occurred.
=item Crypt::OpenSSL::EC::EC_KEY::new_by_curve_name($nid);
Creates a new EC_KEY object using a named curve as underlying
EC_GROUP object.
nid NID of the named curve.
return EC_KEY object or NULL if an error occurred.
=item Crypt::OpenSSL::EC::EC_KEY::free($key);
Frees a EC_KEY object.
key EC_KEY object to be freed.
This should normally not be called from Perl, since EC_KEY objects created by this
library are auto-destroyed when they become unreferenced.
=item Crypt::OpenSSL::EC::EC_KEY::copy($dst, $src);
Copies a EC_KEY object.
dst destination EC_KEY object
src src EC_KEY object
return dst or NULL if an error occurred.
=item Crypt::OpenSSL::EC::EC_KEY::dup($src);
Creates a new EC_KEY object and copies the content from src to it.
src the source EC_KEY object
return newly created EC_KEY object or NULL if an error occurred.
=item Crypt::OpenSSL::EC::EC_KEY::up_ref($key);
Increases the internal reference count of a EC_KEY object.
key EC_KEY object
return 1 on success and 0 if an error occurred.
=item Crypt::OpenSSL::EC::EC_KEY::get0_group($key);
Returns the EC_GROUP object of a EC_KEY object
key EC_KEY object
\return the EC_GROUP object (possibly NULL).
=item Crypt::OpenSSL::EC::EC_KEY::set_group($key, $group);
Sets the EC_GROUP of a EC_KEY object.
key EC_KEY object
group EC_GROUP to use in the EC_KEY object (note: the EC_KEY
object will use an own copy of the EC_GROUP).
return 1 on success and 0 if an error occurred.
=item Crypt::OpenSSL::EC::EC_KEY::set_private_key($key, $prv);
Sets the private key of a EC_KEY object.
key EC_KEY object
prv BIGNUM with the private key (note: the EC_KEY object
will use an own copy of the BIGNUM).
return 1 on success and 0 if an error occurred.
=item Crypt::OpenSSL::EC::EC_KEY::get0_public_key($key);
Returns the public key of a EC_KEY object.
key the EC_KEY object
return a EC_POINT object with the public key (possibly NULL)
=item Crypt::OpenSSL::EC::EC_KEY::set_public_key($key, $pub);
Sets the public key of a EC_KEY object.
key EC_KEY object
pub EC_POINT object with the public key (note: the EC_KEY object
will use an own copy of the EC_POINT object).
return 1 on success and 0 if an error occurred.
=item Crypt::OpenSSL::EC::EC_KEY::get_enc_flags($key);
=item Crypt::OpenSSL::EC::EC_KEY::set_enc_flags($key, $flags);
=item Crypt::OpenSSL::EC::EC_KEY::get_conv_form($key)
=item Crypt::OpenSSL::EC::EC_KEY::set_conv_form($key, $form);
=item Crypt::OpenSSL::EC::EC_KEY::get_key_method_data
Not Implemented
=item Crypt::OpenSSL::EC::EC_KEY::insert_key_method_data
Not Implemented
=item Crypt::OpenSSL::EC::EC_KEY::set_asn1_flag($key, $flag);
=item Crypt::OpenSSL::EC::EC_KEY::precompute_mult($key, $ctx);
Creates a table of pre-computed multiples of the generator to
further EC_KEY operations.
key EC_KEY object
ctx BN_CTX object (optional)
return 1 on success and 0 if an error occurred.
=item Crypt::OpenSSL::EC::EC_KEY::generate_key($key);
Creates a new ec private (and optional a new public) key.
key EC_KEY object
return 1 on success and 0 if an error occurred.
=item Crypt::OpenSSL::EC::EC_KEY::check_key($key);
Verifies that a private and/or public key is valid.
key the EC_KEY object
return 1 on success and 0 otherwise.
( run in 1.782 second using v1.01-cache-2.11-cpan-39bf76dae61 )