test_case
generic_test (const struct test_case *tests,
generic_decode_fail (const struct test_case *tests,
generic_test (const struct test_case *tests,
generic_decode_fail(const struct test_case *tests,
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
struct test_case tests[] = {
uint8_t test_case[NTESTS][4 * B] = {
hexdump (test_case[testno], len);
ecb_enc (output, test_case[testno], len);
if (memcmp (tmp, test_case[testno], len)) {
hexdump (test_case[testno], len);
cbc_enc (output, test_case[testno], ivec, len);
if (memcmp (tmp, test_case[testno], len)) {
hexdump (test_case[testno], len);
cts_enc (output, test_case[testno], ivec, len);
if (memcmp (tmp, test_case[testno], len))
} test_case[NTESTS];
hexdump (test_case[testno].input, len);
ecb_enc (test_case[testno].output, test_case[testno].input, len);
hexdump (test_case[testno].output, len);
ecb_dec (tmp, test_case[testno].output, len);
if (memcmp (tmp, test_case[testno].input, len)) {
hexdump (test_case[testno].input, len);
cbc_enc (test_case[testno].output, test_case[testno].input, ivec, len);
hexdump (test_case[testno].output, len);
cbc_dec (tmp, test_case[testno].output, ivec, len);
if (memcmp (tmp, test_case[testno].input, len)) {
memset(test_case, 0, sizeof(test_case));
hexdump (test_case[testno].input, len);
cts_enc (test_case[testno].output, test_case[testno].input, ivec, len);
hexdump (test_case[testno].output, len);
cts_dec (tmp, test_case[testno].output, ivec, len);
if (memcmp (tmp, test_case[testno].input, len))
test_case[i].input[j] = 0xff & rand();
static int test_bio_base64_run(test_case *t, int llen, int wscnt)
static int generic_case(test_case *t, int verbose)
test_case t;
test_case t;
ADD_ALL_TESTS(test_case, OSSL_NELEM(test_cases));
static const struct test_case tests[] = {
const struct test_case *t = &tests[idx];
#define TEST(expected, test) test_case((expected), #test, (test))
confirm_sugid(char *test_case, int asroot, int injail)
warn("%s stat(%s)", test_case, fpath);
warnx("%s(root, %s): !SUID", test_case, injail ?
warnx("%s(!root, %s): SUID", test_case, injail ?