• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/crypto/ec/

Lines Matching refs:EC_KEY

208  *  form src to the newly created EC_KEY object
738 /* EC_KEY functions */
741 typedef struct ec_key_st EC_KEY;
751 /** Creates a new EC_KEY object.
752 * \return EC_KEY object or NULL if an error occurred.
754 EC_KEY *EC_KEY_new(void);
756 int EC_KEY_get_flags(const EC_KEY *key);
758 void EC_KEY_set_flags(EC_KEY *key, int flags);
760 void EC_KEY_clear_flags(EC_KEY *key, int flags);
762 /** Creates a new EC_KEY object using a named curve as underlying
765 * \return EC_KEY object or NULL if an error occurred.
767 EC_KEY *EC_KEY_new_by_curve_name(int nid);
769 /** Frees a EC_KEY object.
770 * \param key EC_KEY object to be freed.
772 void EC_KEY_free(EC_KEY *key);
774 /** Copies a EC_KEY object.
775 * \param dst destination EC_KEY object
776 * \param src src EC_KEY object
779 EC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src);
781 /** Creates a new EC_KEY object and copies the content from src to it.
782 * \param src the source EC_KEY object
783 * \return newly created EC_KEY object or NULL if an error occurred.
785 EC_KEY *EC_KEY_dup(const EC_KEY *src);
787 /** Increases the internal reference count of a EC_KEY object.
788 * \param key EC_KEY object
791 int EC_KEY_up_ref(EC_KEY *key);
793 /** Returns the EC_GROUP object of a EC_KEY object
794 * \param key EC_KEY object
797 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
799 /** Sets the EC_GROUP of a EC_KEY object.
800 * \param key EC_KEY object
801 * \param group EC_GROUP to use in the EC_KEY object (note: the EC_KEY
805 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
807 /** Returns the private key of a EC_KEY object.
808 * \param key EC_KEY object
811 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key);
813 /** Sets the private key of a EC_KEY object.
814 * \param key EC_KEY object
815 * \param prv BIGNUM with the private key (note: the EC_KEY object
819 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv);
821 /** Returns the public key of a EC_KEY object.
822 * \param key the EC_KEY object
825 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);
827 /** Sets the public key of a EC_KEY object.
828 * \param key EC_KEY object
829 * \param pub EC_POINT object with the public key (note: the EC_KEY object
833 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);
835 unsigned EC_KEY_get_enc_flags(const EC_KEY *key);
836 void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags);
837 point_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *key);
838 void EC_KEY_set_conv_form(EC_KEY *eckey, point_conversion_form_t cform);
840 void *EC_KEY_get_key_method_data(EC_KEY *key,
844 /** Sets the key method data of an EC_KEY object, if none has yet been set.
845 * \param key EC_KEY object
852 void *EC_KEY_insert_key_method_data(EC_KEY *key, void *data,
857 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag);
860 * accelerate further EC_KEY operations.
861 * \param key EC_KEY object
865 int EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx);
868 * \param key EC_KEY object
871 int EC_KEY_generate_key(EC_KEY *key);
874 * \param key the EC_KEY object
877 int EC_KEY_check_key(const EC_KEY *key);
881 * \param key the EC_KEY object
886 int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x,
894 * \param key a pointer to a EC_KEY object which should be used (or NULL)
899 EC_KEY *d2i_ECPrivateKey(EC_KEY **key, const unsigned char **in, long len);
902 * \param key the EC_KEY object to encode
907 int i2d_ECPrivateKey(EC_KEY *key, unsigned char **out);
914 * \param key a pointer to a EC_KEY object which should be used (or NULL)
917 * \return a EC_KEY object with the decoded parameters or NULL if an error
920 EC_KEY *d2i_ECParameters(EC_KEY **key, const unsigned char **in, long len);
923 * \param key the EC_KEY object with ec paramters to encode
928 int i2d_ECParameters(EC_KEY *key, unsigned char **out);
936 * \param key a pointer to a EC_KEY object which should be used
939 * \return EC_KEY object with decoded public key or NULL if an error
942 EC_KEY *o2i_ECPublicKey(EC_KEY **key, const unsigned char **in, long len);
945 * \param key the EC_KEY object with the public key
950 int i2o_ECPublicKey(EC_KEY *key, unsigned char **out);
955 * \param key EC_KEY object
958 int ECParameters_print(BIO *bp, const EC_KEY *key);
960 /** Prints out the contents of a EC_KEY object
962 * \param key EC_KEY object
966 int EC_KEY_print(BIO *bp, const EC_KEY *key, int off);
972 * \param key EC_KEY object
975 int ECParameters_print_fp(FILE *fp, const EC_KEY *key);
977 /** Prints out the contents of a EC_KEY object
979 * \param key EC_KEY object
983 int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off);
987 # define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x)