Searched defs:pub_key (Results 1 - 25 of 35) sorted by relevance

12

/external/openssl/crypto/dh/
H A Ddh_check.c122 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) argument
131 if (BN_cmp(pub_key,q)<=0)
135 if (BN_cmp(pub_key,q)>=0)
H A Ddh_key.c66 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
87 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
97 return dh->meth->compute_key(key, pub_key, dh);
124 BIGNUM *pub_key=NULL,*priv_key=NULL; local
138 if (dh->pub_key == NULL)
140 pub_key=BN_new();
141 if (pub_key == NULL) goto err;
144 pub_key=dh->pub_key;
187 if (!dh->meth->bn_mod_exp(dh, pub_key, d
203 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
[all...]
H A Ddh_ameth.c110 if (!(dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)))
137 ASN1_INTEGER *pub_key = NULL; local
151 pub_key = BN_to_ASN1_INTEGER(dh->pub_key, NULL);
152 if (!pub_key)
155 penclen = i2d_ASN1_INTEGER(pub_key, &penc);
157 ASN1_INTEGER_free(pub_key);
325 BIGNUM *priv_key, *pub_key; local
333 pub_key = x->pub_key;
[all...]
H A Ddh.h117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
139 BIGNUM *pub_key; /* g^x */ member in struct:dh_st
210 int DH_check_pub_key(const DH *dh,const BIGNUM *pub_key, int *codes);
212 int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh);
/external/openssl/crypto/dsa/
H A Ddsa_key.c96 BIGNUM *pub_key=NULL,*priv_key=NULL; local
111 if (dsa->pub_key == NULL)
113 if ((pub_key=BN_new()) == NULL) goto err;
116 pub_key=dsa->pub_key;
131 if (!BN_mod_exp(pub_key,dsa->g,prk,dsa->p,ctx)) goto err;
135 dsa->pub_key=pub_key;
139 if ((pub_key != NULL) && (dsa->pub_key
[all...]
H A Ddsa_ameth.c119 if (!(dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)))
218 * SEQUENCE {pub_key, priv_key}
266 if (!(dsa->pub_key = BN_new()))
277 if (!BN_mod_exp(dsa->pub_key, dsa->g, dsa->priv_key, dsa->p, ctx))
416 if (BN_cmp(b->pkey.dsa->pub_key,a->pkey.dsa->pub_key) != 0)
443 const BIGNUM *priv_key, *pub_key; local
451 pub_key = x->pub_key;
453 pub_key
[all...]
/external/openssl/crypto/ecdh/
H A Dech_key.c72 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, argument
79 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF);
H A Dech_ossl.c82 static int ecdh_compute_key(void *out, size_t len, const EC_POINT *pub_key,
108 static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, argument
146 if (!EC_POINT_mul(group, tmp, NULL, pub_key, priv_key, ctx))
/external/chromium_org/net/base/
H A Dopenssl_private_key_store_memory.cc69 bool OpenSSLPrivateKeyStore::HasPrivateKey(EVP_PKEY* pub_key) { argument
70 return MemoryKeyPairStore::GetInstance()->HasPrivateKey(pub_key);
/external/chromium_org/third_party/boringssl/src/crypto/dh/
H A Dcheck.c64 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) { argument
74 if (BN_cmp(pub_key, &q) <= 0) {
81 if (BN_cmp(pub_key, &q) >= 0) {
H A Ddh_impl.c182 BIGNUM *pub_key = NULL, *priv_key = NULL; local
200 if (dh->pub_key == NULL) {
201 pub_key = BN_new();
202 if (pub_key == NULL) {
206 pub_key = dh->pub_key;
232 if (!BN_mod_exp_mont(pub_key, dh->g, &local_priv, dh->p, ctx, mont)) {
236 dh->pub_key = pub_key;
245 if (pub_key !
255 compute_key(DH *dh, unsigned char *out, const BIGNUM *pub_key) argument
[all...]
/external/chromium_org/net/ssl/
H A Dopenssl_client_key_store.cc39 OpenSSLClientKeyStore::KeyPair::KeyPair(EVP_PKEY* pub_key, argument
41 : public_key(EVP_PKEY_dup(pub_key)),
74 void OpenSSLClientKeyStore::AddKeyPair(EVP_PKEY* pub_key, argument
76 int index = FindKeyPairIndex(pub_key);
78 pairs_.push_back(KeyPair(pub_key, private_key));
91 crypto::ScopedEVP_PKEY pub_key(GetOpenSSLPublicKey(client_cert));
92 if (!pub_key.get())
95 AddKeyPair(pub_key.get(), private_key);
104 crypto::ScopedEVP_PKEY pub_key(GetOpenSSLPublicKey(client_cert));
105 if (!pub_key
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/
H A DNetscapeCertRequest.java133 PublicKey pub_key) throws NoSuchAlgorithmException,
139 pubkey = pub_key;
130 NetscapeCertRequest( String challenge, AlgorithmIdentifier signing_alg, PublicKey pub_key) argument
/external/chromium_org/third_party/boringssl/src/crypto/ecdh/
H A Decdh.c75 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, argument
108 if (!EC_POINT_mul(group, tmp, NULL, pub_key, priv, ctx)) {
/external/chromium_org/third_party/boringssl/src/include/openssl/
H A Ddsa.h346 BIGNUM *pub_key; /* y public key */ member in struct:dsa_st
H A Ddh.h157 /* DH_check_pub_key checks the suitability of |pub_key| as a public key for the
161 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
221 int (*compute_key)(DH *dh, uint8_t *out, const BIGNUM *pub_key);
229 BIGNUM *pub_key; /* g^x */ member in struct:dh_st
/external/openssl/crypto/ecdsa/
H A Decs_ossl.c381 const EC_POINT *pub_key; local
385 (pub_key = EC_KEY_get0_public_key(eckey)) == NULL || sig == NULL)
465 if (!EC_POINT_mul(group, point, u1, pub_key, u2, ctx))
/external/chromium_org/third_party/boringssl/src/crypto/dsa/
H A Ddsa_impl.c369 if (!BN_mod_exp2_mont(&t1, dsa->g, &u1, dsa->pub_key, &u2, dsa->p, ctx, mont)) {
401 BIGNUM *pub_key = NULL, *priv_key = NULL; local
423 pub_key = dsa->pub_key;
424 if (pub_key == NULL) {
425 pub_key = BN_new();
426 if (pub_key == NULL) {
434 if (!BN_mod_exp(pub_key, dsa->g, &prk, dsa->p, ctx)) {
439 dsa->pub_key = pub_key;
[all...]
/external/chromium_org/third_party/boringssl/src/crypto/ec/
H A Dec_key.c153 if (r->pub_key != NULL) {
154 EC_POINT_free(r->pub_key);
189 if (src->pub_key && src->group) {
190 if (dest->pub_key) {
191 EC_POINT_free(dest->pub_key);
193 dest->pub_key = EC_POINT_new(src->group);
194 if (dest->pub_key == NULL) {
197 if (!EC_POINT_copy(dest->pub_key, src->pub_key)) {
275 return key->pub_key;
278 EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) argument
440 EC_POINT *pub_key = NULL; local
[all...]
H A Dinternal.h338 EC_POINT *pub_key; member in struct:ec_key_st
/external/chromium_org/third_party/boringssl/src/crypto/ecdsa/
H A Decdsa.c135 const EC_POINT *pub_key; local
144 (pub_key = EC_KEY_get0_public_key(eckey)) == NULL ||
202 if (!EC_POINT_mul(group, point, u1, pub_key, u2, ctx)) {
/external/openssl/crypto/ec/
H A Dec_key.c85 ret->pub_key = NULL;
130 if (r->pub_key != NULL)
131 EC_POINT_free(r->pub_key);
165 if (src->pub_key && src->group)
167 if (dest->pub_key)
168 EC_POINT_free(dest->pub_key);
169 dest->pub_key = EC_POINT_new(src->group);
170 if (dest->pub_key == NULL)
172 if (!EC_POINT_copy(dest->pub_key, src->pub_key))
244 EC_POINT *pub_key = NULL; local
492 EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) argument
[all...]
H A Dec_ameth.c269 EC_POINT *pub_key; local
273 pub_key = EC_POINT_new(group);
274 if (pub_key == NULL)
279 if (!EC_POINT_copy(pub_key, EC_GROUP_get0_generator(group)))
281 EC_POINT_free(pub_key);
286 if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, NULL))
288 EC_POINT_free(pub_key);
292 if (EC_KEY_set_public_key(eckey, pub_key) == 0)
294 EC_POINT_free(pub_key);
298 EC_POINT_free(pub_key);
434 BIGNUM *pub_key=NULL, *order=NULL; local
[all...]
H A Dec_lcl.h245 EC_POINT *pub_key; member in struct:ec_key_st
/external/chromium_org/third_party/boringssl/src/crypto/evp/
H A Dp_ec_asn1.c251 EC_POINT *pub_key; local
255 pub_key = EC_POINT_new(group);
256 if (pub_key == NULL) {
260 if (!EC_POINT_copy(pub_key, EC_GROUP_get0_generator(group))) {
261 EC_POINT_free(pub_key);
266 if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, NULL)) {
267 EC_POINT_free(pub_key);
271 if (EC_KEY_set_public_key(eckey, pub_key) == 0) {
272 EC_POINT_free(pub_key);
276 EC_POINT_free(pub_key);
[all...]

Completed in 407 milliseconds

12