28e2075280
trunk/talk git-svn-id: http://webrtc.googlecode.com/svn/trunk@4318 4adac7df-926f-26a2-2b94-8c16560cd09d
1019 lines
57 KiB
C++
1019 lines
57 KiB
C++
/*
|
|
* libjingle
|
|
* Copyright 2011, Google Inc.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions are met:
|
|
*
|
|
* 1. Redistributions of source code must retain the above copyright notice,
|
|
* this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
* this list of conditions and the following disclaimer in the documentation
|
|
* and/or other materials provided with the distribution.
|
|
* 3. The name of the author may not be used to endorse or promote products
|
|
* derived from this software without specific prior written permission.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
#include "talk/base/common.h"
|
|
#include "talk/base/base64.h"
|
|
#include "talk/base/gunit.h"
|
|
#include "talk/base/logging.h"
|
|
#include "talk/base/stringutils.h"
|
|
#include "talk/base/stream.h"
|
|
|
|
#include "talk/base/testbase64.h"
|
|
|
|
using namespace std;
|
|
using namespace talk_base;
|
|
|
|
static struct {
|
|
size_t plain_length;
|
|
const char* plaintext;
|
|
const char* cyphertext;
|
|
} base64_tests[] = {
|
|
|
|
// Basic bit patterns;
|
|
// values obtained with "echo -n '...' | uuencode -m test"
|
|
|
|
{ 1, "\000", "AA==" },
|
|
{ 1, "\001", "AQ==" },
|
|
{ 1, "\002", "Ag==" },
|
|
{ 1, "\004", "BA==" },
|
|
{ 1, "\010", "CA==" },
|
|
{ 1, "\020", "EA==" },
|
|
{ 1, "\040", "IA==" },
|
|
{ 1, "\100", "QA==" },
|
|
{ 1, "\200", "gA==" },
|
|
|
|
{ 1, "\377", "/w==" },
|
|
{ 1, "\376", "/g==" },
|
|
{ 1, "\375", "/Q==" },
|
|
{ 1, "\373", "+w==" },
|
|
{ 1, "\367", "9w==" },
|
|
{ 1, "\357", "7w==" },
|
|
{ 1, "\337", "3w==" },
|
|
{ 1, "\277", "vw==" },
|
|
{ 1, "\177", "fw==" },
|
|
{ 2, "\000\000", "AAA=" },
|
|
{ 2, "\000\001", "AAE=" },
|
|
{ 2, "\000\002", "AAI=" },
|
|
{ 2, "\000\004", "AAQ=" },
|
|
{ 2, "\000\010", "AAg=" },
|
|
{ 2, "\000\020", "ABA=" },
|
|
{ 2, "\000\040", "ACA=" },
|
|
{ 2, "\000\100", "AEA=" },
|
|
{ 2, "\000\200", "AIA=" },
|
|
{ 2, "\001\000", "AQA=" },
|
|
{ 2, "\002\000", "AgA=" },
|
|
{ 2, "\004\000", "BAA=" },
|
|
{ 2, "\010\000", "CAA=" },
|
|
{ 2, "\020\000", "EAA=" },
|
|
{ 2, "\040\000", "IAA=" },
|
|
{ 2, "\100\000", "QAA=" },
|
|
{ 2, "\200\000", "gAA=" },
|
|
|
|
{ 2, "\377\377", "//8=" },
|
|
{ 2, "\377\376", "//4=" },
|
|
{ 2, "\377\375", "//0=" },
|
|
{ 2, "\377\373", "//s=" },
|
|
{ 2, "\377\367", "//c=" },
|
|
{ 2, "\377\357", "/+8=" },
|
|
{ 2, "\377\337", "/98=" },
|
|
{ 2, "\377\277", "/78=" },
|
|
{ 2, "\377\177", "/38=" },
|
|
{ 2, "\376\377", "/v8=" },
|
|
{ 2, "\375\377", "/f8=" },
|
|
{ 2, "\373\377", "+/8=" },
|
|
{ 2, "\367\377", "9/8=" },
|
|
{ 2, "\357\377", "7/8=" },
|
|
{ 2, "\337\377", "3/8=" },
|
|
{ 2, "\277\377", "v/8=" },
|
|
{ 2, "\177\377", "f/8=" },
|
|
|
|
{ 3, "\000\000\000", "AAAA" },
|
|
{ 3, "\000\000\001", "AAAB" },
|
|
{ 3, "\000\000\002", "AAAC" },
|
|
{ 3, "\000\000\004", "AAAE" },
|
|
{ 3, "\000\000\010", "AAAI" },
|
|
{ 3, "\000\000\020", "AAAQ" },
|
|
{ 3, "\000\000\040", "AAAg" },
|
|
{ 3, "\000\000\100", "AABA" },
|
|
{ 3, "\000\000\200", "AACA" },
|
|
{ 3, "\000\001\000", "AAEA" },
|
|
{ 3, "\000\002\000", "AAIA" },
|
|
{ 3, "\000\004\000", "AAQA" },
|
|
{ 3, "\000\010\000", "AAgA" },
|
|
{ 3, "\000\020\000", "ABAA" },
|
|
{ 3, "\000\040\000", "ACAA" },
|
|
{ 3, "\000\100\000", "AEAA" },
|
|
{ 3, "\000\200\000", "AIAA" },
|
|
{ 3, "\001\000\000", "AQAA" },
|
|
{ 3, "\002\000\000", "AgAA" },
|
|
{ 3, "\004\000\000", "BAAA" },
|
|
{ 3, "\010\000\000", "CAAA" },
|
|
{ 3, "\020\000\000", "EAAA" },
|
|
{ 3, "\040\000\000", "IAAA" },
|
|
{ 3, "\100\000\000", "QAAA" },
|
|
{ 3, "\200\000\000", "gAAA" },
|
|
|
|
{ 3, "\377\377\377", "////" },
|
|
{ 3, "\377\377\376", "///+" },
|
|
{ 3, "\377\377\375", "///9" },
|
|
{ 3, "\377\377\373", "///7" },
|
|
{ 3, "\377\377\367", "///3" },
|
|
{ 3, "\377\377\357", "///v" },
|
|
{ 3, "\377\377\337", "///f" },
|
|
{ 3, "\377\377\277", "//+/" },
|
|
{ 3, "\377\377\177", "//9/" },
|
|
{ 3, "\377\376\377", "//7/" },
|
|
{ 3, "\377\375\377", "//3/" },
|
|
{ 3, "\377\373\377", "//v/" },
|
|
{ 3, "\377\367\377", "//f/" },
|
|
{ 3, "\377\357\377", "/+//" },
|
|
{ 3, "\377\337\377", "/9//" },
|
|
{ 3, "\377\277\377", "/7//" },
|
|
{ 3, "\377\177\377", "/3//" },
|
|
{ 3, "\376\377\377", "/v//" },
|
|
{ 3, "\375\377\377", "/f//" },
|
|
{ 3, "\373\377\377", "+///" },
|
|
{ 3, "\367\377\377", "9///" },
|
|
{ 3, "\357\377\377", "7///" },
|
|
{ 3, "\337\377\377", "3///" },
|
|
{ 3, "\277\377\377", "v///" },
|
|
{ 3, "\177\377\377", "f///" },
|
|
|
|
// Random numbers: values obtained with
|
|
//
|
|
// #! /bin/bash
|
|
// dd bs=$1 count=1 if=/dev/random of=/tmp/bar.random
|
|
// od -N $1 -t o1 /tmp/bar.random
|
|
// uuencode -m test < /tmp/bar.random
|
|
//
|
|
// where $1 is the number of bytes (2, 3)
|
|
|
|
{ 2, "\243\361", "o/E=" },
|
|
{ 2, "\024\167", "FHc=" },
|
|
{ 2, "\313\252", "y6o=" },
|
|
{ 2, "\046\041", "JiE=" },
|
|
{ 2, "\145\236", "ZZ4=" },
|
|
{ 2, "\254\325", "rNU=" },
|
|
{ 2, "\061\330", "Mdg=" },
|
|
{ 2, "\245\032", "pRo=" },
|
|
{ 2, "\006\000", "BgA=" },
|
|
{ 2, "\375\131", "/Vk=" },
|
|
{ 2, "\303\210", "w4g=" },
|
|
{ 2, "\040\037", "IB8=" },
|
|
{ 2, "\261\372", "sfo=" },
|
|
{ 2, "\335\014", "3Qw=" },
|
|
{ 2, "\233\217", "m48=" },
|
|
{ 2, "\373\056", "+y4=" },
|
|
{ 2, "\247\232", "p5o=" },
|
|
{ 2, "\107\053", "Rys=" },
|
|
{ 2, "\204\077", "hD8=" },
|
|
{ 2, "\276\211", "vok=" },
|
|
{ 2, "\313\110", "y0g=" },
|
|
{ 2, "\363\376", "8/4=" },
|
|
{ 2, "\251\234", "qZw=" },
|
|
{ 2, "\103\262", "Q7I=" },
|
|
{ 2, "\142\312", "Yso=" },
|
|
{ 2, "\067\211", "N4k=" },
|
|
{ 2, "\220\001", "kAE=" },
|
|
{ 2, "\152\240", "aqA=" },
|
|
{ 2, "\367\061", "9zE=" },
|
|
{ 2, "\133\255", "W60=" },
|
|
{ 2, "\176\035", "fh0=" },
|
|
{ 2, "\032\231", "Gpk=" },
|
|
|
|
{ 3, "\013\007\144", "Cwdk" },
|
|
{ 3, "\030\112\106", "GEpG" },
|
|
{ 3, "\047\325\046", "J9Um" },
|
|
{ 3, "\310\160\022", "yHAS" },
|
|
{ 3, "\131\100\237", "WUCf" },
|
|
{ 3, "\064\342\134", "NOJc" },
|
|
{ 3, "\010\177\004", "CH8E" },
|
|
{ 3, "\345\147\205", "5WeF" },
|
|
{ 3, "\300\343\360", "wOPw" },
|
|
{ 3, "\061\240\201", "MaCB" },
|
|
{ 3, "\225\333\044", "ldsk" },
|
|
{ 3, "\215\137\352", "jV/q" },
|
|
{ 3, "\371\147\160", "+Wdw" },
|
|
{ 3, "\030\320\051", "GNAp" },
|
|
{ 3, "\044\174\241", "JHyh" },
|
|
{ 3, "\260\127\037", "sFcf" },
|
|
{ 3, "\111\045\033", "SSUb" },
|
|
{ 3, "\202\114\107", "gkxH" },
|
|
{ 3, "\057\371\042", "L/ki" },
|
|
{ 3, "\223\247\244", "k6ek" },
|
|
{ 3, "\047\216\144", "J45k" },
|
|
{ 3, "\203\070\327", "gzjX" },
|
|
{ 3, "\247\140\072", "p2A6" },
|
|
{ 3, "\124\115\116", "VE1O" },
|
|
{ 3, "\157\162\050", "b3Io" },
|
|
{ 3, "\357\223\004", "75ME" },
|
|
{ 3, "\052\117\156", "Kk9u" },
|
|
{ 3, "\347\154\000", "52wA" },
|
|
{ 3, "\303\012\142", "wwpi" },
|
|
{ 3, "\060\035\362", "MB3y" },
|
|
{ 3, "\130\226\361", "WJbx" },
|
|
{ 3, "\173\013\071", "ews5" },
|
|
{ 3, "\336\004\027", "3gQX" },
|
|
{ 3, "\357\366\234", "7/ac" },
|
|
{ 3, "\353\304\111", "68RJ" },
|
|
{ 3, "\024\264\131", "FLRZ" },
|
|
{ 3, "\075\114\251", "PUyp" },
|
|
{ 3, "\315\031\225", "zRmV" },
|
|
{ 3, "\154\201\276", "bIG+" },
|
|
{ 3, "\200\066\072", "gDY6" },
|
|
{ 3, "\142\350\267", "Yui3" },
|
|
{ 3, "\033\000\166", "GwB2" },
|
|
{ 3, "\210\055\077", "iC0/" },
|
|
{ 3, "\341\037\124", "4R9U" },
|
|
{ 3, "\161\103\152", "cUNq" },
|
|
{ 3, "\270\142\131", "uGJZ" },
|
|
{ 3, "\337\076\074", "3z48" },
|
|
{ 3, "\375\106\362", "/Uby" },
|
|
{ 3, "\227\301\127", "l8FX" },
|
|
{ 3, "\340\002\234", "4AKc" },
|
|
{ 3, "\121\064\033", "UTQb" },
|
|
{ 3, "\157\134\143", "b1xj" },
|
|
{ 3, "\247\055\327", "py3X" },
|
|
{ 3, "\340\142\005", "4GIF" },
|
|
{ 3, "\060\260\143", "MLBj" },
|
|
{ 3, "\075\203\170", "PYN4" },
|
|
{ 3, "\143\160\016", "Y3AO" },
|
|
{ 3, "\313\013\063", "ywsz" },
|
|
{ 3, "\174\236\135", "fJ5d" },
|
|
{ 3, "\103\047\026", "QycW" },
|
|
{ 3, "\365\005\343", "9QXj" },
|
|
{ 3, "\271\160\223", "uXCT" },
|
|
{ 3, "\362\255\172", "8q16" },
|
|
{ 3, "\113\012\015", "SwoN" },
|
|
|
|
// various lengths, generated by this python script:
|
|
//
|
|
// from string import lowercase as lc
|
|
// for i in range(27):
|
|
// print '{ %2d, "%s",%s "%s" },' % (i, lc[:i], ' ' * (26-i),
|
|
// lc[:i].encode('base64').strip())
|
|
|
|
{ 0, "abcdefghijklmnopqrstuvwxyz", "" },
|
|
{ 1, "abcdefghijklmnopqrstuvwxyz", "YQ==" },
|
|
{ 2, "abcdefghijklmnopqrstuvwxyz", "YWI=" },
|
|
{ 3, "abcdefghijklmnopqrstuvwxyz", "YWJj" },
|
|
{ 4, "abcdefghijklmnopqrstuvwxyz", "YWJjZA==" },
|
|
{ 5, "abcdefghijklmnopqrstuvwxyz", "YWJjZGU=" },
|
|
{ 6, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVm" },
|
|
{ 7, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZw==" },
|
|
{ 8, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2g=" },
|
|
{ 9, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hp" },
|
|
{ 10, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpag==" },
|
|
{ 11, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpams=" },
|
|
{ 12, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamts" },
|
|
{ 13, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbQ==" },
|
|
{ 14, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW4=" },
|
|
{ 15, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5v" },
|
|
{ 16, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5vcA==" },
|
|
{ 17, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5vcHE=" },
|
|
{ 18, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5vcHFy" },
|
|
{ 19, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5vcHFycw==" },
|
|
{ 20, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5vcHFyc3Q=" },
|
|
{ 21, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1" },
|
|
{ 22, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dg==" },
|
|
{ 23, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnc=" },
|
|
{ 24, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4" },
|
|
{ 25, "abcdefghijklmnopqrstuvwxy", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eQ==" },
|
|
{ 26, "abcdefghijklmnopqrstuvwxyz", "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo=" },
|
|
};
|
|
#if 0
|
|
static struct {
|
|
const char* plaintext;
|
|
const char* cyphertext;
|
|
} base64_strings[] = {
|
|
|
|
// The first few Google quotes
|
|
// Cyphertext created with "uuencode - GNU sharutils 4.2.1"
|
|
{
|
|
"Everyone! We're teetering on the brink of disaster."
|
|
" - Sergey Brin, 6/24/99, regarding the company's state "
|
|
"after the unleashing of Netscape/Google search",
|
|
|
|
"RXZlcnlvbmUhICBXZSdyZSB0ZWV0ZXJpbmcgb24gdGhlIGJyaW5rIG9mIGRp"
|
|
"c2FzdGVyLiAtIFNlcmdleSBCcmluLCA2LzI0Lzk5LCByZWdhcmRpbmcgdGhl"
|
|
"IGNvbXBhbnkncyBzdGF0ZSBhZnRlciB0aGUgdW5sZWFzaGluZyBvZiBOZXRz"
|
|
"Y2FwZS9Hb29nbGUgc2VhcmNo" },
|
|
|
|
{
|
|
"I'm not sure why we're still alive, but we seem to be."
|
|
" - Larry Page, 6/24/99, while hiding in the kitchenette "
|
|
"during the Netscape traffic overflow",
|
|
|
|
"SSdtIG5vdCBzdXJlIHdoeSB3ZSdyZSBzdGlsbCBhbGl2ZSwgYnV0IHdlIHNl"
|
|
"ZW0gdG8gYmUuIC0gTGFycnkgUGFnZSwgNi8yNC85OSwgd2hpbGUgaGlkaW5n"
|
|
"IGluIHRoZSBraXRjaGVuZXR0ZSBkdXJpbmcgdGhlIE5ldHNjYXBlIHRyYWZm"
|
|
"aWMgb3ZlcmZsb3c" },
|
|
|
|
{
|
|
"I think kids want porn."
|
|
" - Sergey Brin, 6/99, on why Google shouldn't prioritize a "
|
|
"filtered search for children and families",
|
|
|
|
"SSB0aGluayBraWRzIHdhbnQgcG9ybi4gLSBTZXJnZXkgQnJpbiwgNi85OSwg"
|
|
"b24gd2h5IEdvb2dsZSBzaG91bGRuJ3QgcHJpb3JpdGl6ZSBhIGZpbHRlcmVk"
|
|
"IHNlYXJjaCBmb3IgY2hpbGRyZW4gYW5kIGZhbWlsaWVz" },
|
|
};
|
|
#endif
|
|
// Compare bytes 0..len-1 of x and y. If not equal, abort with verbose error
|
|
// message showing position and numeric value that differed.
|
|
// Handles embedded nulls just like any other byte.
|
|
// Only added because string.compare() in gcc-3.3.3 seems to misbehave with
|
|
// embedded nulls.
|
|
// TODO: switch back to string.compare() if/when gcc is fixed
|
|
#define EXPECT_EQ_ARRAY(len, x, y, msg) \
|
|
for (size_t j = 0; j < len; ++j) { \
|
|
if (x[j] != y[j]) { \
|
|
LOG(LS_ERROR) << "" # x << " != " # y \
|
|
<< " byte " << j << " msg: " << msg; \
|
|
} \
|
|
}
|
|
|
|
size_t Base64Escape(const unsigned char *src, size_t szsrc, char *dest,
|
|
size_t szdest) {
|
|
std::string escaped;
|
|
Base64::EncodeFromArray((const char *)src, szsrc, &escaped);
|
|
memcpy(dest, escaped.data(), min(escaped.size(), szdest));
|
|
return escaped.size();
|
|
}
|
|
|
|
size_t Base64Unescape(const char *src, size_t szsrc, char *dest,
|
|
size_t szdest) {
|
|
std::string unescaped;
|
|
EXPECT_TRUE(Base64::DecodeFromArray(src, szsrc, Base64::DO_LAX, &unescaped,
|
|
NULL));
|
|
memcpy(dest, unescaped.data(), min(unescaped.size(), szdest));
|
|
return unescaped.size();
|
|
}
|
|
|
|
size_t Base64Unescape(const char *src, size_t szsrc, string *s) {
|
|
EXPECT_TRUE(Base64::DecodeFromArray(src, szsrc, Base64::DO_LAX, s, NULL));
|
|
return s->size();
|
|
}
|
|
|
|
TEST(Base64, EncodeDecodeBattery) {
|
|
LOG(LS_VERBOSE) << "Testing base-64";
|
|
|
|
size_t i;
|
|
|
|
// Check the short strings; this tests the math (and boundaries)
|
|
for( i = 0; i < sizeof(base64_tests) / sizeof(base64_tests[0]); ++i ) {
|
|
char encode_buffer[100];
|
|
size_t encode_length;
|
|
char decode_buffer[100];
|
|
size_t decode_length;
|
|
size_t cypher_length;
|
|
|
|
LOG(LS_VERBOSE) << "B64: " << base64_tests[i].cyphertext;
|
|
|
|
const unsigned char* unsigned_plaintext =
|
|
reinterpret_cast<const unsigned char*>(base64_tests[i].plaintext);
|
|
|
|
cypher_length = strlen(base64_tests[i].cyphertext);
|
|
|
|
// The basic escape function:
|
|
memset(encode_buffer, 0, sizeof(encode_buffer));
|
|
encode_length = Base64Escape(unsigned_plaintext,
|
|
base64_tests[i].plain_length,
|
|
encode_buffer,
|
|
sizeof(encode_buffer));
|
|
// Is it of the expected length?
|
|
EXPECT_EQ(encode_length, cypher_length);
|
|
|
|
// Is it the expected encoded value?
|
|
EXPECT_STREQ(encode_buffer, base64_tests[i].cyphertext);
|
|
|
|
// If we encode it into a buffer of exactly the right length...
|
|
memset(encode_buffer, 0, sizeof(encode_buffer));
|
|
encode_length = Base64Escape(unsigned_plaintext,
|
|
base64_tests[i].plain_length,
|
|
encode_buffer,
|
|
cypher_length);
|
|
// Is it still of the expected length?
|
|
EXPECT_EQ(encode_length, cypher_length);
|
|
|
|
// And is the value still correct? (i.e., not losing the last byte)
|
|
EXPECT_STREQ(encode_buffer, base64_tests[i].cyphertext);
|
|
|
|
// If we decode it back:
|
|
memset(decode_buffer, 0, sizeof(decode_buffer));
|
|
decode_length = Base64Unescape(encode_buffer,
|
|
cypher_length,
|
|
decode_buffer,
|
|
sizeof(decode_buffer));
|
|
|
|
// Is it of the expected length?
|
|
EXPECT_EQ(decode_length, base64_tests[i].plain_length);
|
|
|
|
// Is it the expected decoded value?
|
|
EXPECT_EQ(0, memcmp(decode_buffer, base64_tests[i].plaintext, decode_length));
|
|
|
|
// Our decoder treats the padding '=' characters at the end as
|
|
// optional. If encode_buffer has any, run some additional
|
|
// tests that fiddle with them.
|
|
char* first_equals = strchr(encode_buffer, '=');
|
|
if (first_equals) {
|
|
// How many equals signs does the string start with?
|
|
int equals = (*(first_equals+1) == '=') ? 2 : 1;
|
|
|
|
// Try chopping off the equals sign(s) entirely. The decoder
|
|
// should still be okay with this.
|
|
string decoded2("this junk should also be ignored");
|
|
*first_equals = '\0';
|
|
EXPECT_NE(0U, Base64Unescape(encode_buffer, first_equals-encode_buffer,
|
|
&decoded2));
|
|
EXPECT_EQ(decoded2.size(), base64_tests[i].plain_length);
|
|
EXPECT_EQ_ARRAY(decoded2.size(), decoded2.data(), base64_tests[i].plaintext, i);
|
|
|
|
size_t len;
|
|
|
|
// try putting some extra stuff after the equals signs, or in between them
|
|
if (equals == 2) {
|
|
sprintfn(first_equals, 6, " = = ");
|
|
len = first_equals - encode_buffer + 5;
|
|
} else {
|
|
sprintfn(first_equals, 6, " = ");
|
|
len = first_equals - encode_buffer + 3;
|
|
}
|
|
decoded2.assign("this junk should be ignored");
|
|
EXPECT_NE(0U, Base64Unescape(encode_buffer, len, &decoded2));
|
|
EXPECT_EQ(decoded2.size(), base64_tests[i].plain_length);
|
|
EXPECT_EQ_ARRAY(decoded2.size(), decoded2, base64_tests[i].plaintext, i);
|
|
}
|
|
}
|
|
}
|
|
|
|
// here's a weird case: a giant base64 encoded stream which broke our base64
|
|
// decoding. Let's test it explicitly.
|
|
const char SpecificTest[] =
|
|
"/9j/4AAQSkZJRgABAgEASABIAAD/4Q0HRXhpZgAATU0AKgAAAAgADAEOAAIAAAAg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gICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIA\n"
|
|
"ogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI\n"
|
|
"CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAg\n"
|
|
"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA\n"
|
|
"gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgIC\n"
|
|
"AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0ndyc/P\n"
|
|
"v/uAA5BZG9iZQBkQAAAAAH/2wCEAAQDAwMDAwQDAwQGBAMEBgcFBAQFBwgGBgcGBggKCAkJCQkI\n"
|
|
"CgoMDAwMDAoMDAwMDAwMDAwMDAwMDAwMDAwMDAwBBAUFCAcIDwoKDxQODg4UFA4ODg4UEQwMDAw\n"
|
|
"MEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/AABEIAGQAZAMBEQACEQEDEQ\n"
|
|
"H/3QAEAA3/xAGiAAAABwEB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TEST(Base64, LargeSample) {
|
|
LOG(LS_VERBOSE) << "Testing specific base64 file";
|
|
|
|
char unescaped[64 * 1024];
|
|
|
|
// unescape that massive blob above
|
|
size_t size = Base64Unescape(SpecificTest,
|
|
sizeof(SpecificTest),
|
|
unescaped,
|
|
sizeof(unescaped));
|
|
|
|
EXPECT_EQ(size, sizeof(testbase64));
|
|
EXPECT_EQ(0, memcmp(testbase64, unescaped, sizeof(testbase64)));
|
|
}
|
|
|
|
bool DecodeTest(const char* encoded, size_t expect_unparsed,
|
|
const char* decoded, Base64::DecodeFlags flags)
|
|
{
|
|
std::string result;
|
|
size_t consumed = 0, encoded_len = strlen(encoded);
|
|
bool success = Base64::DecodeFromArray(encoded, encoded_len, flags,
|
|
&result, &consumed);
|
|
size_t unparsed = encoded_len - consumed;
|
|
EXPECT_EQ(expect_unparsed, unparsed) << "\"" << encoded
|
|
<< "\" -> \"" << decoded
|
|
<< "\"";
|
|
EXPECT_STREQ(decoded, result.c_str());
|
|
return success;
|
|
}
|
|
|
|
#define Flags(x,y,z) \
|
|
Base64::DO_PARSE_##x | Base64::DO_PAD_##y | Base64::DO_TERM_##z
|
|
|
|
TEST(Base64, DecodeParseOptions) {
|
|
// Trailing whitespace
|
|
EXPECT_TRUE (DecodeTest("YWJjZA== ", 1, "abcd", Flags(STRICT, YES, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJjZA== ", 0, "abcd", Flags(WHITE, YES, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJjZA== ", 0, "abcd", Flags(ANY, YES, CHAR)));
|
|
|
|
// Embedded whitespace
|
|
EXPECT_FALSE(DecodeTest("YWJjZA= =", 3, "abcd", Flags(STRICT, YES, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJjZA= =", 0, "abcd", Flags(WHITE, YES, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJjZA= =", 0, "abcd", Flags(ANY, YES, CHAR)));
|
|
|
|
// Embedded non-base64 characters
|
|
EXPECT_FALSE(DecodeTest("YWJjZA=*=", 3, "abcd", Flags(STRICT, YES, CHAR)));
|
|
EXPECT_FALSE(DecodeTest("YWJjZA=*=", 3, "abcd", Flags(WHITE, YES, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJjZA=*=", 0, "abcd", Flags(ANY, YES, CHAR)));
|
|
|
|
// Unexpected padding characters
|
|
EXPECT_FALSE(DecodeTest("YW=JjZA==", 7, "a", Flags(STRICT, YES, CHAR)));
|
|
EXPECT_FALSE(DecodeTest("YW=JjZA==", 7, "a", Flags(WHITE, YES, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YW=JjZA==", 0, "abcd", Flags(ANY, YES, CHAR)));
|
|
}
|
|
|
|
TEST(Base64, DecodePadOptions) {
|
|
// Padding
|
|
EXPECT_TRUE (DecodeTest("YWJjZA==", 0, "abcd", Flags(STRICT, YES, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJjZA==", 0, "abcd", Flags(STRICT, ANY, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJjZA==", 2, "abcd", Flags(STRICT, NO, CHAR)));
|
|
|
|
// Incomplete padding
|
|
EXPECT_FALSE(DecodeTest("YWJjZA=", 1, "abcd", Flags(STRICT, YES, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJjZA=", 1, "abcd", Flags(STRICT, ANY, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJjZA=", 1, "abcd", Flags(STRICT, NO, CHAR)));
|
|
|
|
// No padding
|
|
EXPECT_FALSE(DecodeTest("YWJjZA", 0, "abcd", Flags(STRICT, YES, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJjZA", 0, "abcd", Flags(STRICT, ANY, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJjZA", 0, "abcd", Flags(STRICT, NO, CHAR)));
|
|
}
|
|
|
|
TEST(Base64, DecodeTerminateOptions) {
|
|
// Complete quantum
|
|
EXPECT_TRUE (DecodeTest("YWJj", 0, "abc", Flags(STRICT, NO, BUFFER)));
|
|
EXPECT_TRUE (DecodeTest("YWJj", 0, "abc", Flags(STRICT, NO, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJj", 0, "abc", Flags(STRICT, NO, ANY)));
|
|
|
|
// Complete quantum with trailing data
|
|
EXPECT_FALSE(DecodeTest("YWJj*", 1, "abc", Flags(STRICT, NO, BUFFER)));
|
|
EXPECT_TRUE (DecodeTest("YWJj*", 1, "abc", Flags(STRICT, NO, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJj*", 1, "abc", Flags(STRICT, NO, ANY)));
|
|
|
|
// Incomplete quantum
|
|
EXPECT_FALSE(DecodeTest("YWJ", 0, "ab", Flags(STRICT, NO, BUFFER)));
|
|
EXPECT_FALSE(DecodeTest("YWJ", 0, "ab", Flags(STRICT, NO, CHAR)));
|
|
EXPECT_TRUE (DecodeTest("YWJ", 0, "ab", Flags(STRICT, NO, ANY)));
|
|
}
|
|
|
|
TEST(Base64, GetNextBase64Char) {
|
|
// The table looks like this:
|
|
// "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
|
|
char next_char;
|
|
EXPECT_TRUE(Base64::GetNextBase64Char('A', &next_char));
|
|
EXPECT_EQ('B', next_char);
|
|
EXPECT_TRUE(Base64::GetNextBase64Char('Z', &next_char));
|
|
EXPECT_EQ('a', next_char);
|
|
EXPECT_TRUE(Base64::GetNextBase64Char('/', &next_char));
|
|
EXPECT_EQ('A', next_char);
|
|
EXPECT_FALSE(Base64::GetNextBase64Char('&', &next_char));
|
|
EXPECT_FALSE(Base64::GetNextBase64Char('Z', NULL));
|
|
}
|