/external/openssl/crypto/dh/ |
dh_key.c | 124 BIGNUM *pub_key=NULL,*priv_key=NULL; local 129 if (dh->priv_key == NULL) 131 priv_key=BN_new(); 132 if (priv_key == NULL) goto err; 136 priv_key=dh->priv_key; 161 if (!BN_rand_range(priv_key, dh->q)) 164 while (BN_is_zero(priv_key) || BN_is_one(priv_key)); 170 if (!BN_rand(priv_key, l, 0, 0)) goto err [all...] |
dh_ameth.c | 214 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;
|
dh_lib.c | 164 ret->priv_key=NULL; 220 if (r->priv_key != NULL) BN_clear_free(r->priv_key);
|
dhtest.c | 154 BN_print(out,a->priv_key); 161 BN_print(out,b->priv_key);
|
dh.h | 140 BIGNUM *priv_key; /* x */ member in struct:dh_st
|
/external/openssl/crypto/dsa/ |
dsa_key.c | 96 BIGNUM *pub_key=NULL,*priv_key=NULL; local 100 if (dsa->priv_key == NULL) 102 if ((priv_key=BN_new()) == NULL) goto err; 105 priv_key=dsa->priv_key; 108 if (!BN_rand_range(priv_key,dsa->q)) goto err; 109 while (BN_is_zero(priv_key)); 126 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME); 129 prk = priv_key; 134 dsa->priv_key=priv_key [all...] |
dsa_ameth.c | 217 * 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, &buf_len) [all...] |
dsa_lib.c | 172 ret->priv_key=NULL; 227 if (r->priv_key != NULL) BN_clear_free(r->priv_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, 318 if (r->priv_key != NULL) 319 if ((ret->priv_key = BN_dup(r->priv_key)) == NULL)
|
dsa_asn1.c | 115 ASN1_SIMPLE(DSA, priv_key, BIGNUM)
|
/external/openssl/crypto/ec/ |
ec_key.c | 86 ret->priv_key= NULL; 131 if (r->priv_key != NULL) 132 BN_clear_free(r->priv_key); 175 if (src->priv_key) 177 if (dest->priv_key == NULL) 179 dest->priv_key = BN_new(); 180 if (dest->priv_key == NULL) 183 if (!BN_copy(dest->priv_key, src->priv_key)) 241 BIGNUM *priv_key = NULL, *order = NULL local [all...] |
ec_asn1.c | 1120 EC_PRIVATEKEY *priv_key=NULL; local 1122 if ((priv_key = EC_PRIVATEKEY_new()) == NULL) 1128 if ((priv_key = d2i_EC_PRIVATEKEY(&priv_key, in, len)) == NULL) 1131 EC_PRIVATEKEY_free(priv_key); 1149 if (priv_key->parameters) 1153 ret->group = ec_asn1_pkparameters2group(priv_key->parameters); 1162 ret->version = priv_key->version; 1164 if (priv_key->privateKey) 1166 ret->priv_key = BN_bin2bn 1229 EC_PRIVATEKEY *priv_key=NULL; local [all...] |
ec_ameth.c | 267 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...] |
/external/bouncycastle/src/main/java/org/bouncycastle/jce/netscape/ |
NetscapeCertRequest.java | 208 public void sign(PrivateKey priv_key) throws NoSuchAlgorithmException, 212 sign(priv_key, null); 215 public void sign(PrivateKey priv_key, SecureRandom rand) 225 sig.initSign(priv_key, rand); 229 sig.initSign(priv_key);
|
/external/openssh/ |
dh.c | 245 if (dh->priv_key != NULL) 246 BN_clear_free(dh->priv_key); 247 if ((dh->priv_key = BN_new()) == NULL) 250 if (!BN_rand(dh->priv_key, 2*need, 0, 0)) 254 for (i = 0, bits_set = 0; i <= BN_num_bits(dh->priv_key); i++) 255 if (BN_is_bit_set(dh->priv_key, i)) 258 bits_set, BN_num_bits(dh->priv_key));
|
auth2-jpake.c | 161 if (k->dsa->priv_key == NULL) 162 fatal("%s: DSA key missing priv_key", __func__); 163 buffer_put_bignum2(&b, k->dsa->priv_key); 167 fatal("%s: ECDSA key missing priv_key", __func__);
|
/external/openssl/crypto/ecdh/ |
ech_ossl.c | 115 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))
|
ecdhtest.c | 170 BN_print(out,a->priv_key); 198 BN_print(out,b->priv_key);
|
/external/chromium/chrome/common/net/ |
x509_certificate_model_nss.cc | 269 SECKEYPrivateKey *priv_key = PK11_FindKeyByAnyCert(cert_handle, local 271 if (priv_key) { 273 SECItem* sec_item = PK11_GetLowLevelKeyIDForPrivateKey(priv_key); 278 SECKEY_DestroyPrivateKey(priv_key);
|
/external/chromium/net/socket/ |
dns_cert_provenance_checker.cc | 274 SECKEYPrivateKey* priv_key = NULL; local 279 priv_key = SECKEY_CreateECPrivateKey(&ec_der_params, &pub_key, NULL); 286 priv_key, server_pub_key, PR_FALSE /* is sender */, 331 SECKEY_DestroyPrivateKey(priv_key);
|
/external/openssl/crypto/ecdsa/ |
ecs_ossl.c | 232 const BIGNUM *priv_key; local 236 priv_key = EC_KEY_get0_private_key(eckey); 238 if (group == NULL || priv_key == NULL || ecdsa == NULL) 302 if (!BN_mod_mul(tmp, priv_key, ret->r, order, ctx))
|
/external/openssl/apps/ |
testdsa.h | 44 dsa->priv_key=BN_bin2bn(dsa512_priv,sizeof(dsa512_priv),NULL); 49 if ((dsa->priv_key == NULL) || (dsa->pub_key == NULL) || (dsa->p == NULL) || 108 dsa->priv_key=BN_bin2bn(dsa1024_priv,sizeof(dsa1024_priv),NULL); 113 if ((dsa->priv_key == NULL) || (dsa->pub_key == NULL) || (dsa->p == NULL) || 205 dsa->priv_key=BN_bin2bn(dsa2048_priv,sizeof(dsa2048_priv),NULL); 210 if ((dsa->priv_key == NULL) || (dsa->pub_key == NULL) || (dsa->p == NULL) ||
|
/external/wpa_supplicant_8/src/crypto/ |
crypto_openssl.c | 435 privlen = BN_num_bytes(dh->priv_key); 441 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen));
|
/external/openssl/crypto/pem/ |
pvkfmt.c | 338 if (!read_lebn(&p, 20, &dsa->priv_key)) 347 dsa->priv_key, dsa->p, ctx)) 565 if (BN_num_bits(dsa->priv_key) > 160) 639 write_lebn(out, dsa->priv_key, 20);
|
/external/openssl/crypto/engine/ |
eng_cryptodev.c | 1195 /* inputs: dgst dsa->p dsa->q dsa->g dsa->priv_key */ 1204 if (bn2crparam(dsa->priv_key, &kop.crk_param[4])) 1305 /* inputs: dh->priv_key pub_key dh->p key */ 1306 if (bn2crparam(dh->priv_key, &kop.crk_param[0])) [all...] |
/external/openssl/include/openssl/ |
dh.h | 140 BIGNUM *priv_key; /* x */ member in struct:dh_st
|