HomeSort by relevance Sort by last modified time
    Searched defs:priv_key (Results 1 - 17 of 17) sorted by null

  /external/openssl/crypto/dsa/
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=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.h 153 BIGNUM *priv_key; /* x private key */ member in struct:dsa_st
  /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/openssl/crypto/dh/
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=priv_key
    [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 125 BIGNUM *priv_key; /* x */ member in struct:dh_st
  /external/openssl/crypto/ecdsa/
ecs_ossl.c 222 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))
  /external/openssl/crypto/ec/
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 = NULL, *order = 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...]
ec_lcl.h 241 BIGNUM *priv_key; member in struct:ec_key_st
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 = BN_bin2bn
1215 EC_PRIVATEKEY *priv_key=NULL; local
    [all...]
  /external/openssl/ssl/
d1_clnt.c 1140 const BIGNUM *priv_key; local
1142 priv_key = EC_KEY_get0_private_key(tkey);
1143 if (priv_key == NULL)
1148 if (!EC_KEY_set_private_key(clnt_ecdh, priv_key))
    [all...]
s3_clnt.c 2418 const BIGNUM *priv_key; local
    [all...]
s3_srvr.c 2352 const BIGNUM *priv_key; local
    [all...]
  /external/openssl/include/openssl/
dh.h 125 BIGNUM *priv_key; /* x */ member in struct:dh_st
dsa.h 153 BIGNUM *priv_key; /* x private key */ member in struct:dsa_st

Completed in 306 milliseconds