Home
last modified time | relevance | path

Searched refs:EC_KEY (Results 1 – 25 of 43) sorted by relevance

12

/external/boringssl/src/include/openssl/
Dec_key.h89 OPENSSL_EXPORT EC_KEY *EC_KEY_new(void);
93 OPENSSL_EXPORT EC_KEY *EC_KEY_new_method(const ENGINE *engine);
97 OPENSSL_EXPORT EC_KEY *EC_KEY_new_by_curve_name(int nid);
100 OPENSSL_EXPORT void EC_KEY_free(EC_KEY *key);
103 OPENSSL_EXPORT EC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src);
106 OPENSSL_EXPORT EC_KEY *EC_KEY_dup(const EC_KEY *src);
110 OPENSSL_EXPORT int EC_KEY_up_ref(EC_KEY *key);
114 OPENSSL_EXPORT int EC_KEY_is_opaque(const EC_KEY *key);
117 OPENSSL_EXPORT const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
121 OPENSSL_EXPORT int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
[all …]
Decdsa.h78 unsigned int *sig_len, EC_KEY *key);
86 size_t sig_len, EC_KEY *key);
90 OPENSSL_EXPORT size_t ECDSA_size(const EC_KEY *key);
112 size_t digest_len, EC_KEY *key);
118 const ECDSA_SIG *sig, EC_KEY *key);
131 OPENSSL_EXPORT int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
139 EC_KEY *eckey);
146 const BIGNUM *rp, EC_KEY *eckey);
Devp.h161 OPENSSL_EXPORT int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key);
162 OPENSSL_EXPORT int EVP_PKEY_assign_EC_KEY(EVP_PKEY *pkey, EC_KEY *key);
163 OPENSSL_EXPORT EC_KEY *EVP_PKEY_get0_EC_KEY(EVP_PKEY *pkey);
164 OPENSSL_EXPORT EC_KEY *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
690 EC_KEY *ec;
Dx509.h658 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey);
659 OPENSSL_EXPORT int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey);
660 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey);
661 OPENSSL_EXPORT int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey);
692 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey);
693 OPENSSL_EXPORT int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey);
694 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey);
695 OPENSSL_EXPORT int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);
757 OPENSSL_EXPORT int i2d_EC_PUBKEY(const EC_KEY *a, unsigned char **pp);
758 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp,
Decdh.h89 const EC_POINT *pub_key, EC_KEY *priv_key,
/external/boringssl/src/crypto/ec/
Dec_key.c85 EC_KEY *EC_KEY_new(void) { return EC_KEY_new_method(NULL); } in EC_KEY_new()
87 EC_KEY *EC_KEY_new_method(const ENGINE *engine) { in EC_KEY_new_method()
88 EC_KEY *ret = (EC_KEY *)OPENSSL_malloc(sizeof(EC_KEY)); in EC_KEY_new_method()
94 memset(ret, 0, sizeof(EC_KEY)); in EC_KEY_new_method()
121 EC_KEY *EC_KEY_new_by_curve_name(int nid) { in EC_KEY_new_by_curve_name()
122 EC_KEY *ret = EC_KEY_new(); in EC_KEY_new_by_curve_name()
135 void EC_KEY_free(EC_KEY *r) { in EC_KEY_free()
157 OPENSSL_cleanse((void *)r, sizeof(EC_KEY)); in EC_KEY_free()
161 EC_KEY *EC_KEY_copy(EC_KEY *dest, const EC_KEY *src) { in EC_KEY_copy()
218 EC_KEY *EC_KEY_dup(const EC_KEY *ec_key) { in EC_KEY_dup()
[all …]
Dec_asn1.c285 EC_KEY *d2i_ECPrivateKey(EC_KEY **a, const uint8_t **inp, long len) { in d2i_ECPrivateKey()
287 EC_KEY *ret = NULL; in d2i_ECPrivateKey()
391 int i2d_ECPrivateKey(const EC_KEY *key, uint8_t **outp) { in i2d_ECPrivateKey()
484 int i2d_ECParameters(const EC_KEY *key, uint8_t **outp) { in i2d_ECParameters()
492 EC_KEY *d2i_ECParameters(EC_KEY **key, const uint8_t **inp, long len) { in d2i_ECParameters()
493 EC_KEY *ret; in d2i_ECParameters()
524 EC_KEY *o2i_ECPublicKey(EC_KEY **keyp, const uint8_t **inp, long len) { in o2i_ECPublicKey()
525 EC_KEY *ret = NULL; in o2i_ECPublicKey()
547 int i2o_ECPublicKey(const EC_KEY *key, uint8_t **outp) { in i2o_ECPublicKey()
/external/boringssl/src/crypto/pem/
Dpem_all.c123 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey);
227 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey) in IMPLEMENT_PEM_rw_const()
229 EC_KEY *dtmp; in IMPLEMENT_PEM_rw_const()
242 EC_KEY *PEM_read_bio_ECPrivateKey(BIO *bp, EC_KEY **key, pem_password_cb *cb, in PEM_read_bio_ECPrivateKey()
250 IMPLEMENT_PEM_write_cb(ECPrivateKey, EC_KEY, PEM_STRING_ECPRIVATEKEY, ECPrivateKey) in IMPLEMENT_PEM_write_cb() argument
253 IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY) in IMPLEMENT_PEM_write_cb()
257 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, in IMPLEMENT_PEM_write_cb()
/external/boringssl/src/crypto/x509/
Dx_all.c313 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) in d2i_EC_PUBKEY_fp()
315 return ASN1_d2i_fp_of(EC_KEY,EC_KEY_new,d2i_EC_PUBKEY,fp,eckey); in d2i_EC_PUBKEY_fp()
318 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey) in i2d_EC_PUBKEY_fp()
320 return ASN1_i2d_fp_of_const(EC_KEY,i2d_EC_PUBKEY,fp,eckey); in i2d_EC_PUBKEY_fp()
323 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey) in d2i_ECPrivateKey_fp()
325 return ASN1_d2i_fp_of(EC_KEY,EC_KEY_new,d2i_ECPrivateKey,fp,eckey); in d2i_ECPrivateKey_fp()
328 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey) in i2d_ECPrivateKey_fp()
330 return ASN1_i2d_fp_of_const(EC_KEY,i2d_ECPrivateKey,fp,eckey); in i2d_ECPrivateKey_fp()
333 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) in d2i_EC_PUBKEY_bio()
335 return ASN1_d2i_bio_of(EC_KEY,EC_KEY_new,d2i_EC_PUBKEY,bp,eckey); in d2i_EC_PUBKEY_bio()
[all …]
Dx_pubkey.c314 EC_KEY *d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp, long length) in d2i_EC_PUBKEY()
317 EC_KEY *key; in d2i_EC_PUBKEY()
334 int i2d_EC_PUBKEY(const EC_KEY *a, unsigned char **pp) in i2d_EC_PUBKEY()
344 EVP_PKEY_set1_EC_KEY(pktmp, (EC_KEY*) a); in i2d_EC_PUBKEY()
/external/openssh/
Dsshkey.h37 # define EC_KEY void macro
44 # define EC_KEY void macro
105 EC_KEY *ecdsa;
150 int sshkey_ecdsa_key_to_nid(EC_KEY *);
153 int sshkey_ec_validate_private(const EC_KEY *);
176 void sshkey_dump_ec_key(const EC_KEY *);
220 # undef EC_KEY
224 # undef EC_KEY
Dkex.h41 # define EC_KEY void macro
46 # define EC_KEY void macro
155 EC_KEY *ec_client_key; /* ECDH */
225 # undef EC_KEY
Dpacket.h26 # define EC_KEY void macro
32 # define EC_KEY void macro
197 # undef EC_KEY
201 # undef EC_KEY
Dkexecdhc.c58 EC_KEY *client_key = NULL; in kexecdh_client()
104 EC_KEY *client_key; in input_kex_ecdh_reply()
Dsshbuf-getput-crypto.c111 sshbuf_get_eckey(struct sshbuf *buf, EC_KEY *v) in sshbuf_get_eckey()
218 sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v) in sshbuf_put_eckey()
Dsshbuf.h221 int sshbuf_get_eckey(struct sshbuf *buf, EC_KEY *v);
223 int sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v);
Dkey.h81 int key_ec_validate_private(const EC_KEY *);
/external/boringssl/src/crypto/evp/
Dp_ec_asn1.c69 static int eckey_param2type(int *pptype, void **ppval, EC_KEY *ec_key) { in eckey_param2type()
90 EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode()
130 static EC_KEY *eckey_type2param(int ptype, void *pval) { in eckey_type2param()
131 EC_KEY *eckey = NULL; in eckey_type2param()
170 EC_KEY *eckey = NULL; in eckey_pub_decode()
219 EC_KEY *eckey = NULL; in eckey_priv_decode()
284 EC_KEY *ec_key; in eckey_priv_encode()
374 static int do_EC_KEY_print(BIO *bp, const EC_KEY *x, int off, int ktype) { in do_EC_KEY_print()
479 EC_KEY *eckey; in eckey_param_decode()
514 EC_KEY *ec; in old_ec_priv_decode()
Dp_ec.c129 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_ec_sign()
156 EC_KEY *eckey; in pkey_ec_derive()
229 EC_KEY *ec = NULL; in pkey_ec_paramgen()
251 EC_KEY *ec = NULL; in pkey_ec_keygen()
Devp.c277 int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) { in EVP_PKEY_set1_EC_KEY()
285 int EVP_PKEY_assign_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) { in EVP_PKEY_assign_EC_KEY()
289 EC_KEY *EVP_PKEY_get0_EC_KEY(EVP_PKEY *pkey) { in EVP_PKEY_get0_EC_KEY()
297 EC_KEY *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) { in EVP_PKEY_get1_EC_KEY()
298 EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(pkey); in EVP_PKEY_get1_EC_KEY()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c67 unsigned int *sig_len, EC_KEY *eckey) { in ECDSA_sign()
77 const uint8_t *sig, size_t sig_len, EC_KEY *eckey) { in ECDSA_verify()
138 EC_KEY *key) { in ECDSA_do_sign()
143 const ECDSA_SIG *sig, EC_KEY *eckey) { in ECDSA_do_verify()
233 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ecdsa_sign_setup()
352 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp) { in ECDSA_sign_setup()
358 EC_KEY *eckey) { in ECDSA_do_sign_ex()
455 const BIGNUM *r, EC_KEY *eckey) { in ECDSA_sign_ex()
Decdsa_test.cc75 EC_KEY *eckey, int expected_result) { in VerifyECDSASig()
105 EC_KEY *eckey, const BIGNUM *order) { in TestTamperedSig()
/external/libchrome/crypto/
Dscoped_openssl_types.h45 using ScopedEC_Key = ScopedOpenSSL<EC_KEY, EC_KEY_free>;
50 using ScopedEC_KEY = ScopedOpenSSL<EC_KEY, EC_KEY_free>;
/external/boringssl/src/ssl/
Ds3_lib.c297 int SSL_CTX_set_tmp_ecdh(SSL_CTX *ctx, const EC_KEY *ec_key) { in SSL_CTX_set_tmp_ecdh()
306 int SSL_set_tmp_ecdh(SSL *ssl, const EC_KEY *ec_key) { in SSL_set_tmp_ecdh()
338 EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(private_key); in SSL_set1_tls_channel_id()
/external/boringssl/src/crypto/ecdh/
Decdh.c78 EC_KEY *priv_key, in ECDH_compute_key()

12