Home
last modified time | relevance | path

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

12345

/external/boringssl/src/include/openssl/
Dec_key.h95 OPENSSL_EXPORT EC_KEY *EC_KEY_new(void);
99 OPENSSL_EXPORT EC_KEY *EC_KEY_new_method(const ENGINE *engine);
103 OPENSSL_EXPORT EC_KEY *EC_KEY_new_by_curve_name(int nid);
106 OPENSSL_EXPORT void EC_KEY_free(EC_KEY *key);
109 OPENSSL_EXPORT EC_KEY *EC_KEY_dup(const EC_KEY *src);
113 OPENSSL_EXPORT int EC_KEY_up_ref(EC_KEY *key);
117 OPENSSL_EXPORT int EC_KEY_is_opaque(const EC_KEY *key);
120 OPENSSL_EXPORT const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
125 OPENSSL_EXPORT int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
128 OPENSSL_EXPORT const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key);
[all …]
Decdsa.h78 unsigned int *sig_len, const EC_KEY *key);
86 size_t sig_len, const EC_KEY *key);
90 OPENSSL_EXPORT size_t ECDSA_size(const EC_KEY *key);
128 size_t digest_len, const EC_KEY *key);
134 const ECDSA_SIG *sig, const EC_KEY *key);
Decdh.h89 void *out, size_t outlen, const EC_POINT *pub_key, const EC_KEY *priv_key,
106 const EC_KEY *priv_key);
Devp.h168 OPENSSL_EXPORT int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key);
169 OPENSSL_EXPORT int EVP_PKEY_assign_EC_KEY(EVP_PKEY *pkey, EC_KEY *key);
170 OPENSSL_EXPORT EC_KEY *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey);
171 OPENSSL_EXPORT EC_KEY *EVP_PKEY_get1_EC_KEY(const EVP_PKEY *pkey);
1019 OPENSSL_EXPORT int i2d_EC_PUBKEY(const EC_KEY *ec_key, uint8_t **outp);
1028 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY(EC_KEY **out, const uint8_t **inp,
1069 EC_KEY *ec;
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/
Dec_key.h95 OPENSSL_EXPORT EC_KEY *EC_KEY_new(void);
99 OPENSSL_EXPORT EC_KEY *EC_KEY_new_method(const ENGINE *engine);
103 OPENSSL_EXPORT EC_KEY *EC_KEY_new_by_curve_name(int nid);
106 OPENSSL_EXPORT void EC_KEY_free(EC_KEY *key);
109 OPENSSL_EXPORT EC_KEY *EC_KEY_dup(const EC_KEY *src);
113 OPENSSL_EXPORT int EC_KEY_up_ref(EC_KEY *key);
117 OPENSSL_EXPORT int EC_KEY_is_opaque(const EC_KEY *key);
120 OPENSSL_EXPORT const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
125 OPENSSL_EXPORT int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
128 OPENSSL_EXPORT const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key);
[all …]
Decdsa.h78 unsigned int *sig_len, const EC_KEY *key);
86 size_t sig_len, const EC_KEY *key);
90 OPENSSL_EXPORT size_t ECDSA_size(const EC_KEY *key);
128 size_t digest_len, const EC_KEY *key);
134 const ECDSA_SIG *sig, const EC_KEY *key);
Decdh.h89 void *out, size_t outlen, const EC_POINT *pub_key, const EC_KEY *priv_key,
106 const EC_KEY *priv_key);
/external/boringssl/src/crypto/fipsmodule/ec/
Dec_key.c106 EC_KEY *EC_KEY_new(void) { return EC_KEY_new_method(NULL); } in EC_KEY_new()
108 EC_KEY *EC_KEY_new_method(const ENGINE *engine) { in EC_KEY_new_method()
109 EC_KEY *ret = OPENSSL_malloc(sizeof(EC_KEY)); in EC_KEY_new_method()
115 OPENSSL_memset(ret, 0, sizeof(EC_KEY)); in EC_KEY_new_method()
141 EC_KEY *EC_KEY_new_by_curve_name(int nid) { in EC_KEY_new_by_curve_name()
142 EC_KEY *ret = EC_KEY_new(); in EC_KEY_new_by_curve_name()
155 void EC_KEY_free(EC_KEY *r) { in EC_KEY_free()
181 EC_KEY *EC_KEY_dup(const EC_KEY *src) { in EC_KEY_dup()
187 EC_KEY *ret = EC_KEY_new(); in EC_KEY_dup()
207 int EC_KEY_up_ref(EC_KEY *r) { in EC_KEY_up_ref()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ec/
Dec_key.c106 EC_KEY *EC_KEY_new(void) { return EC_KEY_new_method(NULL); } in EC_KEY_new()
108 EC_KEY *EC_KEY_new_method(const ENGINE *engine) { in EC_KEY_new_method()
109 EC_KEY *ret = OPENSSL_malloc(sizeof(EC_KEY)); in EC_KEY_new_method()
115 OPENSSL_memset(ret, 0, sizeof(EC_KEY)); in EC_KEY_new_method()
141 EC_KEY *EC_KEY_new_by_curve_name(int nid) { in EC_KEY_new_by_curve_name()
142 EC_KEY *ret = EC_KEY_new(); in EC_KEY_new_by_curve_name()
155 void EC_KEY_free(EC_KEY *r) { in EC_KEY_free()
181 EC_KEY *EC_KEY_dup(const EC_KEY *src) { in EC_KEY_dup()
187 EC_KEY *ret = EC_KEY_new(); in EC_KEY_dup()
207 int EC_KEY_up_ref(EC_KEY *r) { in EC_KEY_up_ref()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/pem/
Dpem_all.c122 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey);
220 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey) in IMPLEMENT_PEM_rw_const()
222 EC_KEY *dtmp; in IMPLEMENT_PEM_rw_const()
236 EC_KEY *PEM_read_bio_ECPrivateKey(BIO *bp, EC_KEY **key, pem_password_cb *cb, in PEM_read_bio_ECPrivateKey()
244 IMPLEMENT_PEM_write_cb(ECPrivateKey, EC_KEY, PEM_STRING_ECPRIVATEKEY, in IMPLEMENT_PEM_write_cb() argument
247 IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY) in IMPLEMENT_PEM_write_cb()
249 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, in IMPLEMENT_PEM_write_cb()
/external/boringssl/src/crypto/pem/
Dpem_all.c122 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey);
220 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey) in IMPLEMENT_PEM_rw_const()
222 EC_KEY *dtmp; in IMPLEMENT_PEM_rw_const()
236 EC_KEY *PEM_read_bio_ECPrivateKey(BIO *bp, EC_KEY **key, pem_password_cb *cb, in PEM_read_bio_ECPrivateKey()
244 IMPLEMENT_PEM_write_cb(ECPrivateKey, EC_KEY, PEM_STRING_ECPRIVATEKEY, in IMPLEMENT_PEM_write_cb() argument
247 IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY) in IMPLEMENT_PEM_write_cb()
249 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, in IMPLEMENT_PEM_write_cb()
/external/boringssl/src/crypto/ec_extra/
Dec_asn1.c75 EC_KEY *EC_KEY_parse_private_key(CBS *cbs, const EC_GROUP *group) { in EC_KEY_parse_private_key()
88 EC_KEY *ret = NULL; in EC_KEY_parse_private_key()
192 int EC_KEY_marshal_private_key(CBB *cbb, const EC_KEY *key, in EC_KEY_marshal_private_key()
418 EC_KEY *d2i_ECPrivateKey(EC_KEY **out, const uint8_t **inp, long len) { in d2i_ECPrivateKey()
432 EC_KEY *ret = EC_KEY_parse_private_key(&cbs, group); in d2i_ECPrivateKey()
444 int i2d_ECPrivateKey(const EC_KEY *key, uint8_t **outp) { in i2d_ECPrivateKey()
454 EC_KEY *d2i_ECParameters(EC_KEY **out_key, const uint8_t **inp, long len) { in d2i_ECParameters()
466 EC_KEY *ret = EC_KEY_new(); in d2i_ECParameters()
482 int i2d_ECParameters(const EC_KEY *key, uint8_t **outp) { in i2d_ECParameters()
497 EC_KEY *o2i_ECPublicKey(EC_KEY **keyp, const uint8_t **inp, long len) { in o2i_ECPublicKey()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/ec_extra/
Dec_asn1.c75 EC_KEY *EC_KEY_parse_private_key(CBS *cbs, const EC_GROUP *group) { in EC_KEY_parse_private_key()
88 EC_KEY *ret = NULL; in EC_KEY_parse_private_key()
192 int EC_KEY_marshal_private_key(CBB *cbb, const EC_KEY *key, in EC_KEY_marshal_private_key()
433 EC_KEY *d2i_ECPrivateKey(EC_KEY **out, const uint8_t **inp, long len) { in d2i_ECPrivateKey()
447 EC_KEY *ret = EC_KEY_parse_private_key(&cbs, group); in d2i_ECPrivateKey()
459 int i2d_ECPrivateKey(const EC_KEY *key, uint8_t **outp) { in i2d_ECPrivateKey()
469 EC_KEY *d2i_ECParameters(EC_KEY **out_key, const uint8_t **inp, long len) { in d2i_ECParameters()
481 EC_KEY *ret = EC_KEY_new(); in d2i_ECParameters()
497 int i2d_ECParameters(const EC_KEY *key, uint8_t **outp) { in i2d_ECParameters()
512 EC_KEY *o2i_ECPublicKey(EC_KEY **keyp, const uint8_t **inp, long len) { in o2i_ECPublicKey()
[all …]
/external/openssh/
Dsshkey.h38 # define EC_KEY void macro
46 # define EC_KEY void macro
132 EC_KEY *ecdsa;
215 int sshkey_ecdsa_key_to_nid(EC_KEY *);
218 int sshkey_ec_validate_private(const EC_KEY *);
246 void sshkey_dump_ec_key(const EC_KEY *);
323 # undef EC_KEY
327 # undef EC_KEY
Dkexecdh.c46 kex_ecdh_dec_key_group(struct kex *, const struct sshbuf *, EC_KEY *key,
52 EC_KEY *client_key = NULL; in kex_ecdh_keypair()
97 EC_KEY *server_key = NULL; in kex_ecdh_enc()
139 EC_KEY *key, const EC_GROUP *group, struct sshbuf **shared_secretp) in kex_ecdh_dec_key_group()
Dkex.h39 # define EC_KEY void macro
46 # define EC_KEY void macro
167 EC_KEY *ec_client_key; /* ECDH */
254 # undef EC_KEY
/external/rust/crates/quiche/deps/boringssl/src/crypto/x509/
Dx_all.c291 IMPLEMENT_D2I_FP(EC_KEY, d2i_ECPrivateKey_fp, d2i_ECPrivateKey_bio)
292 IMPLEMENT_I2D_FP(EC_KEY, i2d_ECPrivateKey_fp, i2d_ECPrivateKey_bio)
294 IMPLEMENT_D2I_FP(EC_KEY, d2i_EC_PUBKEY_fp, d2i_EC_PUBKEY_bio)
295 IMPLEMENT_I2D_FP(EC_KEY, i2d_EC_PUBKEY_fp, i2d_EC_PUBKEY_bio)
298 IMPLEMENT_D2I_BIO(EC_KEY, d2i_ECPrivateKey_bio, d2i_ECPrivateKey)
299 IMPLEMENT_I2D_BIO(EC_KEY, i2d_ECPrivateKey_bio, i2d_ECPrivateKey)
301 IMPLEMENT_D2I_BIO(EC_KEY, d2i_EC_PUBKEY_bio, d2i_EC_PUBKEY)
302 IMPLEMENT_I2D_BIO(EC_KEY, i2d_EC_PUBKEY_bio, i2d_EC_PUBKEY)
Dx_pubkey.c300 EC_KEY *d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp, long length) in d2i_EC_PUBKEY()
303 EC_KEY *key; in d2i_EC_PUBKEY()
321 int i2d_EC_PUBKEY(const EC_KEY *a, unsigned char **pp) in i2d_EC_PUBKEY()
331 EVP_PKEY_set1_EC_KEY(pktmp, (EC_KEY *)a); in i2d_EC_PUBKEY()
/external/boringssl/src/crypto/x509/
Dx_all.c291 IMPLEMENT_D2I_FP(EC_KEY, d2i_ECPrivateKey_fp, d2i_ECPrivateKey_bio)
292 IMPLEMENT_I2D_FP(EC_KEY, i2d_ECPrivateKey_fp, i2d_ECPrivateKey_bio)
294 IMPLEMENT_D2I_FP(EC_KEY, d2i_EC_PUBKEY_fp, d2i_EC_PUBKEY_bio)
295 IMPLEMENT_I2D_FP(EC_KEY, i2d_EC_PUBKEY_fp, i2d_EC_PUBKEY_bio)
298 IMPLEMENT_D2I_BIO(EC_KEY, d2i_ECPrivateKey_bio, d2i_ECPrivateKey)
299 IMPLEMENT_I2D_BIO(EC_KEY, i2d_ECPrivateKey_bio, i2d_ECPrivateKey)
301 IMPLEMENT_D2I_BIO(EC_KEY, d2i_EC_PUBKEY_bio, d2i_EC_PUBKEY)
302 IMPLEMENT_I2D_BIO(EC_KEY, i2d_EC_PUBKEY_bio, i2d_EC_PUBKEY)
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/
Dp_ec.c121 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_ec_sign()
148 EC_KEY *eckey; in pkey_ec_derive()
229 EC_KEY *ec = EC_KEY_new(); in pkey_ec_keygen()
246 EC_KEY *ec = EC_KEY_new(); in pkey_ec_paramgen()
Dp_ec_asn1.c69 const EC_KEY *ec_key = key->pkey.ec; in eckey_pub_encode()
97 EC_KEY *eckey = NULL; in eckey_pub_decode()
152 EC_KEY *ec_key = EC_KEY_parse_private_key(key, group); in eckey_priv_decode()
165 const EC_KEY *ec_key = key->pkey.ec; in eckey_priv_encode()
/external/boringssl/src/crypto/evp/
Dp_ec.c121 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_ec_sign()
148 EC_KEY *eckey; in pkey_ec_derive()
229 EC_KEY *ec = EC_KEY_new(); in pkey_ec_keygen()
246 EC_KEY *ec = EC_KEY_new(); in pkey_ec_paramgen()
Dp_ec_asn1.c69 const EC_KEY *ec_key = key->pkey.ec; in eckey_pub_encode()
97 EC_KEY *eckey = NULL; in eckey_pub_decode()
152 EC_KEY *ec_key = EC_KEY_parse_private_key(key, group); in eckey_priv_decode()
165 const EC_KEY *ec_key = key->pkey.ec; in eckey_priv_encode()
/external/boringssl/src/crypto/ecdsa_extra/
Decdsa_asn1.c70 unsigned int *sig_len, const EC_KEY *eckey) { in ECDSA_sign()
73 (EC_KEY*) eckey /* cast away const */); in ECDSA_sign()
103 const uint8_t *sig, size_t sig_len, const EC_KEY *eckey) { in ECDSA_verify()
132 size_t ECDSA_size(const EC_KEY *key) { in ECDSA_size()
/external/rust/crates/quiche/deps/boringssl/src/crypto/ecdsa_extra/
Decdsa_asn1.c70 unsigned int *sig_len, const EC_KEY *eckey) { in ECDSA_sign()
73 (EC_KEY*) eckey /* cast away const */); in ECDSA_sign()
103 const uint8_t *sig, size_t sig_len, const EC_KEY *eckey) { in ECDSA_verify()
132 size_t ECDSA_size(const EC_KEY *key) { in ECDSA_size()

12345