Lines Matching defs:b32

379         char *b32;
381 b32 = base32hexmem("", strlen(""), true);
382 assert_se(b32);
383 assert_se(streq(b32, ""));
384 free(b32);
386 b32 = base32hexmem("f", strlen("f"), true);
387 assert_se(b32);
388 assert_se(streq(b32, "CO======"));
389 free(b32);
391 b32 = base32hexmem("fo", strlen("fo"), true);
392 assert_se(b32);
393 assert_se(streq(b32, "CPNG===="));
394 free(b32);
396 b32 = base32hexmem("foo", strlen("foo"), true);
397 assert_se(b32);
398 assert_se(streq(b32, "CPNMU==="));
399 free(b32);
401 b32 = base32hexmem("foob", strlen("foob"), true);
402 assert_se(b32);
403 assert_se(streq(b32, "CPNMUOG="));
404 free(b32);
406 b32 = base32hexmem("fooba", strlen("fooba"), true);
407 assert_se(b32);
408 assert_se(streq(b32, "CPNMUOJ1"));
409 free(b32);
411 b32 = base32hexmem("foobar", strlen("foobar"), true);
412 assert_se(b32);
413 assert_se(streq(b32, "CPNMUOJ1E8======"));
414 free(b32);
416 b32 = base32hexmem("", strlen(""), false);
417 assert_se(b32);
418 assert_se(streq(b32, ""));
419 free(b32);
421 b32 = base32hexmem("f", strlen("f"), false);
422 assert_se(b32);
423 assert_se(streq(b32, "CO"));
424 free(b32);
426 b32 = base32hexmem("fo", strlen("fo"), false);
427 assert_se(b32);
428 assert_se(streq(b32, "CPNG"));
429 free(b32);
431 b32 = base32hexmem("foo", strlen("foo"), false);
432 assert_se(b32);
433 assert_se(streq(b32, "CPNMU"));
434 free(b32);
436 b32 = base32hexmem("foob", strlen("foob"), false);
437 assert_se(b32);
438 assert_se(streq(b32, "CPNMUOG"));
439 free(b32);
441 b32 = base32hexmem("fooba", strlen("fooba"), false);
442 assert_se(b32);
443 assert_se(streq(b32, "CPNMUOJ1"));
444 free(b32);
446 b32 = base32hexmem("foobar", strlen("foobar"), false);
447 assert_se(b32);
448 assert_se(streq(b32, "CPNMUOJ1E8"));
449 free(b32);