/external/openssl/crypto/dsa/ |
H A D | dsa_key.c | 80 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 D | dsa.h | 153 BIGNUM *priv_key; /* x private key */ member in struct:dsa_st
|
H A D | 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, [all...] |
/external/openssl/crypto/ecdh/ |
H A D | 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/bouncycastle/src/main/java/org/bouncycastle/jce/netscape/ |
H A D | NetscapeCertRequest.java | 208 public void sign(PrivateKey priv_key) throws NoSuchAlgorithmException, argument 212 sign(priv_key, null); 215 public void sign(PrivateKey priv_key, SecureRandom rand) argument 225 sig.initSign(priv_key, rand); 229 sig.initSign(priv_key);
|
/external/openssl/crypto/dh/ |
H A D | dh_key.c | 108 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 D | 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;
|
H A D | dh.h | 125 BIGNUM *priv_key; /* x */ member in struct:dh_st
|
/external/openssl/crypto/ecdsa/ |
H A D | ecs_ossl.c | 230 const BIGNUM *priv_key; local 234 priv_key = EC_KEY_get0_private_key(eckey); 236 if (group == NULL || priv_key == NULL || ecdsa == NULL) 300 if (!BN_mod_mul(tmp, priv_key, ret->r, order, ctx))
|
/external/openssl/crypto/ec/ |
H A D | ec_key.c | 83 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 D | 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...] |
H A D | ec_lcl.h | 241 BIGNUM *priv_key; member in struct:ec_key_st
|
H A D | ec_asn1.c | 1106 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...] |
/external/chromium/net/socket/ |
H A D | 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/include/openssl/ |
H A D | dh.h | 125 BIGNUM *priv_key; /* x */ member in struct:dh_st
|
H A D | dsa.h | 153 BIGNUM *priv_key; /* x private key */ member in struct:dsa_st
|
/external/openssl/ssl/ |
H A D | d1_clnt.c | 1142 const BIGNUM *priv_key; local 1144 priv_key = EC_KEY_get0_private_key(tkey); 1145 if (priv_key == NULL) 1150 if (!EC_KEY_set_private_key(clnt_ecdh, priv_key))
|
H A D | s3_clnt.c | 2442 const BIGNUM *priv_key; local 2444 priv_key = EC_KEY_get0_private_key(tkey); 2445 if (priv_key == NULL) 2450 if (!EC_KEY_set_private_key(clnt_ecdh, priv_key))
|
H A D | s3_srvr.c | 1556 dhp->priv_key == NULL || 1569 dh->priv_key=BN_dup(dhp->priv_key); 1571 (dh->priv_key == NULL)) 2393 const BIGNUM *priv_key; local 2418 priv_key = EC_KEY_get0_private_key(tkey); 2421 !EC_KEY_set_private_key(srvr_ecdh, priv_key))
|
/external/chromium/chrome/common/net/ |
H A D | 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);
|