HomeSort by: relevance | last modified time | path
    Searched refs:pub_key (Results 1 - 25 of 156) sorted by relevancy

1 2 3 4 5 6 7

  /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...]
dsa_lib.c 129 BN_clear_free(r->pub_key);
189 * DSA has p, q, g, optional pub_key, optional priv_key. DH has p,
190 * optional length, g, optional pub_key, optional priv_key, optional q.
194 BIGNUM *p = NULL, *q = NULL, *g = NULL, *pub_key = NULL, *priv_key = NULL; local
214 if (r->pub_key != NULL) {
215 pub_key = BN_dup(r->pub_key);
216 if (pub_key == NULL)
223 if (!DH_set0_key(ret, pub_key, priv_key))
236 BN_free(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_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/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_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);
236 BN_clear_free(r->pub_key);
    [all...]
  /src/crypto/external/apache2/openssl/dist/crypto/ffc/
ffc_key_validate.c 20 const BIGNUM *pub_key, int *ret)
27 if (params == NULL || pub_key == NULL || params->p == NULL) {
38 /* Step(1): Verify pub_key >= 2 */
42 if (BN_cmp(pub_key, tmp) <= 0)
44 /* Step(1): Verify pub_key <= p-2 */
48 if (BN_cmp(pub_key, tmp) >= 0)
63 const BIGNUM *pub_key, int *ret)
69 if (!ossl_ffc_validate_public_key_partial(params, pub_key, ret))
79 /* Check pub_key^q == 1 mod p */
81 || !BN_mod_exp(tmp, pub_key, params->q, params->p, ctx)
    [all...]
  /src/crypto/external/bsd/openssl/dist/crypto/ffc/
ffc_key_validate.c 20 const BIGNUM *pub_key, int *ret)
27 if (params == NULL || pub_key == NULL || params->p == NULL) {
38 /* Step(1): Verify pub_key >= 2 */
42 if (BN_cmp(pub_key, tmp) <= 0)
44 /* Step(1): Verify pub_key <= p-2 */
48 if (BN_cmp(pub_key, tmp) >= 0)
63 const BIGNUM *pub_key, int *ret)
69 if (!ossl_ffc_validate_public_key_partial(params, pub_key, ret))
79 /* Check pub_key^q == 1 mod p */
81 || !BN_mod_exp(tmp, pub_key, params->q, params->p, ctx)
    [all...]
  /src/crypto/external/bsd/openssl.old/dist/crypto/dh/
dh_key.c 16 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
32 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
38 if ((ret = dh->meth->compute_key(key, pub_key, dh)) <= 0)
57 int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh)
62 rv = dh->meth->compute_key(key, pub_key, dh);
110 BIGNUM *pub_key = NULL, *priv_key = NULL; local
129 if (dh->pub_key == NULL) {
130 pub_key = BN_new();
131 if (pub_key == NULL)
134 pub_key = dh->pub_key
    [all...]
dh_local.h 23 BIGNUM *pub_key; /* g^x % p */ member in struct:dh_st
44 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh);
  /src/crypto/external/bsd/heimdal/dist/lib/hcrypto/
dh-ltm.c 110 if (dh->pub_key) {
111 BN_free(dh->pub_key);
112 dh->pub_key = NULL;
127 dh->pub_key = mpz2BN(&pub);
129 if (dh->pub_key == NULL)
132 if (DH_check_pubkey(dh, dh->pub_key, &codes) && codes == 0)
143 if (dh->pub_key) {
144 BN_free(dh->pub_key);
145 dh->pub_key = NULL;
159 if (dh->pub_key == NULL || dh->g == NULL || dh->priv_key == NULL
    [all...]
dh-tfm.c 110 if (dh->pub_key)
111 BN_free(dh->pub_key);
127 dh->pub_key = mpz2BN(&pub);
129 if (dh->pub_key == NULL)
132 if (DH_check_pubkey(dh, dh->pub_key, &codes) && codes == 0)
143 if (dh->pub_key) {
144 BN_free(dh->pub_key);
145 dh->pub_key = NULL;
160 if (dh->pub_key == NULL || dh->g == NULL || dh->priv_key == NULL)
  /src/crypto/external/bsd/openssl.old/dist/crypto/ec/
ec_key.c 68 EC_POINT_free(r->pub_key);
103 if (src->pub_key != NULL) {
104 EC_POINT_free(dest->pub_key);
105 dest->pub_key = EC_POINT_new(src->group);
106 if (dest->pub_key == NULL)
108 if (!EC_POINT_copy(dest->pub_key, src->pub_key))
205 EC_POINT *pub_key = NULL; local
226 if (eckey->pub_key == NULL) {
227 pub_key = EC_POINT_new(eckey->group)
    [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/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/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_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/bsd/openssl/dist/crypto/dh/
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_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);
226 const BIGNUM *priv_key, BIGNUM *pub_key)
269 BIGNUM *pub_key = NULL, *priv_key = NULL; local
    [all...]
  /src/crypto/external/apache2/openssl/dist/crypto/ec/
ec_key.c 99 EC_POINT_free(r->pub_key);
136 if (src->pub_key != NULL) {
137 EC_POINT_free(dest->pub_key);
138 dest->pub_key = EC_POINT_new(src->group);
139 if (dest->pub_key == NULL)
141 if (!EC_POINT_copy(dest->pub_key, src->pub_key))
270 /* pub_key = priv_key * G (where G is a point on the curve) */
280 ret = !EC_POINT_cmp(eckey->group, eckey->pub_key, pub_key2, ctx);
307 EC_POINT *pub_key = NULL local
    [all...]
  /src/crypto/external/apache2/openssl/dist/include/crypto/
dsa.h 46 const BIGNUM *priv_key, BIGNUM *pub_key);
48 int ossl_dsa_check_pub_key(const DSA *dsa, const BIGNUM *pub_key, int *ret);
49 int ossl_dsa_check_pub_key_partial(const DSA *dsa, const BIGNUM *pub_key,

Completed in 42 milliseconds

1 2 3 4 5 6 7