ssl_des/t/tests.c

36 lines
1.2 KiB
C
Raw Normal View History

2018-10-23 21:07:38 +03:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* tests.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/10/23 21:00:24 by gtertysh #+# #+# */
/* Updated: 2018/10/23 21:05:47 by gtertysh ### ########.fr */
/* */
/* ************************************************************************** */
#include "t.h"
2018-10-18 21:57:26 +03:00
#include "tests.h"
2018-10-23 20:41:44 +03:00
int all_tests()
{
_verify("md5:", md5_tests);
_verify("sha:", sha_tests);
_verify("base64:", base64_tests);
2019-03-06 23:41:59 +02:00
_verify("des:", des_tests);
2019-03-27 01:29:06 +02:00
_verify("pbkdf2:", pbkdf2_tests);
return 0;
}
2018-10-21 20:46:05 +03:00
int main()
{
int result;
2018-10-21 20:46:05 +03:00
result = all_tests();
if (result == 0)
printf("PASSED\n");
2018-10-18 21:57:26 +03:00
return result != 0;
2018-10-23 21:07:38 +03:00
}