| /src/crypto/external/bsd/openssl.old/dist/crypto/dsa/ |
| dsa_key.c | 29 BIGNUM *pub_key = NULL, *priv_key = NULL; local 45 if (dsa->pub_key == NULL) { 46 if ((pub_key = BN_new()) == NULL) 49 pub_key = dsa->pub_key; 58 if (!BN_mod_exp(pub_key, dsa->g, prk, dsa->p, ctx)) { 67 dsa->pub_key = pub_key; 71 if (pub_key != dsa->pub_key) [all...] |
| /src/crypto/external/apache2/openssl/dist/crypto/dsa/ |
| dsa_check.c | 66 int ossl_dsa_check_pub_key(const DSA *dsa, const BIGNUM *pub_key, int *ret) 71 return ossl_ffc_validate_public_key(&dsa->params, pub_key, ret) 80 int ossl_dsa_check_pub_key_partial(const DSA *dsa, const BIGNUM *pub_key, int *ret) 85 return ossl_ffc_validate_public_key_partial(&dsa->params, pub_key, ret) 107 BIGNUM *pub_key = NULL; local 114 || dsa->pub_key == NULL) 120 pub_key = BN_new(); 121 if (pub_key == NULL) 125 if (!ossl_dsa_generate_public_key(ctx, dsa, dsa->priv_key, pub_key)) 128 ret = BN_cmp(pub_key, dsa->pub_key) == 0 [all...] |
| dsa_backend.c | 34 BIGNUM *priv_key = NULL, *pub_key = NULL; local 48 if (param_pub_key != NULL && !OSSL_PARAM_get_BN(param_pub_key, &pub_key)) 53 if (!DSA_set0_key(dsa, pub_key, priv_key)) 60 BN_free(pub_key); 99 || !dsa_bn_dup_check(&dupkey->pub_key, dsa->pub_key)))
|
| dsa_key.c | 43 const BIGNUM *priv_key, BIGNUM *pub_key) 52 /* pub_key = g ^ priv_key mod p */ 53 if (!BN_mod_exp(pub_key, dsa->params.g, prk, dsa->params.p, ctx)) 101 ret = !BN_cmp(dsa->pub_key, pub_key2); 151 BIGNUM *pub_key = NULL, *priv_key = NULL; local 178 if (dsa->pub_key == NULL) { 179 if ((pub_key = BN_new()) == NULL) 182 pub_key = dsa->pub_key; 185 if (!ossl_dsa_generate_public_key(ctx, dsa, priv_key, pub_key)) [all...] |
| dsa_lib.c | 44 * DSA has p, q, g, optional pub_key, optional priv_key. 45 * DH has p, optional length, g, optional pub_key, 49 BIGNUM *pub_key = NULL, *priv_key = NULL; local 60 if (r->pub_key != NULL) { 61 pub_key = BN_dup(r->pub_key); 62 if (pub_key == NULL) 69 if (!DH_set0_key(ret, pub_key, priv_key)) 79 BN_free(pub_key); 239 BN_clear_free(r->pub_key); [all...] |
| /src/crypto/external/apache2/openssl/dist/util/perl/TLSProxy/ |
| ServerKeyExchange.pm | 43 $self->{pub_key} = ""; 73 my $pub_key = substr($self->data, $ptr, $pub_key_len); 96 $self->pub_key($pub_key); 112 $data .= pack('n', length($self->pub_key)); 113 $data .= $self->pub_key; 141 sub pub_key subroutine 145 $self->{pub_key} = shift; 147 return $self->{pub_key};
|
| /src/crypto/external/bsd/openssl/dist/crypto/dsa/ |
| dsa_check.c | 66 int ossl_dsa_check_pub_key(const DSA *dsa, const BIGNUM *pub_key, int *ret) 71 return ossl_ffc_validate_public_key(&dsa->params, pub_key, ret) 80 int ossl_dsa_check_pub_key_partial(const DSA *dsa, const BIGNUM *pub_key, int *ret) 85 return ossl_ffc_validate_public_key_partial(&dsa->params, pub_key, ret) 107 BIGNUM *pub_key = NULL; local 114 || dsa->pub_key == NULL) 120 pub_key = BN_new(); 121 if (pub_key == NULL) 125 if (!ossl_dsa_generate_public_key(ctx, dsa, dsa->priv_key, pub_key)) 128 ret = BN_cmp(pub_key, dsa->pub_key) == 0 [all...] |
| dsa_key.c | 44 const BIGNUM *priv_key, BIGNUM *pub_key) 53 /* pub_key = g ^ priv_key mod p */ 54 if (!BN_mod_exp(pub_key, dsa->params.g, prk, dsa->params.p, ctx)) 66 BIGNUM *pub_key = NULL, *priv_key = NULL; local 93 if (dsa->pub_key == NULL) { 94 if ((pub_key = BN_new()) == NULL) 97 pub_key = dsa->pub_key; 100 if (!ossl_dsa_generate_public_key(ctx, dsa, priv_key, pub_key)) 104 dsa->pub_key = pub_key [all...] |
| dsa_backend.c | 34 BIGNUM *priv_key = NULL, *pub_key = NULL; local 50 if (param_pub_key != NULL && !OSSL_PARAM_get_BN(param_pub_key, &pub_key)) 55 if (!DSA_set0_key(dsa, pub_key, priv_key)) 62 BN_free(pub_key); 101 || !dsa_bn_dup_check(&dupkey->pub_key, dsa->pub_key)))
|
| /src/crypto/external/bsd/openssl/dist/util/perl/TLSProxy/ |
| ServerKeyExchange.pm | 35 $self->{pub_key} = ""; 65 my $pub_key = substr($self->data, $ptr, $pub_key_len); 88 $self->pub_key($pub_key); 104 $data .= pack('n', length($self->pub_key)); 105 $data .= $self->pub_key; 133 sub pub_key subroutine 137 $self->{pub_key} = shift; 139 return $self->{pub_key};
|
| /src/crypto/external/bsd/openssl.old/dist/util/perl/TLSProxy/ |
| ServerKeyExchange.pm | 35 $self->{pub_key} = ""; 65 my $pub_key = substr($self->data, $ptr, $pub_key_len); 88 $self->pub_key($pub_key); 104 $data .= pack('n', length($self->pub_key)); 105 $data .= $self->pub_key; 133 sub pub_key subroutine 137 $self->{pub_key} = shift; 139 return $self->{pub_key};
|
| /src/crypto/external/bsd/openssh/dist/ |
| kexdh.c | 117 const BIGNUM *pub_key; local 123 DH_get0_key(kex->dh, &pub_key, NULL); 126 if ((r = sshbuf_put_bignum2(buf, pub_key)) != 0 || 132 BN_print_fp(stderr, pub_key); 146 const BIGNUM *pub_key; local 155 DH_get0_key(kex->dh, &pub_key, NULL); 160 if ((r = sshbuf_put_bignum2(server_blob, pub_key)) != 0 ||
|
| kexecdh.c | 97 const EC_POINT *pub_key; local 119 pub_key = EC_KEY_get0_public_key(server_key); 124 if ((r = sshbuf_put_ec(server_blob, pub_key, group)) != 0 ||
|
| kexgexs.c | 130 const BIGNUM *pub_key, *dh_p, *dh_g; local 164 DH_get0_key(kex->dh, &pub_key, NULL); 177 pub_key, 190 (r = sshpkt_put_bignum2(ssh, pub_key)) != 0 || /* f */
|
| kexgexc.c | 99 const BIGNUM *pub_key; local 123 DH_get0_key(kex->dh, &pub_key, NULL); 125 (r = sshpkt_put_bignum2(ssh, pub_key)) != 0 || 132 BN_print_fp(stderr, pub_key); 149 const BIGNUM *pub_key, *dh_p, *dh_g; local 187 DH_get0_key(kex->dh, &pub_key, NULL); 199 pub_key,
|
| /src/crypto/external/bsd/openssl/dist/crypto/dh/ |
| dh_check.c | 230 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key) 234 if (!DH_check_pub_key(dh, pub_key, &errflags)) 250 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) 264 return ossl_ffc_validate_public_key(&dh->params, pub_key, ret); 272 int ossl_dh_check_pub_key_partial(const DH *dh, const BIGNUM *pub_key, int *ret) 274 return ossl_ffc_validate_public_key_partial(&dh->params, pub_key, ret) 336 BIGNUM *pub_key = NULL; local 341 || dh->pub_key == NULL) 347 pub_key = BN_new(); 348 if (pub_key == NULL [all...] |
| dh_local.h | 26 BIGNUM *pub_key; /* g^x % p */ member in struct:dh_st 47 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh);
|
| /src/crypto/external/apache2/openssl/dist/crypto/dh/ |
| dh_check.c | 231 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key) 235 if (!DH_check_pub_key(dh, pub_key, &errflags)) 251 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) 265 return ossl_ffc_validate_public_key(&dh->params, pub_key, ret); 273 int ossl_dh_check_pub_key_partial(const DH *dh, const BIGNUM *pub_key, int *ret) 275 return ossl_ffc_validate_public_key_partial(&dh->params, pub_key, ret) 337 BIGNUM *pub_key = NULL; local 345 || dh->pub_key == NULL) 358 pub_key = BN_new(); 359 if (pub_key == NULL [all...] |
| dh_local.h | 26 BIGNUM *pub_key; /* g^x % p */ member in struct:dh_st 47 int (*compute_key)(unsigned char *key, const BIGNUM *pub_key, DH *dh);
|
| dh_backend.c | 62 BIGNUM *priv_key = NULL, *pub_key = NULL; local 76 && !OSSL_PARAM_get_BN(param_pub_key, &pub_key)) 79 if (!DH_set0_key(dh, pub_key, priv_key)) 86 BN_free(pub_key); 158 || !dh_bn_dup_check(&dupkey->pub_key, dh->pub_key)))
|
| dh_key.c | 40 int ossl_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) 85 /* (Step 1) Z = pub_key^priv_key mod p */ 86 if (!dh->meth->bn_mod_exp(dh, z, pub_key, dh->priv_key, dh->params.p, ctx, 114 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) 121 ret = ossl_dh_compute_key(key, pub_key, dh); 123 ret = dh->meth->compute_key(key, pub_key, dh); 144 int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh) 150 rv = ossl_dh_compute_key(key, pub_key, dh); 152 rv = dh->meth->compute_key(key, pub_key, dh); 230 const BIGNUM *priv_key, BIGNUM *pub_key) 273 BIGNUM *pub_key = NULL, *priv_key = NULL; local [all...] |
| /src/crypto/external/apache2/openssl/dist/demos/encrypt/ |
| rsa_encrypt.c | 104 EVP_PKEY *pub_key = NULL; local 108 pub_key = get_key(libctx, propq, public); 109 if (pub_key == NULL) { 113 ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pub_key, propq); 148 EVP_PKEY_free(pub_key);
|
| /src/crypto/external/apache2/openssl/dist/demos/signature/ |
| EVP_EC_Signature_demo.c | 38 * For demo_verify, load EC public key pub_key from pub_key_der[]. 152 EVP_PKEY *pub_key = NULL; local 164 pub_key = get_key(libctx, propq, public); 165 if (pub_key == NULL) { 171 libctx, NULL, pub_key, NULL)) { 196 EVP_PKEY_free(pub_key);
|
| /src/crypto/external/bsd/openssl/dist/demos/signature/ |
| EVP_Signature_demo.c | 42 * For demo_verify, load EC public key pub_key from pub_key_der[]. 156 EVP_PKEY *pub_key = NULL; local 168 pub_key = get_key(libctx, propq, public); 169 if (pub_key == NULL) { 175 libctx, NULL, pub_key, NULL)) { 200 EVP_PKEY_free(pub_key);
|
| /src/crypto/external/apache2/openssl/dist/apps/ |
| testdsa.h | 1438 BIGNUM *priv_key, *pub_key, *p, *q, *g; local 1462 pub_key = BN_bin2bn(dsa_t.pub, dsa_t.pub_l, NULL); 1466 if (priv_key == NULL || pub_key == NULL || p == NULL || q == NULL 1480 pub_key) 1493 BN_free(pub_key);
|