aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/test_str_base64.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/test_str_base64.c')
-rw-r--r--src/microhttpd/test_str_base64.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/microhttpd/test_str_base64.c b/src/microhttpd/test_str_base64.c
index 1821d116..cc5afb5c 100644
--- a/src/microhttpd/test_str_base64.c
+++ b/src/microhttpd/test_str_base64.c
@@ -579,6 +579,53 @@ check_decode_bin (void)
579 "gUEAwIBAP/+/Q==", bin); 579 "gUEAwIBAP/+/Q==", bin);
580 } 580 }
581 581
582 if (1)
583 {
584 static const uint8_t bin[48] =
585 {0x00, 0x10, 0x83, 0x10, 0x51, 0x87, 0x20, 0x92, 0x8b, 0x30, 0xd3, 0x8f,
586 0x41, 0x14, 0x93, 0x51, 0x55, 0x97, 0x61, 0x96, 0x9b, 0x71, 0xd7, 0x9f,
587 0x82, 0x18, 0xa3, 0x92, 0x59, 0xa7, 0xa2, 0x9a, 0xab, 0xb2, 0xdb, 0xaf,
588 0xc3, 0x1c, 0xb3, 0xd3, 0x5d, 0xb7, 0xe3, 0x9e, 0xbb, 0xf3, 0xdf, 0xbf };
589 r += expect_decoded_arr ("ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
590 "abcdefghijklmnopqrstuvwxyz0123456789+/", bin);
591 }
592
593 if (1)
594 {
595 static const uint8_t bin[49] =
596 {0x00, 0x10, 0x83, 0x10, 0x51, 0x87, 0x20, 0x92, 0x8b, 0x30, 0xd3, 0x8f,
597 0x41, 0x14, 0x93, 0x51, 0x55, 0x97, 0x61, 0x96, 0x9b, 0x71, 0xd7, 0x9f,
598 0x82, 0x18, 0xa3, 0x92, 0x59, 0xa7, 0xa2, 0x9a, 0xab, 0xb2, 0xdb, 0xaf,
599 0xc3, 0x1c, 0xb3, 0xd3, 0x5d, 0xb7, 0xe3, 0x9e, 0xbb, 0xf3, 0xdf, 0xbf,
600 0x00 };
601 r += expect_decoded_arr ("ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
602 "abcdefghijklmnopqrstuvwxyz0123456789+/" \
603 "AA==", bin);
604 }
605
606 if (1)
607 {
608 static const uint8_t bin[48] =
609 {0xff, 0xef, 0x7c, 0xef, 0xae, 0x78, 0xdf, 0x6d, 0x74, 0xcf, 0x2c, 0x70,
610 0xbe, 0xeb, 0x6c, 0xae, 0xaa, 0x68, 0x9e, 0x69, 0x64, 0x8e, 0x28, 0x60,
611 0x7d, 0xe7, 0x5c, 0x6d, 0xa6, 0x58, 0x5d, 0x65, 0x54, 0x4d, 0x24, 0x50,
612 0x3c, 0xe3, 0x4c, 0x2c, 0xa2, 0x48, 0x1c, 0x61, 0x44, 0x0c, 0x20, 0x40 };
613 r += expect_decoded_arr ("/+9876543210zyxwvutsrqponmlkjihgfedcba" \
614 "ZYXWVUTSRQPONMLKJIHGFEDCBA", bin);
615 }
616
617 if (1)
618 {
619 static const uint8_t bin[49] =
620 {0xff, 0xef, 0x7c, 0xef, 0xae, 0x78, 0xdf, 0x6d, 0x74, 0xcf, 0x2c, 0x70,
621 0xbe, 0xeb, 0x6c, 0xae, 0xaa, 0x68, 0x9e, 0x69, 0x64, 0x8e, 0x28, 0x60,
622 0x7d, 0xe7, 0x5c, 0x6d, 0xa6, 0x58, 0x5d, 0x65, 0x54, 0x4d, 0x24, 0x50,
623 0x3c, 0xe3, 0x4c, 0x2c, 0xa2, 0x48, 0x1c, 0x61, 0x44, 0x0c, 0x20, 0x40,
624 0x00 };
625 r += expect_decoded_arr ("/+9876543210zyxwvutsrqponmlkjihgfedcba" \
626 "ZYXWVUTSRQPONMLKJIHGFEDCBAAA==", bin);
627 }
628
582 return r; 629 return r;
583} 630}
584 631