/freebsd-10.0-release/crypto/openssl/crypto/dsa/ |
H A D | dsa_key.c | 96 BIGNUM *pub_key=NULL,*priv_key=NULL; local 111 if (dsa->pub_key == NULL) 113 if ((pub_key=BN_new()) == NULL) goto err; 116 pub_key=dsa->pub_key; 131 if (!BN_mod_exp(pub_key,dsa->g,prk,dsa->p,ctx)) goto err; 135 dsa->pub_key=pub_key; 139 if ((pub_key != NULL) && (dsa->pub_key [all...] |
H A D | dsa_lib.c | 171 ret->pub_key=NULL; 226 if (r->pub_key != NULL) BN_clear_free(r->pub_key); 291 /* DSA has p, q, g, optional pub_key, optional priv_key. 292 * DH has p, optional length, g, optional pub_key, optional priv_key, 315 if (r->pub_key != NULL) 316 if ((ret->pub_key = BN_dup(r->pub_key)) == NULL)
|
H A D | dsa_asn1.c | 114 ASN1_SIMPLE(DSA, pub_key, BIGNUM), 135 ASN1_SIMPLE(DSA, pub_key, BIGNUM), 142 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
|
H A D | dsa_ameth.c | 119 if (!(dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) 218 * SEQUENCE {pub_key, priv_key} 266 if (!(dsa->pub_key = BN_new())) 277 if (!BN_mod_exp(dsa->pub_key, dsa->g, dsa->priv_key, dsa->p, ctx)) 416 if (BN_cmp(b->pkey.dsa->pub_key,a->pkey.dsa->pub_key) != 0) 443 const BIGNUM *priv_key, *pub_key; local 451 pub_key = x->pub_key; 453 pub_key [all...] |
/freebsd-10.0-release/crypto/openssl/crypto/ecdh/ |
H A D | ech_key.c | 72 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, argument 79 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF);
|
H A D | ech_locl.h | 68 int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
|
H A D | ech_ossl.c | 82 static int ecdh_compute_key(void *out, size_t len, const EC_POINT *pub_key, 108 static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, argument 146 if (!EC_POINT_mul(group, tmp, NULL, pub_key, priv_key, ctx))
|
H A D | ecdh.h | 94 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
|
/freebsd-10.0-release/crypto/openssl/crypto/ec/ |
H A D | ec_key.c | 85 ret->pub_key = NULL; 129 if (r->pub_key != NULL) 130 EC_POINT_free(r->pub_key); 164 if (src->pub_key && src->group) 166 if (dest->pub_key) 167 EC_POINT_free(dest->pub_key); 168 dest->pub_key = EC_POINT_new(src->group); 169 if (dest->pub_key == NULL) 171 if (!EC_POINT_copy(dest->pub_key, src->pub_key)) 242 EC_POINT *pub_key = NULL; local 490 EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) argument [all...] |
H A D | ec_ameth.c | 269 EC_POINT *pub_key; local 273 pub_key = EC_POINT_new(group); 274 if (pub_key == NULL) 279 if (!EC_POINT_copy(pub_key, EC_GROUP_get0_generator(group))) 281 EC_POINT_free(pub_key); 286 if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, NULL)) 288 EC_POINT_free(pub_key); 292 if (EC_KEY_set_public_key(eckey, pub_key) == 0) 294 EC_POINT_free(pub_key); 298 EC_POINT_free(pub_key); 434 BIGNUM *pub_key=NULL, *order=NULL; local [all...] |
/freebsd-10.0-release/crypto/openssl/crypto/dh/ |
H A D | dh_key.c | 66 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh); 87 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 97 return dh->meth->compute_key(key, pub_key, dh); 124 BIGNUM *pub_key=NULL,*priv_key=NULL; local 138 if (dh->pub_key == NULL) 140 pub_key=BN_new(); 141 if (pub_key == NULL) goto err; 144 pub_key=dh->pub_key; 187 if (!dh->meth->bn_mod_exp(dh, pub_key, d 203 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument [all...] |
H A D | dh_check.c | 122 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) argument 131 if (BN_cmp(pub_key,q)<=0) 135 if (BN_cmp(pub_key,q)>=0)
|
H A D | dh_ameth.c | 110 if (!(dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) 137 ASN1_INTEGER *pub_key = NULL; local 151 pub_key = BN_to_ASN1_INTEGER(dh->pub_key, NULL); 152 if (!pub_key) 155 penclen = i2d_ASN1_INTEGER(pub_key, &penc); 157 ASN1_INTEGER_free(pub_key); 325 BIGNUM *priv_key, *pub_key; local 333 pub_key = x->pub_key; [all...] |
H A D | dh.h | 117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh); 139 BIGNUM *pub_key; /* g^x */ member in struct:dh_st 210 int DH_check_pub_key(const DH *dh,const BIGNUM *pub_key, int *codes); 212 int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh);
|
H A D | dhtest.c | 156 BN_print(out,a->pub_key); 163 BN_print(out,b->pub_key); 168 aout=DH_compute_key(abuf,b->pub_key,a); 180 bout=DH_compute_key(bbuf,a->pub_key,b);
|
H A D | dh_lib.c | 163 ret->pub_key=NULL; 219 if (r->pub_key != NULL) BN_clear_free(r->pub_key);
|
/freebsd-10.0-release/crypto/openssh/ |
H A D | kexdhc.c | 71 packet_put_bignum2(dh->pub_key); 78 BN_print_fp(stderr, dh->pub_key); 137 dh->pub_key,
|
H A D | kexdhs.c | 100 BN_print_fp(stderr, dh->pub_key); 130 dh->pub_key, 152 packet_put_bignum2(dh->pub_key); /* f */
|
H A D | kexgexc.c | 110 BN_print_fp(stderr, dh->pub_key); 117 packet_put_bignum2(dh->pub_key); 181 dh->pub_key,
|
H A D | kexgexs.c | 136 BN_print_fp(stderr, dh->pub_key); 172 dh->pub_key, 195 packet_put_bignum2(dh->pub_key); /* f */
|
/freebsd-10.0-release/crypto/openssl/engines/ccgost/ |
H A D | gost_ameth.c | 406 pubkey = ((DSA *)EVP_PKEY_get0((EVP_PKEY *)pkey))->pub_key; 632 dsa->pub_key=BN_bin2bn(databuf,octet->length,NULL); 656 data_len = BN_num_bytes(dsa->pub_key); 658 BN_bn2bin(dsa->pub_key,databuf); 680 EC_POINT *pub_key; local 708 pub_key = EC_POINT_new(group); 710 ,pub_key,X,Y,NULL)) 714 EC_POINT_free(pub_key); 721 if (!EC_KEY_set_public_key(EVP_PKEY_get0(pk),pub_key)) 725 EC_POINT_free(pub_key); 740 const EC_POINT *pub_key; local 764 pub_key,X,Y,NULL); local [all...] |
H A D | gost2001.c | 193 const EC_POINT *pub_key=NULL; local 207 pub_key = EC_KEY_get0_public_key(ec); 238 if (!EC_POINT_mul(group,C,z1,pub_key,z2,ctx)) 279 EC_POINT *pub_key=NULL; local 297 pub_key = EC_POINT_new(group); 298 if (!EC_POINT_mul(group,pub_key,priv_key,NULL,NULL,ctx)) 303 if (!EC_KEY_set_public_key(ec,pub_key)) 311 EC_POINT_free(pub_key);
|
H A D | gost_pmeth.c | 381 EVP_PKEY* pub_key = EVP_PKEY_CTX_get0_pkey(ctx); local 384 if (pub_key) ok = gost_do_verify(tbs,tbs_len,s,EVP_PKEY_get0(pub_key)); 394 EVP_PKEY* pub_key = EVP_PKEY_CTX_get0_pkey(ctx); local 404 if (pub_key) ok = gost2001_do_verify(tbs,tbs_len,s,EVP_PKEY_get0(pub_key));
|
H A D | gost94_keyx.c | 30 static int compute_pair_key_le(unsigned char *pair_key,BIGNUM *pub_key,DH *dh) argument 34 key_size=DH_compute_key(be_key,pub_key,dh); 60 ret=compute_pair_key_le(dh_key,((DSA *)(EVP_PKEY_get0(pubk)))->pub_key,dh) ;
|
/freebsd-10.0-release/crypto/openssl/engines/ |
H A D | e_ubsec.c | 123 static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh); 851 (unsigned char *)dsa->pub_key->d, BN_num_bits(dsa->pub_key), 875 static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh) argument 888 ret = meth->compute_key(key, pub_key, dh); 894 (unsigned char *)pub_key->d, BN_num_bits(pub_key), 904 ret = meth->compute_key(key, pub_key, dh); 923 BIGNUM *pub_key = NULL; local 947 if (dh->pub_key [all...] |