/external/openssl/crypto/ec/ |
ec_key.c | 233 int EC_KEY_generate_key(EC_KEY *eckey) 240 if (!eckey || !eckey->group) 249 if (eckey->priv_key == NULL) 256 priv_key = eckey->priv_key; 258 if (!EC_GROUP_get_order(eckey->group, order, ctx)) 266 if (eckey->pub_key == NULL) 268 pub_key = EC_POINT_new(eckey->group); 273 pub_key = eckey->pub_key; 275 if (!EC_POINT_mul(eckey->group, pub_key, priv_key, NULL, NULL, ctx) [all...] |
/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...] |
ecdsa.h | 120 * \param eckey pointer to the EC_KEY object containing a private EC key 123 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst,int dgst_len,EC_KEY *eckey); 127 * private key (note: sig must point to ECDSA_size(eckey) bytes of memory). 133 * \param eckey pointer to the EC_KEY object containing a private EC key 137 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey); 145 * \param eckey pointer to the EC_KEY object containing a public EC key 149 const ECDSA_SIG *sig, EC_KEY* eckey); 167 * \param eckey pointer to the EC_KEY object 171 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth); 175 * \param eckey pointer to a 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) 213 const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey) 224 ecdsa = ecdsa_check(eckey); 225 group = EC_KEY_get0_group(eckey); 226 priv_key = EC_KEY_get0_private_key(eckey); [all...] |
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); 96 * checks whether ECKEY->meth_data is a pointer to a ECDSA_DATA structure 98 * \param eckey pointer to a EC_KEY object 101 ECDSA_DATA *ecdsa_check(EC_KEY *eckey);
|
ecdsatest.c | 288 EC_KEY *eckey = NULL, *wrong_eckey = NULL; local 334 if ((eckey = EC_KEY_new()) == NULL) 339 if (EC_KEY_set_group(eckey, group) == 0) 342 if (EC_GROUP_get_degree(EC_KEY_get0_group(eckey)) < 160) 345 EC_KEY_free(eckey); 346 eckey = NULL; 351 if (!EC_KEY_generate_key(eckey)) 374 if (!EC_KEY_check_key(eckey)) 382 sig_len = ECDSA_size(eckey); 385 if (!ECDSA_sign(0, digest, 20, signature, &sig_len, eckey)) [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_lib.c | 84 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth) 89 ecdsa = ecdsa_check(eckey);
|
/external/openssl/include/openssl/ |
ecdsa.h | 120 * \param eckey pointer to the EC_KEY object containing a private EC key 123 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst,int dgst_len,EC_KEY *eckey); 127 * private key (note: sig must point to ECDSA_size(eckey) bytes of memory). 133 * \param eckey pointer to the EC_KEY object containing a private EC key 137 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey); 145 * \param eckey pointer to the EC_KEY object containing a public EC key 149 const ECDSA_SIG *sig, EC_KEY* eckey); 167 * \param eckey pointer to the EC_KEY object 171 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth); 175 * \param eckey pointer to a EC_KEY objec [all...] |
x509.h | 807 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey); 808 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey); 809 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey); 810 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey); 846 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey); 847 int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey); 848 EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey); 849 int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey); [all...] |
evp.h | 455 #define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\ 456 (char *)(eckey)) [all...] |
/external/openssl/apps/ |
ec.c | 92 EC_KEY *eckey = NULL; local 289 eckey = d2i_EC_PUBKEY_bio(in, NULL); 291 eckey = d2i_ECPrivateKey_bio(in, NULL); 296 eckey = PEM_read_bio_EC_PUBKEY(in, NULL, NULL, 299 eckey = PEM_read_bio_ECPrivateKey(in, NULL, NULL, 307 if (eckey == NULL) 333 group = EC_KEY_get0_group(eckey); 336 EC_KEY_set_conv_form(eckey, form); 339 EC_KEY_set_asn1_flag(eckey, asn1_flag); 342 if (!EC_KEY_print(out, eckey, 0) [all...] |
ecparam.c | 645 EC_KEY *eckey = EC_KEY_new(); local 647 if (eckey == NULL) 652 if (EC_KEY_set_group(eckey, group) == 0) 655 if (!EC_KEY_generate_key(eckey)) 657 EC_KEY_free(eckey); 661 i = i2d_ECPrivateKey_bio(out, eckey); 663 i = PEM_write_bio_ECPrivateKey(out, eckey, NULL, 669 EC_KEY_free(eckey); 672 EC_KEY_free(eckey);
|
/external/openssl/crypto/x509/ |
x_all.c | 328 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) 330 return ASN1_d2i_fp_of(EC_KEY,EC_KEY_new,d2i_EC_PUBKEY,fp,eckey); 333 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey) 335 return ASN1_i2d_fp_of(EC_KEY,i2d_EC_PUBKEY,fp,eckey); 338 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey) 340 return ASN1_d2i_fp_of(EC_KEY,EC_KEY_new,d2i_ECPrivateKey,fp,eckey); 343 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey) 345 return ASN1_i2d_fp_of(EC_KEY,i2d_ECPrivateKey,fp,eckey); 348 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) 350 return ASN1_d2i_bio_of(EC_KEY,EC_KEY_new,d2i_EC_PUBKEY,bp,eckey); [all...] |
x509.h | 807 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey); 808 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey); 809 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey); 810 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey); 846 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey); 847 int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey); 848 EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey); 849 int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey); [all...] |
/dalvik/libcore/security/src/main/java/java/security/interfaces/ |
ECKey.java | 25 public interface ECKey {
|
ECPrivateKey.java | 26 public interface ECPrivateKey extends PrivateKey, ECKey {
|
ECPublicKey.java | 26 public interface ECPublicKey extends PublicKey, ECKey {
|
/external/openssl/crypto/ecdh/ |
ech_locl.h | 71 int (*init)(EC_KEY *eckey); 72 int (*finish)(EC_KEY *eckey);
|
ech_lib.c | 97 int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) 102 ecdh = ecdh_check(eckey); 110 mtmp->finish(eckey); 122 meth->init(eckey);
|
ech_key.c | 76 EC_KEY *eckey, 79 ECDH_DATA *ecdh = ecdh_check(eckey); 82 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF);
|
/external/openssl/crypto/evp/ |
evp_pkey.c | 94 EC_KEY *eckey = NULL; local 248 if (!(eckey = d2i_ECParameters(NULL, &cp, plen))) 264 if ((eckey = EC_KEY_new()) == NULL) 274 if (EC_KEY_set_group(eckey, group) == 0) 280 if (!d2i_ECPrivateKey(&eckey, &p_tmp, pkeylen)) 287 if (EC_KEY_get0_public_key(eckey) == NULL) 294 group = EC_KEY_get0_group(eckey); 307 priv_key = EC_KEY_get0_private_key(eckey); 314 if (EC_KEY_set_public_key(eckey, pub_key) == 0) 323 EVP_PKEY_assign_EC_KEY(pkey, eckey); [all...] |
evp.h | 455 #define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\ 456 (char *)(eckey)) [all...] |
/external/openssl/crypto/pem/ |
pem_all.c | 138 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey); 330 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey) 337 if(eckey) 339 EC_KEY_free(*eckey); 340 *eckey = dtmp; 402 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, 407 return pkey_get_eckey(pktmp, eckey);
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/ |
JDKDSASigner.java | 36 // import org.bouncycastle.jce.interfaces.ECKey; 134 // if (privateKey instanceof ECKey)
|