Home
last modified time | relevance | path

Searched refs:DSA (Results 1 – 25 of 178) sorted by relevance

12345678

/freebsd-11-stable/crypto/openssl/crypto/dsa/
HDdsa.h71 # error DSA is disabled.
131 DSA_SIG *(*dsa_do_sign) (const unsigned char *dgst, int dlen, DSA *dsa);
132 int (*dsa_sign_setup) (DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
135 DSA_SIG *sig, DSA *dsa);
136 int (*dsa_mod_exp) (DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1,
140 int (*bn_mod_exp) (DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p,
142 int (*init) (DSA *dsa);
143 int (*finish) (DSA *dsa);
147 int (*dsa_paramgen) (DSA *dsa, int bits,
152 int (*dsa_keygen) (DSA *dsa);
[all …]
HDdsa_asn1.c103 DSA_free((DSA *)*pval);
111 ASN1_SIMPLE(DSA, version, LONG),
112 ASN1_SIMPLE(DSA, p, BIGNUM),
113 ASN1_SIMPLE(DSA, q, BIGNUM),
114 ASN1_SIMPLE(DSA, g, BIGNUM),
115 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
116 ASN1_SIMPLE(DSA, priv_key, BIGNUM)
117 } ASN1_SEQUENCE_END_cb(DSA, DSAPrivateKey)
119 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DSA, DSAPrivateKey, DSAPrivateKey)
122 ASN1_SIMPLE(DSA, p, BIGNUM),
[all …]
HDdsa_lib.c101 DSA *DSA_new(void) in DSA_new()
106 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth) in DSA_set_method()
128 DSA *DSA_new_method(ENGINE *engine) in DSA_new_method()
130 DSA *ret; in DSA_new_method()
132 ret = (DSA *)OPENSSL_malloc(sizeof(DSA)); in DSA_new_method()
189 void DSA_free(DSA *r) in DSA_free()
235 int DSA_up_ref(DSA *r) in DSA_up_ref()
250 int DSA_size(const DSA *r) in DSA_size()
279 int DSA_set_ex_data(DSA *d, int idx, void *arg) in DSA_set_ex_data()
284 void *DSA_get_ex_data(DSA *d, int idx) in DSA_get_ex_data()
[all …]
HDdsa_prn.c66 int DSA_print_fp(FILE *fp, const DSA *x, int off) in DSA_print_fp()
81 int DSAparams_print_fp(FILE *fp, const DSA *x) in DSAparams_print_fp()
97 int DSA_print(BIO *bp, const DSA *x, int off) in DSA_print()
102 if (!pk || !EVP_PKEY_set1_DSA(pk, (DSA *)x)) in DSA_print()
109 int DSAparams_print(BIO *bp, const DSA *x) in DSAparams_print()
114 if (!pk || !EVP_PKEY_set1_DSA(pk, (DSA *)x)) in DSAparams_print()
HDdsa_ossl.c69 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
70 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
73 DSA_SIG *sig, DSA *dsa);
74 static int dsa_init(DSA *dsa);
75 static int dsa_finish(DSA *dsa);
135 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in dsa_do_sign()
255 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, in dsa_sign_setup()
366 DSA_SIG *sig, DSA *dsa) in dsa_do_verify()
461 static int dsa_init(DSA *dsa) in dsa_init()
467 static int dsa_finish(DSA *dsa) in dsa_finish()
HDdsa_locl.h57 int dsa_builtin_paramgen(DSA *ret, size_t bits, size_t qbits,
63 int dsa_builtin_paramgen2(DSA *ret, size_t L, size_t N,
69 int dsa_paramgen_check_g(DSA *dsa);
/freebsd-11-stable/crypto/openssl/doc/crypto/
HDdsa.pod12 DSA * DSA_new(void);
13 void DSA_free(DSA *dsa);
15 int DSA_size(const DSA *dsa);
17 DSA * DSA_generate_parameters(int bits, unsigned char *seed,
21 DH * DSA_dup_DH(const DSA *r);
23 int DSA_generate_key(DSA *dsa);
26 unsigned char *sigret, unsigned int *siglen, DSA *dsa);
27 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx, BIGNUM **kinvp,
30 const unsigned char *sigbuf, int siglen, DSA *dsa);
34 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth);
[all …]
HDd2i_DSAPublicKey.pod6 d2i_DSA_PUBKEY, i2d_DSA_PUBKEY, d2i_DSAparams, i2d_DSAparams, d2i_DSA_SIG, i2d_DSA_SIG - DSA key en…
14 DSA * d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length);
16 int i2d_DSAPublicKey(const DSA *a, unsigned char **pp);
18 DSA * d2i_DSA_PUBKEY(DSA **a, const unsigned char **pp, long length);
20 int i2d_DSA_PUBKEY(const DSA *a, unsigned char **pp);
22 DSA * d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length);
24 int i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);
26 DSA * d2i_DSAparams(DSA **a, const unsigned char **pp, long length);
28 int i2d_DSAparams(const DSA *a, unsigned char **pp);
30 DSA * d2i_DSA_SIG(DSA_SIG **a, const unsigned char **pp, long length);
[all …]
HDDSA_set_method.pod6 DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method
17 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth);
19 DSA *DSA_new_method(ENGINE *engine);
25 A B<DSA_METHOD> specifies the functions that OpenSSL uses for DSA
28 important information about how these DSA API functions are affected by the use
34 DSA_set_default_method() makes B<meth> the default method for all DSA
36 been set as a default for DSA, so this function is no longer recommended.
44 B<rsa>. This will replace the DSA_METHOD used by the DSA key and if the
46 be released during the change. It is possible to have DSA keys that only
52 DSA_new_method() allocates and initializes a DSA structure so that B<engine>
[all …]
HDDSA_new.pod5 DSA_new, DSA_free - allocate and free DSA objects
11 DSA* DSA_new(void);
13 void DSA_free(DSA *dsa);
17 DSA_new() allocates and initializes a B<DSA> structure. It is equivalent to
20 DSA_free() frees the B<DSA> structure and its components. The values are
HDpem.pod106 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **x,
109 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **x,
112 int PEM_write_bio_DSAPrivateKey(BIO *bp, DSA *x, const EVP_CIPHER *enc,
116 int PEM_write_DSAPrivateKey(FILE *fp, DSA *x, const EVP_CIPHER *enc,
120 DSA *PEM_read_bio_DSA_PUBKEY(BIO *bp, DSA **x,
123 DSA *PEM_read_DSA_PUBKEY(FILE *fp, DSA **x,
126 int PEM_write_bio_DSA_PUBKEY(BIO *bp, DSA *x);
128 int PEM_write_DSA_PUBKEY(FILE *fp, DSA *x);
130 DSA *PEM_read_bio_DSAparams(BIO *bp, DSA **x, pem_password_cb *cb, void *u);
132 DSA *PEM_read_DSAparams(FILE *fp, DSA **x, pem_password_cb *cb, void *u);
[all …]
HDRSA_print.pod18 int DSAparams_print(BIO *bp, DSA *x);
19 int DSAparams_print_fp(FILE *fp, DSA *x);
20 int DSA_print(BIO *bp, DSA *x, int offset);
21 int DSA_print_fp(FILE *fp, DSA *x, int offset);
31 key, DSA parameters or key or DH parameters is printed to B<bp> or B<fp>.
HDDSA_get_ex_new_index.pod5 DSA_get_ex_new_index, DSA_set_ex_data, DSA_get_ex_data - add application specific data to DSA struc…
16 int DSA_set_ex_data(DSA *d, int idx, void *arg);
18 char *DSA_get_ex_data(DSA *d, int idx);
22 These functions handle application specific data in DSA
HDDSA_size.pod5 DSA_size - get DSA signature size
11 int DSA_size(const DSA *dsa);
15 This function returns the size of an ASN.1 encoded DSA signature in
17 for a DSA signature.
HDDSA_sign.pod5 DSA_sign, DSA_sign_setup, DSA_verify - DSA signatures
12 unsigned char *sigret, unsigned int *siglen, DSA *dsa);
14 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx, BIGNUM **kinvp,
18 unsigned char *sigbuf, int siglen, DSA *dsa);
29 B<dsa> to contain DSA parameters. It places the precomputed values
37 plaintexts will result in permanently exposing the DSA private key.
/freebsd-11-stable/crypto/openssl/apps/
HDtestdsa.h3 DSA *get_dsa512(void);
4 DSA *get_dsa1024(void);
5 DSA *get_dsa2048(void);
43 DSA *get_dsa512() in get_dsa512()
45 DSA *dsa; in get_dsa512()
112 DSA *get_dsa1024() in get_dsa1024()
114 DSA *dsa; in get_dsa1024()
214 DSA *get_dsa2048() in get_dsa2048()
216 DSA *dsa; in get_dsa2048()
/freebsd-11-stable/crypto/openssl/crypto/pem/
HDpem_all.c133 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa);
247 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa) in IMPLEMENT_PEM_write_cb_const()
249 DSA *dtmp; in IMPLEMENT_PEM_write_cb_const()
263 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **dsa, pem_password_cb *cb, in PEM_read_bio_DSAPrivateKey()
273 int PEM_write_bio_DSAPrivateKey(BIO *bp, DSA *x, const EVP_CIPHER *enc, in PEM_write_bio_DSAPrivateKey()
295 int PEM_write_DSAPrivateKey(FILE *fp, DSA *x, const EVP_CIPHER *enc, in PEM_write_DSAPrivateKey()
317 IMPLEMENT_PEM_write_cb_const(DSAPrivateKey, DSA, PEM_STRING_DSA, in IMPLEMENT_PEM_write_cb_const() argument
320 IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY) in IMPLEMENT_PEM_write_cb_const()
322 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) in IMPLEMENT_PEM_write_cb_const()
331 IMPLEMENT_PEM_rw_const(DSAparams, DSA, PEM_STRING_DSAPARAMS, DSAparams) in IMPLEMENT_PEM_rw_const() argument
/freebsd-11-stable/crypto/openssl/crypto/x509/
HDx_all.c313 DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) in d2i_DSAPrivateKey_fp()
315 return ASN1_d2i_fp_of(DSA, DSA_new, d2i_DSAPrivateKey, fp, dsa); in d2i_DSAPrivateKey_fp()
318 int i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa) in i2d_DSAPrivateKey_fp()
320 return ASN1_i2d_fp_of_const(DSA, i2d_DSAPrivateKey, fp, dsa); in i2d_DSAPrivateKey_fp()
323 DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa) in d2i_DSA_PUBKEY_fp()
325 return ASN1_d2i_fp_of(DSA, DSA_new, d2i_DSA_PUBKEY, fp, dsa); in d2i_DSA_PUBKEY_fp()
328 int i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa) in i2d_DSA_PUBKEY_fp()
330 return ASN1_i2d_fp_of(DSA, i2d_DSA_PUBKEY, fp, dsa); in i2d_DSA_PUBKEY_fp()
334 DSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) in d2i_DSAPrivateKey_bio()
336 return ASN1_d2i_bio_of(DSA, DSA_new, d2i_DSAPrivateKey, bp, dsa); in d2i_DSAPrivateKey_bio()
[all …]
/freebsd-11-stable/crypto/openssl/doc/apps/
HDdsaparam.pod6 dsaparam - DSA parameter manipulation and generation
25 This command is used to manipulate or generate DSA parameter files.
61 this option prints out the DSA parameters in human readable form.
70 this option will generate a DSA either using the specified or generated
98 PEM format DSA parameters use the header and footer lines:
100 -----BEGIN DSA PARAMETERS-----
101 -----END DSA PARAMETERS-----
103 DSA parameter generation is a slow process and as a result the same set of
104 DSA parameters is often used to generate several distinct keys.
HDgendsa.pod6 gendsa - generate a DSA private key from a set of parameters
27 The B<gendsa> command generates a DSA private key from a DSA parameter file
57 This option specifies the DSA parameter file to use. The parameters in this
58 file determine the size of the private key. DSA parameters can be generated
65 DSA key generation is little more than random number generation so it is
/freebsd-11-stable/contrib/ntp/include/
HDlibssl_compat.h57 extern DSA* sslshim_EVP_PKEY_get0_DSA(EVP_PKEY * pkey);
72 extern void sslshim_DSA_get0_pqg(const DSA *pdsa, const BIGNUM **pp,
74 extern int sslshim_DSA_set0_pqg(DSA *pdsa, BIGNUM *p, BIGNUM *q, BIGNUM *g);
75 extern void sslshim_DSA_get0_key(const DSA *pdsa, const BIGNUM **ppub_key,
77 extern int sslshim_DSA_set0_key(DSA *pdsa, BIGNUM *pub_key,
/freebsd-11-stable/crypto/openssl/engines/ccgost/
HDgost_lcl.h193 int fill_GOST94_params(DSA *dsa, int nid);
195 int gost_sign_keygen(DSA *dsa);
198 DSA_SIG *gost_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
202 DSA_SIG *sig, DSA *dsa);
206 int gost94_compute_public(DSA *dsa);
227 int gost94_nid_by_params(DSA *p);
/freebsd-11-stable/crypto/openssh/regress/unittests/hostkeys/testdata/
HDknown_hosts2 …n2pB3VTXhPPEBjYzE5qANanAT4e6tzAVc5f3DUhHaDknwRYfDz86GFvuLtDjeE/UZ9t6OofYoEsCBpYozLAprBvNIQY= DSA #1
9 …c8xCob0ilyQbt9O0GbONeF2Ge7D2UJyULA/hxql+tCYFIC6yUrmo35fF9XiNisXLoaflk9fjp7ROWWVwnki/jstaQw== DSA #2
16 …TRiqIbQauivp3bHHKYsG6wiJNqwdbVwIjfvv8nn1qFoZQLXG3sdONr9NwN8KzrX89OV0BlR2dVM5qqp+YxOXymP9yg== DSA #3
23 …eCf0S2Ytx93+eADwVVpJbFJo6zSwfeey2Gm6L2oA+rCz9zTdmtZoekpD3/RAOQjnJIAPwbs7mXwabZTw4xRtiYIRrw== DSA #5
29 …FMOiw/zSqK2OfVwPZ9U+TTKdc992ChSup6vJEKM/ZVIyDWDbJr7igQ4ahy7jo9mFvm8ljN926EnspQzCvs0Dxk6tHA== DSA #6
30 …FMOiw/zSqK2OfVwPZ9U+TTKdc992ChSup6vJEKM/ZVIyDWDbJr7igQ4ahy7jo9mFvm8ljN926EnspQzCvs0Dxk6tHA== DSA #6
31 …FMOiw/zSqK2OfVwPZ9U+TTKdc992ChSup6vJEKM/ZVIyDWDbJr7igQ4ahy7jo9mFvm8ljN926EnspQzCvs0Dxk6tHA== DSA #6
50 …m7fKxLWVxA+lEsA4WeC885CiZn8xhdaJOCN+NyJ2bqkz+4VPI7oDGBm0aFwUqJn+M1PiSgvI50XdF2dBsFRTRNY0wzA= DSA #4
/freebsd-11-stable/crypto/openssl/doc/HOWTO/
HDkeys.txt14 RSA and DSA, and this HOWTO will show how to generate each of them.
41 3. To generate a DSA key
43 A DSA key can be used for signing only. It is important to
44 know what a certificate request with a DSA key can really be used for.
46 Generating a key for the DSA algorithm is a two-step process. First,
52 higher is recommended for DSA keys, as fewer amount of bits is
/freebsd-11-stable/contrib/ntp/libntp/
HDlibssl_compat.c118 DSA*
259 const DSA * pdsa, in sslshim_DSA_get0_pqg()
277 DSA * pdsa, in sslshim_DSA_set0_pqg()
295 const DSA * pdsa, in sslshim_DSA_get0_key()
310 DSA * pdsa, in sslshim_DSA_set0_key()

12345678