| /mirbsd/src/lib/libssl/src/crypto/dsa/ |
| D | dsa.h | 69 #error DSA is disabled. 108 typedef struct dsa_st DSA; typedef 118 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa); 119 int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, 122 DSA_SIG *sig, DSA *dsa); 123 int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, 126 int (*bn_mod_exp)(DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p, 129 int (*init)(DSA *dsa); 130 int (*finish)(DSA *dsa); 162 #define DSAparams_dup(x) (DSA *)ASN1_dup((int (*)())i2d_DSAparams, \ [all …]
|
| D | dsa_asn1.c | 95 DSA_free((DSA *)*pval); 103 ASN1_SIMPLE(DSA, version, LONG), 104 ASN1_SIMPLE(DSA, p, BIGNUM), 105 ASN1_SIMPLE(DSA, q, BIGNUM), 106 ASN1_SIMPLE(DSA, g, BIGNUM), 107 ASN1_SIMPLE(DSA, pub_key, BIGNUM), 108 ASN1_SIMPLE(DSA, priv_key, BIGNUM) 109 } ASN1_SEQUENCE_END_cb(DSA, DSAPrivateKey) 111 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DSA, DSAPrivateKey, DSAPrivateKey) 114 ASN1_SIMPLE(DSA, p, BIGNUM), [all …]
|
| D | dsa_lib.c | 86 DSA *DSA_new(void) in DSA_new() 91 int DSA_set_method(DSA *dsa, const DSA_METHOD *meth) in DSA_set_method() 110 DSA *DSA_new_method(ENGINE *engine) in DSA_new_method() 112 DSA *ret; in DSA_new_method() 114 ret=(DSA *)OPENSSL_malloc(sizeof(DSA)); in DSA_new_method() 179 void DSA_free(DSA *r) in DSA_free() 217 int DSA_up_ref(DSA *r) in DSA_up_ref() 240 int DSA_set_ex_data(DSA *d, int idx, void *arg) in DSA_set_ex_data() 245 void *DSA_get_ex_data(DSA *d, int idx) in DSA_get_ex_data() 274 DH *DSA_dup_DH(const DSA *r) in DSA_dup_DH()
|
| D | dsa_ossl.c | 69 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, BIGNUM **rp); 72 DSA *dsa); 73 static int dsa_init(DSA *dsa); 74 static int dsa_finish(DSA *dsa); 75 static int dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, 78 static int dsa_bn_mod_exp(DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p, 100 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in dsa_do_sign() 172 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) in dsa_sign_setup() 265 DSA *dsa) in dsa_do_verify() [all …]
|
| /mirbsd/src/lib/libssl/src/doc/crypto/ |
| D | dsa.pod | 12 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 …]
|
| D | d2i_DSAPublicKey.pod | 6 d2i_DSA_PUBKEY, i2d_DSA_PUBKEY, d2i_DSA_SIG, i2d_DSA_SIG - DSA key encoding 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 …]
|
| D | DSA_set_method.pod | 6 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 …]
|
| D | DSA_get_ex_new_index.pod | 5 DSA_get_ex_new_index, DSA_set_ex_data, DSA_get_ex_data - add application specific data to DSA struc… 9 #include <openssl/DSA.h> 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
|
| D | DSA_new.pod | 5 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
|
| D | pem.pod | 84 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **x, 87 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **x, 90 int PEM_write_bio_DSAPrivateKey(BIO *bp, DSA *x, const EVP_CIPHER *enc, 94 int PEM_write_DSAPrivateKey(FILE *fp, DSA *x, const EVP_CIPHER *enc, 98 DSA *PEM_read_bio_DSA_PUBKEY(BIO *bp, DSA **x, 101 DSA *PEM_read_DSA_PUBKEY(FILE *fp, DSA **x, 104 int PEM_write_bio_DSA_PUBKEY(BIO *bp, DSA *x); 106 int PEM_write_DSA_PUBKEY(FILE *fp, DSA *x); 108 DSA *PEM_read_bio_DSAparams(BIO *bp, DSA **x, pem_password_cb *cb, void *u); 110 DSA *PEM_read_DSAparams(FILE *fp, DSA **x, pem_password_cb *cb, void *u); [all …]
|
| D | RSA_print.pod | 18 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>.
|
| D | DSA_size.pod | 5 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.
|
| D | DSA_sign.pod | 5 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
|
| D | DSA_generate_key.pod | 5 DSA_generate_key - generate DSA key pair 11 int DSA_generate_key(DSA *a); 15 DSA_generate_key() expects B<a> to contain DSA parameters. It generates
|
| D | DSA_dup_DH.pod | 5 DSA_dup_DH - create a DH structure out of DSA structure 11 DH * DSA_dup_DH(const DSA *r); 15 DSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q
|
| D | DSA_do_sign.pod | 5 DSA_do_sign, DSA_do_verify - raw DSA signature operations 11 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); 14 DSA_SIG *sig, DSA *dsa);
|
| /mirbsd/src/lib/libssl/src/crypto/pem/ |
| D | pem_all.c | 75 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa); 185 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa) in IMPLEMENT_PEM_write_cb() 187 DSA *dtmp; in IMPLEMENT_PEM_write_cb() 199 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **dsa, pem_password_cb *cb, in PEM_read_bio_DSAPrivateKey() 210 int PEM_write_bio_DSAPrivateKey(BIO *bp, DSA *x, const EVP_CIPHER *enc, in PEM_write_bio_DSAPrivateKey() 227 int PEM_write_DSAPrivateKey(FILE *fp, DSA *x, const EVP_CIPHER *enc, in PEM_write_DSAPrivateKey() 245 IMPLEMENT_PEM_write_cb(DSAPrivateKey, DSA, PEM_STRING_DSA, DSAPrivateKey) in IMPLEMENT_PEM_write_cb() argument 249 IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY) in IMPLEMENT_PEM_write_cb() 253 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, in IMPLEMENT_PEM_write_cb() 263 IMPLEMENT_PEM_rw(DSAparams, DSA, PEM_STRING_DSAPARAMS, DSAparams) in IMPLEMENT_PEM_rw() argument
|
| /mirbsd/src/lib/libssl/src/apps/ |
| D | testdsa.h | 3 DSA *get_dsa512(void ); 4 DSA *get_dsa1024(void ); 5 DSA *get_dsa2048(void ); 39 DSA *get_dsa512() in get_dsa512() 41 DSA *dsa; in get_dsa512() 103 DSA *get_dsa1024() in get_dsa1024() 105 DSA *dsa; in get_dsa1024() 200 DSA *get_dsa2048() in get_dsa2048() 202 DSA *dsa; in get_dsa2048()
|
| /mirbsd/src/lib/libssl/src/crypto/x509/ |
| D | x_all.c | 278 DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) in d2i_DSAPrivateKey_fp() 280 return((DSA *)ASN1_d2i_fp((char *(*)()) in d2i_DSAPrivateKey_fp() 285 int i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa) in i2d_DSAPrivateKey_fp() 290 DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa) in d2i_DSA_PUBKEY_fp() 292 return((DSA *)ASN1_d2i_fp((char *(*)()) in d2i_DSA_PUBKEY_fp() 297 int i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa) in i2d_DSA_PUBKEY_fp() 303 DSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) in d2i_DSAPrivateKey_bio() 305 return((DSA *)ASN1_d2i_bio((char *(*)()) in d2i_DSAPrivateKey_bio() 310 int i2d_DSAPrivateKey_bio(BIO *bp, DSA *dsa) in i2d_DSAPrivateKey_bio() 315 DSA *d2i_DSA_PUBKEY_bio(BIO *bp, DSA **dsa) in d2i_DSA_PUBKEY_bio() [all …]
|
| /mirbsd/src/lib/libssl/src/doc/apps/ |
| D | dsaparam.pod | 5 dsaparam - DSA parameter manipulation and generation 24 This command is used to manipulate or generate DSA parameter files. 60 this option prints out the DSA parameters in human readable form. 69 this option will generate a DSA either using the specified or generated 97 PEM format DSA parameters use the header and footer lines: 99 -----BEGIN DSA PARAMETERS----- 100 -----END DSA PARAMETERS----- 102 DSA parameter generation is a slow process and as a result the same set of 103 DSA parameters is often used to generate several distinct keys.
|
| D | gendsa.pod | 5 gendsa - generate a DSA private key from a set of parameters 20 The B<gendsa> command generates a DSA private key from a DSA parameter file 50 This option specifies the DSA parameter file to use. The parameters in this 51 file determine the size of the private key. DSA parameters can be generated 58 DSA key generation is little more than random number generation so it is
|
| /mirbsd/src/usr.bin/gzsig/ |
| D | key.c | 164 if (DSA_size((DSA *)k->data) > slen) { in key_sign() 166 "%d bits\n", DSA_size((DSA *)k->data)); in key_sign() 170 (DSA *)k->data) <= 0) { in key_sign() 198 sig, slen, (DSA *)k->data) <= 0) { in key_verify() 217 DSA_free((DSA *)k->data); in key_free()
|
| /mirbsd/src/lib/libssl/src/doc/HOWTO/ |
| D | keys.txt | 14 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. This is important to keep 45 DSA key can really be used for. 47 Generating a key for the DSA algorithm is a two-step process. First, 53 higher is recommended for DSA keys, as fewer amount of bits is
|
| /mirbsd/src/lib/libkeynote/ |
| D | signature.c | 473 if (dc->dec_key == (DSA *) NULL) in kn_decode_key() 482 if (d2i_DSAPrivateKey((DSA **) &kk,(const unsigned char **) &decoded, len) == (DSA *) NULL) in kn_decode_key() 493 if (d2i_DSAPublicKey((DSA **) &kk, (const unsigned char **) &decoded, len) == (DSA *) NULL) in kn_decode_key() 630 DSA *p1, *p2; in kn_keycompare() 647 p1 = (DSA *) key1; in kn_keycompare() 648 p2 = (DSA *) key2; in kn_keycompare() 710 DSA *dsa; in keynote_sigverify_assertion() 820 dsa = (DSA *) as->as_authorizer; in keynote_sigverify_assertion() 873 DSA *dsa = (DSA *) NULL; in keynote_sign_assertion() 948 dsa = (DSA *) key; in keynote_sign_assertion() [all …]
|
| /mirbsd/src/lib/libssl/src/crypto/asn1/ |
| D | x_pubkey.c | 119 DSA *dsa; 325 DSA *d2i_DSA_PUBKEY(DSA **a, unsigned char **pp, in d2i_DSA_PUBKEY() 329 DSA *key; in d2i_DSA_PUBKEY() 345 int i2d_DSA_PUBKEY(DSA *a, unsigned char **pp) in i2d_DSA_PUBKEY()
|