Searched refs:pub_key (Results 1 - 25 of 83) sorted by relevance

1234

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/crypto/dsa/
H A Ddsa_key.c72 BIGNUM *pub_key=NULL,*priv_key=NULL; local
87 if (dsa->pub_key == NULL)
89 if ((pub_key=BN_new()) == NULL) goto err;
92 pub_key=dsa->pub_key;
94 if (!BN_mod_exp(pub_key,dsa->g,priv_key,dsa->p,ctx)) goto err;
97 dsa->pub_key=pub_key;
101 if ((pub_key != NULL) && (dsa->pub_key
[all...]
H A Ddsa_asn1.c108 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
129 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
136 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
H A Ddsa_lib.c155 ret->pub_key=NULL;
210 if (r->pub_key != NULL) BN_clear_free(r->pub_key);
275 /* DSA has p, q, g, optional pub_key, optional priv_key.
276 * DH has p, optional length, g, optional pub_key, optional priv_key.
294 if (r->pub_key != NULL)
295 if ((ret->pub_key = BN_dup(r->pub_key)) == NULL)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/dsa/
H A Ddsa_key.c80 BIGNUM *pub_key=NULL,*priv_key=NULL; local
95 if (dsa->pub_key == NULL)
97 if ((pub_key=BN_new()) == NULL) goto err;
100 pub_key=dsa->pub_key;
115 if (!BN_mod_exp(pub_key,dsa->g,prk,dsa->p,ctx)) goto err;
119 dsa->pub_key=pub_key;
123 if ((pub_key != NULL) && (dsa->pub_key
[all...]
H A Ddsa_asn1.c108 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
129 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
136 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
H A Ddsa_lib.c158 ret->pub_key=NULL;
213 if (r->pub_key != NULL) BN_clear_free(r->pub_key);
278 /* DSA has p, q, g, optional pub_key, optional priv_key.
279 * DH has p, optional length, g, optional pub_key, optional priv_key.
297 if (r->pub_key != NULL)
298 if ((ret->pub_key = BN_dup(r->pub_key)) == NULL)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/fips/dh/
H A Dfips_dh_key.c71 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
84 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
86 return dh->meth->compute_key(key, pub_key, dh);
112 BIGNUM *pub_key=NULL,*priv_key=NULL; local
126 if (dh->pub_key == NULL)
128 pub_key=BN_new();
129 if (pub_key == NULL) goto err;
132 pub_key=dh->pub_key;
147 if (!dh->meth->bn_mod_exp(dh, pub_key, d
163 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/crypto/dh/
H A Ddh_key.c68 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
81 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
83 return dh->meth->compute_key(key, pub_key, dh);
109 BIGNUM *pub_key=NULL,*priv_key=NULL; local
123 if (dh->pub_key == NULL)
125 pub_key=BN_new();
126 if (pub_key == NULL) goto err;
129 pub_key=dh->pub_key;
144 if (!dh->meth->bn_mod_exp(dh, pub_key, d
160 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
[all...]
H A Ddhtest.c143 BN_print(out,a->pub_key);
150 BN_print(out,b->pub_key);
155 aout=DH_compute_key(abuf,b->pub_key,a);
167 bout=DH_compute_key(bbuf,a->pub_key,b);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/ecdh/
H A Dech_key.c75 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 Dech_locl.h68 int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
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))
H A Decdh.h94 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/ec/
H A Dec_key.c82 ret->pub_key = NULL;
126 if (r->pub_key != NULL)
127 EC_POINT_free(r->pub_key);
161 if (src->pub_key && src->group)
163 if (dest->pub_key)
164 EC_POINT_free(dest->pub_key);
165 dest->pub_key = EC_POINT_new(src->group);
166 if (dest->pub_key == NULL)
168 if (!EC_POINT_copy(dest->pub_key, src->pub_key))
238 EC_POINT *pub_key = NULL; local
407 EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/dh/
H A Ddh_key.c66 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
79 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
81 return dh->meth->compute_key(key, pub_key, dh);
108 BIGNUM *pub_key=NULL,*priv_key=NULL; local
122 if (dh->pub_key == NULL)
124 pub_key=BN_new();
125 if (pub_key == NULL) goto err;
128 pub_key=dh->pub_key;
158 if (!dh->meth->bn_mod_exp(dh, pub_key, d
174 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
[all...]
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.h102 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
124 BIGNUM *pub_key; /* g^x */ member in struct:dh_st
194 int DH_check_pub_key(const DH *dh,const BIGNUM *pub_key, int *codes);
196 int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh);
H A Ddhtest.c156 BN_print(out,a->pub_key);
163 BN_print(out,b->pub_key);
168 aout=DH_compute_key(abuf,b->pub_key,a);
180 bout=DH_compute_key(bbuf,a->pub_key,b);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libgcrypt-1.5.0/tests/
H A Dpubkey.c230 gcry_sexp_t pub_key, sec_key; local
243 rc = gcry_sexp_sscan (&pub_key, NULL, sample_public_key_1,
250 *pkey = pub_key;
257 gcry_sexp_t key_spec, key, pub_key, sec_key; local
272 pub_key = gcry_sexp_find_token (key, "public-key", 0);
273 if (! pub_key)
281 *pkey = pub_key;
289 gcry_sexp_t key_spec, key, pub_key, sec_key; local
304 pub_key = gcry_sexp_find_token (key, "public-key", 0);
305 if (!pub_key)
321 gcry_sexp_t key_spec, key, pub_key, sec_key; local
358 gcry_sexp_t key_spec, key, pub_key, sec_key; local
393 gcry_sexp_t key_spec, key, pub_key, sec_key; local
425 gcry_sexp_t key_spec, key, pub_key, sec_key; local
467 gcry_sexp_t key_spec, key, pub_key, sec_key; local
510 gcry_sexp_t key_spec, key, pub_key, sec_key; local
810 gcry_sexp_t key_spec, key, pub_key, sec_key; local
[all...]
H A Dpkcs1v2.c171 gcry_sexp_t sec_key, pub_key; local
186 err = gcry_sexp_build (&pub_key, NULL,
218 err = gcry_pk_encrypt (&ciph, plain, pub_key);
275 gcry_sexp_release (pub_key);
293 gcry_sexp_t sec_key, pub_key; local
308 err = gcry_sexp_build (&pub_key, NULL,
383 err = gcry_pk_verify (sig, sigtmpl, pub_key);
397 gcry_sexp_release (pub_key);
415 gcry_sexp_t sec_key, pub_key; local
430 err = gcry_sexp_build (&pub_key, NUL
537 gcry_sexp_t sec_key, pub_key; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/fips/dsa/
H A Dfips_dsa_gen.c335 BIGNUM *pub_key=NULL,*priv_key=NULL; local
350 if (dsa->pub_key == NULL)
352 if ((pub_key=BN_new()) == NULL) goto err;
355 pub_key=dsa->pub_key;
357 if (!BN_mod_exp(pub_key,dsa->g,priv_key,dsa->p,ctx)) goto err;
360 dsa->pub_key=pub_key;
368 if ((pub_key != NULL) && (dsa->pub_key
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/test/
H A Ddhtest.c143 BN_print(out,a->pub_key);
150 BN_print(out,b->pub_key);
155 aout=DH_compute_key(abuf,b->pub_key,a);
167 bout=DH_compute_key(bbuf,a->pub_key,b);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/include/openssl/
H A Ddh.h102 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
124 BIGNUM *pub_key; /* g^x */ member in struct:dh_st
194 int DH_check_pub_key(const DH *dh,const BIGNUM *pub_key, int *codes);
196 int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh);
H A Decdh.h94 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/test/
H A Ddhtest.c156 BN_print(out,a->pub_key);
163 BN_print(out,b->pub_key);
168 aout=DH_compute_key(abuf,b->pub_key,a);
180 bout=DH_compute_key(bbuf,a->pub_key,b);

Completed in 217 milliseconds

1234