/freebsd-9.3-release/crypto/openssl/crypto/ecdsa/ |
H A D | ecs_sign.c | 62 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey) argument 64 return ECDSA_do_sign_ex(dgst, dlen, NULL, NULL, eckey); 69 EC_KEY *eckey) 71 ECDSA_DATA *ecdsa = ecdsa_check(eckey); 74 return ecdsa->meth->ecdsa_do_sign(dgst, dlen, kinv, rp, eckey); 78 *sig, unsigned int *siglen, EC_KEY *eckey) 80 return ECDSA_sign_ex(type, dgst, dlen, sig, siglen, NULL, NULL, eckey); 85 const BIGNUM *r, EC_KEY *eckey) 89 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); 99 int ECDSA_sign_setup(EC_KEY *eckey, BN_CT argument 67 ECDSA_do_sign_ex(const unsigned char *dgst, int dlen, const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) argument 77 ECDSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, EC_KEY *eckey) argument 83 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) argument [all...] |
H A D | ecs_locl.h | 72 EC_KEY *eckey); 73 int (*ecdsa_sign_setup) (EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, 76 const ECDSA_SIG *sig, EC_KEY *eckey); 78 int (*init) (EC_KEY *eckey); 79 int (*finish) (EC_KEY *eckey); 98 * \param eckey pointer to a EC_KEY object 101 ECDSA_DATA *ecdsa_check(EC_KEY *eckey);
|
H A D | ecs_vrf.c | 72 const ECDSA_SIG *sig, EC_KEY *eckey) 74 ECDSA_DATA *ecdsa = ecdsa_check(eckey); 77 return ecdsa->meth->ecdsa_do_verify(dgst, dgst_len, sig, eckey); 87 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) 104 ret = ECDSA_do_verify(dgst, dgst_len, s, eckey); 71 ECDSA_do_verify(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey) argument 86 ECDSA_verify(int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) argument
|
H A D | ecdsa.h | 119 * \param eckey pointer to the EC_KEY object containing a private EC key 123 EC_KEY *eckey); 127 * private key (note: sig must point to ECDSA_size(eckey) bytes of memory). 133 * \param eckey pointer to the EC_KEY object containing a private EC key 138 EC_KEY *eckey); 146 * \param eckey pointer to the EC_KEY object containing a public EC key 150 const ECDSA_SIG *sig, EC_KEY *eckey); 168 * \param eckey pointer to the EC_KEY object 172 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth); 176 * \param eckey pointe [all...] |
H A D | ecs_ossl.c | 66 EC_KEY *eckey); 67 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, 70 const ECDSA_SIG *sig, EC_KEY *eckey); 90 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, argument 99 if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL) { 212 EC_KEY *eckey) 223 ecdsa = ecdsa_check(eckey); 224 group = EC_KEY_get0_group(eckey); 225 priv_key = EC_KEY_get0_private_key(eckey); 210 ecdsa_do_sign(const unsigned char *dgst, int dgst_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey) argument 326 ecdsa_do_verify(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey) argument [all...] |
H A D | ecdsatest.c | 286 EC_KEY *eckey = NULL, *wrong_eckey = NULL; local 333 if ((eckey = EC_KEY_new()) == NULL) 338 if (EC_KEY_set_group(eckey, group) == 0) 341 degree = EC_GROUP_get_degree(EC_KEY_get0_group(eckey)); 345 EC_KEY_free(eckey); 346 eckey = NULL; 351 if (!EC_KEY_generate_key(eckey)) { 372 if (!EC_KEY_check_key(eckey)) { 379 sig_len = ECDSA_size(eckey); 382 if (!ECDSA_sign(0, digest, 20, signature, &sig_len, eckey)) { [all...] |
H A D | ecs_lib.c | 84 int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth) argument 88 ecdsa = ecdsa_check(eckey);
|
/freebsd-9.3-release/crypto/openssl/crypto/ecdh/ |
H A D | ech_key.c | 76 EC_KEY *eckey, 80 ECDH_DATA *ecdh = ecdh_check(eckey); 83 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF); 75 ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *eckey, void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen)) argument
|
H A D | ech_locl.h | 72 int (*init) (EC_KEY *eckey); 73 int (*finish) (EC_KEY *eckey);
|
H A D | ech_lib.c | 97 int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) argument 101 ecdh = ecdh_check(eckey); 115 meth->init(eckey);
|
/freebsd-9.3-release/contrib/bind9/lib/dns/ |
H A D | opensslecdsa_link.c | 130 EC_KEY *eckey = EVP_PKEY_get1_EC_KEY(pkey); local 137 if (eckey == NULL) 154 ecdsasig = ECDSA_do_sign(digest, dgstlen, eckey); 168 if (eckey != NULL) 169 EC_KEY_free(eckey); 182 EC_KEY *eckey = EVP_PKEY_get1_EC_KEY(pkey); local 189 if (eckey == NULL) 217 status = ECDSA_do_verify(digest, dgstlen, ecdsasig, eckey); 235 if (eckey != NULL) 236 EC_KEY_free(eckey); 288 EC_KEY *eckey = NULL; local 330 EC_KEY *eckey = EVP_PKEY_get1_EC_KEY(pkey); local 350 EC_KEY *eckey = NULL; local 386 EC_KEY *eckey = NULL; local 446 EC_KEY *eckey = NULL; local 487 ecdsa_check(EC_KEY *eckey, dst_key_t *pub) argument 521 EC_KEY *eckey = NULL, *pubeckey = NULL; local [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/ec/ |
H A D | ec_key.c | 225 int EC_KEY_generate_key(EC_KEY *eckey) argument 232 if (!eckey || !eckey->group) { 242 if (eckey->priv_key == NULL) { 247 priv_key = eckey->priv_key; 249 if (!EC_GROUP_get_order(eckey->group, order, ctx)) 257 if (eckey->pub_key == NULL) { 258 pub_key = EC_POINT_new(eckey->group); 262 pub_key = eckey->pub_key; 264 if (!EC_POINT_mul(eckey 284 EC_KEY_check_key(const EC_KEY *eckey) argument [all...] |
/freebsd-9.3-release/crypto/openssl/apps/ |
H A D | ec.c | 90 EC_KEY *eckey = NULL; local 266 eckey = d2i_EC_PUBKEY_bio(in, NULL); 268 eckey = d2i_ECPrivateKey_bio(in, NULL); 271 eckey = PEM_read_bio_EC_PUBKEY(in, NULL, NULL, NULL); 273 eckey = PEM_read_bio_ECPrivateKey(in, NULL, NULL, passin); 278 if (eckey == NULL) { 299 group = EC_KEY_get0_group(eckey); 302 EC_KEY_set_conv_form(eckey, form); 305 EC_KEY_set_asn1_flag(eckey, asn1_flag); 308 if (!EC_KEY_print(out, eckey, [all...] |
H A D | ecparam.c | 574 EC_KEY *eckey = EC_KEY_new(); local 576 if (eckey == NULL) 581 if (EC_KEY_set_group(eckey, group) == 0) 584 if (!EC_KEY_generate_key(eckey)) { 585 EC_KEY_free(eckey); 589 i = i2d_ECPrivateKey_bio(out, eckey); 591 i = PEM_write_bio_ECPrivateKey(out, eckey, NULL, 596 EC_KEY_free(eckey); 599 EC_KEY_free(eckey);
|
/freebsd-9.3-release/crypto/openssl/crypto/x509/ |
H A D | x_all.c | 328 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) argument 330 return ASN1_d2i_fp_of(EC_KEY, EC_KEY_new, d2i_EC_PUBKEY, fp, eckey); 333 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey) argument 335 return ASN1_i2d_fp_of(EC_KEY, i2d_EC_PUBKEY, fp, eckey); 338 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey) argument 340 return ASN1_d2i_fp_of(EC_KEY, EC_KEY_new, d2i_ECPrivateKey, fp, eckey); 343 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey) argument 345 return ASN1_i2d_fp_of(EC_KEY, i2d_ECPrivateKey, fp, eckey); 348 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) argument 350 return ASN1_d2i_bio_of(EC_KEY, EC_KEY_new, d2i_EC_PUBKEY, bp, eckey); 358 d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey) argument 363 i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey) argument [all...] |
H A D | x509.h | 789 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey); 790 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey); 791 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey); 792 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey); 828 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey); 829 int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey); 830 EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey); 831 int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);
|
/freebsd-9.3-release/crypto/openssl/crypto/pem/ |
H A D | pem_all.c | 138 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey); 317 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey) argument 326 if (eckey) { 327 EC_KEY_free(*eckey); 328 *eckey = dtmp; 383 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, 388 return pkey_get_eckey(pktmp, eckey);
|
/freebsd-9.3-release/crypto/openssl/crypto/evp/ |
H A D | evp_pkey.c | 95 EC_KEY *eckey = NULL; local 248 if (!(eckey = d2i_ECParameters(NULL, &cp, plen))) { 261 if ((eckey = EC_KEY_new()) == NULL) { 271 if (EC_KEY_set_group(eckey, group) == 0) 277 if (!d2i_ECPrivateKey(&eckey, &p_tmp, pkeylen)) { 283 if (EC_KEY_get0_public_key(eckey) == NULL) { 291 group = EC_KEY_get0_group(eckey); 302 priv_key = EC_KEY_get0_private_key(eckey); 308 if (EC_KEY_set_public_key(eckey, pub_key) == 0) { 316 EVP_PKEY_assign_EC_KEY(pkey, eckey); [all...] |
H A D | evp.h | 462 # define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\ 463 (char *)(eckey))
|