| /freebsd-13-stable/crypto/openssl/include/openssl/ |
| HD | 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 …]
|
| HD | x509.h | 414 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey); 415 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey); 416 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey); 417 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey); 452 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey); 453 int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey); 454 EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey); 455 int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey); 525 int i2d_EC_PUBKEY(EC_KEY *a, unsigned char **pp); 526 EC_KEY *d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp, long length);
|
| /freebsd-13-stable/crypto/openssl/crypto/ec/ |
| HD | ec_kmeth.c | 50 const EC_KEY_METHOD *EC_KEY_get_method(const EC_KEY *key) in EC_KEY_get_method() 55 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth) in EC_KEY_set_method() 57 void (*finish)(EC_KEY *key) = key->meth->finish; in EC_KEY_set_method() 73 EC_KEY *EC_KEY_new_method(ENGINE *engine) in EC_KEY_new_method() 75 EC_KEY *ret = OPENSSL_zalloc(sizeof(*ret)); in EC_KEY_new_method() 128 const EC_KEY *eckey, in ECDH_compute_key() 174 int (*init)(EC_KEY *key), in EC_KEY_METHOD_set_init() 175 void (*finish)(EC_KEY *key), in EC_KEY_METHOD_set_init() 176 int (*copy)(EC_KEY *dest, const EC_KEY *src), in EC_KEY_METHOD_set_init() 177 int (*set_group)(EC_KEY *key, const EC_GROUP *grp), in EC_KEY_METHOD_set_init() [all …]
|
| HD | ec_key.c | 19 EC_KEY *EC_KEY_new(void) in EC_KEY_new() 24 EC_KEY *EC_KEY_new_by_curve_name(int nid) in EC_KEY_new_by_curve_name() 26 EC_KEY *ret = EC_KEY_new(); in EC_KEY_new_by_curve_name() 42 void EC_KEY_free(EC_KEY *r) in EC_KEY_free() 71 OPENSSL_clear_free((void *)r, sizeof(EC_KEY)); in EC_KEY_free() 74 EC_KEY *EC_KEY_copy(EC_KEY *dest, const EC_KEY *src) in EC_KEY_copy() 151 EC_KEY *EC_KEY_dup(const EC_KEY *ec_key) in EC_KEY_dup() 153 EC_KEY *ret = EC_KEY_new_method(ec_key->engine); in EC_KEY_dup() 165 int EC_KEY_up_ref(EC_KEY *r) in EC_KEY_up_ref() 177 ENGINE *EC_KEY_get0_engine(const EC_KEY *eckey) in EC_KEY_get0_engine() [all …]
|
| HD | 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 …]
|
| HD | ecdsa_sign.c | 14 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey) in ECDSA_do_sign() 21 EC_KEY *eckey) in ECDSA_do_sign_ex() 30 *sig, unsigned int *siglen, EC_KEY *eckey) in ECDSA_sign() 37 const BIGNUM *r, EC_KEY *eckey) in ECDSA_sign_ex() 45 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ECDSA_sign_setup()
|
| HD | ec_ameth.c | 26 static int eckey_param2type(int *pptype, void **ppval, const EC_KEY *ec_key) in eckey_param2type() 62 pstr->length = i2d_ECParameters((EC_KEY *)ec_key, &pstr->data); in eckey_param2type() 76 const EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode() 106 static EC_KEY *eckey_type2param(int ptype, const void *pval) in eckey_type2param() 108 EC_KEY *eckey = NULL; in eckey_type2param() 155 EC_KEY *eckey = NULL; in eckey_pub_decode() 204 EC_KEY *eckey = NULL; in eckey_priv_decode() 234 EC_KEY ec_key = *(pkey->pkey.ec); in eckey_priv_encode() 364 static int do_EC_KEY_print(BIO *bp, const EC_KEY *x, int off, ec_print_t ktype) in do_EC_KEY_print() 430 EC_KEY *eckey; in eckey_param_decode() [all …]
|
| HD | ec_pmeth.c | 27 EC_KEY *co_key; 106 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_ec_sign() 139 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_ec_verify() 157 EC_KEY *eckey; in pkey_ec_derive() 252 EC_KEY *ec_key = ctx->pkey->pkey.ec; in pkey_ec_ctrl() 259 EC_KEY *ec_key = ctx->pkey->pkey.ec; in pkey_ec_ctrl() 396 EC_KEY *ec = NULL; in pkey_ec_paramgen() 415 EC_KEY *ec = NULL; in pkey_ec_keygen()
|
| HD | ecdsa_vrf.c | 21 const ECDSA_SIG *sig, EC_KEY *eckey) in ECDSA_do_verify() 36 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ECDSA_verify()
|
| HD | ecdsa_ossl.c | 19 const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) in ossl_ecdsa_sign() 33 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, in ecdsa_sign_setup() 148 int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ossl_ecdsa_sign_setup() 156 EC_KEY *eckey) in ossl_ecdsa_sign_sig() 293 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ossl_ecdsa_verify() 318 const ECDSA_SIG *sig, EC_KEY *eckey) in ossl_ecdsa_verify_sig()
|
| HD | ec_asn1.c | 1004 EC_KEY *d2i_ECPrivateKey(EC_KEY **a, const unsigned char **in, long len) in d2i_ECPrivateKey() 1006 EC_KEY *ret = NULL; in d2i_ECPrivateKey() 1086 int i2d_ECPrivateKey(EC_KEY *a, unsigned char **out) in i2d_ECPrivateKey() 1158 int i2d_ECParameters(EC_KEY *a, unsigned char **out) in i2d_ECParameters() 1167 EC_KEY *d2i_ECParameters(EC_KEY **a, const unsigned char **in, long len) in d2i_ECParameters() 1169 EC_KEY *ret; in d2i_ECParameters() 1197 EC_KEY *o2i_ECPublicKey(EC_KEY **a, const unsigned char **in, long len) in o2i_ECPublicKey() 1199 EC_KEY *ret = NULL; in o2i_ECPublicKey() 1217 int i2o_ECPublicKey(const EC_KEY *a, unsigned char **out) in i2o_ECPublicKey() 1310 int ECDSA_size(const EC_KEY *r) in ECDSA_size()
|
| /freebsd-13-stable/crypto/openssl/doc/man3/ |
| HD | EC_KEY_new.pod | 17 EC_KEY objects 23 EC_KEY *EC_KEY_new(void); 24 int EC_KEY_get_flags(const EC_KEY *key); 25 void EC_KEY_set_flags(EC_KEY *key, int flags); 26 void EC_KEY_clear_flags(EC_KEY *key, int flags); 27 EC_KEY *EC_KEY_new_by_curve_name(int nid); 28 void EC_KEY_free(EC_KEY *key); 29 EC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src); 30 EC_KEY *EC_KEY_dup(const EC_KEY *src); 31 int EC_KEY_up_ref(EC_KEY *key); [all …]
|
| HD | ECDSA_SIG_new.pod | 21 int ECDSA_size(const EC_KEY *eckey); 24 unsigned char *sig, unsigned int *siglen, EC_KEY *eckey); 26 EC_KEY *eckey); 29 const unsigned char *sig, int siglen, EC_KEY *eckey); 31 const ECDSA_SIG *sig, EC_KEY* eckey); 35 EC_KEY *eckey); 36 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp); 39 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey); 139 First step: create an EC_KEY object (note: this part is B<not> ECDSA 144 EC_KEY *eckey;
|
| HD | 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.
|
| /freebsd-13-stable/crypto/openssl/include/crypto/ |
| HD | 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,
|
| /freebsd-13-stable/crypto/openssl/crypto/pem/ |
| HD | pem_all.c | 29 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey); 131 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey) in IMPLEMENT_PEM_rw_const() 133 EC_KEY *dtmp; in IMPLEMENT_PEM_rw_const() 147 EC_KEY *PEM_read_bio_ECPrivateKey(BIO *bp, EC_KEY **key, pem_password_cb *cb, in PEM_read_bio_ECPrivateKey() 159 IMPLEMENT_PEM_write_cb(ECPrivateKey, EC_KEY, PEM_STRING_ECPRIVATEKEY, in IMPLEMENT_PEM_rw_const() 161 IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY) in IMPLEMENT_PEM_rw_const() 163 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, in IMPLEMENT_PEM_rw_const()
|
| /freebsd-13-stable/crypto/openssl/crypto/x509/ |
| HD | x_all.c | 320 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) in d2i_EC_PUBKEY_fp() 322 return ASN1_d2i_fp_of(EC_KEY, EC_KEY_new, d2i_EC_PUBKEY, fp, eckey); in d2i_EC_PUBKEY_fp() 325 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey) in i2d_EC_PUBKEY_fp() 327 return ASN1_i2d_fp_of(EC_KEY, i2d_EC_PUBKEY, fp, eckey); in i2d_EC_PUBKEY_fp() 330 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey) in d2i_ECPrivateKey_fp() 332 return ASN1_d2i_fp_of(EC_KEY, EC_KEY_new, d2i_ECPrivateKey, fp, eckey); in d2i_ECPrivateKey_fp() 335 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey) in i2d_ECPrivateKey_fp() 337 return ASN1_i2d_fp_of(EC_KEY, i2d_ECPrivateKey, fp, eckey); in i2d_ECPrivateKey_fp() 340 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) in d2i_EC_PUBKEY_bio() 342 return ASN1_d2i_bio_of(EC_KEY, EC_KEY_new, d2i_EC_PUBKEY, bp, eckey); in d2i_EC_PUBKEY_bio() [all …]
|
| /freebsd-13-stable/crypto/openssh/ |
| HD | ssh-pkcs11-client.c | 53 #define EC_KEY void macro 69 void (*ec_finish)(EC_KEY *key); 108 helper_by_ec(const EC_KEY *ec) in helper_by_ec() 331 const BIGNUM *rp, EC_KEY *ec) in ecdsa_do_sign() 392 ecdsa_do_finish(EC_KEY *ec) in ecdsa_do_finish() 416 EC_KEY *ecdsa = NULL; in wrap_key() 461 EC_KEY *ec_priv = NULL, *ec_cert = NULL; in pkcs11_make_cert() 532 int (*ec_init)(EC_KEY *key); in pkcs11_start_helper_methods() 533 int (*ec_copy)(EC_KEY *dest, const EC_KEY *src); in pkcs11_start_helper_methods() 534 int (*ec_set_group)(EC_KEY *key, const EC_GROUP *grp); in pkcs11_start_helper_methods() [all …]
|
| HD | sshkey.h | 39 # define EC_KEY void macro 48 # define EC_KEY void macro 263 int sshkey_ecdsa_key_to_nid(const EC_KEY *); 267 int sshkey_ec_validate_private(const EC_KEY *); 301 void sshkey_dump_ec_key(const EC_KEY *); 355 # undef EC_KEY 360 # undef EC_KEY
|
| HD | kexecdh.c | 46 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()
|
| HD | kex.h | 39 # define EC_KEY void macro 46 # define EC_KEY void macro 179 EC_KEY *ec_client_key; /* ECDH */ 284 # undef EC_KEY
|
| HD | packet.h | 27 # define EC_KEY void macro 33 # define EC_KEY void macro 216 # undef EC_KEY 221 # undef EC_KEY
|
| HD | sshbuf-getput-crypto.c | 95 sshbuf_get_eckey(struct sshbuf *buf, EC_KEY *v) in sshbuf_get_eckey() 174 sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v) in sshbuf_put_eckey() 183 const EC_KEY *ec; in sshbuf_put_ec_pkey()
|
| /freebsd-13-stable/crypto/openssl/crypto/sm2/ |
| HD | sm2_sign.c | 26 const EC_KEY *key) in sm2_compute_z_digest() 140 const EC_KEY *key, in sm2_compute_msg_hash() 185 static ECDSA_SIG *sm2_sig_gen(const EC_KEY *key, const BIGNUM *e) in sm2_sig_gen() 286 static int sm2_sig_verify(const EC_KEY *key, const ECDSA_SIG *sig, in sm2_sig_verify() 364 ECDSA_SIG *sm2_do_sign(const EC_KEY *key, in sm2_do_sign() 386 int sm2_do_verify(const EC_KEY *key, in sm2_do_verify() 410 unsigned char *sig, unsigned int *siglen, EC_KEY *eckey) in sm2_sign() 441 const unsigned char *sig, int sig_len, EC_KEY *eckey) in sm2_verify()
|
| HD | sm2_pmeth.c | 93 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_sm2_sign() 122 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_sm2_verify() 131 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_sm2_encrypt() 149 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_sm2_decrypt() 264 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_sm2_digest_custom()
|