Lines Matching defs:EC_KEY

193  *  form src to the newly created EC_KEY object
683 /* EC_KEY functions */
686 typedef struct ec_key_st EC_KEY;
692 /** Creates a new EC_KEY object.
693 * \return EC_KEY object or NULL if an error occurred.
695 EC_KEY *EC_KEY_new(void);
697 /** Creates a new EC_KEY object using a named curve as underlying
700 * \return EC_KEY object or NULL if an error occurred.
702 EC_KEY *EC_KEY_new_by_curve_name(int nid);
704 /** Frees a EC_KEY object.
705 * \param key EC_KEY object to be freed.
707 void EC_KEY_free(EC_KEY *key);
709 /** Copies a EC_KEY object.
710 * \param dst destination EC_KEY object
711 * \param src src EC_KEY object
714 EC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src);
716 /** Creates a new EC_KEY object and copies the content from src to it.
717 * \param src the source EC_KEY object
718 * \return newly created EC_KEY object or NULL if an error occurred.
720 EC_KEY *EC_KEY_dup(const EC_KEY *src);
722 /** Increases the internal reference count of a EC_KEY object.
723 * \param key EC_KEY object
726 int EC_KEY_up_ref(EC_KEY *key);
728 /** Returns the EC_GROUP object of a EC_KEY object
729 * \param key EC_KEY object
732 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
734 /** Sets the EC_GROUP of a EC_KEY object.
735 * \param key EC_KEY object
736 * \param group EC_GROUP to use in the EC_KEY object (note: the EC_KEY
740 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
742 /** Returns the private key of a EC_KEY object.
743 * \param key EC_KEY object
746 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key);
748 /** Sets the private key of a EC_KEY object.
749 * \param key EC_KEY object
750 * \param prv BIGNUM with the private key (note: the EC_KEY object
754 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv);
756 /** Returns the public key of a EC_KEY object.
757 * \param key the EC_KEY object
760 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);
762 /** Sets the public key of a EC_KEY object.
763 * \param key EC_KEY object
764 * \param pub EC_POINT object with the public key (note: the EC_KEY object
768 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);
770 unsigned EC_KEY_get_enc_flags(const EC_KEY *key);
771 void EC_KEY_set_enc_flags(EC_KEY *, unsigned int);
772 point_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *);
773 void EC_KEY_set_conv_form(EC_KEY *, point_conversion_form_t);
775 void *EC_KEY_get_key_method_data(EC_KEY *,
777 void EC_KEY_insert_key_method_data(EC_KEY *, void *data,
780 void EC_KEY_set_asn1_flag(EC_KEY *, int);
783 * accelerate further EC_KEY operations.
784 * \param key EC_KEY object
788 int EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx);
791 * \param key EC_KEY object
794 int EC_KEY_generate_key(EC_KEY *key);
797 * \param key the EC_KEY object
800 int EC_KEY_check_key(const EC_KEY *key);
808 * \param key a pointer to a EC_KEY object which should be used (or NULL)
813 EC_KEY *d2i_ECPrivateKey(EC_KEY **key, const unsigned char **in, long len);
816 * \param key the EC_KEY object to encode
821 int i2d_ECPrivateKey(EC_KEY *key, unsigned char **out);
829 * \param key a pointer to a EC_KEY object which should be used (or NULL)
832 * \return a EC_KEY object with the decoded parameters or NULL if an error
835 EC_KEY *d2i_ECParameters(EC_KEY **key, const unsigned char **in, long len);
838 * \param key the EC_KEY object with ec paramters to encode
843 int i2d_ECParameters(EC_KEY *key, unsigned char **out);
852 * \param key a pointer to a EC_KEY object which should be used
855 * \return EC_KEY object with decoded public key or NULL if an error
858 EC_KEY *o2i_ECPublicKey(EC_KEY **key, const unsigned char **in, long len);
861 * \param key the EC_KEY object with the public key
866 int i2o_ECPublicKey(EC_KEY *key, unsigned char **out);
871 * \param key EC_KEY object
874 int ECParameters_print(BIO *bp, const EC_KEY *key);
876 /** Prints out the contents of a EC_KEY object
878 * \param key EC_KEY object
882 int EC_KEY_print(BIO *bp, const EC_KEY *key, int off);
888 * \param key EC_KEY object
891 int ECParameters_print_fp(FILE *fp, const EC_KEY *key);
893 /** Prints out the contents of a EC_KEY object
895 * \param key EC_KEY object
899 int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off);
903 #define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x)