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

  /external/chromium_org/third_party/openssl/openssl/crypto/dh/
dh_depr.c 67 DH *DH_generate_parameters(int prime_len, int generator,
78 if(DH_generate_parameters_ex(ret, prime_len, generator, &cb))
dh_gen.c 73 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb);
75 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator, BN_GENCB *cb)
86 return ret->meth->generate_params(ret, prime_len, generator, cb);
89 return FIPS_dh_generate_parameters_ex(ret, prime_len,
92 return dh_builtin_genparams(ret, prime_len, generator, cb);
96 * find a prime q which is prime_len/2 bits long.
120 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb)
175 if(!BN_generate_prime_ex(ret->p,prime_len,1,t1,t2,cb)) goto err;
dh_pmeth.c 72 int prime_len; member in struct:__anon15464
86 dctx->prime_len = 1024;
104 dctx->prime_len = sctx->prime_len;
125 dctx->prime_len = p1;
178 dctx->prime_len, dctx->generator, pcb);
dh.h 127 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb);
202 DH * DH_generate_parameters(int prime_len,int generator,
207 int DH_generate_parameters_ex(DH *dh, int prime_len,int generator, BN_GENCB *cb);
  /external/openssl/crypto/dh/
dh_depr.c 67 DH *DH_generate_parameters(int prime_len, int generator,
78 if(DH_generate_parameters_ex(ret, prime_len, generator, &cb))
dh_gen.c 73 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb);
75 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator, BN_GENCB *cb)
86 return ret->meth->generate_params(ret, prime_len, generator, cb);
89 return FIPS_dh_generate_parameters_ex(ret, prime_len,
92 return dh_builtin_genparams(ret, prime_len, generator, cb);
96 * find a prime q which is prime_len/2 bits long.
120 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb)
175 if(!BN_generate_prime_ex(ret->p,prime_len,1,t1,t2,cb)) goto err;
dh_pmeth.c 72 int prime_len; member in struct:__anon25912
86 dctx->prime_len = 1024;
104 dctx->prime_len = sctx->prime_len;
125 dctx->prime_len = p1;
178 dctx->prime_len, dctx->generator, pcb);
dh.h 127 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb);
202 DH * DH_generate_parameters(int prime_len,int generator,
207 int DH_generate_parameters_ex(DH *dh, int prime_len,int generator, BN_GENCB *cb);
  /external/wpa_supplicant_8/src/common/
sae.c 33 tmp->prime_len = crypto_ec_prime_len(tmp->ec);
43 tmp->prime_len = tmp->dh->prime_len;
44 if (tmp->prime_len > SAE_MAX_PRIME_LEN) {
50 tmp->prime_len);
180 sae->tmp->prime_len) < 0)
188 prime, sae->tmp->prime_len, pwd_value, bits);
192 pwd_value, sae->tmp->prime_len);
194 if (os_memcmp(pwd_value, prime, sae->tmp->prime_len) >= 0)
199 x = crypto_bignum_init_set(pwd_value, sae->tmp->prime_len);
    [all...]
sae.h 32 int prime_len; member in struct:sae_temporary_data
  /external/wpa_supplicant_8/src/crypto/
dh_groups.h 17 size_t prime_len; member in struct:dh_group
dh_groups.c     [all...]
  /external/wpa_supplicant_8/src/eap_common/
eap_eke_common.c 178 if (random_get_bytes(ret_priv, dh->prime_len))
180 if (os_memcmp(ret_priv, dh->prime, dh->prime_len) > 0) {
184 for (i = 0; i < dh->prime_len - 1; i++) {
188 if (i == dh->prime_len - 1 && (ret_priv[i] == 0 || ret_priv[i] == 1))
191 ret_priv, dh->prime_len);
194 pub_len = dh->prime_len;
195 if (crypto_mod_exp(&gen, 1, ret_priv, dh->prime_len,
196 dh->prime, dh->prime_len, ret_pub, &pub_len) < 0)
198 if (pub_len < dh->prime_len) {
199 size_t pad = dh->prime_len - pub_len
    [all...]
  /external/chromium_org/third_party/openssl/openssl/include/openssl/
dh.h 127 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb);
202 DH * DH_generate_parameters(int prime_len,int generator,
207 int DH_generate_parameters_ex(DH *dh, int prime_len,int generator, BN_GENCB *cb);
  /external/openssl/include/openssl/
dh.h 127 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb);
202 DH * DH_generate_parameters(int prime_len,int generator,
207 int DH_generate_parameters_ex(DH *dh, int prime_len,int generator, BN_GENCB *cb);
  /external/wpa_supplicant_8/src/eap_peer/
ikev2.c 91 pad_len = data->dh->prime_len - wpabuf_len(shared);
425 if (kei_len - 4 != data->dh->prime_len) {
428 (long) (kei_len - 4), (long) data->dh->prime_len);
972 wpabuf_put(msg, data->dh->prime_len - wpabuf_len(pv));
    [all...]
  /external/wpa_supplicant_8/src/eap_server/
ikev2.c 83 pad_len = data->dh->prime_len - wpabuf_len(shared);
404 if (ker_len - 4 != data->dh->prime_len) {
407 (long) (ker_len - 4), (long) data->dh->prime_len);
991 wpabuf_put(msg, data->dh->prime_len - wpabuf_len(pv));

Completed in 1297 milliseconds