Searched refs:pub_key (Results 1 - 25 of 49) sorted by relevance

12

/barrelfish-master/lib/openssl-1.0.0d/crypto/dsa/
H A Ddsa_key.c80 BIGNUM *pub_key=NULL,*priv_key=NULL; local
95 if (dsa->pub_key == NULL)
97 if ((pub_key=BN_new()) == NULL) goto err;
100 pub_key=dsa->pub_key;
115 if (!BN_mod_exp(pub_key,dsa->g,prk,dsa->p,ctx)) goto err;
119 dsa->pub_key=pub_key;
123 if ((pub_key != NULL) && (dsa->pub_key
[all...]
H A Ddsa_asn1.c113 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
134 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
141 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
H A Ddsa_lib.c158 ret->pub_key=NULL;
213 if (r->pub_key != NULL) BN_clear_free(r->pub_key);
278 /* DSA has p, q, g, optional pub_key, optional priv_key.
279 * DH has p, optional length, g, optional pub_key, optional priv_key.
297 if (r->pub_key != NULL)
298 if ((ret->pub_key = BN_dup(r->pub_key)) == NULL)
H A Ddsa_ameth.c119 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))
410 if (BN_cmp(b->pkey.dsa->pub_key,a->pkey.dsa->pub_key) != 0)
437 const BIGNUM *priv_key, *pub_key; local
445 pub_key = x->pub_key;
447 pub_key
[all...]
/barrelfish-master/lib/openssl-1.0.0d/crypto/ecdh/
H A Dech_key.c75 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, argument
82 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF);
H A Dech_locl.h68 int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
H A Dech_ossl.c82 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 Decdh.h94 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
/barrelfish-master/lib/openssl-1.0.0d/crypto/ec/
H A Dec_key.c82 ret->pub_key = NULL;
126 if (r->pub_key != NULL)
127 EC_POINT_free(r->pub_key);
161 if (src->pub_key && src->group)
163 if (dest->pub_key)
164 EC_POINT_free(dest->pub_key);
165 dest->pub_key = EC_POINT_new(src->group);
166 if (dest->pub_key == NULL)
168 if (!EC_POINT_copy(dest->pub_key, src->pub_key))
238 EC_POINT *pub_key = NULL; local
405 EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) argument
[all...]
H A Dec_ameth.c269 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);
433 BIGNUM *pub_key=NULL, *order=NULL; local
[all...]
H A Dec_asn1.c1175 if (ret->pub_key)
1176 EC_POINT_clear_free(ret->pub_key);
1177 ret->pub_key = EC_POINT_new(ret->group);
1178 if (ret->pub_key == NULL)
1187 if (!EC_POINT_oct2point(ret->group, ret->pub_key,
1274 tmp_len = EC_POINT_point2oct(a->group, a->pub_key,
1289 if (!EC_POINT_point2oct(a->group, a->pub_key,
1374 if (ret->pub_key == NULL &&
1375 (ret->pub_key = EC_POINT_new(ret->group)) == NULL)
1380 if (!EC_POINT_oct2point(ret->group, ret->pub_key, *i
[all...]
/barrelfish-master/lib/openssl-1.0.0d/crypto/dh/
H A Ddh_key.c66 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
79 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
81 return dh->meth->compute_key(key, pub_key, dh);
108 BIGNUM *pub_key=NULL,*priv_key=NULL; local
122 if (dh->pub_key == NULL)
124 pub_key=BN_new();
125 if (pub_key == NULL) goto err;
128 pub_key=dh->pub_key;
158 if (!dh->meth->bn_mod_exp(dh, pub_key, d
174 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
[all...]
H A Ddh_check.c122 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 Ddh_ameth.c110 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 Ddh.h102 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
124 BIGNUM *pub_key; /* g^x */ member in struct:dh_st
195 int DH_check_pub_key(const DH *dh,const BIGNUM *pub_key, int *codes);
197 int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh);
H A Ddhtest.c156 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 Ddh_lib.c150 ret->pub_key=NULL;
206 if (r->pub_key != NULL) BN_clear_free(r->pub_key);
/barrelfish-master/lib/openssl-1.0.0d/test/
H A Ddhtest.c156 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);
/barrelfish-master/include/openssl/
H A Ddh.h102 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
124 BIGNUM *pub_key; /* g^x */ member in struct:dh_st
195 int DH_check_pub_key(const DH *dh,const BIGNUM *pub_key, int *codes);
197 int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh);
H A Decdh.h94 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
/barrelfish-master/lib/openssl-1.0.0d/engines/ccgost/
H A Dgost_ameth.c369 pubkey = ((DSA *)EVP_PKEY_get0((EVP_PKEY *)pkey))->pub_key;
595 dsa->pub_key=BN_bin2bn(databuf,octet->length,NULL);
619 data_len = BN_num_bytes(dsa->pub_key);
621 BN_bn2bin(dsa->pub_key,databuf);
643 EC_POINT *pub_key; local
671 pub_key = EC_POINT_new(group);
673 ,pub_key,X,Y,NULL))
677 EC_POINT_free(pub_key);
684 if (!EC_KEY_set_public_key(EVP_PKEY_get0(pk),pub_key))
688 EC_POINT_free(pub_key);
703 const EC_POINT *pub_key; local
727 pub_key,X,Y,NULL); local
[all...]
H A Dgost2001.c193 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 Dgost_pmeth.c375 EVP_PKEY* pub_key = EVP_PKEY_CTX_get0_pkey(ctx); local
378 if (pub_key) ok = gost_do_verify(tbs,tbs_len,s,EVP_PKEY_get0(pub_key));
388 EVP_PKEY* pub_key = EVP_PKEY_CTX_get0_pkey(ctx); local
398 if (pub_key) ok = gost2001_do_verify(tbs,tbs_len,s,EVP_PKEY_get0(pub_key));
H A Dgost94_keyx.c30 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) ;
/barrelfish-master/lib/openssl-1.0.0d/engines/
H A De_ubsec.c123 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...]

Completed in 176 milliseconds

12