Better testing file
This commit is contained in:
parent
1b5ad5f5a8
commit
2bea693813
|
@ -198,7 +198,7 @@ int test_1(){
|
|||
cryptic_clsig_get_blind(param1),
|
||||
cryptic_clsig_get_quantities(param1), cryptic_clsig_get_nb_quantities(param1),
|
||||
quantities, 2,
|
||||
pdc->dlrep, pdc->vprime) == 1 ){
|
||||
pdc->dlrep, pdc->vprime) == 0 ){
|
||||
printf("\t****** VALID SIGNATURE\n");
|
||||
} else {
|
||||
printf("\t!!!!!! Bad signature\n");
|
||||
|
@ -254,7 +254,7 @@ int test_1(){
|
|||
cryptic_clsig_get_blind(param4),
|
||||
cryptic_clsig_get_quantities(param4), cryptic_clsig_get_nb_quantities(param4),
|
||||
quantities, 2,
|
||||
pdc->dlrep, pdc->vprime) == 1 ){
|
||||
pdc->dlrep, pdc->vprime) == 0 ){
|
||||
printf("\t****** VALID SIGNATURE\n");
|
||||
} else {
|
||||
printf("\t!!!!!! Bad signature\n");
|
||||
|
@ -839,14 +839,21 @@ int main(int argc, char **argv) {
|
|||
printf("------******------------------------------------------------------------------******------\n");
|
||||
printf("----------------------------------------***********---------------------------------------\n");
|
||||
|
||||
int rc = CRYPTIC_ERROR_UNDEFINED;
|
||||
|
||||
cryptic_init();
|
||||
|
||||
//activ_CB();
|
||||
test_1();
|
||||
test_2();
|
||||
test_3();
|
||||
|
||||
return(CRYPTIC_NO_ERROR);
|
||||
rc = test_1();
|
||||
if(rc != 0){
|
||||
return(rc);
|
||||
}
|
||||
rc = test_2();
|
||||
if(rc != 0){
|
||||
return(rc);
|
||||
}
|
||||
rc = test_3();
|
||||
return(rc);
|
||||
}
|
||||
|
||||
static int MS_CALLBACK qrn_cb(int p, int n, BN_GENCB *arg){
|
||||
|
|
Reference in New Issue