/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/ecdsa/ |
ecdsatest.c | 287 EC_KEY *eckey = NULL, *wrong_eckey = NULL; local 333 if ((eckey = EC_KEY_new()) == NULL) 338 if (EC_KEY_set_group(eckey, group) == 0) 341 if (EC_GROUP_get_degree(EC_KEY_get0_group(eckey)) < 160) 344 EC_KEY_free(eckey); 345 eckey = NULL; 350 if (!EC_KEY_generate_key(eckey)) 373 if (!EC_KEY_check_key(eckey)) 381 sig_len = ECDSA_size(eckey); 384 if (!ECDSA_sign(0, digest, 20, signature, &sig_len, eckey)) [all...] |
/external/openssl/crypto/ec/ |
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...] |