Home | History | Annotate | Download | only in apps

Lines Matching defs:dsa

1 /* apps/dsa.c */
68 #include <openssl/dsa.h>
92 * -modulus - print the DSA public key
101 DSA *dsa=NULL;
234 BIO_printf(bio_err," -modulus print the DSA public value\n");
268 BIO_printf(bio_err,"read DSA key\n");
282 dsa = EVP_PKEY_get1_DSA(pkey);
286 if (dsa == NULL)
313 if (!DSA_print(out,dsa,0))
323 BN_print(out,dsa->pub_key);
328 BIO_printf(bio_err,"writing DSA key\n");
330 if(pubin || pubout) i=i2d_DSA_PUBKEY_bio(out,dsa);
331 else i=i2d_DSAPrivateKey_bio(out,dsa);
334 i=PEM_write_bio_DSA_PUBKEY(out,dsa);
335 else i=PEM_write_bio_DSAPrivateKey(out,dsa,enc,
341 EVP_PKEY_set1_DSA(pk, dsa);
364 if(dsa != NULL) DSA_free(dsa);