/third_party/openssl/include/openssl/ |
D | ec.h | 961 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_ex(OSSL_LIB_CTX *ctx, const char *propq); 968 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); 970 OSSL_DEPRECATEDIN_3_0 int EC_KEY_get_flags(const EC_KEY *key); 972 OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_flags(EC_KEY *key, int flags); 974 OSSL_DEPRECATEDIN_3_0 void EC_KEY_clear_flags(EC_KEY *key, int flags); 976 OSSL_DEPRECATEDIN_3_0 int EC_KEY_decoded_from_explicit_params(const EC_KEY *key); 987 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name_ex(OSSL_LIB_CTX *ctx, 998 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); 1003 OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); 1010 OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src); [all …]
|
/third_party/openssl/ohos_lite/include/openssl/ |
D | ec.h | 827 EC_KEY *EC_KEY_new(void); 829 int EC_KEY_get_flags(const EC_KEY *key); 831 void EC_KEY_set_flags(EC_KEY *key, int flags); 833 void EC_KEY_clear_flags(EC_KEY *key, int flags); 835 int EC_KEY_decoded_from_explicit_params(const EC_KEY *key); 842 EC_KEY *EC_KEY_new_by_curve_name(int nid); 847 void EC_KEY_free(EC_KEY *key); 854 EC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src); 860 EC_KEY *EC_KEY_dup(const EC_KEY *src); 866 int EC_KEY_up_ref(EC_KEY *key); [all …]
|
/third_party/openssl/crypto/ec/ |
D | ec_kmeth.c | 58 const EC_KEY_METHOD *EC_KEY_get_method(const EC_KEY *key) in EC_KEY_get_method() 63 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth) in EC_KEY_set_method() 65 void (*finish)(EC_KEY *key) = key->meth->finish; in EC_KEY_set_method() 81 EC_KEY *ossl_ec_key_new_method_int(OSSL_LIB_CTX *libctx, const char *propq, in ossl_ec_key_new_method_int() 84 EC_KEY *ret = OPENSSL_zalloc(sizeof(*ret)); in ossl_ec_key_new_method_int() 148 EC_KEY *EC_KEY_new_method(ENGINE *engine) in EC_KEY_new_method() 155 const EC_KEY *eckey, in ECDH_compute_key() 201 int (*init)(EC_KEY *key), in EC_KEY_METHOD_set_init() 202 void (*finish)(EC_KEY *key), in EC_KEY_METHOD_set_init() 203 int (*copy)(EC_KEY *dest, const EC_KEY *src), in EC_KEY_METHOD_set_init() [all …]
|
D | ec_key.c | 29 static int ecdsa_keygen_pairwise_test(EC_KEY *eckey, OSSL_CALLBACK *cb, 33 EC_KEY *EC_KEY_new(void) in EC_KEY_new() 39 EC_KEY *EC_KEY_new_ex(OSSL_LIB_CTX *ctx, const char *propq) in EC_KEY_new_ex() 44 EC_KEY *EC_KEY_new_by_curve_name_ex(OSSL_LIB_CTX *ctx, const char *propq, in EC_KEY_new_by_curve_name_ex() 47 EC_KEY *ret = EC_KEY_new_ex(ctx, propq); in EC_KEY_new_by_curve_name_ex() 64 EC_KEY *EC_KEY_new_by_curve_name(int nid) in EC_KEY_new_by_curve_name() 70 void EC_KEY_free(EC_KEY *r) in EC_KEY_free() 102 OPENSSL_clear_free((void *)r, sizeof(EC_KEY)); in EC_KEY_free() 105 EC_KEY *EC_KEY_copy(EC_KEY *dest, const EC_KEY *src) in EC_KEY_copy() 187 EC_KEY *EC_KEY_dup(const EC_KEY *ec_key) in EC_KEY_dup() [all …]
|
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); 173 int (*keycopy)(EC_KEY *dst, const EC_KEY *src); 174 void (*keyfinish)(EC_KEY *eckey); 177 const EC_POINT *pub_key, const EC_KEY *ecdh); 179 int (*ecdsa_sign_setup)(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinvp, [all …]
|
D | ec_ameth.c | 29 static int eckey_param2type(int *pptype, void **ppval, const EC_KEY *ec_key) in eckey_param2type() 70 const EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode() 104 EC_KEY *eckey = NULL; in eckey_pub_decode() 152 EC_KEY *eckey = ossl_ec_key_from_pkcs8(p8, libctx, propq); in eckey_priv_decode_ex() 164 EC_KEY ec_key = *(pkey->pkey.ec); in eckey_priv_encode() 283 static int do_EC_KEY_print(BIO *bp, const EC_KEY *x, int off, ec_print_t ktype) in do_EC_KEY_print() 349 EC_KEY *eckey; in eckey_param_decode() 383 EC_KEY *ec; in old_ec_priv_decode() 425 EC_KEY *eckey = pkey->pkey.ec; in ec_pkey_check() 438 EC_KEY *eckey = pkey->pkey.ec; in ec_pkey_public_check() [all …]
|
D | ec_pmeth.c | 33 EC_KEY *co_key; 117 EC_KEY *ec = (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_sign() 155 EC_KEY *ec = (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_verify() 173 EC_KEY *eckey; in pkey_ec_derive() 174 const EC_KEY *eckeypub; in pkey_ec_derive() 188 : (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_derive() 280 const EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_ctrl() 287 EC_KEY *ec_key = (EC_KEY *)EVP_PKEY_get0_EC_KEY(ctx->pkey); in pkey_ec_ctrl() 434 EC_KEY *ec = NULL; in pkey_ec_paramgen() 453 EC_KEY *ec = NULL; in pkey_ec_keygen()
|
D | ecdsa_sign.c | 20 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey) in ECDSA_do_sign() 27 EC_KEY *eckey) in ECDSA_do_sign_ex() 36 *sig, unsigned int *siglen, EC_KEY *eckey) in ECDSA_sign() 43 const BIGNUM *r, EC_KEY *eckey) in ECDSA_sign_ex() 51 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ECDSA_sign_setup()
|
D | ec_backend.c | 100 int ossl_ec_set_check_group_type_from_name(EC_KEY *ec, const char *name) in ossl_ec_set_check_group_type_from_name() 111 static int ec_set_check_group_type_from_param(EC_KEY *ec, const OSSL_PARAM *p) in ec_set_check_group_type_from_param() 359 int ossl_ec_set_ecdh_cofactor_mode(EC_KEY *ec, int mode) in ossl_ec_set_ecdh_cofactor_mode() 396 int ossl_ec_key_fromdata(EC_KEY *ec, const OSSL_PARAM params[], int include_private) in ossl_ec_key_fromdata() 499 int ossl_ec_group_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ossl_ec_group_fromdata() 518 static int ec_key_point_format_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ec_key_point_format_fromdata() 534 static int ec_key_group_check_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ec_key_group_check_fromdata() 544 static int ec_set_include_public(EC_KEY *ec, int include) in ec_set_include_public() 556 int ossl_ec_key_otherparams_fromdata(EC_KEY *ec, const OSSL_PARAM params[]) in ossl_ec_key_otherparams_fromdata() 587 int ossl_ec_key_is_foreign(const EC_KEY *ec) in ossl_ec_key_is_foreign() [all …]
|
D | ecdsa_ossl.c | 23 int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ossl_ecdsa_sign_setup() 36 EC_KEY *eckey) in ossl_ecdsa_sign_sig() 48 const ECDSA_SIG *sig, EC_KEY *eckey) in ossl_ecdsa_verify_sig() 60 const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) in ossl_ecdsa_sign() 74 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, in ecdsa_sign_setup() 187 int ossl_ecdsa_simple_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ossl_ecdsa_simple_sign_setup() 195 EC_KEY *eckey) in ossl_ecdsa_simple_sign_sig() 332 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ossl_ecdsa_verify() 357 const ECDSA_SIG *sig, EC_KEY *eckey) in ossl_ecdsa_simple_verify_sig()
|
/third_party/openssl/include/crypto/ |
D | ec.h | 62 int ossl_ec_key_public_check(const EC_KEY *eckey, BN_CTX *ctx); 63 int ossl_ec_key_public_check_quick(const EC_KEY *eckey, BN_CTX *ctx); 64 int ossl_ec_key_private_check(const EC_KEY *eckey); 65 int ossl_ec_key_pairwise_check(const EC_KEY *eckey, BN_CTX *ctx); 66 OSSL_LIB_CTX *ossl_ec_key_get_libctx(const EC_KEY *eckey); 67 const char *ossl_ec_key_get0_propq(const EC_KEY *eckey); 68 void ossl_ec_key_set0_libctx(EC_KEY *key, OSSL_LIB_CTX *libctx); 75 int ossl_ec_group_fromdata(EC_KEY *ec, const OSSL_PARAM params[]); 77 int ossl_ec_key_fromdata(EC_KEY *ecx, const OSSL_PARAM params[], 79 int ossl_ec_key_otherparams_fromdata(EC_KEY *ec, const OSSL_PARAM params[]); [all …]
|
D | sm2.h | 23 int ossl_sm2_key_private_check(const EC_KEY *eckey); 32 const EC_KEY *key); 37 ECDSA_SIG *ossl_sm2_do_sign(const EC_KEY *key, 43 int ossl_sm2_do_verify(const EC_KEY *key, 55 EC_KEY *eckey); 62 EC_KEY *eckey); 67 int ossl_sm2_ciphertext_size(const EC_KEY *key, const EVP_MD *digest, 73 int ossl_sm2_encrypt(const EC_KEY *key, 78 int ossl_sm2_decrypt(const EC_KEY *key,
|
/third_party/openssl/doc/man3/ |
D | EC_KEY_new.pod | 18 EC_KEY objects 30 EC_KEY *EC_KEY_new_ex(OSSL_LIB_CTX *ctx, const char *propq); 31 EC_KEY *EC_KEY_new(void); 32 int EC_KEY_get_flags(const EC_KEY *key); 33 void EC_KEY_set_flags(EC_KEY *key, int flags); 34 void EC_KEY_clear_flags(EC_KEY *key, int flags); 35 EC_KEY *EC_KEY_new_by_curve_name_ex(OSSL_LIB_CTX *ctx, const char *propq, 37 EC_KEY *EC_KEY_new_by_curve_name(int nid); 38 void EC_KEY_free(EC_KEY *key); 39 EC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src); [all …]
|
D | PEM_read_CMS.pod | 71 EC_KEY *PEM_read_EC_PUBKEY(FILE *fp, EC_KEY **x, pem_password_cb *cb, void *u); 72 EC_KEY *PEM_read_bio_EC_PUBKEY(BIO *bp, EC_KEY **x, pem_password_cb *cb, void *u); 73 int PEM_write_EC_PUBKEY(FILE *out, const EC_KEY *x); 74 int PEM_write_bio_EC_PUBKEY(BIO *out, const EC_KEY *x); 76 EC_KEY *PEM_read_ECPrivateKey(FILE *out, EC_KEY **x, pem_password_cb *cb, void *u); 77 EC_KEY *PEM_read_bio_ECPrivateKey(BIO *out, EC_KEY **x, pem_password_cb *cb, void *u); 78 int PEM_write_ECPrivateKey(FILE *out, const EC_KEY *x, const EVP_CIPHER *enc, 81 int PEM_write_bio_ECPrivateKey(BIO *out, const EC_KEY *x, const EVP_CIPHER *enc,
|
D | ECDSA_SIG_new.pod | 26 int ECDSA_size(const EC_KEY *eckey); 29 unsigned char *sig, unsigned int *siglen, EC_KEY *eckey); 31 EC_KEY *eckey); 34 const unsigned char *sig, int siglen, EC_KEY *eckey); 36 const ECDSA_SIG *sig, EC_KEY* eckey); 40 EC_KEY *eckey); 41 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp); 44 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey); 144 First step: create an EC_KEY object (note: this part is B<not> ECDSA 149 EC_KEY *eckey;
|
D | EC_KEY_get_enc_flags.pod | 6 - Get and set flags for encoding EC_KEY structures 12 unsigned int EC_KEY_get_enc_flags(const EC_KEY *key); 13 void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags); 39 EC_KEY.
|
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/ |
D | ec.rs | 179 pub fn EC_KEY_new() -> *mut EC_KEY; in EC_KEY_new() 181 pub fn EC_KEY_new_by_curve_name(nid: c_int) -> *mut EC_KEY; in EC_KEY_new_by_curve_name() argument 183 pub fn EC_KEY_free(key: *mut EC_KEY); in EC_KEY_free() argument 185 pub fn EC_KEY_dup(key: *const EC_KEY) -> *mut EC_KEY; in EC_KEY_dup() argument 187 pub fn EC_KEY_up_ref(key: *mut EC_KEY) -> c_int; in EC_KEY_up_ref() 189 pub fn EC_KEY_get0_group(key: *const EC_KEY) -> *const EC_GROUP; in EC_KEY_get0_group() 191 pub fn EC_KEY_set_group(key: *mut EC_KEY, group: *const EC_GROUP) -> c_int; in EC_KEY_set_group() argument 193 pub fn EC_KEY_get0_private_key(key: *const EC_KEY) -> *const BIGNUM; in EC_KEY_get0_private_key() 195 pub fn EC_KEY_set_private_key(key: *mut EC_KEY, key: *const BIGNUM) -> c_int; in EC_KEY_set_private_key() argument 197 pub fn EC_KEY_get0_public_key(key: *const EC_KEY) -> *const EC_POINT; in EC_KEY_get0_public_key() [all …]
|
D | pem.rs | 39 key: #[const_ptr_if(ossl300)] EC_KEY, 67 pub fn PEM_write_bio_EC_PUBKEY(bp: *mut BIO, ec: #[const_ptr_if(ossl300)] EC_KEY) -> c_int; 132 key: *mut *mut EC_KEY, in PEM_read_bio_ECPrivateKey() argument 135 ) -> *mut EC_KEY; in PEM_read_bio_ECPrivateKey() argument 138 ec: *mut *mut EC_KEY, in PEM_read_bio_EC_PUBKEY() argument 141 ) -> *mut EC_KEY; in PEM_read_bio_EC_PUBKEY() argument
|
/third_party/openssl/ohos_lite/crypto/ec/ |
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); 177 int (*keycopy)(EC_KEY *dst, const EC_KEY *src); 178 void (*keyfinish)(EC_KEY *eckey); 181 const EC_POINT *pub_key, const EC_KEY *ecdh); 593 size_t ec_key_simple_priv2oct(const EC_KEY *eckey, [all …]
|
/third_party/openssl/ohos_lite/include/crypto/ |
D | sm2.h | 27 const EC_KEY *key); 32 ECDSA_SIG *sm2_do_sign(const EC_KEY *key, 38 int sm2_do_verify(const EC_KEY *key, 49 unsigned char *sig, unsigned int *siglen, EC_KEY *eckey); 55 const unsigned char *sig, int siglen, EC_KEY *eckey); 60 int sm2_ciphertext_size(const EC_KEY *key, const EVP_MD *digest, size_t msg_len, 65 int sm2_encrypt(const EC_KEY *key, 71 int sm2_decrypt(const EC_KEY *key,
|
/third_party/openssl/crypto/pem/ |
D | pem_all.c | 34 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey); 134 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey) in IMPLEMENT_PEM_rw() 136 EC_KEY *dtmp; in IMPLEMENT_PEM_rw() 150 EC_KEY *PEM_read_bio_ECPrivateKey(BIO *bp, EC_KEY **key, pem_password_cb *cb, in PEM_read_bio_ECPrivateKey() 162 IMPLEMENT_PEM_write_cb(ECPrivateKey, EC_KEY, PEM_STRING_ECPRIVATEKEY, in IMPLEMENT_PEM_rw() 164 IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY) in IMPLEMENT_PEM_rw() 166 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, in IMPLEMENT_PEM_rw()
|
/third_party/openssl/crypto/evp/ |
D | p_legacy.c | 58 int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) in EVP_PKEY_set1_EC_KEY() 69 EC_KEY *evp_pkey_get0_EC_KEY_int(const EVP_PKEY *pkey) in evp_pkey_get0_EC_KEY_int() 78 const EC_KEY *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey) in EVP_PKEY_get0_EC_KEY() 83 EC_KEY *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) in EVP_PKEY_get1_EC_KEY() 85 EC_KEY *ret = evp_pkey_get0_EC_KEY_int(pkey); in EVP_PKEY_get1_EC_KEY()
|
/third_party/openssl/crypto/x509/ |
D | x_all.c | 404 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) in d2i_EC_PUBKEY_fp() 406 return ASN1_d2i_fp_of(EC_KEY, EC_KEY_new, d2i_EC_PUBKEY, fp, eckey); in d2i_EC_PUBKEY_fp() 409 int i2d_EC_PUBKEY_fp(FILE *fp, const EC_KEY *eckey) in i2d_EC_PUBKEY_fp() 411 return ASN1_i2d_fp_of(EC_KEY, i2d_EC_PUBKEY, fp, eckey); in i2d_EC_PUBKEY_fp() 414 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey) in d2i_ECPrivateKey_fp() 416 return ASN1_d2i_fp_of(EC_KEY, EC_KEY_new, d2i_ECPrivateKey, fp, eckey); in d2i_ECPrivateKey_fp() 419 int i2d_ECPrivateKey_fp(FILE *fp, const EC_KEY *eckey) in i2d_ECPrivateKey_fp() 421 return ASN1_i2d_fp_of(EC_KEY, i2d_ECPrivateKey, fp, eckey); in i2d_ECPrivateKey_fp() 424 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) in d2i_EC_PUBKEY_bio() 426 return ASN1_d2i_bio_of(EC_KEY, EC_KEY_new, d2i_EC_PUBKEY, bp, eckey); in d2i_EC_PUBKEY_bio() [all …]
|
/third_party/openssl/providers/implementations/keymgmt/ |
D | ec_kmgmt.c | 111 int key_to_params(const EC_KEY *eckey, OSSL_PARAM_BLD *tmpl, in key_to_params() 231 int otherparams_to_params(const EC_KEY *ec, OSSL_PARAM_BLD *tmpl, in otherparams_to_params() 298 const EC_KEY *ec = keydata; in ec_has() 322 const EC_KEY *ec1 = keydata1; in ec_match() 323 const EC_KEY *ec2 = keydata2; in ec_match() 367 static int common_check_sm2(const EC_KEY *ec, int sm2_wanted) in common_check_sm2() 385 EC_KEY *ec = keydata; in common_import() 444 EC_KEY *ec = keydata; in ec_export() 631 EC_KEY *eck = key; in common_get_params() 819 EC_KEY *eck = key; in ec_set_params() [all …]
|
/third_party/openssl/crypto/sm2/ |
D | sm2_sign.c | 28 const EC_KEY *key) in ossl_sm2_compute_z_digest() 142 const EC_KEY *key, in sm2_compute_msg_hash() 197 static ECDSA_SIG *sm2_sig_gen(const EC_KEY *key, const BIGNUM *e) in sm2_sig_gen() 312 static int sm2_sig_verify(const EC_KEY *key, const ECDSA_SIG *sig, in sm2_sig_verify() 391 ECDSA_SIG *ossl_sm2_do_sign(const EC_KEY *key, in ossl_sm2_do_sign() 413 int ossl_sm2_do_verify(const EC_KEY *key, in ossl_sm2_do_verify() 438 EC_KEY *eckey) in ossl_sm2_internal_sign() 474 EC_KEY *eckey) in ossl_sm2_internal_verify()
|