Home | History | Annotate | Download | only in dsa

Lines Matching refs:dsa

1 /* crypto/dsa/dsatest.c */
82 printf("No DSA support\n");
86 #include <openssl/dsa.h>
140 DSA *dsa=NULL;
157 BIO_printf(bio_err,"test generation of DSA parameters\n");
160 if(((dsa = DSA_new()) == NULL) || !DSA_generate_parameters_ex(dsa, 512,
172 DSA_print(bio_err,dsa,0);
184 i=BN_bn2bin(dsa->q,buf);
192 i=BN_bn2bin(dsa->p,buf);
200 i=BN_bn2bin(dsa->g,buf);
208 dsa->flags |= DSA_FLAG_NO_EXP_CONSTTIME;
209 DSA_generate_key(dsa);
210 DSA_sign(0, str1, 20, sig, &siglen, dsa);
211 if (DSA_verify(0, str1, 20, sig, siglen, dsa) == 1)
214 dsa->flags &= ~DSA_FLAG_NO_EXP_CONSTTIME;
215 DSA_generate_key(dsa);
216 DSA_sign(0, str1, 20, sig, &siglen, dsa);
217 if (DSA_verify(0, str1, 20, sig, siglen, dsa) == 1)
223 if (dsa != NULL) DSA_free(dsa);