Searched refs:priv_key (Results 1 - 25 of 40) 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
84 if (dsa->priv_key == NULL)
86 if ((priv_key=BN_new()) == NULL) goto err;
89 priv_key=dsa->priv_key;
92 if (!BN_rand_range(priv_key,dsa->q)) goto err;
93 while (BN_is_zero(priv_key));
110 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME);
113 prk = priv_key;
118 dsa->priv_key
[all...]
H A Ddsa_lib.c159 ret->priv_key=NULL;
214 if (r->priv_key != NULL) BN_clear_free(r->priv_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.
300 if (r->priv_key != NULL)
301 if ((ret->priv_key = BN_dup(r->priv_key)) == NULL)
H A Ddsa_ameth.c217 * SEQUENCE {parameters, priv_key}
218 * SEQUENCE {pub_key, priv_key}
260 if (!(dsa->priv_key = ASN1_INTEGER_to_BN(privkey, NULL)))
277 if (!BN_mod_exp(dsa->pub_key, dsa->g, dsa->priv_key, dsa->p, ctx))
327 prkey = BN_to_ASN1_INTEGER(pkey->pkey.dsa->priv_key, NULL);
437 const BIGNUM *priv_key, *pub_key; local
440 priv_key = x->priv_key;
442 priv_key = NULL;
459 update_buflen(priv_key,
[all...]
H A Ddsa_asn1.c114 ASN1_SIMPLE(DSA, priv_key, BIGNUM)
/barrelfish-master/lib/lwip2/src/apps/snmp/
H A Dsnmpv3_dummy.c48 * @param priv_key is a pointer to a pointer to a string. Implementation has to set this if user was found.
51 snmpv3_get_user(const char* username, u8_t *auth_algo, u8_t *auth_key, u8_t *priv_algo, u8_t *priv_key) argument
72 if(priv_key != NULL) {
75 priv_key);
/barrelfish-master/lib/openssl-1.0.0d/crypto/ec/
H A Dec_key.c83 ret->priv_key= NULL;
128 if (r->priv_key != NULL)
129 BN_clear_free(r->priv_key);
172 if (src->priv_key)
174 if (dest->priv_key == NULL)
176 dest->priv_key = BN_new();
177 if (dest->priv_key == NULL)
180 if (!BN_copy(dest->priv_key, src->priv_key))
237 BIGNUM *priv_key local
392 EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *priv_key) argument
[all...]
H A Dec_asn1.c1106 EC_PRIVATEKEY *priv_key=NULL; local
1108 if ((priv_key = EC_PRIVATEKEY_new()) == NULL)
1114 if ((priv_key = d2i_EC_PRIVATEKEY(&priv_key, in, len)) == NULL)
1117 EC_PRIVATEKEY_free(priv_key);
1135 if (priv_key->parameters)
1139 ret->group = ec_asn1_pkparameters2group(priv_key->parameters);
1148 ret->version = priv_key->version;
1150 if (priv_key->privateKey)
1152 ret->priv_key
1215 EC_PRIVATEKEY *priv_key=NULL; local
[all...]
H A Dec_ameth.c267 const BIGNUM *priv_key; local
285 priv_key = EC_KEY_get0_private_key(eckey);
286 if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, NULL))
437 const BIGNUM *priv_key; local
467 priv_key = EC_KEY_get0_private_key(x);
468 if (priv_key && (i = (size_t)BN_num_bytes(priv_key)) > buf_len)
472 priv_key = NULL;
499 if ((priv_key != NULL) && !ASN1_bn_print(bp, "priv:", priv_key,
[all...]
/barrelfish-master/lib/openssl-1.0.0d/crypto/dh/
H A Ddh_key.c108 BIGNUM *pub_key=NULL,*priv_key=NULL; local
113 if (dh->priv_key == NULL)
115 priv_key=BN_new();
116 if (priv_key == NULL) goto err;
120 priv_key=dh->priv_key;
142 if (!BN_rand(priv_key, l, 0, 0)) goto err;
153 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME);
156 prk = priv_key;
162 dh->priv_key
[all...]
H A Ddh_ameth.c214 if (!(dh->priv_key = ASN1_INTEGER_to_BN(privkey, NULL)))
260 prkey = BN_to_ASN1_INTEGER(pkey->pkey.dh->priv_key, NULL);
325 BIGNUM *priv_key, *pub_key; local
328 priv_key = x->priv_key;
330 priv_key = NULL;
347 update_buflen(priv_key, &buf_len);
368 if (!ASN1_bn_print(bp,"private-key:",priv_key,m,indent)) goto err;
H A Ddhtest.c154 BN_print(out,a->priv_key);
161 BN_print(out,b->priv_key);
H A Ddh_lib.c151 ret->priv_key=NULL;
207 if (r->priv_key != NULL) BN_clear_free(r->priv_key);
H A Ddh.h125 BIGNUM *priv_key; /* x */ member in struct:dh_st
/barrelfish-master/lib/openssl-1.0.0d/crypto/ecdh/
H A Dech_ossl.c115 const BIGNUM *priv_key; local
132 priv_key = EC_KEY_get0_private_key(ecdh);
133 if (priv_key == NULL)
146 if (!EC_POINT_mul(group, tmp, NULL, pub_key, priv_key, ctx))
H A Decdhtest.c168 BN_print(out,a->priv_key);
194 BN_print(out,b->priv_key);
/barrelfish-master/include/lwip2/lwip/apps/
H A Dsnmpv3.h68 err_t snmpv3_get_user(const char* username, u8_t *auth_algo, u8_t *auth_key, u8_t *priv_algo, u8_t *priv_key);
/barrelfish-master/lib/openssl-1.0.0d/engines/ccgost/
H A Dgost2001_keyx.c24 static int VKO_compute_key(unsigned char *shared_key,size_t shared_key_size,const EC_POINT *pub_key,EC_KEY *priv_key,const unsigned char *ukm) argument
28 const BIGNUM* key=EC_KEY_get0_private_key(priv_key);
29 EC_POINT *pnt=EC_POINT_new(EC_KEY_get0_group(priv_key));
44 EC_GROUP_get_order(EC_KEY_get0_group(priv_key),order,ctx);
46 EC_POINT_mul(EC_KEY_get0_group(priv_key),pnt,NULL,pub_key,p,ctx);
47 EC_POINT_get_affine_coordinates_GFp(EC_KEY_get0_group(priv_key),
H A Dgost2001.c100 const BIGNUM *priv_key; local
115 priv_key = EC_KEY_get0_private_key(eckey);
161 /* s = (r*priv_key+k*e) mod order */
163 BN_mod_mul(tmp,priv_key,r,order,ctx);
280 const BIGNUM *priv_key=NULL; local
291 if (!(priv_key=EC_KEY_get0_private_key(ec)))
298 if (!EC_POINT_mul(group,pub_key,priv_key,NULL,NULL,ctx))
H A Dgost_sign.c85 BN_mod_mul(tmp,dsa->priv_key,newsig->r,dsa->q,ctx);
205 BN_mod_exp(dsa->pub_key, dsa->g,dsa->priv_key,dsa->p,ctx);
244 dsa->priv_key = BN_new();
245 BN_rand_range(dsa->priv_key,dsa->q);
H A Dgost94_keyx.c47 static int make_cp_exchange_key(BIGNUM *priv_key,EVP_PKEY *pubk, unsigned char *shared_key) argument
59 dh->priv_key = BN_dup(priv_key);
H A Dgost_ameth.c160 dsa->priv_key = BN_dup(priv);
192 if (!dsa->priv_key) return NULL;
193 return dsa->priv_key;
280 ASN1_INTEGER *priv_key=NULL; local
310 priv_key=d2i_ASN1_INTEGER(NULL,&p,priv_len);
311 if (!priv_key) return 0;
312 ret= ((pk_num = ASN1_INTEGER_to_BN(priv_key, NULL))!=NULL) ;
313 ASN1_INTEGER_free(priv_key);
516 if (dto->priv_key)
/barrelfish-master/lib/openssl-1.0.0d/engines/
H A De_ubsec.c782 (unsigned char *)dsa->priv_key->d, BN_num_bits(dsa->priv_key),
893 (unsigned char *)dh->priv_key->d, BN_num_bits(dh->priv_key),
924 BIGNUM *priv_key = NULL; local
931 if (dh->priv_key == NULL)
933 priv_key = BN_new();
934 if (priv_key == NULL) goto err;
936 if(bn_wexpand(priv_key, dh->p->top) == NULL) goto err;
938 if (!BN_rand_range(priv_key, d
[all...]
/barrelfish-master/lib/openssl-1.0.0d/test/
H A Ddhtest.c154 BN_print(out,a->priv_key);
161 BN_print(out,b->priv_key);
/barrelfish-master/lib/openssl-1.0.0d/crypto/ecdsa/
H A Decs_ossl.c222 const BIGNUM *priv_key; local
226 priv_key = EC_KEY_get0_private_key(eckey);
228 if (group == NULL || priv_key == NULL || ecdsa == NULL)
292 if (!BN_mod_mul(tmp, priv_key, ret->r, order, ctx))
/barrelfish-master/include/openssl/
H A Ddh.h125 BIGNUM *priv_key; /* x */ member in struct:dh_st

Completed in 205 milliseconds

12