HomeSort by relevance Sort by last modified time
    Searched refs:eckey (Results 1 - 24 of 24) sorted by null

  /external/openssl/crypto/ecdh/
ech_key.c 73 EC_KEY *eckey,
76 ECDH_DATA *ecdh = ecdh_check(eckey);
79 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF);
ech_locl.h 71 int (*init)(EC_KEY *eckey);
72 int (*finish)(EC_KEY *eckey);
ech_lib.c 109 int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth)
113 ecdh = ecdh_check(eckey);
121 mtmp->finish(eckey);
133 meth->init(eckey);
  /external/openssl/crypto/ecdsa/
ecs_sign.c 62 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey)
64 return ECDSA_do_sign_ex(dgst, dlen, NULL, NULL, eckey);
68 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey)
70 ECDSA_DATA *ecdsa = ecdsa_check(eckey);
73 return ecdsa->meth->ecdsa_do_sign(dgst, dlen, kinv, rp, eckey);
77 *sig, unsigned int *siglen, EC_KEY *eckey)
79 return ECDSA_sign_ex(type, dgst, dlen, sig, siglen, NULL, NULL, eckey);
84 EC_KEY *eckey)
88 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey);
99 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp,
    [all...]
ecs_vrf.c 70 const ECDSA_SIG *sig, EC_KEY *eckey)
72 ECDSA_DATA *ecdsa = ecdsa_check(eckey);
75 return ecdsa->meth->ecdsa_do_verify(dgst, dgst_len, sig, eckey);
84 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey)
92 ret=ECDSA_do_verify(dgst, dgst_len, s, eckey);
ecs_locl.h 72 const BIGNUM *inv, const BIGNUM *rp, EC_KEY *eckey);
73 int (*ecdsa_sign_setup)(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
76 const ECDSA_SIG *sig, EC_KEY *eckey);
78 int (*init)(EC_KEY *eckey);
79 int (*finish)(EC_KEY *eckey);
104 * checks whether ECKEY->meth_data is a pointer to a ECDSA_DATA structure
106 * \param eckey pointer to a EC_KEY object
109 ECDSA_DATA *ecdsa_check(EC_KEY *eckey);
ecdsa.h 115 * \param eckey EC_KEY object containing a private EC key
118 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst,int dgst_len,EC_KEY *eckey);
121 * private key (note: sig must point to ECDSA_size(eckey) bytes of memory).
127 * \param eckey EC_KEY object containing a private EC key
131 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
138 * \param eckey EC_KEY object containing a public EC key
143 const ECDSA_SIG *sig, EC_KEY* eckey);
158 * \param eckey EC_KEY object
162 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth);
165 * \param eckey EC_KEY objec
    [all...]
ecs_ossl.c 65 const BIGNUM *, const BIGNUM *, EC_KEY *eckey);
66 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp,
69 const ECDSA_SIG *sig, EC_KEY *eckey);
89 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp,
98 if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL)
223 const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey)
234 ecdsa = ecdsa_check(eckey);
235 group = EC_KEY_get0_group(eckey);
236 priv_key = EC_KEY_get0_private_key(eckey);
    [all...]
ecdsatest.c 288 EC_KEY *eckey = NULL, *wrong_eckey = NULL; local
338 if ((eckey = EC_KEY_new()) == NULL)
343 if (EC_KEY_set_group(eckey, group) == 0)
346 degree = EC_GROUP_get_degree(EC_KEY_get0_group(eckey));
350 EC_KEY_free(eckey);
351 eckey = NULL;
356 if (!EC_KEY_generate_key(eckey))
379 if (!EC_KEY_check_key(eckey))
387 sig_len = ECDSA_size(eckey);
390 if (!ECDSA_sign(0, digest, 20, signature, &sig_len, eckey))
    [all...]
ecs_lib.c 96 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth)
100 ecdsa = ecdsa_check(eckey);
  /external/openssl/include/openssl/
ecdsa.h 115 * \param eckey EC_KEY object containing a private EC key
118 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst,int dgst_len,EC_KEY *eckey);
121 * private key (note: sig must point to ECDSA_size(eckey) bytes of memory).
127 * \param eckey EC_KEY object containing a private EC key
131 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
138 * \param eckey EC_KEY object containing a public EC key
143 const ECDSA_SIG *sig, EC_KEY* eckey);
158 * \param eckey EC_KEY object
162 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth);
165 * \param eckey EC_KEY objec
    [all...]
x509.h 705 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey);
706 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey);
707 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey);
708 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey);
744 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey);
745 int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey);
746 EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey);
747 int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);
    [all...]
ec.h 803 void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags);
805 void EC_KEY_set_conv_form(EC_KEY *eckey, point_conversion_form_t cform);
820 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag);
    [all...]
evp.h 466 #define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\
467 (char *)(eckey))
    [all...]
  /external/openssl/crypto/ec/
ec_key.c 237 int EC_KEY_generate_key(EC_KEY *eckey)
246 return FIPS_ec_key_generate_key(eckey);
249 if (!eckey || !eckey->group)
258 if (eckey->priv_key == NULL)
265 priv_key = eckey->priv_key;
267 if (!EC_GROUP_get_order(eckey->group, order, ctx))
275 if (eckey->pub_key == NULL)
277 pub_key = EC_POINT_new(eckey->group);
282 pub_key = eckey->pub_key
    [all...]
ec_ameth.c 141 EC_KEY *eckey = NULL; local
149 if (!(eckey = d2i_ECParameters(NULL, &pm, pmlen)))
163 if ((eckey = EC_KEY_new()) == NULL)
172 if (EC_KEY_set_group(eckey, group) == 0)
182 return eckey;
185 if (eckey)
186 EC_KEY_free(eckey);
195 EC_KEY *eckey = NULL; local
202 eckey = eckey_type2param(ptype, pval);
204 if (!eckey)
245 EC_KEY *eckey = NULL; local
525 EC_KEY *eckey; local
    [all...]
ec.h 803 void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags);
805 void EC_KEY_set_conv_form(EC_KEY *eckey, point_conversion_form_t cform);
820 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag);
    [all...]
  /external/openssl/apps/
ec.c 89 EC_KEY *eckey = NULL; local
286 eckey = d2i_EC_PUBKEY_bio(in, NULL);
288 eckey = d2i_ECPrivateKey_bio(in, NULL);
293 eckey = PEM_read_bio_EC_PUBKEY(in, NULL, NULL,
296 eckey = PEM_read_bio_ECPrivateKey(in, NULL, NULL,
304 if (eckey == NULL)
330 group = EC_KEY_get0_group(eckey);
333 EC_KEY_set_conv_form(eckey, form);
336 EC_KEY_set_asn1_flag(eckey, asn1_flag);
339 if (!EC_KEY_print(out, eckey, 0)
    [all...]
ecparam.c 642 EC_KEY *eckey = EC_KEY_new(); local
644 if (eckey == NULL)
649 if (EC_KEY_set_group(eckey, group) == 0)
652 if (!EC_KEY_generate_key(eckey))
654 EC_KEY_free(eckey);
658 i = i2d_ECPrivateKey_bio(out, eckey);
660 i = PEM_write_bio_ECPrivateKey(out, eckey, NULL,
666 EC_KEY_free(eckey);
669 EC_KEY_free(eckey);
  /external/openssl/crypto/x509/
x_all.c 341 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey)
343 return ASN1_d2i_fp_of(EC_KEY,EC_KEY_new,d2i_EC_PUBKEY,fp,eckey);
346 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey)
348 return ASN1_i2d_fp_of(EC_KEY,i2d_EC_PUBKEY,fp,eckey);
351 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey)
353 return ASN1_d2i_fp_of(EC_KEY,EC_KEY_new,d2i_ECPrivateKey,fp,eckey);
356 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey)
358 return ASN1_i2d_fp_of(EC_KEY,i2d_ECPrivateKey,fp,eckey);
361 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey)
363 return ASN1_d2i_bio_of(EC_KEY,EC_KEY_new,d2i_EC_PUBKEY,bp,eckey);
    [all...]
x509.h 705 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey);
706 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey);
707 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey);
708 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey);
744 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey);
745 int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey);
746 EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey);
747 int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);
    [all...]
  /external/openssl/crypto/pem/
pem_all.c 137 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey);
353 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey)
360 if(eckey)
362 EC_KEY_free(*eckey);
363 *eckey = dtmp;
439 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb,
444 return pkey_get_eckey(pktmp, eckey); /* will free pktmp */
  /libcore/luni/src/main/native/
org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp     [all...]
  /external/openssl/crypto/evp/
evp.h 466 #define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\
467 (char *)(eckey))
    [all...]

Completed in 308 milliseconds