/third_party/node/deps/openssl/openssl/crypto/ec/ |
H A D | ec_key.c | 29 static int ecdsa_keygen_pairwise_test(EC_KEY *eckey, OSSL_CALLBACK *cb, 204 ENGINE *EC_KEY_get0_engine(const EC_KEY *eckey) in EC_KEY_get0_engine() argument 206 return eckey->engine; in EC_KEY_get0_engine() 209 int EC_KEY_generate_key(EC_KEY *eckey) in EC_KEY_generate_key() argument 211 if (eckey == NULL || eckey->group == NULL) { in EC_KEY_generate_key() 215 if (eckey->meth->keygen != NULL) { in EC_KEY_generate_key() 218 ret = eckey->meth->keygen(eckey); in EC_KEY_generate_key() 220 eckey in EC_KEY_generate_key() 228 ossl_ec_key_gen(EC_KEY *eckey) ossl_ec_key_gen() argument 251 ec_generate_key(EC_KEY *eckey, int pairwise_test) ec_generate_key() argument 353 ossl_ec_key_simple_generate_key(EC_KEY *eckey) ossl_ec_key_simple_generate_key() argument 358 ossl_ec_key_simple_generate_public_key(EC_KEY *eckey) ossl_ec_key_simple_generate_public_key() argument 380 EC_KEY_check_key(const EC_KEY *eckey) EC_KEY_check_key() argument 441 ossl_ec_key_public_check_quick(const EC_KEY *eckey, BN_CTX *ctx) ossl_ec_key_public_check_quick() argument 472 ossl_ec_key_public_check(const EC_KEY *eckey, BN_CTX *ctx) ossl_ec_key_public_check() argument 510 ossl_ec_key_private_check(const EC_KEY *eckey) ossl_ec_key_private_check() argument 529 ossl_ec_key_pairwise_check(const EC_KEY *eckey, BN_CTX *ctx) ossl_ec_key_pairwise_check() argument 572 ossl_ec_key_simple_check_key(const EC_KEY *eckey) ossl_ec_key_simple_check_key() argument 899 EC_KEY_priv2oct(const EC_KEY *eckey, unsigned char *buf, size_t len) EC_KEY_priv2oct() argument 912 ossl_ec_key_simple_priv2oct(const EC_KEY *eckey, unsigned char *buf, size_t len) ossl_ec_key_simple_priv2oct() argument 935 EC_KEY_oct2priv(EC_KEY *eckey, const unsigned char *buf, size_t len) EC_KEY_oct2priv() argument 951 ossl_ec_key_simple_oct2priv(EC_KEY *eckey, const unsigned char *buf, size_t len) ossl_ec_key_simple_oct2priv() argument 968 EC_KEY_priv2buf(const EC_KEY *eckey, unsigned char **pbuf) EC_KEY_priv2buf() argument 989 EC_KEY_can_sign(const EC_KEY *eckey) EC_KEY_can_sign() argument 1006 ecdsa_keygen_pairwise_test(EC_KEY *eckey, OSSL_CALLBACK *cb, void *cbarg) ecdsa_keygen_pairwise_test() argument [all...] |
H A D | ecdsa_sign.c | 20 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey) in ECDSA_do_sign() argument 22 return ECDSA_do_sign_ex(dgst, dlen, NULL, NULL, eckey); in ECDSA_do_sign() 27 EC_KEY *eckey) in ECDSA_do_sign_ex() 29 if (eckey->meth->sign_sig != NULL) in ECDSA_do_sign_ex() 30 return eckey->meth->sign_sig(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex() 36 *sig, unsigned int *siglen, EC_KEY *eckey) in ECDSA_sign() 38 return ECDSA_sign_ex(type, dgst, dlen, sig, siglen, NULL, NULL, eckey); in ECDSA_sign() 43 const BIGNUM *r, EC_KEY *eckey) in ECDSA_sign_ex() 45 if (eckey in ECDSA_sign_ex() 25 ECDSA_do_sign_ex(const unsigned char *dgst, int dlen, const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) ECDSA_do_sign_ex() argument 35 ECDSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, EC_KEY *eckey) ECDSA_sign() argument 41 ECDSA_sign_ex(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) ECDSA_sign_ex() argument 51 ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) ECDSA_sign_setup() argument [all...] |
H A D | ecdsa_ossl.c | 32 int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ossl_ecdsa_sign_setup() argument 35 if (eckey->group->meth->ecdsa_sign_setup == NULL) { in ossl_ecdsa_sign_setup() 40 return eckey->group->meth->ecdsa_sign_setup(eckey, ctx_in, kinvp, rp); in ossl_ecdsa_sign_setup() 45 EC_KEY *eckey) in ossl_ecdsa_sign_sig() 47 if (eckey->group->meth->ecdsa_sign_sig == NULL) { in ossl_ecdsa_sign_sig() 52 return eckey->group->meth->ecdsa_sign_sig(dgst, dgst_len, in ossl_ecdsa_sign_sig() 53 in_kinv, in_r, eckey); in ossl_ecdsa_sign_sig() 57 const ECDSA_SIG *sig, EC_KEY *eckey) in ossl_ecdsa_verify_sig() 59 if (eckey in ossl_ecdsa_verify_sig() 43 ossl_ecdsa_sign_sig(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey) ossl_ecdsa_sign_sig() argument 56 ossl_ecdsa_verify_sig(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey) ossl_ecdsa_verify_sig() argument 67 ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) ossl_ecdsa_sign() argument 83 ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const unsigned char *dgst, int dlen) ecdsa_sign_setup() argument 198 ossl_ecdsa_simple_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) ossl_ecdsa_simple_sign_setup() argument 204 ossl_ecdsa_simple_sign_sig(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey) ossl_ecdsa_simple_sign_sig() argument 348 ossl_ecdsa_verify(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) ossl_ecdsa_verify() argument 373 ossl_ecdsa_simple_verify_sig(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey) ossl_ecdsa_simple_verify_sig() argument [all...] |
H A D | ec_ameth.c | 104 EC_KEY *eckey = NULL; in eckey_pub_decode() local 112 eckey = ossl_ec_key_param_from_x509_algor(palg, libctx, propq); in eckey_pub_decode() 114 if (!eckey) in eckey_pub_decode() 118 if (!o2i_ECPublicKey(&eckey, &p, pklen)) { in eckey_pub_decode() 123 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_pub_decode() 127 EC_KEY_free(eckey); in eckey_pub_decode() 152 EC_KEY *eckey = ossl_ec_key_from_pkcs8(p8, libctx, propq); in eckey_priv_decode_ex() local 154 if (eckey != NULL) { in eckey_priv_decode_ex() 156 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_priv_decode_ex() 349 EC_KEY *eckey; in eckey_param_decode() local 425 EC_KEY *eckey = pkey->pkey.ec; ec_pkey_check() local 438 EC_KEY *eckey = pkey->pkey.ec; ec_pkey_public_check() local 454 EC_KEY *eckey = pkey->pkey.ec; ec_pkey_param_check() local 476 const EC_KEY *eckey = NULL; ec_pkey_export_to() local 632 EC_KEY *eckey = from->pkey.ec; ec_pkey_copy() local [all...] |
H A D | ecdsa_vrf.c | 27 const ECDSA_SIG *sig, EC_KEY *eckey) in ECDSA_do_verify() 29 if (eckey->meth->verify_sig != NULL) in ECDSA_do_verify() 30 return eckey->meth->verify_sig(dgst, dgst_len, sig, eckey); in ECDSA_do_verify() 42 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ECDSA_verify() 44 if (eckey->meth->verify != NULL) in ECDSA_verify() 45 return eckey->meth->verify(type, dgst, dgst_len, sigbuf, sig_len, in ECDSA_verify() 46 eckey); in ECDSA_verify() 26 ECDSA_do_verify(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey) ECDSA_do_verify() argument 41 ECDSA_verify(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) ECDSA_verify() argument
|
H A D | ec_kmeth.c | 155 const EC_KEY *eckey, in ECDH_compute_key() 161 if (eckey->meth->compute_key == NULL) { in ECDH_compute_key() 169 if (!eckey->meth->compute_key(&sec, &seclen, pub_key, eckey)) in ECDH_compute_key() 238 EC_KEY *eckey), in EC_KEY_METHOD_set_sign() 239 int (*sign_setup)(EC_KEY *eckey, BN_CTX *ctx_in, in EC_KEY_METHOD_set_sign() 245 EC_KEY *eckey)) in EC_KEY_METHOD_set_sign() 256 int sig_len, EC_KEY *eckey), in EC_KEY_METHOD_set_verify() 260 EC_KEY *eckey)) in EC_KEY_METHOD_set_verify() 313 EC_KEY *eckey), in EC_KEY_METHOD_get_sign() 154 ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, const EC_KEY *eckey, void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen)) ECDH_compute_key() argument 233 EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth, int (*sign)(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey), int (*sign_setup)(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp), ECDSA_SIG *(*sign_sig)(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey)) EC_KEY_METHOD_set_sign() argument 252 EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth, int (*verify)(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, EC_KEY *eckey), int (*verify_sig)(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey)) EC_KEY_METHOD_set_verify() argument 308 EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth, int (**psign)(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey), int (**psign_setup)(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp), ECDSA_SIG *(**psign_sig)(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey)) EC_KEY_METHOD_get_sign() argument 330 EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth, int (**pverify)(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, EC_KEY *eckey), int (**pverify_sig)(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey)) EC_KEY_METHOD_get_verify() argument [all...] |
H A D | ec_local.h | 167 size_t (*priv2oct)(const EC_KEY *eckey, unsigned char *buf, size_t len); 168 int (*oct2priv)(EC_KEY *eckey, const unsigned char *buf, size_t len); 169 int (*set_private)(EC_KEY *eckey, const BIGNUM *priv_key); 170 int (*keygen)(EC_KEY *eckey); 171 int (*keycheck)(const EC_KEY *eckey); 172 int (*keygenpub)(EC_KEY *eckey); 174 void (*keyfinish)(EC_KEY *eckey); 179 int (*ecdsa_sign_setup)(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinvp, 183 EC_KEY *eckey); 185 const ECDSA_SIG *sig, EC_KEY *eckey); [all...] |
/third_party/openssl/crypto/ec/ |
H A D | ec_key.c | 29 static int ecdsa_keygen_pairwise_test(EC_KEY *eckey, OSSL_CALLBACK *cb, 204 ENGINE *EC_KEY_get0_engine(const EC_KEY *eckey) in EC_KEY_get0_engine() argument 206 return eckey->engine; in EC_KEY_get0_engine() 209 int EC_KEY_generate_key(EC_KEY *eckey) in EC_KEY_generate_key() argument 211 if (eckey == NULL || eckey->group == NULL) { in EC_KEY_generate_key() 215 if (eckey->meth->keygen != NULL) { in EC_KEY_generate_key() 218 ret = eckey->meth->keygen(eckey); in EC_KEY_generate_key() 220 eckey in EC_KEY_generate_key() 228 ossl_ec_key_gen(EC_KEY *eckey) ossl_ec_key_gen() argument 251 ec_generate_key(EC_KEY *eckey, int pairwise_test) ec_generate_key() argument 353 ossl_ec_key_simple_generate_key(EC_KEY *eckey) ossl_ec_key_simple_generate_key() argument 358 ossl_ec_key_simple_generate_public_key(EC_KEY *eckey) ossl_ec_key_simple_generate_public_key() argument 380 EC_KEY_check_key(const EC_KEY *eckey) EC_KEY_check_key() argument 441 ossl_ec_key_public_check_quick(const EC_KEY *eckey, BN_CTX *ctx) ossl_ec_key_public_check_quick() argument 472 ossl_ec_key_public_check(const EC_KEY *eckey, BN_CTX *ctx) ossl_ec_key_public_check() argument 510 ossl_ec_key_private_check(const EC_KEY *eckey) ossl_ec_key_private_check() argument 529 ossl_ec_key_pairwise_check(const EC_KEY *eckey, BN_CTX *ctx) ossl_ec_key_pairwise_check() argument 572 ossl_ec_key_simple_check_key(const EC_KEY *eckey) ossl_ec_key_simple_check_key() argument 899 EC_KEY_priv2oct(const EC_KEY *eckey, unsigned char *buf, size_t len) EC_KEY_priv2oct() argument 912 ossl_ec_key_simple_priv2oct(const EC_KEY *eckey, unsigned char *buf, size_t len) ossl_ec_key_simple_priv2oct() argument 935 EC_KEY_oct2priv(EC_KEY *eckey, const unsigned char *buf, size_t len) EC_KEY_oct2priv() argument 951 ossl_ec_key_simple_oct2priv(EC_KEY *eckey, const unsigned char *buf, size_t len) ossl_ec_key_simple_oct2priv() argument 968 EC_KEY_priv2buf(const EC_KEY *eckey, unsigned char **pbuf) EC_KEY_priv2buf() argument 989 EC_KEY_can_sign(const EC_KEY *eckey) EC_KEY_can_sign() argument 1006 ecdsa_keygen_pairwise_test(EC_KEY *eckey, OSSL_CALLBACK *cb, void *cbarg) ecdsa_keygen_pairwise_test() argument [all...] |
H A D | ecdsa_sign.c | 20 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey) in ECDSA_do_sign() argument 22 return ECDSA_do_sign_ex(dgst, dlen, NULL, NULL, eckey); in ECDSA_do_sign() 27 EC_KEY *eckey) in ECDSA_do_sign_ex() 29 if (eckey->meth->sign_sig != NULL) in ECDSA_do_sign_ex() 30 return eckey->meth->sign_sig(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex() 36 *sig, unsigned int *siglen, EC_KEY *eckey) in ECDSA_sign() 38 return ECDSA_sign_ex(type, dgst, dlen, sig, siglen, NULL, NULL, eckey); in ECDSA_sign() 43 const BIGNUM *r, EC_KEY *eckey) in ECDSA_sign_ex() 45 if (eckey in ECDSA_sign_ex() 25 ECDSA_do_sign_ex(const unsigned char *dgst, int dlen, const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) ECDSA_do_sign_ex() argument 35 ECDSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, EC_KEY *eckey) ECDSA_sign() argument 41 ECDSA_sign_ex(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) ECDSA_sign_ex() argument 51 ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) ECDSA_sign_setup() argument [all...] |
H A D | ecdsa_ossl.c | 32 int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ossl_ecdsa_sign_setup() argument 35 if (eckey->group->meth->ecdsa_sign_setup == NULL) { in ossl_ecdsa_sign_setup() 40 return eckey->group->meth->ecdsa_sign_setup(eckey, ctx_in, kinvp, rp); in ossl_ecdsa_sign_setup() 45 EC_KEY *eckey) in ossl_ecdsa_sign_sig() 47 if (eckey->group->meth->ecdsa_sign_sig == NULL) { in ossl_ecdsa_sign_sig() 52 return eckey->group->meth->ecdsa_sign_sig(dgst, dgst_len, in ossl_ecdsa_sign_sig() 53 in_kinv, in_r, eckey); in ossl_ecdsa_sign_sig() 57 const ECDSA_SIG *sig, EC_KEY *eckey) in ossl_ecdsa_verify_sig() 59 if (eckey in ossl_ecdsa_verify_sig() 43 ossl_ecdsa_sign_sig(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey) ossl_ecdsa_sign_sig() argument 56 ossl_ecdsa_verify_sig(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey) ossl_ecdsa_verify_sig() argument 67 ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) ossl_ecdsa_sign() argument 88 ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const unsigned char *dgst, int dlen) ecdsa_sign_setup() argument 203 ossl_ecdsa_simple_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) ossl_ecdsa_simple_sign_setup() argument 209 ossl_ecdsa_simple_sign_sig(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey) ossl_ecdsa_simple_sign_sig() argument 353 ossl_ecdsa_verify(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) ossl_ecdsa_verify() argument 378 ossl_ecdsa_simple_verify_sig(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey) ossl_ecdsa_simple_verify_sig() argument [all...] |
H A D | ec_ameth.c | 104 EC_KEY *eckey = NULL; in eckey_pub_decode() local 112 eckey = ossl_ec_key_param_from_x509_algor(palg, libctx, propq); in eckey_pub_decode() 114 if (!eckey) in eckey_pub_decode() 118 if (!o2i_ECPublicKey(&eckey, &p, pklen)) { in eckey_pub_decode() 123 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_pub_decode() 127 EC_KEY_free(eckey); in eckey_pub_decode() 152 EC_KEY *eckey = ossl_ec_key_from_pkcs8(p8, libctx, propq); in eckey_priv_decode_ex() local 154 if (eckey != NULL) { in eckey_priv_decode_ex() 156 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_priv_decode_ex() 349 EC_KEY *eckey; in eckey_param_decode() local 425 EC_KEY *eckey = pkey->pkey.ec; ec_pkey_check() local 438 EC_KEY *eckey = pkey->pkey.ec; ec_pkey_public_check() local 454 EC_KEY *eckey = pkey->pkey.ec; ec_pkey_param_check() local 476 const EC_KEY *eckey = NULL; ec_pkey_export_to() local 632 EC_KEY *eckey = from->pkey.ec; ec_pkey_copy() local [all...] |
H A D | ecdsa_vrf.c | 27 const ECDSA_SIG *sig, EC_KEY *eckey) in ECDSA_do_verify() 29 if (eckey->meth->verify_sig != NULL) in ECDSA_do_verify() 30 return eckey->meth->verify_sig(dgst, dgst_len, sig, eckey); in ECDSA_do_verify() 42 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ECDSA_verify() 44 if (eckey->meth->verify != NULL) in ECDSA_verify() 45 return eckey->meth->verify(type, dgst, dgst_len, sigbuf, sig_len, in ECDSA_verify() 46 eckey); in ECDSA_verify() 26 ECDSA_do_verify(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey) ECDSA_do_verify() argument 41 ECDSA_verify(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) ECDSA_verify() argument
|
H A D | ec_kmeth.c | 155 const EC_KEY *eckey, in ECDH_compute_key() 161 if (eckey->meth->compute_key == NULL) { in ECDH_compute_key() 169 if (!eckey->meth->compute_key(&sec, &seclen, pub_key, eckey)) in ECDH_compute_key() 238 EC_KEY *eckey), in EC_KEY_METHOD_set_sign() 239 int (*sign_setup)(EC_KEY *eckey, BN_CTX *ctx_in, in EC_KEY_METHOD_set_sign() 245 EC_KEY *eckey)) in EC_KEY_METHOD_set_sign() 256 int sig_len, EC_KEY *eckey), in EC_KEY_METHOD_set_verify() 260 EC_KEY *eckey)) in EC_KEY_METHOD_set_verify() 313 EC_KEY *eckey), in EC_KEY_METHOD_get_sign() 154 ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, const EC_KEY *eckey, void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen)) ECDH_compute_key() argument 233 EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth, int (*sign)(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey), int (*sign_setup)(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp), ECDSA_SIG *(*sign_sig)(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey)) EC_KEY_METHOD_set_sign() argument 252 EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth, int (*verify)(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, EC_KEY *eckey), int (*verify_sig)(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey)) EC_KEY_METHOD_set_verify() argument 308 EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth, int (**psign)(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey), int (**psign_setup)(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp), ECDSA_SIG *(**psign_sig)(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey)) EC_KEY_METHOD_get_sign() argument 330 EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth, int (**pverify)(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, EC_KEY *eckey), int (**pverify_sig)(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey)) EC_KEY_METHOD_get_verify() argument [all...] |
H A D | ec_local.h | 167 size_t (*priv2oct)(const EC_KEY *eckey, unsigned char *buf, size_t len); 168 int (*oct2priv)(EC_KEY *eckey, const unsigned char *buf, size_t len); 169 int (*set_private)(EC_KEY *eckey, const BIGNUM *priv_key); 170 int (*keygen)(EC_KEY *eckey); 171 int (*keycheck)(const EC_KEY *eckey); 172 int (*keygenpub)(EC_KEY *eckey); 174 void (*keyfinish)(EC_KEY *eckey); 179 int (*ecdsa_sign_setup)(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinvp, 183 EC_KEY *eckey); 185 const ECDSA_SIG *sig, EC_KEY *eckey); [all...] |
/third_party/node/deps/openssl/openssl/apps/ |
H A D | ec.c | 69 EVP_PKEY *eckey = NULL; in ec_main() local 180 eckey = load_pubkey(infile, informat, 1, passin, e, "public key"); in ec_main() 182 eckey = load_key(infile, informat, 1, passin, e, "private key"); in ec_main() 184 if (eckey == NULL) { in ec_main() 195 eckey, OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT, in ec_main() 203 eckey, OSSL_PKEY_PARAM_EC_ENCODING, asn1_encoding)) { in ec_main() 209 if (!EVP_PKEY_set_int_param(eckey, OSSL_PKEY_PARAM_EC_INCLUDE_PUBLIC, 0)) { in ec_main() 214 if (!EVP_PKEY_set_int_param(eckey, OSSL_PKEY_PARAM_EC_INCLUDE_PUBLIC, 1)) { in ec_main() 222 if ((pubin && EVP_PKEY_print_public(out, eckey, 0, NULL) <= 0) in ec_main() 223 || (!pubin && EVP_PKEY_print_private(out, eckey, in ec_main() [all...] |
/third_party/openssl/apps/ |
H A D | ec.c | 69 EVP_PKEY *eckey = NULL; in ec_main() local 180 eckey = load_pubkey(infile, informat, 1, passin, e, "public key"); in ec_main() 182 eckey = load_key(infile, informat, 1, passin, e, "private key"); in ec_main() 184 if (eckey == NULL) { in ec_main() 195 eckey, OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT, in ec_main() 203 eckey, OSSL_PKEY_PARAM_EC_ENCODING, asn1_encoding)) { in ec_main() 209 if (!EVP_PKEY_set_int_param(eckey, OSSL_PKEY_PARAM_EC_INCLUDE_PUBLIC, 0)) { in ec_main() 214 if (!EVP_PKEY_set_int_param(eckey, OSSL_PKEY_PARAM_EC_INCLUDE_PUBLIC, 1)) { in ec_main() 222 if ((pubin && EVP_PKEY_print_public(out, eckey, 0, NULL) <= 0) in ec_main() 223 || (!pubin && EVP_PKEY_print_private(out, eckey, in ec_main() [all...] |
/third_party/openssl/test/ |
H A D | ecdsatest.c | 190 EC_KEY *eckey_neg = NULL, *eckey = NULL; in test_builtin() local 228 || !TEST_ptr(eckey = EC_KEY_new_by_curve_name(nid)) in test_builtin() 229 || !TEST_true(EC_KEY_generate_key(eckey)) in test_builtin() 231 || !TEST_true(EVP_PKEY_assign_EC_KEY(pkey, eckey)) in test_builtin() 244 temp = ECDSA_size(eckey); in test_builtin() 252 || !TEST_int_le(sig_len, ECDSA_size(eckey)) in test_builtin() 356 EC_KEY *eckey = NULL; in test_ecdsa_sig_NULL() local 360 ret = TEST_ptr(eckey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)) in test_ecdsa_sig_NULL() 361 && TEST_int_eq(EC_KEY_generate_key(eckey), 1) in test_ecdsa_sig_NULL() 363 eckey), in test_ecdsa_sig_NULL() [all...] |
/third_party/libwebsockets/lib/tls/openssl/ |
H A D | lws-genec.c | 528 EC_KEY *eckey; 544 eckey = EVP_PKEY_get1_EC_KEY(EVP_PKEY_CTX_get0_pkey(ctx->ctx[0])); 565 ecdsasig = ECDSA_do_sign(in, (int)hs, eckey); 566 EC_KEY_free(eckey); 611 EC_KEY *eckey; 655 eckey = EVP_PKEY_get1_EC_KEY(EVP_PKEY_CTX_get0_pkey(ctx->ctx[0])); 657 n = ECDSA_do_verify(in, hlen, ecsig, eckey); 658 EC_KEY_free(eckey); 685 EC_KEY *eckey[2]; 693 eckey[LDHS_OUR [all...] |
/third_party/node/deps/openssl/openssl/include/openssl/ |
H A D | ec.h | 1025 * \param eckey EC_KEY object 1028 OSSL_DEPRECATEDIN_3_0 ENGINE *EC_KEY_get0_engine(const EC_KEY *eckey); 1073 OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags); 1075 OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_conv_form(EC_KEY *eckey, 1087 OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); 1110 * \param eckey the EC_KEY object 1113 OSSL_DEPRECATEDIN_3_0 int EC_KEY_can_sign(const EC_KEY *eckey); 1170 * \param eckey key to encode 1174 OSSL_DEPRECATEDIN_3_0 size_t EC_KEY_priv2buf(const EC_KEY *eckey, 1362 * \param eckey EC_KE [all...] |
/third_party/openssl/include/openssl/ |
H A D | ec.h | 1025 * \param eckey EC_KEY object 1028 OSSL_DEPRECATEDIN_3_0 ENGINE *EC_KEY_get0_engine(const EC_KEY *eckey); 1073 OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags); 1075 OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_conv_form(EC_KEY *eckey, 1087 OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); 1110 * \param eckey the EC_KEY object 1113 OSSL_DEPRECATEDIN_3_0 int EC_KEY_can_sign(const EC_KEY *eckey); 1170 * \param eckey key to encode 1174 OSSL_DEPRECATEDIN_3_0 size_t EC_KEY_priv2buf(const EC_KEY *eckey, 1362 * \param eckey EC_KE [all...] |
/third_party/openssl/ohos_lite/include/openssl/ |
H A D | ec.h | 869 * \param eckey EC_KEY object 872 ENGINE *EC_KEY_get0_engine(const EC_KEY *eckey); 917 void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags); 919 void EC_KEY_set_conv_form(EC_KEY *eckey, point_conversion_form_t cform); 927 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); 950 * \param eckey the EC_KEY object 953 int EC_KEY_can_sign(const EC_KEY *eckey); 1006 * \param eckey key to encode 1010 size_t EC_KEY_priv2buf(const EC_KEY *eckey, unsigned char **pbuf); 1188 * \param eckey EC_KE [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
H A D | crypto_openssl.c | 2145 EC_KEY *eckey; in crypto_ecdh_get_pubkey() local 2151 eckey = EVP_PKEY_get1_EC_KEY(ecdh->pkey); in crypto_ecdh_get_pubkey() 2152 if (!eckey) in crypto_ecdh_get_pubkey() 2155 pubkey = EC_KEY_get0_public_key(eckey); in crypto_ecdh_get_pubkey() 2192 EC_KEY_free(eckey); in crypto_ecdh_get_pubkey() 2211 EC_KEY *eckey = NULL; in crypto_ecdh_set_peerkey() local 2245 eckey = EC_KEY_new_by_curve_name(ecdh->ec->nid); in crypto_ecdh_set_peerkey() 2246 if (!eckey || EC_KEY_set_public_key(eckey, pub) != 1) { in crypto_ecdh_set_peerkey() 2254 if (!peerkey || EVP_PKEY_set1_EC_KEY(peerkey, eckey) ! in crypto_ecdh_set_peerkey() 2316 EC_KEY *eckey; crypto_ec_key_parse_priv() local 2363 EC_KEY *eckey = NULL; crypto_ec_key_set_pub() local 2444 EC_KEY *eckey; crypto_ec_key_set_pub_point() local 2478 EC_KEY *ec_params = NULL, *eckey; crypto_ec_key_gen() local 2565 const EC_KEY *eckey; crypto_ec_key_get_subject_public_key() local 2671 EC_KEY *eckey; crypto_ec_key_get_ecprivate_key() local 2705 EC_KEY *eckey; crypto_ec_key_get_pubkey_point() local 2752 const EC_KEY *eckey; crypto_ec_key_get_public_key() local 2764 const EC_KEY *eckey; crypto_ec_key_get_private_key() local 2805 const EC_KEY *eckey; crypto_ec_key_sign_r_s() local 2917 const EC_KEY *eckey; crypto_ec_key_group() local [all...] |
/third_party/openssl/ohos_lite/crypto/ec/ |
H A D | ec_local.h | 171 size_t (*priv2oct)(const EC_KEY *eckey, unsigned char *buf, size_t len); 172 int (*oct2priv)(EC_KEY *eckey, const unsigned char *buf, size_t len); 173 int (*set_private)(EC_KEY *eckey, const BIGNUM *priv_key); 174 int (*keygen)(EC_KEY *eckey); 175 int (*keycheck)(const EC_KEY *eckey); 176 int (*keygenpub)(EC_KEY *eckey); 178 void (*keyfinish)(EC_KEY *eckey); 593 size_t ec_key_simple_priv2oct(const EC_KEY *eckey, 595 int ec_key_simple_oct2priv(EC_KEY *eckey, const unsigned char *buf, size_t len); 596 int ec_key_simple_generate_key(EC_KEY *eckey); [all...] |
/third_party/node/deps/openssl/openssl/crypto/sm2/ |
H A D | sm2_key.c | 22 int ossl_sm2_key_private_check(const EC_KEY *eckey) in ossl_sm2_key_private_check() argument 29 if (eckey == NULL in ossl_sm2_key_private_check() 30 || (group = EC_KEY_get0_group(eckey)) == NULL in ossl_sm2_key_private_check() 31 || (priv_key = EC_KEY_get0_private_key(eckey)) == NULL in ossl_sm2_key_private_check()
|
/third_party/openssl/crypto/sm2/ |
H A D | sm2_key.c | 22 int ossl_sm2_key_private_check(const EC_KEY *eckey) in ossl_sm2_key_private_check() argument 29 if (eckey == NULL in ossl_sm2_key_private_check() 30 || (group = EC_KEY_get0_group(eckey)) == NULL in ossl_sm2_key_private_check() 31 || (priv_key = EC_KEY_get0_private_key(eckey)) == NULL in ossl_sm2_key_private_check()
|