Home
last modified time | relevance | path

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

123

/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);
122 size_t digest_len, const EC_KEY *key);
128 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);
906 EC_KEY *ec;
Dx509.h628 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey);
629 OPENSSL_EXPORT int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey);
630 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey);
631 OPENSSL_EXPORT int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey);
662 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey);
663 OPENSSL_EXPORT int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey);
664 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey);
665 OPENSSL_EXPORT int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);
734 OPENSSL_EXPORT int i2d_EC_PUBKEY(const EC_KEY *a, unsigned char **pp);
735 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp,
/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 …]
Dec_test.cc108 static bssl::UniquePtr<EC_KEY> DecodeECPrivateKey(const uint8_t *in, in DecodeECPrivateKey()
112 bssl::UniquePtr<EC_KEY> ret(EC_KEY_parse_private_key(&cbs, NULL)); in DecodeECPrivateKey()
121 static bool EncodeECPrivateKey(std::vector<uint8_t> *out, const EC_KEY *key) { in EncodeECPrivateKey()
136 bssl::UniquePtr<EC_KEY> key = in TEST()
169 bssl::UniquePtr<EC_KEY> key = in TEST()
185 bssl::UniquePtr<EC_KEY> key = in TEST()
201 bssl::UniquePtr<EC_KEY> key(EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)); in TEST()
265 bssl::UniquePtr<EC_KEY> key2(EC_KEY_new()); in TEST()
336 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST()
351 bssl::UniquePtr<EC_KEY> key(EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)); in TEST()
[all …]
/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()
421 EC_KEY *d2i_ECPrivateKey(EC_KEY **out, const uint8_t **inp, long len) { in d2i_ECPrivateKey()
435 EC_KEY *ret = EC_KEY_parse_private_key(&cbs, group); in d2i_ECPrivateKey()
447 int i2d_ECPrivateKey(const EC_KEY *key, uint8_t **outp) { in i2d_ECPrivateKey()
457 EC_KEY *d2i_ECParameters(EC_KEY **out_key, const uint8_t **inp, long len) { in d2i_ECParameters()
469 EC_KEY *ret = EC_KEY_new(); in d2i_ECParameters()
485 int i2d_ECParameters(const EC_KEY *key, uint8_t **outp) { in i2d_ECParameters()
500 EC_KEY *o2i_ECPublicKey(EC_KEY **keyp, const uint8_t **inp, long len) { in o2i_ECPublicKey()
[all …]
/external/openssh/
Dsshkey.h37 # define EC_KEY void macro
44 # define EC_KEY void macro
105 EC_KEY *ecdsa;
152 int sshkey_ecdsa_key_to_nid(EC_KEY *);
155 int sshkey_ec_validate_private(const EC_KEY *);
178 void sshkey_dump_ec_key(const EC_KEY *);
221 # undef EC_KEY
225 # undef EC_KEY
Dkex.h41 # define EC_KEY void macro
46 # define EC_KEY void macro
163 EC_KEY *ec_client_key; /* ECDH */
236 # undef EC_KEY
Dpacket.h26 # define EC_KEY void macro
32 # define EC_KEY void macro
207 # undef EC_KEY
211 # 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()
/external/boringssl/src/crypto/x509/
Dx_all.c292 IMPLEMENT_D2I_FP(EC_KEY, d2i_ECPrivateKey_fp, d2i_ECPrivateKey_bio)
293 IMPLEMENT_I2D_FP(EC_KEY, i2d_ECPrivateKey_fp, i2d_ECPrivateKey_bio)
295 IMPLEMENT_D2I_FP(EC_KEY, d2i_EC_PUBKEY_fp, d2i_EC_PUBKEY_bio)
296 IMPLEMENT_I2D_FP(EC_KEY, i2d_EC_PUBKEY_fp, i2d_EC_PUBKEY_bio)
299 IMPLEMENT_D2I_BIO(EC_KEY, d2i_ECPrivateKey_bio, d2i_ECPrivateKey)
300 IMPLEMENT_I2D_BIO(EC_KEY, i2d_ECPrivateKey_bio, i2d_ECPrivateKey)
302 IMPLEMENT_D2I_BIO(EC_KEY, d2i_EC_PUBKEY_bio, d2i_EC_PUBKEY)
303 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/evp/
Devp.c272 int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) { in EVP_PKEY_set1_EC_KEY()
280 int EVP_PKEY_assign_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) { in EVP_PKEY_assign_EC_KEY()
284 EC_KEY *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey) { in EVP_PKEY_get0_EC_KEY()
292 EC_KEY *EVP_PKEY_get1_EC_KEY(const EVP_PKEY *pkey) { in EVP_PKEY_get1_EC_KEY()
293 EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(pkey); in EVP_PKEY_get1_EC_KEY()
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()
Dp_ec.c122 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_ec_sign()
149 EC_KEY *eckey; in pkey_ec_derive()
230 EC_KEY *ec = EC_KEY_new(); in pkey_ec_keygen()
247 EC_KEY *ec = EC_KEY_new(); in pkey_ec_paramgen()
/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/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc117 const ECDSA_SIG *ecdsa_sig, EC_KEY *eckey, in VerifyECDSASig()
145 EC_KEY *eckey, const BIGNUM *order) { in TestTamperedSig()
209 bssl::UniquePtr<EC_KEY> eckey(EC_KEY_new()); in TEST()
215 bssl::UniquePtr<EC_KEY> wrong_eckey(EC_KEY_new()); in TEST()
390 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST()
436 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST()
Decdsa.c147 const ECDSA_SIG *sig, const EC_KEY *eckey) { in ECDSA_do_verify()
190 static int ecdsa_sign_setup(const EC_KEY *eckey, EC_SCALAR *out_kinv_mont, in ecdsa_sign_setup()
249 const EC_KEY *eckey) { in ECDSA_do_sign()
/external/boringssl/src/crypto/ecdh_extra/
Decdh_test.cc88 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST()
161 EC_KEY *peer_ec = EVP_PKEY_get0_EC_KEY(peer_evp.get()); in RunWycheproofTest()
164 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in RunWycheproofTest()
282 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST()
/external/boringssl/src/crypto/fipsmodule/self_check/
Dself_check.c196 static EC_KEY *self_test_ecdsa_key(void) { in self_test_ecdsa_key()
213 EC_KEY *ec_key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); in self_test_ecdsa_key()
386 EC_KEY *ec_key = NULL; in BORINGSSL_self_test()
/external/boringssl/src/fipstools/
Dcavp_ecdsa2_pkv_test.cc35 bssl::UniquePtr<EC_KEY> key(EC_KEY_new_by_curve_name(nid)); in TestECDSA2PKV()

123