/external/openssl/crypto/ecdsa/ |
D | ecs_sign.c | 62 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey) in ECDSA_do_sign() argument 64 return ECDSA_do_sign_ex(dgst, dlen, NULL, NULL, eckey); in ECDSA_do_sign() 68 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) in ECDSA_do_sign_ex() argument 70 ECDSA_DATA *ecdsa = ecdsa_check(eckey); in ECDSA_do_sign_ex() 73 return ecdsa->meth->ecdsa_do_sign(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex() 77 *sig, unsigned int *siglen, EC_KEY *eckey) in ECDSA_sign() argument 79 return ECDSA_sign_ex(type, dgst, dlen, sig, siglen, NULL, NULL, eckey); in ECDSA_sign() 84 EC_KEY *eckey) in ECDSA_sign_ex() argument 88 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ECDSA_sign_ex() 99 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ECDSA_sign_setup() argument [all …]
|
D | ecdsa.h | 118 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst,int dgst_len,EC_KEY *eckey); 131 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey); 143 const ECDSA_SIG *sig, EC_KEY* eckey); 162 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth); 168 int ECDSA_size(const EC_KEY *eckey); 177 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, 191 unsigned char *sig, unsigned int *siglen, EC_KEY *eckey); 209 const BIGNUM *rp, EC_KEY *eckey); 223 const unsigned char *sig, int siglen, EC_KEY *eckey);
|
D | 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); 109 ECDSA_DATA *ecdsa_check(EC_KEY *eckey);
|
D | ecdsatest.c | 288 EC_KEY *eckey = NULL, *wrong_eckey = NULL; in test_builtin() local 338 if ((eckey = EC_KEY_new()) == NULL) in test_builtin() 343 if (EC_KEY_set_group(eckey, group) == 0) in test_builtin() 346 degree = EC_GROUP_get_degree(EC_KEY_get0_group(eckey)); in test_builtin() 350 EC_KEY_free(eckey); in test_builtin() 351 eckey = NULL; in test_builtin() 356 if (!EC_KEY_generate_key(eckey)) in test_builtin() 379 if (!EC_KEY_check_key(eckey)) in test_builtin() 387 sig_len = ECDSA_size(eckey); in test_builtin() 390 if (!ECDSA_sign(0, digest, 20, signature, &sig_len, eckey)) in test_builtin() [all …]
|
D | ecs_vrf.c | 70 const ECDSA_SIG *sig, EC_KEY *eckey) in ECDSA_do_verify() argument 72 ECDSA_DATA *ecdsa = ecdsa_check(eckey); in ECDSA_do_verify() 75 return ecdsa->meth->ecdsa_do_verify(dgst, dgst_len, sig, eckey); in ECDSA_do_verify() 84 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ECDSA_verify() argument 92 ret=ECDSA_do_verify(dgst, dgst_len, s, eckey); in ECDSA_verify()
|
D | 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, in ecdsa_sign_setup() argument 98 if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL) in ecdsa_sign_setup() 223 const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey) in ecdsa_do_sign() argument 234 ecdsa = ecdsa_check(eckey); in ecdsa_do_sign() 235 group = EC_KEY_get0_group(eckey); in ecdsa_do_sign() 236 priv_key = EC_KEY_get0_private_key(eckey); in ecdsa_do_sign() 285 if (!ECDSA_sign_setup(eckey, ctx, &kinv, &ret->r)) in ecdsa_do_sign() [all …]
|
D | ecs_lib.c | 96 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth) in ECDSA_set_method() argument 100 ecdsa = ecdsa_check(eckey); in ECDSA_set_method()
|
/external/openssl/crypto/ec/ |
D | ec_key.c | 237 int EC_KEY_generate_key(EC_KEY *eckey) in EC_KEY_generate_key() argument 246 return FIPS_ec_key_generate_key(eckey); in EC_KEY_generate_key() 249 if (!eckey || !eckey->group) in EC_KEY_generate_key() 258 if (eckey->priv_key == NULL) in EC_KEY_generate_key() 265 priv_key = eckey->priv_key; in EC_KEY_generate_key() 267 if (!EC_GROUP_get_order(eckey->group, order, ctx)) in EC_KEY_generate_key() 275 if (eckey->pub_key == NULL) in EC_KEY_generate_key() 277 pub_key = EC_POINT_new(eckey->group); in EC_KEY_generate_key() 282 pub_key = eckey->pub_key; in EC_KEY_generate_key() 284 if (!EC_POINT_mul(eckey->group, pub_key, priv_key, NULL, NULL, ctx)) in EC_KEY_generate_key() [all …]
|
D | ec_ameth.c | 141 EC_KEY *eckey = NULL; in eckey_type2param() local 149 if (!(eckey = d2i_ECParameters(NULL, &pm, pmlen))) in eckey_type2param() 163 if ((eckey = EC_KEY_new()) == NULL) in eckey_type2param() 172 if (EC_KEY_set_group(eckey, group) == 0) in eckey_type2param() 182 return eckey; in eckey_type2param() 185 if (eckey) in eckey_type2param() 186 EC_KEY_free(eckey); in eckey_type2param() 195 EC_KEY *eckey = NULL; in eckey_pub_decode() local 202 eckey = eckey_type2param(ptype, pval); in eckey_pub_decode() 204 if (!eckey) in eckey_pub_decode() [all …]
|
D | 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);
|
/external/openssl/apps/ |
D | ec.c | 89 EC_KEY *eckey = NULL; in MAIN() local 286 eckey = d2i_EC_PUBKEY_bio(in, NULL); in MAIN() 288 eckey = d2i_ECPrivateKey_bio(in, NULL); in MAIN() 293 eckey = PEM_read_bio_EC_PUBKEY(in, NULL, NULL, in MAIN() 296 eckey = PEM_read_bio_ECPrivateKey(in, NULL, NULL, in MAIN() 304 if (eckey == NULL) in MAIN() 330 group = EC_KEY_get0_group(eckey); in MAIN() 333 EC_KEY_set_conv_form(eckey, form); in MAIN() 336 EC_KEY_set_asn1_flag(eckey, asn1_flag); in MAIN() 339 if (!EC_KEY_print(out, eckey, 0)) in MAIN() [all …]
|
D | ecparam.c | 642 EC_KEY *eckey = EC_KEY_new(); in MAIN() local 644 if (eckey == NULL) in MAIN() 649 if (EC_KEY_set_group(eckey, group) == 0) in MAIN() 652 if (!EC_KEY_generate_key(eckey)) in MAIN() 654 EC_KEY_free(eckey); in MAIN() 658 i = i2d_ECPrivateKey_bio(out, eckey); in MAIN() 660 i = PEM_write_bio_ECPrivateKey(out, eckey, NULL, in MAIN() 666 EC_KEY_free(eckey); in MAIN() 669 EC_KEY_free(eckey); in MAIN()
|
/external/openssl/include/openssl/ |
D | ecdsa.h | 118 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst,int dgst_len,EC_KEY *eckey); 131 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey); 143 const ECDSA_SIG *sig, EC_KEY* eckey); 162 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth); 168 int ECDSA_size(const EC_KEY *eckey); 177 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, 191 unsigned char *sig, unsigned int *siglen, EC_KEY *eckey); 209 const BIGNUM *rp, EC_KEY *eckey); 223 const unsigned char *sig, int siglen, EC_KEY *eckey);
|
D | 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);
|
D | 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);
|
D | evp.h | 466 #define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\ argument 467 (char *)(eckey))
|
/external/openssl/crypto/x509/ |
D | x_all.c | 341 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) in d2i_EC_PUBKEY_fp() argument 343 return ASN1_d2i_fp_of(EC_KEY,EC_KEY_new,d2i_EC_PUBKEY,fp,eckey); in d2i_EC_PUBKEY_fp() 346 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey) in i2d_EC_PUBKEY_fp() argument 348 return ASN1_i2d_fp_of(EC_KEY,i2d_EC_PUBKEY,fp,eckey); in i2d_EC_PUBKEY_fp() 351 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey) in d2i_ECPrivateKey_fp() argument 353 return ASN1_d2i_fp_of(EC_KEY,EC_KEY_new,d2i_ECPrivateKey,fp,eckey); in d2i_ECPrivateKey_fp() 356 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey) in i2d_ECPrivateKey_fp() argument 358 return ASN1_i2d_fp_of(EC_KEY,i2d_ECPrivateKey,fp,eckey); in i2d_ECPrivateKey_fp() 361 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) in d2i_EC_PUBKEY_bio() argument 363 return ASN1_d2i_bio_of(EC_KEY,EC_KEY_new,d2i_EC_PUBKEY,bp,eckey); in d2i_EC_PUBKEY_bio() [all …]
|
D | 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);
|
/external/openssl/crypto/ecdh/ |
D | ech_key.c | 73 EC_KEY *eckey, in ECDH_compute_key() argument 76 ECDH_DATA *ecdh = ecdh_check(eckey); in ECDH_compute_key() 79 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF); in ECDH_compute_key()
|
D | ech_lib.c | 109 int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) in ECDH_set_method() argument 113 ecdh = ecdh_check(eckey); in ECDH_set_method() 121 mtmp->finish(eckey); in ECDH_set_method() 133 meth->init(eckey); in ECDH_set_method()
|
D | ech_locl.h | 71 int (*init)(EC_KEY *eckey); 72 int (*finish)(EC_KEY *eckey);
|
/external/openssl/crypto/pem/ |
D | 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) in IMPLEMENT_PEM_rw_const() 360 if(eckey) in IMPLEMENT_PEM_rw_const() 362 EC_KEY_free(*eckey); in IMPLEMENT_PEM_rw_const() 363 *eckey = dtmp; in IMPLEMENT_PEM_rw_const() 439 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, in IMPLEMENT_PEM_rw() 444 return pkey_get_eckey(pktmp, eckey); /* will free pktmp */ in IMPLEMENT_PEM_rw()
|
/external/openssl/crypto/evp/ |
D | evp.h | 466 #define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\ argument 467 (char *)(eckey))
|