/external/openssl/crypto/dh/ |
H A D | dh_check.c | 122 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 D | dh_key.c | 66 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 D | dh_ameth.c | 110 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 D | dh.h | 117 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 D | dsa_key.c | 96 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 D | dsa_ameth.c | 119 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)) 410 if (BN_cmp(b->pkey.dsa->pub_key,a->pkey.dsa->pub_key) != 0) 437 const BIGNUM *priv_key, *pub_key; local 445 pub_key = x->pub_key; 447 pub_key [all...] |
H A D | dsa.h | 167 BIGNUM *pub_key; /* y public key */ member in struct:dsa_st
|
/external/openssl/crypto/ecdh/ |
H A D | ech_key.c | 75 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, argument 82 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF);
|
H A D | ech_ossl.c | 82 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/bouncycastle/src/main/java/org/bouncycastle/jce/netscape/ |
H A D | NetscapeCertRequest.java | 132 PublicKey pub_key) throws NoSuchAlgorithmException, 138 pubkey = pub_key; 129 NetscapeCertRequest( String challenge, AlgorithmIdentifier signing_alg, PublicKey pub_key) argument
|
/external/openssl/crypto/ecdsa/ |
H A D | ecs_ossl.c | 361 const EC_POINT *pub_key; local 365 (pub_key = EC_KEY_get0_public_key(eckey)) == NULL || sig == NULL) 445 if (!EC_POINT_mul(group, point, u1, pub_key, u2, ctx))
|
/external/openssl/crypto/ec/ |
H A D | ec_key.c | 85 ret->pub_key = NULL; 129 if (r->pub_key != NULL) 130 EC_POINT_free(r->pub_key); 164 if (src->pub_key && src->group) 166 if (dest->pub_key) 167 EC_POINT_free(dest->pub_key); 168 dest->pub_key = EC_POINT_new(src->group); 169 if (dest->pub_key == NULL) 171 if (!EC_POINT_copy(dest->pub_key, src->pub_key)) 242 EC_POINT *pub_key = NULL; local 490 EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) argument [all...] |
H A D | ec_ameth.c | 269 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); 433 BIGNUM *pub_key=NULL, *order=NULL; local [all...] |
H A D | ec_lcl.h | 245 EC_POINT *pub_key; member in struct:ec_key_st
|
/external/chromium/net/socket/ |
H A D | dns_cert_provenance_checker.cc | 273 SECKEYPublicKey* pub_key = NULL; local 279 priv_key = SECKEY_CreateECPrivateKey(&ec_der_params, &pub_key, NULL); 322 SECItem* pub_key_serialized = SECKEY_EncodeDERSubjectPublicKeyInfo(pub_key); 330 SECKEY_DestroyPublicKey(pub_key);
|
/external/openssl/include/openssl/ |
H A D | dh.h | 117 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);
|
H A D | dsa.h | 167 BIGNUM *pub_key; /* y public key */ member in struct:dsa_st
|
/external/wpa_supplicant_8/hostapd/src/crypto/ |
H A D | crypto_openssl.c | 431 publen = BN_num_bytes(dh->pub_key); 440 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen)); 458 BIGNUM *pub_key; local 467 pub_key = BN_bin2bn(wpabuf_head(peer_public), wpabuf_len(peer_public), 469 if (pub_key == NULL) 477 keylen = DH_compute_key(wpabuf_mhead(res), pub_key, dh); 481 BN_free(pub_key); 486 BN_free(pub_key);
|
/external/wpa_supplicant_8/src/crypto/ |
H A D | crypto_openssl.c | 431 publen = BN_num_bytes(dh->pub_key); 440 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen)); 458 BIGNUM *pub_key; local 467 pub_key = BN_bin2bn(wpabuf_head(peer_public), wpabuf_len(peer_public), 469 if (pub_key == NULL) 477 keylen = DH_compute_key(wpabuf_mhead(res), pub_key, dh); 481 BN_free(pub_key); 486 BN_free(pub_key);
|
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/ |
H A D | crypto_openssl.c | 431 publen = BN_num_bytes(dh->pub_key); 440 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen)); 458 BIGNUM *pub_key; local 467 pub_key = BN_bin2bn(wpabuf_head(peer_public), wpabuf_len(peer_public), 469 if (pub_key == NULL) 477 keylen = DH_compute_key(wpabuf_mhead(res), pub_key, dh); 481 BN_free(pub_key); 486 BN_free(pub_key);
|
/external/openssl/crypto/engine/ |
H A D | eng_cryptodev.c | 119 BIGNUM *u1, BIGNUM *pub_key, BIGNUM *u2, BIGNUM *p, 129 const BIGNUM *pub_key, DH *dh); 1148 BIGNUM *u1, BIGNUM *pub_key, BIGNUM *u2, BIGNUM *p, 1164 if (!dsa->meth->bn_mod_exp(dsa,&t2,dsa->pub_key,u2,dsa->p,ctx,mont)) 1235 /* inputs: dgst dsa->p dsa->q dsa->g dsa->pub_key sig->r sig->s */ 1244 if (bn2crparam(dsa->pub_key, &kop.crk_param[4])) 1288 cryptodev_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 1297 return ((meth->compute_key)(key, pub_key, dh)); 1305 /* inputs: dh->priv_key pub_key dh->p key */ 1308 if (bn2crparam(pub_key, 1147 cryptodev_dsa_dsa_mod_exp(DSA *dsa, BIGNUM *t1, BIGNUM *g, BIGNUM *u1, BIGNUM *pub_key, BIGNUM *u2, BIGNUM *p, BN_CTX *ctx, BN_MONT_CTX *mont) argument [all...] |
/external/openssl/ssl/ |
H A D | s3_clnt.c | 1632 if (!(dh->pub_key=BN_bin2bn(p,i,NULL))) 2535 n=DH_compute_key(p,dh_srvr->pub_key,dh_clnt); 2552 n=BN_num_bytes(dh_clnt->pub_key); 2554 BN_bn2bin(dh_clnt->pub_key,p); 2758 EVP_PKEY *pub_key; local 2769 pkey_ctx=EVP_PKEY_CTX_new(pub_key=X509_get_pubkey(peer_cert),NULL); 2835 EVP_PKEY_free(pub_key);
|