Home
last modified time | relevance | path

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

1234567

/freebsd-12-stable/crypto/openssl/include/openssl/
Ddsa.h67 # define d2i_DSAparams_fp(fp,x) (DSA *)ASN1_d2i_fp((char *(*)())DSA_new, \
71 # define d2i_DSAparams_bio(bp,x) ASN1_d2i_bio_of(DSA,DSA_new,d2i_DSAparams,bp,x)
72 # define i2d_DSAparams_bio(bp,x) ASN1_i2d_bio_of_const(DSA,i2d_DSAparams,bp,x)
74 DSA *DSAparams_dup(DSA *x);
82 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
84 DSA_SIG *sig, DSA *dsa);
90 int DSA_set_method(DSA *dsa, const DSA_METHOD *);
91 const DSA_METHOD *DSA_get_method(DSA *d);
93 DSA *DSA_new(void);
94 DSA *DSA_new_method(ENGINE *engine);
[all …]
/freebsd-12-stable/crypto/openssl/crypto/dsa/
Ddsa_asn1.c70 DSA_free((DSA *)*pval); in dsa_cb()
78 ASN1_EMBED(DSA, version, INT32),
79 ASN1_SIMPLE(DSA, p, BIGNUM),
80 ASN1_SIMPLE(DSA, q, BIGNUM),
81 ASN1_SIMPLE(DSA, g, BIGNUM),
82 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
83 ASN1_SIMPLE(DSA, priv_key, CBIGNUM)
84 } static_ASN1_SEQUENCE_END_cb(DSA, DSAPrivateKey)
86 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DSA, DSAPrivateKey, DSAPrivateKey)
89 ASN1_SIMPLE(DSA, p, BIGNUM),
[all …]
Ddsa_meth.c109 (const unsigned char *, int, DSA *) in DSA_meth_get_sign()
115 DSA_SIG *(*sign) (const unsigned char *, int, DSA *)) in DSA_meth_set_sign() argument
122 (DSA *, BN_CTX *, BIGNUM **, BIGNUM **) in DSA_meth_get_sign_setup()
128 int (*sign_setup) (DSA *, BN_CTX *, BIGNUM **, BIGNUM **)) in DSA_meth_set_sign_setup()
135 (const unsigned char *, int, DSA_SIG *, DSA *) in DSA_meth_get_verify()
141 int (*verify) (const unsigned char *, int, DSA_SIG *, DSA *)) in DSA_meth_set_verify() argument
148 (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_get_mod_exp()
155 int (*mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_set_mod_exp()
164 (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, in DSA_meth_get_bn_mod_exp()
171 int (*bn_mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_set_bn_mod_exp()
[all …]
Ddsa_lib.c19 DSA *DSA_new(void) in DSA_new()
24 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth) in DSA_set_method()
44 const DSA_METHOD *DSA_get_method(DSA *d) in DSA_get_method()
49 DSA *DSA_new_method(ENGINE *engine) in DSA_new_method()
51 DSA *ret = OPENSSL_zalloc(sizeof(*ret)); in DSA_new_method()
103 void DSA_free(DSA *r) in DSA_free()
134 int DSA_up_ref(DSA *r) in DSA_up_ref()
146 int DSA_size(const DSA *r) in DSA_size()
168 int DSA_set_ex_data(DSA *d, int idx, void *arg) in DSA_set_ex_data()
173 void *DSA_get_ex_data(DSA *d, int idx) in DSA_get_ex_data()
[all …]
Ddsa_local.h43 DSA_SIG *(*dsa_do_sign) (const unsigned char *dgst, int dlen, DSA *dsa);
44 int (*dsa_sign_setup) (DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
47 DSA_SIG *sig, DSA *dsa);
48 int (*dsa_mod_exp) (DSA *dsa, BIGNUM *rr, const BIGNUM *a1,
52 int (*bn_mod_exp) (DSA *dsa, BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
54 int (*init) (DSA *dsa);
55 int (*finish) (DSA *dsa);
59 int (*dsa_paramgen) (DSA *dsa, int bits,
64 int (*dsa_keygen) (DSA *dsa);
67 int dsa_builtin_paramgen(DSA *ret, size_t bits, size_t qbits,
[all …]
Ddsa_prn.c16 int DSA_print_fp(FILE *fp, const DSA *x, int off) in DSA_print_fp()
31 int DSAparams_print_fp(FILE *fp, const DSA *x) in DSAparams_print_fp()
47 int DSA_print(BIO *bp, const DSA *x, int off) in DSA_print()
54 ret = EVP_PKEY_set1_DSA(pk, (DSA *)x); in DSA_print()
61 int DSAparams_print(BIO *bp, const DSA *x) in DSAparams_print()
68 ret = EVP_PKEY_set1_DSA(pk, (DSA *)x); in DSAparams_print()
Ddsa_ossl.c18 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
19 static int dsa_sign_setup_no_digest(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
21 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
24 DSA_SIG *sig, DSA *dsa);
25 static int dsa_init(DSA *dsa);
26 static int dsa_finish(DSA *dsa);
62 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in dsa_do_sign()
176 static int dsa_sign_setup_no_digest(DSA *dsa, BN_CTX *ctx_in, in dsa_sign_setup_no_digest()
182 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, in dsa_sign_setup()
300 DSA_SIG *sig, DSA *dsa) in dsa_do_verify()
[all …]
Ddsa_key.c16 static int dsa_builtin_keygen(DSA *dsa);
18 int DSA_generate_key(DSA *dsa) in DSA_generate_key()
25 static int dsa_builtin_keygen(DSA *dsa) in dsa_builtin_keygen()
/freebsd-12-stable/crypto/openssl/doc/man3/
DDSA_get0_pqg.pod10 setting data in a DSA object
16 void DSA_get0_pqg(const DSA *d,
18 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);
19 void DSA_get0_key(const DSA *d,
21 int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key);
22 const BIGNUM *DSA_get0_p(const DSA *d);
23 const BIGNUM *DSA_get0_q(const DSA *d);
24 const BIGNUM *DSA_get0_g(const DSA *d);
25 const BIGNUM *DSA_get0_pub_key(const DSA *d);
26 const BIGNUM *DSA_get0_priv_key(const DSA *d);
[all …]
DDSA_meth_new.pod13 DSA_meth_set_keygen - Routines to build up DSA methods
35 int, DSA *);
37 int, DSA *));
39 int (*DSA_meth_get_sign_setup(const DSA_METHOD *dsam))(DSA *, BN_CTX *,$
41 int DSA_meth_set_sign_setup(DSA_METHOD *dsam, int (*sign_setup)(DSA *, BN_CTX *,
45 int, DSA_SIG *, DSA *);
47 int, DSA_SIG *, DSA *));
49 int (*DSA_meth_get_mod_exp(const DSA_METHOD *dsam))(DSA *dsa, BIGNUM *rr, BIGNUM *a1,
53 int DSA_meth_set_mod_exp(DSA_METHOD *dsam, int (*mod_exp)(DSA *dsa, BIGNUM *rr,
59 int (*DSA_meth_get_bn_mod_exp(const DSA_METHOD *dsam))(DSA *dsa, BIGNUM *r, BIGNUM *a,
[all …]
DDSA_set_method.pod6 DSA_set_method, DSA_new_method, DSA_OpenSSL - select DSA method
16 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth);
18 DSA *DSA_new_method(ENGINE *engine);
24 A B<DSA_METHOD> specifies the functions that OpenSSL uses for DSA
27 important information about how these DSA API functions are affected by the use
33 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.
46 B<rsa>. This will replace the DSA_METHOD used by the DSA key and if the
48 be released during the change. It is possible to have DSA keys that only
55 DSA_new_method() allocates and initializes a DSA structure so that B<engine>
[all …]
DDSA_size.pod5 DSA_size, DSA_bits, DSA_security_bits - get DSA signature size, key bits or security bits
11 int DSA_size(const DSA *dsa);
12 int DSA_bits(const DSA *dsa);
13 int DSA_security_bits(const DSA *dsa);
17 DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
19 be allocated for a DSA signature.
DDSA_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
DRSA_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>.
DPEM_read_bio_PrivateKey.pod96 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **x,
98 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **x,
100 int PEM_write_bio_DSAPrivateKey(BIO *bp, DSA *x, const EVP_CIPHER *enc,
103 int PEM_write_DSAPrivateKey(FILE *fp, DSA *x, const EVP_CIPHER *enc,
107 DSA *PEM_read_bio_DSA_PUBKEY(BIO *bp, DSA **x,
109 DSA *PEM_read_DSA_PUBKEY(FILE *fp, DSA **x,
111 int PEM_write_bio_DSA_PUBKEY(BIO *bp, DSA *x);
112 int PEM_write_DSA_PUBKEY(FILE *fp, DSA *x);
117 DSA *PEM_read_bio_DSAparams(BIO *bp, DSA **x, pem_password_cb *cb, void *u);
118 DSA *PEM_read_DSAparams(FILE *fp, DSA **x, pem_password_cb *cb, void *u);
[all …]
DDSA_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, BIGNUM **rp);
17 unsigned char *sigbuf, int siglen, DSA *dsa);
28 Since OpenSSL 1.1.0 the DSA type is opaque and the output of
/freebsd-12-stable/crypto/openssl/crypto/pem/
Dpem_all.c25 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa);
91 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa) in IMPLEMENT_PEM_write_cb_const()
93 DSA *dtmp; in IMPLEMENT_PEM_write_cb_const()
107 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **dsa, pem_password_cb *cb, in PEM_read_bio_DSAPrivateKey()
115 IMPLEMENT_PEM_write_cb_const(DSAPrivateKey, DSA, PEM_STRING_DSA, in IMPLEMENT_PEM_write_cb_const() argument
117 IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY) in IMPLEMENT_PEM_write_cb_const()
119 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) in IMPLEMENT_PEM_write_cb_const()
128 IMPLEMENT_PEM_rw_const(DSAparams, DSA, PEM_STRING_DSAPARAMS, DSAparams) in IMPLEMENT_PEM_rw_const() argument
/freebsd-12-stable/crypto/openssl/crypto/x509/
Dx_all.c275 DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) in d2i_DSAPrivateKey_fp()
277 return ASN1_d2i_fp_of(DSA, DSA_new, d2i_DSAPrivateKey, fp, dsa); in d2i_DSAPrivateKey_fp()
280 int i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa) in i2d_DSAPrivateKey_fp()
282 return ASN1_i2d_fp_of_const(DSA, i2d_DSAPrivateKey, fp, dsa); in i2d_DSAPrivateKey_fp()
285 DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa) in d2i_DSA_PUBKEY_fp()
287 return ASN1_d2i_fp_of(DSA, DSA_new, d2i_DSA_PUBKEY, fp, dsa); in d2i_DSA_PUBKEY_fp()
290 int i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa) in i2d_DSA_PUBKEY_fp()
292 return ASN1_i2d_fp_of(DSA, i2d_DSA_PUBKEY, fp, dsa); in i2d_DSA_PUBKEY_fp()
296 DSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) in d2i_DSAPrivateKey_bio()
298 return ASN1_d2i_bio_of(DSA, DSA_new, d2i_DSAPrivateKey, bp, dsa); in d2i_DSAPrivateKey_bio()
[all …]
/freebsd-12-stable/crypto/openssh/regress/unittests/hostkeys/testdata/
Dknown_hosts2 …n2pB3VTXhPPEBjYzE5qANanAT4e6tzAVc5f3DUhHaDknwRYfDz86GFvuLtDjeE/UZ9t6OofYoEsCBpYozLAprBvNIQY= DSA #1
8 …c8xCob0ilyQbt9O0GbONeF2Ge7D2UJyULA/hxql+tCYFIC6yUrmo35fF9XiNisXLoaflk9fjp7ROWWVwnki/jstaQw== DSA #2
14 …TRiqIbQauivp3bHHKYsG6wiJNqwdbVwIjfvv8nn1qFoZQLXG3sdONr9NwN8KzrX89OV0BlR2dVM5qqp+YxOXymP9yg== DSA #3
20 …eCf0S2Ytx93+eADwVVpJbFJo6zSwfeey2Gm6L2oA+rCz9zTdmtZoekpD3/RAOQjnJIAPwbs7mXwabZTw4xRtiYIRrw== DSA #5
25 …FMOiw/zSqK2OfVwPZ9U+TTKdc992ChSup6vJEKM/ZVIyDWDbJr7igQ4ahy7jo9mFvm8ljN926EnspQzCvs0Dxk6tHA== DSA #6
26 …FMOiw/zSqK2OfVwPZ9U+TTKdc992ChSup6vJEKM/ZVIyDWDbJr7igQ4ahy7jo9mFvm8ljN926EnspQzCvs0Dxk6tHA== DSA #6
27 …FMOiw/zSqK2OfVwPZ9U+TTKdc992ChSup6vJEKM/ZVIyDWDbJr7igQ4ahy7jo9mFvm8ljN926EnspQzCvs0Dxk6tHA== DSA #6
42 …m7fKxLWVxA+lEsA4WeC885CiZn8xhdaJOCN+NyJ2bqkz+4VPI7oDGBm0aFwUqJn+M1PiSgvI50XdF2dBsFRTRNY0wzA= DSA #4
45 …n2pB3VTXhPPEBjYzE5qANanAT4e6tzAVc5f3DUhHaDknwRYfDz86GFvuLtDjeE/UZ9t6OofYoEsCBpYozLAprBvNIQY= DSA #1
/freebsd-12-stable/contrib/ntp/include/
Dlibssl_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-12-stable/crypto/openssl/doc/man1/
Ddsaparam.pod6 dsaparam - DSA parameter manipulation and generation
27 This command is used to manipulate or generate DSA parameter files.
67 This option prints out the DSA parameters in human readable form.
76 This option will generate a DSA either using the specified or generated
109 PEM format DSA parameters use the header and footer lines:
111 -----BEGIN DSA PARAMETERS-----
112 -----END DSA PARAMETERS-----
114 DSA parameter generation is a slow process and as a result the same set of
115 DSA parameters is often used to generate several distinct keys.
Dgendsa.pod6 gendsa - generate a DSA private key from a set of parameters
32 The B<gendsa> command generates a DSA private key from a DSA parameter file
76 This option specifies the DSA parameter file to use. The parameters in this
77 file determine the size of the private key. DSA parameters can be generated
84 DSA key generation is little more than random number generation so it is
/freebsd-12-stable/contrib/ldns/ldns/
Dkeys.h265 DSA *ldns_key_new_frm_fp_dsa(FILE *fp);
276 DSA *ldns_key_new_frm_fp_dsa_l(FILE *fp, int *line_nr);
333 void ldns_key_set_dsa_key(ldns_key *k, DSA *d);
349 void ldns_key_assign_dsa_key(ldns_key *k, DSA *d);
472 DSA *ldns_key_dsa_key(const ldns_key *k);
/freebsd-12-stable/contrib/ntp/libntp/
Dlibssl_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()
/freebsd-12-stable/crypto/openssl/doc/HOWTO/
Dkeys.txt14 RSA and DSA, and this HOWTO will show how to generate each of them.
35 3. To generate a DSA key
37 A DSA key can be used for signing only. It is important to
38 know what a certificate request with a DSA key can really be used for.
40 Generating a key for the DSA algorithm is a two-step process. First,
46 higher is recommended for DSA keys, as fewer amount of bits is
64 Generating a key for ECC is similar to generating a DSA key. These are

1234567