/external/chromium_org/third_party/openssl/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...] |
/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...] |
/external/chromium_org/third_party/openssl/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))
|
/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))
|
/external/chromium_org/third_party/openssl/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.h | 140 BIGNUM *priv_key; /* x */ member in struct:dh_st
|
/external/chromium_org/third_party/openssl/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/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.h | 140 BIGNUM *priv_key; /* x */ member in struct:dh_st
|
/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/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/chromium_org/chromeos/ |
cert_loader.cc | 256 SECKEYPrivateKey *priv_key = local 258 if (!priv_key) 262 SECItem* sec_item = PK11_GetLowLevelKeyIDForPrivateKey(priv_key); 268 SECKEY_DestroyPrivateKey(priv_key);
|
/external/chromium_org/third_party/openssl/openssl/crypto/ec/ |
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...] |
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_lcl.h | 246 BIGNUM *priv_key; member in struct:ec_key_st
|
/external/openssl/crypto/ec/ |
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...] |
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...] |
/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_org/chrome/common/net/ |
x509_certificate_model_nss.cc | 273 SECKEYPrivateKey *priv_key = PK11_FindKeyByAnyCert(cert_handle, local 275 if (priv_key) { 277 SECItem* sec_item = PK11_GetLowLevelKeyIDForPrivateKey(priv_key); 282 SECKEY_DestroyPrivateKey(priv_key);
|
/external/chromium_org/third_party/openssl/openssl/include/openssl/ |
dh.h | 140 BIGNUM *priv_key; /* x */ member in struct:dh_st
|
/external/chromium_org/third_party/openssl/openssl/ssl/ |
d1_clnt.c | 1316 const BIGNUM *priv_key; local [all...] |