/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/crypto/dh/ |
H A D | dh.h | 102 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 D | dhtest.c | 156 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-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/crypto/ecdh/ |
H A D | ecdh.h | 94 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libgcrypt-1.5.0/tests/ |
H A D | pkcs1v2.c | 171 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-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libgcrypt-1.5.0/tests/ |
H A D | pkcs1v2.c | 171 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-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/crypto/dh/ |
H A D | dh_check.c | 151 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) argument 165 if (BN_cmp(pub_key, tmp) <= 0) 169 if (BN_cmp(pub_key, tmp) >= 0) 173 /* Check pub_key^q == 1 mod p */ 174 if (!BN_mod_exp(tmp, pub_key, dh->q, dh->p, ctx))
|
H A D | dh_ameth.c | 133 if (!(dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) { 158 ASN1_INTEGER *pub_key = NULL; local 174 pub_key = BN_to_ASN1_INTEGER(dh->pub_key, NULL); 175 if (!pub_key) 178 penclen = i2d_ASN1_INTEGER(pub_key, &penc); 180 ASN1_INTEGER_free(pub_key); 342 BIGNUM *priv_key, *pub_key; local 350 pub_key = x->pub_key; [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/crypto/dh/ |
H A D | dh_check.c | 151 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) argument 165 if (BN_cmp(pub_key, tmp) <= 0) 169 if (BN_cmp(pub_key, tmp) >= 0) 173 /* Check pub_key^q == 1 mod p */ 174 if (!BN_mod_exp(tmp, pub_key, dh->q, dh->p, ctx))
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/engines/ccgost/ |
H A D | gost2001.c | 270 const EC_POINT *pub_key = NULL; local 292 pub_key = EC_KEY_get0_public_key(ec); 293 if(!pub_key || !EC_GROUP_get_order(group, order, ctx)) { 342 if (!EC_POINT_mul(group, C, z1, pub_key, z2, ctx)) { 384 EC_POINT *pub_key = NULL; local 405 pub_key = EC_POINT_new(group); 406 if(!pub_key) { 410 if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, ctx)) { 414 if (!EC_KEY_set_public_key(ec, pub_key)) { 420 if (pub_key) EC_POINT_fre [all...] |
H A D | gost_ameth.c | 385 pubkey = ((DSA *)EVP_PKEY_get0((EVP_PKEY *)pkey))->pub_key; 624 dsa->pub_key = BN_bin2bn(databuf, octet->length, NULL); 647 data_len = BN_num_bytes(dsa->pub_key); 649 BN_bn2bin(dsa->pub_key, databuf); 671 EC_POINT *pub_key; local 698 pub_key = EC_POINT_new(group); 699 if (!EC_POINT_set_affine_coordinates_GFp(group, pub_key, X, Y, NULL)) { 701 EC_POINT_free(pub_key); 708 if (!EC_KEY_set_public_key(EVP_PKEY_get0(pk), pub_key)) { 710 EC_POINT_free(pub_key); 725 const EC_POINT *pub_key; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/engines/ccgost/ |
H A D | gost2001.c | 270 const EC_POINT *pub_key = NULL; local 292 pub_key = EC_KEY_get0_public_key(ec); 293 if(!pub_key || !EC_GROUP_get_order(group, order, ctx)) { 342 if (!EC_POINT_mul(group, C, z1, pub_key, z2, ctx)) { 384 EC_POINT *pub_key = NULL; local 405 pub_key = EC_POINT_new(group); 406 if(!pub_key) { 410 if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, ctx)) { 414 if (!EC_KEY_set_public_key(ec, pub_key)) { 420 if (pub_key) EC_POINT_fre [all...] |
H A D | gost_ameth.c | 385 pubkey = ((DSA *)EVP_PKEY_get0((EVP_PKEY *)pkey))->pub_key; 624 dsa->pub_key = BN_bin2bn(databuf, octet->length, NULL); 647 data_len = BN_num_bytes(dsa->pub_key); 649 BN_bn2bin(dsa->pub_key, databuf); 671 EC_POINT *pub_key; local 698 pub_key = EC_POINT_new(group); 699 if (!EC_POINT_set_affine_coordinates_GFp(group, pub_key, X, Y, NULL)) { 701 EC_POINT_free(pub_key); 708 if (!EC_KEY_set_public_key(EVP_PKEY_get0(pk), pub_key)) { 710 EC_POINT_free(pub_key); 725 const EC_POINT *pub_key; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/crypto/dsa/ |
H A D | dsa_lib.c | 158 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-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/crypto/dsa/ |
H A D | dsa_lib.c | 166 ret->pub_key = NULL; 224 if (r->pub_key != NULL) 225 BN_clear_free(r->pub_key); 293 * DSA has p, q, g, optional pub_key, optional priv_key. DH has p, 294 * optional length, g, optional pub_key, optional priv_key, optional q. 315 if (r->pub_key != NULL) 316 if ((ret->pub_key = BN_dup(r->pub_key)) == NULL)
|
H A D | dsa_asn1.c | 115 ASN1_SIMPLE(DSA, pub_key, BIGNUM), 136 ASN1_SIMPLE(DSA, pub_key, BIGNUM), 143 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
|
H A D | dsa_ameth.c | 111 if (!(dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) { 210 * SEQUENCE {pub_key, priv_key} 252 if (!(dsa->pub_key = BN_new())) { 261 if (!BN_mod_exp(dsa->pub_key, dsa->g, dsa->priv_key, dsa->p, ctx)) { 394 if (BN_cmp(b->pkey.dsa->pub_key, a->pkey.dsa->pub_key) != 0) 421 const BIGNUM *priv_key, *pub_key; local 429 pub_key = x->pub_key; 431 pub_key [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/crypto/dsa/ |
H A D | dsa_lib.c | 166 ret->pub_key = NULL; 224 if (r->pub_key != NULL) 225 BN_clear_free(r->pub_key); 293 * DSA has p, q, g, optional pub_key, optional priv_key. DH has p, 294 * optional length, g, optional pub_key, optional priv_key, optional q. 315 if (r->pub_key != NULL) 316 if ((ret->pub_key = BN_dup(r->pub_key)) == NULL)
|
H A D | dsa_asn1.c | 115 ASN1_SIMPLE(DSA, pub_key, BIGNUM), 136 ASN1_SIMPLE(DSA, pub_key, BIGNUM), 143 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
|
H A D | dsa_ameth.c | 111 if (!(dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) { 210 * SEQUENCE {pub_key, priv_key} 252 if (!(dsa->pub_key = BN_new())) { 261 if (!BN_mod_exp(dsa->pub_key, dsa->g, dsa->priv_key, dsa->p, ctx)) { 394 if (BN_cmp(b->pkey.dsa->pub_key, a->pkey.dsa->pub_key) != 0) 421 const BIGNUM *priv_key, *pub_key; local 429 pub_key = x->pub_key; 431 pub_key [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/crypto/evp/ |
H A D | evp_pkey.c | 157 * SEQUENCE {pub_key, priv_key} 201 if (!(dsa->pub_key = BN_new())) { 210 if (!BN_mod_exp(dsa->pub_key, dsa->g, 291 EC_POINT *pub_key; local 295 pub_key = EC_POINT_new(group); 296 if (pub_key == NULL) 301 if (!EC_POINT_copy(pub_key, EC_GROUP_get0_generator(group))) 303 EC_POINT_free(pub_key); 308 if (!EC_POINT_mul(group, pub_key, priv_key, NULL, NULL, ctx)) 310 EC_POINT_free(pub_key); [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/engines/ |
H A D | e_ubsec.c | 126 static int ubsec_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, 873 (unsigned char *)dsa->pub_key->d, 874 BN_num_bits(dsa->pub_key), 900 static int ubsec_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, argument 911 ret = meth->compute_key(key, pub_key, dh); 918 (unsigned char *)pub_key->d, 919 BN_num_bits(pub_key), 929 ret = meth->compute_key(key, pub_key, dh); 944 BIGNUM *pub_key = NULL; local 968 if (dh->pub_key [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/engines/ |
H A D | e_ubsec.c | 123 static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh); 852 (unsigned char *)dsa->pub_key->d, BN_num_bits(dsa->pub_key), 876 static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh) argument 889 ret = meth->compute_key(key, pub_key, dh); 895 (unsigned char *)pub_key->d, BN_num_bits(pub_key), 905 ret = meth->compute_key(key, pub_key, dh); 924 BIGNUM *pub_key = NULL; local 948 if (dh->pub_key [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/engines/ |
H A D | e_ubsec.c | 126 static int ubsec_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, 873 (unsigned char *)dsa->pub_key->d, 874 BN_num_bits(dsa->pub_key), 900 static int ubsec_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, argument 911 ret = meth->compute_key(key, pub_key, dh); 918 (unsigned char *)pub_key->d, 919 BN_num_bits(pub_key), 929 ret = meth->compute_key(key, pub_key, dh); 944 BIGNUM *pub_key = NULL; local 968 if (dh->pub_key [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/crypto/ecdh/ |
H A D | ech_ossl.c | 81 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 156 if (!EC_POINT_mul(group, tmp, NULL, pub_key, priv_key, ctx)) {
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/crypto/ecdh/ |
H A D | ech_ossl.c | 81 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 156 if (!EC_POINT_mul(group, tmp, NULL, pub_key, priv_key, ctx)) {
|