• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/openssl-1.0.0q/include/openssl/

Lines Matching refs: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 /** Sets the key method data of an EC_KEY object, if none has yet been set.
778 * \param key EC_KEY object
785 void *EC_KEY_insert_key_method_data(EC_KEY *key, void *data,
788 void EC_KEY_set_asn1_flag(EC_KEY *, int);
791 * accelerate further EC_KEY operations.
792 * \param key EC_KEY object
796 int EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx);
799 * \param key EC_KEY object
802 int EC_KEY_generate_key(EC_KEY *key);
805 * \param key the EC_KEY object
808 int EC_KEY_check_key(const EC_KEY *key);
816 * \param key a pointer to a EC_KEY object which should be used (or NULL)
821 EC_KEY *d2i_ECPrivateKey(EC_KEY **key, const unsigned char **in, long len);
824 * \param key the EC_KEY object to encode
829 int i2d_ECPrivateKey(EC_KEY *key, unsigned char **out);
837 * \param key a pointer to a EC_KEY object which should be used (or NULL)
840 * \return a EC_KEY object with the decoded parameters or NULL if an error
843 EC_KEY *d2i_ECParameters(EC_KEY **key, const unsigned char **in, long len);
846 * \param key the EC_KEY object with ec paramters to encode
851 int i2d_ECParameters(EC_KEY *key, unsigned char **out);
860 * \param key a pointer to a EC_KEY object which should be used
863 * \return EC_KEY object with decoded public key or NULL if an error
866 EC_KEY *o2i_ECPublicKey(EC_KEY **key, const unsigned char **in, long len);
869 * \param key the EC_KEY object with the public key
874 int i2o_ECPublicKey(EC_KEY *key, unsigned char **out);
879 * \param key EC_KEY object
882 int ECParameters_print(BIO *bp, const EC_KEY *key);
884 /** Prints out the contents of a EC_KEY object
886 * \param key EC_KEY object
890 int EC_KEY_print(BIO *bp, const EC_KEY *key, int off);
896 * \param key EC_KEY object
899 int ECParameters_print_fp(FILE *fp, const EC_KEY *key);
901 /** Prints out the contents of a EC_KEY object
903 * \param key EC_KEY object
907 int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off);
911 #define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x)