1 | /* $Id: tstRTBase64.cpp 84293 2020-05-13 16:23:25Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * IPRT Testcase - Base64.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2009-2020 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | *
|
---|
17 | * The contents of this file may alternatively be used under the terms
|
---|
18 | * of the Common Development and Distribution License Version 1.0
|
---|
19 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | * CDDL are applicable instead of those of the GPL.
|
---|
22 | *
|
---|
23 | * You may elect to license modified versions of this file under the
|
---|
24 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | */
|
---|
26 |
|
---|
27 |
|
---|
28 | /*********************************************************************************************************************************
|
---|
29 | * Header Files *
|
---|
30 | *********************************************************************************************************************************/
|
---|
31 | #include <iprt/base64.h>
|
---|
32 |
|
---|
33 | #include <iprt/errcore.h>
|
---|
34 | #include <iprt/initterm.h>
|
---|
35 | #include <iprt/stdarg.h>
|
---|
36 | #include <iprt/stream.h>
|
---|
37 | #include <iprt/string.h>
|
---|
38 | #include <iprt/utf16.h>
|
---|
39 | #include <iprt/test.h>
|
---|
40 |
|
---|
41 |
|
---|
42 | /*********************************************************************************************************************************
|
---|
43 | * Defined Constants And Macros *
|
---|
44 | *********************************************************************************************************************************/
|
---|
45 | #if defined(RT_OS_OS2) || defined(RT_OS_WINDOWS)
|
---|
46 | # define MY_NL "\r\n"
|
---|
47 | #else
|
---|
48 | # define MY_NL "\n"
|
---|
49 | #endif
|
---|
50 |
|
---|
51 |
|
---|
52 | /*********************************************************************************************************************************
|
---|
53 | * Global Variables *
|
---|
54 | *********************************************************************************************************************************/
|
---|
55 |
|
---|
56 |
|
---|
57 | static void tstBase64(const void *pvData, size_t cbData,
|
---|
58 | const char *pszEnc, size_t cchEnc,
|
---|
59 | int fTextData, int fNormalEnc)
|
---|
60 | {
|
---|
61 | union
|
---|
62 | {
|
---|
63 | char szOut[0x10000];
|
---|
64 | RTUTF16 wszOut[0x10000];
|
---|
65 | };
|
---|
66 | size_t cchOut = 0;
|
---|
67 |
|
---|
68 | /*
|
---|
69 | * Test decoding.
|
---|
70 | */
|
---|
71 | int rc = RTBase64Decode(pszEnc, szOut, cbData, &cchOut, NULL);
|
---|
72 | if (RT_FAILURE(rc))
|
---|
73 | RTTestIFailed("RTBase64Decode -> %Rrc", rc);
|
---|
74 | else if (cchOut != cbData)
|
---|
75 | RTTestIFailed("RTBase64Decode returned %zu bytes, expected %zu.",
|
---|
76 | cchOut, cbData);
|
---|
77 | else if (memcmp(szOut, pvData, cchOut))
|
---|
78 | {
|
---|
79 | if (fTextData)
|
---|
80 | RTTestIFailed("RTBase64Decode returned:\n%.*s\nexpected:\n%s\n",
|
---|
81 | (int)cchOut, szOut, pvData);
|
---|
82 | else
|
---|
83 | RTTestIFailed("RTBase64Decode return mismatching output\n");
|
---|
84 | }
|
---|
85 |
|
---|
86 | cchOut = RTBase64DecodedSize(pszEnc, NULL);
|
---|
87 | if (cchOut != cbData)
|
---|
88 | RTTestIFailed("RTBase64DecodedSize returned %zu bytes, expected %zu.\n",
|
---|
89 | cchOut, cbData);
|
---|
90 |
|
---|
91 | /*
|
---|
92 | * Test encoding.
|
---|
93 | */
|
---|
94 | rc = RTBase64Encode(pvData, cbData, szOut, cchEnc + 1, &cchOut);
|
---|
95 | if (RT_FAILURE(rc))
|
---|
96 | RTTestIFailed("RTBase64Encode -> %Rrc\n", rc);
|
---|
97 | else if (fNormalEnc && cchOut != cchEnc)
|
---|
98 | RTTestIFailed("RTBase64Encode returned %zu bytes, expected %zu.\n",
|
---|
99 | cchOut, cchEnc);
|
---|
100 | else if (fNormalEnc && memcmp(szOut, pszEnc, cchOut + 1))
|
---|
101 | RTTestIFailed("RTBase64Encode returned:\n%.*s\nexpected:\n%s\n",
|
---|
102 | sizeof(szOut), szOut, pszEnc);
|
---|
103 |
|
---|
104 | size_t cchOut2 = RTBase64EncodedLength(cbData);
|
---|
105 | if (cchOut != cchOut2)
|
---|
106 | RTTestIFailed("RTBase64EncodedLength returned %zu bytes, expected %zu.\n",
|
---|
107 | cchOut2, cchOut);
|
---|
108 |
|
---|
109 | /** @todo negative testing. */
|
---|
110 |
|
---|
111 | /*
|
---|
112 | * Same as above, but using the UTF-16 variant of the code.
|
---|
113 | */
|
---|
114 |
|
---|
115 | /* Encoding UTF-16: */
|
---|
116 | memset(wszOut, 0xaa, sizeof(wszOut));
|
---|
117 | wszOut[sizeof(wszOut) / sizeof(wszOut[0]) - 1] = '\0';
|
---|
118 | size_t cwcOut = 0;
|
---|
119 | rc = RTBase64EncodeUtf16(pvData, cbData, wszOut, cchEnc + 1, &cwcOut);
|
---|
120 | if (RT_FAILURE(rc))
|
---|
121 | RTTestIFailed("RTBase64EncodeUtf16 -> %Rrc\n", rc);
|
---|
122 | else if (fNormalEnc && cwcOut != cchEnc)
|
---|
123 | RTTestIFailed("RTBase64EncodeUtf16 returned %zu bytes, expected %zu.\n", cwcOut, cchEnc);
|
---|
124 | else if (fNormalEnc && RTUtf16CmpUtf8(wszOut, pszEnc))
|
---|
125 | RTTestIFailed("RTBase64EncodeUtf16 returned:\n%s\nexpected:\n%s\n", wszOut, pszEnc);
|
---|
126 |
|
---|
127 | size_t cwcOut2 = RTBase64EncodedUtf16Length(cbData);
|
---|
128 | if (cwcOut != cwcOut2)
|
---|
129 | RTTestIFailed("RTBase64EncodedLength returned %zu RTUTF16 units, expected %zu.\n", cwcOut2, cwcOut);
|
---|
130 |
|
---|
131 | /* Decoding UTF-16: */
|
---|
132 | PRTUTF16 pwszEnc = NULL;
|
---|
133 | RTTESTI_CHECK_RC_OK_RETV(RTStrToUtf16(pszEnc, &pwszEnc));
|
---|
134 |
|
---|
135 | rc = RTBase64DecodeUtf16(pwszEnc, szOut, cbData, &cchOut, NULL);
|
---|
136 | if (RT_FAILURE(rc))
|
---|
137 | RTTestIFailed("RTBase64DecodeUtf16 -> %Rrc", rc);
|
---|
138 | else if (cchOut != cbData)
|
---|
139 | RTTestIFailed("RTBase64DecodeUtf16 returned %zu bytes, expected %zu.", cchOut, cbData);
|
---|
140 | else if (memcmp(szOut, pvData, cchOut))
|
---|
141 | {
|
---|
142 | if (fTextData)
|
---|
143 | RTTestIFailed("RTBase64Decode returned:\n%.*s\nexpected:\n%s\n", (int)cchOut, szOut, pvData);
|
---|
144 | else
|
---|
145 | RTTestIFailed("RTBase64Decode return mismatching output\n");
|
---|
146 | }
|
---|
147 |
|
---|
148 | cchOut = RTBase64DecodedUtf16Size(pwszEnc, NULL);
|
---|
149 | if (cchOut != cbData)
|
---|
150 | RTTestIFailed("RTBase64DecodedUtf16Size returned %zu bytes, expected %zu.\n", cchOut, cbData);
|
---|
151 |
|
---|
152 | RTUtf16Free(pwszEnc);
|
---|
153 | }
|
---|
154 |
|
---|
155 |
|
---|
156 | int main()
|
---|
157 | {
|
---|
158 | RTTEST hTest;
|
---|
159 | int rc = RTTestInitAndCreate("tstRTBase64", &hTest);
|
---|
160 | if (rc)
|
---|
161 | return rc;
|
---|
162 | RTTestBanner(hTest);
|
---|
163 |
|
---|
164 | /*
|
---|
165 | * Series of simple tests.
|
---|
166 | */
|
---|
167 | static const struct
|
---|
168 | {
|
---|
169 | const char *pszText;
|
---|
170 | size_t cchText;
|
---|
171 | const char *pszEnc;
|
---|
172 | size_t cchEnc;
|
---|
173 | } g_aTests[] =
|
---|
174 | {
|
---|
175 | #define TEST_ENTRY(szText, szEnc) { szText, sizeof(szText) - 1, szEnc, sizeof(szEnc) - 1 }
|
---|
176 | TEST_ENTRY("Hey", "SGV5"),
|
---|
177 | TEST_ENTRY("Base64", "QmFzZTY0"),
|
---|
178 | TEST_ENTRY("Call me Ishmael.", "Q2FsbCBtZSBJc2htYWVsLg=="),
|
---|
179 | TEST_ENTRY(
|
---|
180 | "Man is distinguished, not only by his reason, but by this singular passion "
|
---|
181 | "from other animals, which is a lust of the mind, that by a perseverance of "
|
---|
182 | "delight in the continued and indefatigable generation of knowledge, exceeds "
|
---|
183 | "the short vehemence of any carnal pleasure." /* Thomas Hobbes's Leviathan */,
|
---|
184 | "TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1" MY_NL
|
---|
185 | "dCBieSB0aGlzIHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3" MY_NL
|
---|
186 | "aGljaCBpcyBhIGx1c3Qgb2YgdGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFu" MY_NL
|
---|
187 | "Y2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGludWVkIGFuZCBpbmRlZmF0aWdhYmxl" MY_NL
|
---|
188 | "IGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRoZSBzaG9ydCB2ZWhl" MY_NL
|
---|
189 | "bWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4="
|
---|
190 | )
|
---|
191 | #undef TEST_ENTRY
|
---|
192 | };
|
---|
193 |
|
---|
194 | for (unsigned i = 0; i < RT_ELEMENTS(g_aTests); i++)
|
---|
195 | {
|
---|
196 | RTTestSubF(hTest, "Test 1-%u", i);
|
---|
197 | tstBase64(g_aTests[i].pszText, g_aTests[i].cchText,
|
---|
198 | g_aTests[i].pszEnc, g_aTests[i].cchEnc,
|
---|
199 | 1 /* fTextData */, 1 /* fNormalEnc */);
|
---|
200 | }
|
---|
201 |
|
---|
202 | /*
|
---|
203 | * Try with some more junk in the encoding and different line length.
|
---|
204 | */
|
---|
205 | RTTestSub(hTest, "Test 2");
|
---|
206 | static const char s_szText2[] =
|
---|
207 | "Man is distinguished, not only by his reason, but by this singular passion "
|
---|
208 | "from other animals, which is a lust of the mind, that by a perseverance of "
|
---|
209 | "delight in the continued and indefatigable generation of knowledge, exceeds "
|
---|
210 | "the short vehemence of any carnal pleasure."; /* Thomas Hobbes's Leviathan */
|
---|
211 |
|
---|
212 | static const char s_szEnc2[] =
|
---|
213 | " TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz\r\n"
|
---|
214 | " IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg\n\r\t\t\t\v"
|
---|
215 | "dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu\n"
|
---|
216 | "\tdWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRo\n\r"
|
---|
217 | " ZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=\n \n \r \n \t";
|
---|
218 |
|
---|
219 | tstBase64(s_szText2, sizeof(s_szText2) - 1,
|
---|
220 | s_szEnc2, sizeof(s_szEnc2) - 1,
|
---|
221 | 1 /* fTextData */, 0 /* fNormalEnc */);
|
---|
222 |
|
---|
223 | /*
|
---|
224 | * Test for buffer overruns.
|
---|
225 | */
|
---|
226 | RTTestSubF(hTest, "Test 3");
|
---|
227 | static uint8_t s_abData4[32768];
|
---|
228 | for (size_t i = 0; i < sizeof(s_abData4); i++)
|
---|
229 | s_abData4[i] = i % 256;
|
---|
230 | for (size_t cbSrc = 1; cbSrc <= sizeof(s_abData4); cbSrc++)
|
---|
231 | {
|
---|
232 | union
|
---|
233 | {
|
---|
234 | char szEnc[49152];
|
---|
235 | RTUTF16 wszEnc[49152];
|
---|
236 | };
|
---|
237 | memset(szEnc, '\0', sizeof(szEnc));
|
---|
238 | size_t cchEnc = RTBase64EncodedLength(cbSrc);
|
---|
239 | if (cchEnc >= sizeof(szEnc))
|
---|
240 | RTTestIFailed("RTBase64EncodedLength(%zu) returned %zu bytes - too big\n", cbSrc, cchEnc);
|
---|
241 | size_t cchOut = 0;
|
---|
242 | rc = RTBase64Encode(s_abData4, cbSrc, szEnc, cchEnc, &cchOut);
|
---|
243 | if (rc != VERR_BUFFER_OVERFLOW)
|
---|
244 | RTTestIFailed("RTBase64Encode(,%zu,) has no buffer overflow with too small buffer -> %Rrc\n", cbSrc, rc);
|
---|
245 | rc = RTBase64Encode(s_abData4, cbSrc, szEnc, cchEnc + 1, &cchOut);
|
---|
246 | if (RT_FAILURE(rc))
|
---|
247 | RTTestIFailed("RTBase64Encode -> %Rrc\n", rc);
|
---|
248 | if (cchOut != cchEnc)
|
---|
249 | RTTestIFailed("RTBase64EncodedLength(%zu) returned %zu bytes, expected %zu.\n",
|
---|
250 | cbSrc, cchEnc, cchOut);
|
---|
251 | if (szEnc[cchOut] != '\0')
|
---|
252 | RTTestIFailed("RTBase64Encode(,%zu,) returned string which is not zero terminated\n", cbSrc);
|
---|
253 | if (strlen(szEnc) != cchOut)
|
---|
254 | RTTestIFailed("RTBase64Encode(,%zu,) returned incorrect string, length %lu\n", cbSrc, cchOut);
|
---|
255 |
|
---|
256 | /* Ditto for UTF-16: */
|
---|
257 | memset(wszEnc, '\0', sizeof(wszEnc));
|
---|
258 | size_t cwcEnc = RTBase64EncodedUtf16Length(cbSrc);
|
---|
259 | if (cwcEnc >= RT_ELEMENTS(wszEnc))
|
---|
260 | RTTestIFailed("RTBase64EncodedUtf16Length(%zu) returned %zu RTUTF16 units - too big\n", cbSrc, cwcEnc);
|
---|
261 | size_t cwcOut = 0;
|
---|
262 | rc = RTBase64EncodeUtf16(s_abData4, cbSrc, wszEnc, cwcEnc, &cwcOut);
|
---|
263 | if (rc != VERR_BUFFER_OVERFLOW)
|
---|
264 | RTTestIFailed("RTBase64EncodeUtf16(,%zu,) has no buffer overflow with too small buffer -> %Rrc\n", cbSrc, rc);
|
---|
265 | cwcOut = ~(size_t)0;
|
---|
266 | rc = RTBase64EncodeUtf16(s_abData4, cbSrc, wszEnc, cwcEnc + 1, &cwcOut);
|
---|
267 | if (RT_FAILURE(rc))
|
---|
268 | RTTestIFailed("RTBase64EncodeUtf16 -> %Rrc\n", rc);
|
---|
269 | if (cchOut != cchEnc)
|
---|
270 | RTTestIFailed("RTBase64EncodedUtf16Length(%zu) returned %zu bytes, expected %zu.\n",
|
---|
271 | cbSrc, cwcEnc, cwcOut);
|
---|
272 | if (wszEnc[cwcOut] != '\0')
|
---|
273 | RTTestIFailed("RTBase64EncodeUtf16(,%zu,) returned string which is not zero terminated\n", cbSrc);
|
---|
274 | if (RTUtf16Len(wszEnc) != cwcOut)
|
---|
275 | RTTestIFailed("RTBase64EncodeUtf16(,%zu,) returned incorrect string, length %lu\n", cbSrc, cwcOut);
|
---|
276 | }
|
---|
277 |
|
---|
278 | /*
|
---|
279 | * Finally, a more extensive test.
|
---|
280 | */
|
---|
281 | RTTestSub(hTest, "Test 4");
|
---|
282 | static uint8_t s_abData3[12*256];
|
---|
283 | for (unsigned i = 0; i < 256; i++)
|
---|
284 | {
|
---|
285 | unsigned j = i*12;
|
---|
286 | s_abData3[j + 0] = i; /* */
|
---|
287 | s_abData3[j + 1] = 0xff;
|
---|
288 | s_abData3[j + 2] = i;
|
---|
289 | s_abData3[j + 3] = 0xff; /* */
|
---|
290 | s_abData3[j + 4] = i;
|
---|
291 | s_abData3[j + 5] = 0xff;
|
---|
292 | s_abData3[j + 6] = i; /* */
|
---|
293 | s_abData3[j + 7] = 0x00;
|
---|
294 | s_abData3[j + 8] = i;
|
---|
295 | s_abData3[j + 9] = 0x00; /* */
|
---|
296 | s_abData3[j + 10]= i;
|
---|
297 | s_abData3[j + 11]= 0x00;
|
---|
298 | }
|
---|
299 |
|
---|
300 | static const char s_szEnc3[] =
|
---|
301 | "AP8A/wD/AAAAAAAAAf8B/wH/AQABAAEAAv8C/wL/AgACAAIAA/8D/wP/AwADAAMA" MY_NL
|
---|
302 | "BP8E/wT/BAAEAAQABf8F/wX/BQAFAAUABv8G/wb/BgAGAAYAB/8H/wf/BwAHAAcA" MY_NL
|
---|
303 | "CP8I/wj/CAAIAAgACf8J/wn/CQAJAAkACv8K/wr/CgAKAAoAC/8L/wv/CwALAAsA" MY_NL
|
---|
304 | "DP8M/wz/DAAMAAwADf8N/w3/DQANAA0ADv8O/w7/DgAOAA4AD/8P/w//DwAPAA8A" MY_NL
|
---|
305 | "EP8Q/xD/EAAQABAAEf8R/xH/EQARABEAEv8S/xL/EgASABIAE/8T/xP/EwATABMA" MY_NL
|
---|
306 | "FP8U/xT/FAAUABQAFf8V/xX/FQAVABUAFv8W/xb/FgAWABYAF/8X/xf/FwAXABcA" MY_NL
|
---|
307 | "GP8Y/xj/GAAYABgAGf8Z/xn/GQAZABkAGv8a/xr/GgAaABoAG/8b/xv/GwAbABsA" MY_NL
|
---|
308 | "HP8c/xz/HAAcABwAHf8d/x3/HQAdAB0AHv8e/x7/HgAeAB4AH/8f/x//HwAfAB8A" MY_NL
|
---|
309 | "IP8g/yD/IAAgACAAIf8h/yH/IQAhACEAIv8i/yL/IgAiACIAI/8j/yP/IwAjACMA" MY_NL
|
---|
310 | "JP8k/yT/JAAkACQAJf8l/yX/JQAlACUAJv8m/yb/JgAmACYAJ/8n/yf/JwAnACcA" MY_NL
|
---|
311 | "KP8o/yj/KAAoACgAKf8p/yn/KQApACkAKv8q/yr/KgAqACoAK/8r/yv/KwArACsA" MY_NL
|
---|
312 | "LP8s/yz/LAAsACwALf8t/y3/LQAtAC0ALv8u/y7/LgAuAC4AL/8v/y//LwAvAC8A" MY_NL
|
---|
313 | "MP8w/zD/MAAwADAAMf8x/zH/MQAxADEAMv8y/zL/MgAyADIAM/8z/zP/MwAzADMA" MY_NL
|
---|
314 | "NP80/zT/NAA0ADQANf81/zX/NQA1ADUANv82/zb/NgA2ADYAN/83/zf/NwA3ADcA" MY_NL
|
---|
315 | "OP84/zj/OAA4ADgAOf85/zn/OQA5ADkAOv86/zr/OgA6ADoAO/87/zv/OwA7ADsA" MY_NL
|
---|
316 | "PP88/zz/PAA8ADwAPf89/z3/PQA9AD0APv8+/z7/PgA+AD4AP/8//z//PwA/AD8A" MY_NL
|
---|
317 | "QP9A/0D/QABAAEAAQf9B/0H/QQBBAEEAQv9C/0L/QgBCAEIAQ/9D/0P/QwBDAEMA" MY_NL
|
---|
318 | "RP9E/0T/RABEAEQARf9F/0X/RQBFAEUARv9G/0b/RgBGAEYAR/9H/0f/RwBHAEcA" MY_NL
|
---|
319 | "SP9I/0j/SABIAEgASf9J/0n/SQBJAEkASv9K/0r/SgBKAEoAS/9L/0v/SwBLAEsA" MY_NL
|
---|
320 | "TP9M/0z/TABMAEwATf9N/03/TQBNAE0ATv9O/07/TgBOAE4AT/9P/0//TwBPAE8A" MY_NL
|
---|
321 | "UP9Q/1D/UABQAFAAUf9R/1H/UQBRAFEAUv9S/1L/UgBSAFIAU/9T/1P/UwBTAFMA" MY_NL
|
---|
322 | "VP9U/1T/VABUAFQAVf9V/1X/VQBVAFUAVv9W/1b/VgBWAFYAV/9X/1f/VwBXAFcA" MY_NL
|
---|
323 | "WP9Y/1j/WABYAFgAWf9Z/1n/WQBZAFkAWv9a/1r/WgBaAFoAW/9b/1v/WwBbAFsA" MY_NL
|
---|
324 | "XP9c/1z/XABcAFwAXf9d/13/XQBdAF0AXv9e/17/XgBeAF4AX/9f/1//XwBfAF8A" MY_NL
|
---|
325 | "YP9g/2D/YABgAGAAYf9h/2H/YQBhAGEAYv9i/2L/YgBiAGIAY/9j/2P/YwBjAGMA" MY_NL
|
---|
326 | "ZP9k/2T/ZABkAGQAZf9l/2X/ZQBlAGUAZv9m/2b/ZgBmAGYAZ/9n/2f/ZwBnAGcA" MY_NL
|
---|
327 | "aP9o/2j/aABoAGgAaf9p/2n/aQBpAGkAav9q/2r/agBqAGoAa/9r/2v/awBrAGsA" MY_NL
|
---|
328 | "bP9s/2z/bABsAGwAbf9t/23/bQBtAG0Abv9u/27/bgBuAG4Ab/9v/2//bwBvAG8A" MY_NL
|
---|
329 | "cP9w/3D/cABwAHAAcf9x/3H/cQBxAHEAcv9y/3L/cgByAHIAc/9z/3P/cwBzAHMA" MY_NL
|
---|
330 | "dP90/3T/dAB0AHQAdf91/3X/dQB1AHUAdv92/3b/dgB2AHYAd/93/3f/dwB3AHcA" MY_NL
|
---|
331 | "eP94/3j/eAB4AHgAef95/3n/eQB5AHkAev96/3r/egB6AHoAe/97/3v/ewB7AHsA" MY_NL
|
---|
332 | "fP98/3z/fAB8AHwAff99/33/fQB9AH0Afv9+/37/fgB+AH4Af/9//3//fwB/AH8A" MY_NL
|
---|
333 | "gP+A/4D/gACAAIAAgf+B/4H/gQCBAIEAgv+C/4L/ggCCAIIAg/+D/4P/gwCDAIMA" MY_NL
|
---|
334 | "hP+E/4T/hACEAIQAhf+F/4X/hQCFAIUAhv+G/4b/hgCGAIYAh/+H/4f/hwCHAIcA" MY_NL
|
---|
335 | "iP+I/4j/iACIAIgAif+J/4n/iQCJAIkAiv+K/4r/igCKAIoAi/+L/4v/iwCLAIsA" MY_NL
|
---|
336 | "jP+M/4z/jACMAIwAjf+N/43/jQCNAI0Ajv+O/47/jgCOAI4Aj/+P/4//jwCPAI8A" MY_NL
|
---|
337 | "kP+Q/5D/kACQAJAAkf+R/5H/kQCRAJEAkv+S/5L/kgCSAJIAk/+T/5P/kwCTAJMA" MY_NL
|
---|
338 | "lP+U/5T/lACUAJQAlf+V/5X/lQCVAJUAlv+W/5b/lgCWAJYAl/+X/5f/lwCXAJcA" MY_NL
|
---|
339 | "mP+Y/5j/mACYAJgAmf+Z/5n/mQCZAJkAmv+a/5r/mgCaAJoAm/+b/5v/mwCbAJsA" MY_NL
|
---|
340 | "nP+c/5z/nACcAJwAnf+d/53/nQCdAJ0Anv+e/57/ngCeAJ4An/+f/5//nwCfAJ8A" MY_NL
|
---|
341 | "oP+g/6D/oACgAKAAof+h/6H/oQChAKEAov+i/6L/ogCiAKIAo/+j/6P/owCjAKMA" MY_NL
|
---|
342 | "pP+k/6T/pACkAKQApf+l/6X/pQClAKUApv+m/6b/pgCmAKYAp/+n/6f/pwCnAKcA" MY_NL
|
---|
343 | "qP+o/6j/qACoAKgAqf+p/6n/qQCpAKkAqv+q/6r/qgCqAKoAq/+r/6v/qwCrAKsA" MY_NL
|
---|
344 | "rP+s/6z/rACsAKwArf+t/63/rQCtAK0Arv+u/67/rgCuAK4Ar/+v/6//rwCvAK8A" MY_NL
|
---|
345 | "sP+w/7D/sACwALAAsf+x/7H/sQCxALEAsv+y/7L/sgCyALIAs/+z/7P/swCzALMA" MY_NL
|
---|
346 | "tP+0/7T/tAC0ALQAtf+1/7X/tQC1ALUAtv+2/7b/tgC2ALYAt/+3/7f/twC3ALcA" MY_NL
|
---|
347 | "uP+4/7j/uAC4ALgAuf+5/7n/uQC5ALkAuv+6/7r/ugC6ALoAu/+7/7v/uwC7ALsA" MY_NL
|
---|
348 | "vP+8/7z/vAC8ALwAvf+9/73/vQC9AL0Avv++/77/vgC+AL4Av/+//7//vwC/AL8A" MY_NL
|
---|
349 | "wP/A/8D/wADAAMAAwf/B/8H/wQDBAMEAwv/C/8L/wgDCAMIAw//D/8P/wwDDAMMA" MY_NL
|
---|
350 | "xP/E/8T/xADEAMQAxf/F/8X/xQDFAMUAxv/G/8b/xgDGAMYAx//H/8f/xwDHAMcA" MY_NL
|
---|
351 | "yP/I/8j/yADIAMgAyf/J/8n/yQDJAMkAyv/K/8r/ygDKAMoAy//L/8v/ywDLAMsA" MY_NL
|
---|
352 | "zP/M/8z/zADMAMwAzf/N/83/zQDNAM0Azv/O/87/zgDOAM4Az//P/8//zwDPAM8A" MY_NL
|
---|
353 | "0P/Q/9D/0ADQANAA0f/R/9H/0QDRANEA0v/S/9L/0gDSANIA0//T/9P/0wDTANMA" MY_NL
|
---|
354 | "1P/U/9T/1ADUANQA1f/V/9X/1QDVANUA1v/W/9b/1gDWANYA1//X/9f/1wDXANcA" MY_NL
|
---|
355 | "2P/Y/9j/2ADYANgA2f/Z/9n/2QDZANkA2v/a/9r/2gDaANoA2//b/9v/2wDbANsA" MY_NL
|
---|
356 | "3P/c/9z/3ADcANwA3f/d/93/3QDdAN0A3v/e/97/3gDeAN4A3//f/9//3wDfAN8A" MY_NL
|
---|
357 | "4P/g/+D/4ADgAOAA4f/h/+H/4QDhAOEA4v/i/+L/4gDiAOIA4//j/+P/4wDjAOMA" MY_NL
|
---|
358 | "5P/k/+T/5ADkAOQA5f/l/+X/5QDlAOUA5v/m/+b/5gDmAOYA5//n/+f/5wDnAOcA" MY_NL
|
---|
359 | "6P/o/+j/6ADoAOgA6f/p/+n/6QDpAOkA6v/q/+r/6gDqAOoA6//r/+v/6wDrAOsA" MY_NL
|
---|
360 | "7P/s/+z/7ADsAOwA7f/t/+3/7QDtAO0A7v/u/+7/7gDuAO4A7//v/+//7wDvAO8A" MY_NL
|
---|
361 | "8P/w//D/8ADwAPAA8f/x//H/8QDxAPEA8v/y//L/8gDyAPIA8//z//P/8wDzAPMA" MY_NL
|
---|
362 | "9P/0//T/9AD0APQA9f/1//X/9QD1APUA9v/2//b/9gD2APYA9//3//f/9wD3APcA" MY_NL
|
---|
363 | "+P/4//j/+AD4APgA+f/5//n/+QD5APkA+v/6//r/+gD6APoA+//7//v/+wD7APsA" MY_NL
|
---|
364 | "/P/8//z//AD8APwA/f/9//3//QD9AP0A/v/+//7//gD+AP4A/////////wD/AP8A";
|
---|
365 |
|
---|
366 | tstBase64(s_abData3, sizeof(s_abData3),
|
---|
367 | s_szEnc3, sizeof(s_szEnc3) - 1,
|
---|
368 | 0 /* fTextData */, 0 /* fNormalEnc */);
|
---|
369 |
|
---|
370 | /*
|
---|
371 | * Summary.
|
---|
372 | */
|
---|
373 | return RTTestSummaryAndDestroy(hTest);
|
---|
374 | }
|
---|
375 |
|
---|