/third_party/python/Lib/test/ |
H A D | test_base64.py | 2 import base64 namespace 23 eq(base64.encodebytes(b"www.python.org"), b"d3d3LnB5dGhvbi5vcmc=\n") 24 eq(base64.encodebytes(b"a"), b"YQ==\n") 25 eq(base64.encodebytes(b"ab"), b"YWI=\n") 26 eq(base64.encodebytes(b"abc"), b"YWJj\n") 27 eq(base64.encodebytes(b""), b"") 28 eq(base64.encodebytes(b"abcdefghijklmnopqrstuvwxyz" 35 eq(base64.encodebytes(bytearray(b'abc')), b'YWJj\n') 36 eq(base64.encodebytes(memoryview(b'abc')), b'YWJj\n') 37 eq(base64 [all...] |
H A D | test_gettext.py | 2 import base64 namespace 124 fp.write(base64.decodebytes(GNU_MO_DATA)) 126 fp.write(base64.decodebytes(GNU_MO_DATA_BAD_MAJOR_VERSION)) 128 fp.write(base64.decodebytes(GNU_MO_DATA_BAD_MINOR_VERSION)) 130 fp.write(base64.decodebytes(UMO_DATA)) 132 fp.write(base64.decodebytes(MMO_DATA)) 506 fp.write(base64.decodebytes(GNU_MO_DATA_ISSUE_17898)) 519 fp.write(base64.decodebytes(GNU_MO_DATA_ISSUE_17898))
|
/third_party/nghttp2/src/ |
H A D | base64_test.cc | 34 #include "base64.h" 41 auto out = base64::encode(std::begin(in), std::end(in)); in test_base64_encode() 46 auto out = base64::encode(std::begin(in), std::end(in)); in test_base64_encode() 51 auto out = base64::encode(std::begin(in), std::end(in)); in test_base64_encode() 56 auto out = base64::encode(std::begin(in), std::end(in)); in test_base64_encode() 65 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode() 67 CU_ASSERT("\xff" == base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 71 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode() 74 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 78 auto out = base64 in test_base64_decode() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | escaping.cc | 74 size_t szdest, const char* base64, in Base64EscapeInternal() 92 cur_dest[0] = base64[in >> 18]; in Base64EscapeInternal() 94 cur_dest[1] = base64[in >> 12]; in Base64EscapeInternal() 96 cur_dest[2] = base64[in >> 6]; in Base64EscapeInternal() 98 cur_dest[3] = base64[in]; in Base64EscapeInternal() 118 cur_dest[0] = base64[in >> 2]; in Base64EscapeInternal() 120 cur_dest[1] = base64[in << 4]; in Base64EscapeInternal() 137 cur_dest[0] = base64[in >> 10]; in Base64EscapeInternal() 139 cur_dest[1] = base64[in >> 4]; in Base64EscapeInternal() 141 cur_dest[2] = base64[i in Base64EscapeInternal() 73 Base64EscapeInternal(const unsigned char* src, size_t szsrc, char* dest, size_t szdest, const char* base64, bool do_padding) Base64EscapeInternal() argument [all...] |
/third_party/node/deps/v8/src/inspector/ |
H A D | string-util.cc | 59 Binary Binary::fromBase64(const String& base64, bool* success) { in fromBase64() argument 60 if (base64.isEmpty()) { in fromBase64() 67 if (base64.length() % 4 != 0 || base64.length() + 4 < base64.length()) { in fromBase64() 72 result.reserve(3 * base64.length() / 4); in fromBase64() 75 for (size_t i = 0; i < base64.length(); i += 4) { in fromBase64() 77 if (!DecodeByte(base64[i + 0]).To(&a)) return Binary::fromSpan(nullptr, 0); in fromBase64() 78 if (!DecodeByte(base64[i + 1]).To(&b)) return Binary::fromSpan(nullptr, 0); in fromBase64() 79 if (!DecodeByte(base64[ in fromBase64() [all...] |
/third_party/googletest/googlemock/src/ |
H A D | gmock-internal-utils.cc | 201 constexpr char UnBase64Impl(char c, const char* const base64, char carry) { in UnBase64Impl() argument 202 return *base64 == 0 ? static_cast<char>(65) in UnBase64Impl() 203 : *base64 == c in UnBase64Impl() 205 : UnBase64Impl(c, base64 + 1, static_cast<char>(carry + 1)); in UnBase64Impl() 210 const char* const base64) { in UnBase64Impl() 211 return {{UnBase64Impl(static_cast<char>(I), base64, 0)...}}; in UnBase64Impl() 214 constexpr std::array<char, 256> UnBase64(const char* const base64) { in UnBase64() argument 215 return UnBase64Impl(MakeIndexSequence<256>{}, base64); in UnBase64() 209 UnBase64Impl(IndexSequence<I...>, const char* const base64) UnBase64Impl() argument
|
/third_party/node/tools/dep_updaters/ |
H A D | update-base64.sh | 3 # Shell script to update base64 in the source tree to a specific version 15 const res = await fetch('https://api.github.com/repos/aklomp/base64/releases/latest'); 22 CURRENT_VERSION=$(grep "base64 LANGUAGES C VERSION" ./deps/base64/base64/CMakeLists.txt | sed -n "s/^.*VERSION \(.*\))/\1/p") 27 echo "Skipped because base64 is on the latest version." 45 BASE64_TARBALL="base64-v$NEW_VERSION.tar.gz" 47 echo "Fetching base64 source archive" 48 curl -sL -o "$BASE64_TARBALL" "https://api.github.com/repos/aklomp/base64/tarball/v$NEW_VERSION" 49 log_and_verify_sha256sum "base64" " [all...] |
/third_party/python/Lib/encodings/ |
H A D | base64_codec.py | 1 """Python 'base64_codec' Codec - base64 content transfer encoding. 9 import base64 namespace 15 return (base64.encodebytes(input), len(input)) 19 return (base64.decodebytes(input), len(input)) 30 return base64.encodebytes(input) 35 return base64.decodebytes(input) 47 name='base64',
|
/third_party/curl/lib/ |
H A D | http_ntlm.c | 131 char *base64 = NULL; in Curl_output_ntlm() local 219 Curl_bufref_len(&ntlmmsg), &base64, &len); in Curl_output_ntlm() 224 base64); in Curl_output_ntlm() 225 free(base64); in Curl_output_ntlm() 238 Curl_bufref_len(&ntlmmsg), &base64, &len); in Curl_output_ntlm() 243 base64); in Curl_output_ntlm() 244 free(base64); in Curl_output_ntlm()
|
H A D | http_negotiate.c | 128 char *base64 = NULL; in Curl_output_negotiate() local 166 result = Curl_auth_create_spnego_message(neg_ctx, &base64, &len); in Curl_output_negotiate() 171 base64); in Curl_output_negotiate() 182 free(base64); in Curl_output_negotiate()
|
/third_party/node/deps/openssl/openssl/crypto/evp/ |
H A D | bio_b64.c | 41 EVP_ENCODE_CTX *base64; member 48 "base64 encoding", 78 ctx->base64 = EVP_ENCODE_CTX_new(); in b64_new() 79 if (ctx->base64 == NULL) { in b64_new() 100 EVP_ENCODE_CTX_free(ctx->base64); in b64_free() 130 EVP_DecodeInit(ctx->base64); in b64_read() 201 * base64 encoded stuff. in b64_read() 209 k = EVP_DecodeUpdate(ctx->base64, in b64_read() 213 EVP_DecodeInit(ctx->base64); in b64_read() 222 EVP_DecodeInit(ctx->base64); in b64_read() [all...] |
/third_party/openssl/crypto/evp/ |
H A D | bio_b64.c | 41 EVP_ENCODE_CTX *base64; member 48 "base64 encoding", 78 ctx->base64 = EVP_ENCODE_CTX_new(); in b64_new() 79 if (ctx->base64 == NULL) { in b64_new() 100 EVP_ENCODE_CTX_free(ctx->base64); in b64_free() 130 EVP_DecodeInit(ctx->base64); in b64_read() 201 * base64 encoded stuff. in b64_read() 209 k = EVP_DecodeUpdate(ctx->base64, in b64_read() 213 EVP_DecodeInit(ctx->base64); in b64_read() 222 EVP_DecodeInit(ctx->base64); in b64_read() [all...] |
/third_party/python/Lib/email/ |
H A D | _encoded_words.py | 43 import base64 namespace 107 base64.b64decode(encoded + missing_padding, validate=True), 118 base64.b64decode(encoded, validate=False), 126 base64.b64decode(encoded + b'==', validate=False), 139 return base64.b64encode(bstring).decode('ascii')
|
/third_party/node/deps/base64/base64/ |
H A D | Makefile | 63 all: bin/base64 lib/libbase64.o 65 bin/base64: bin/base64.o lib/libbase64.o 109 rm -f bin/base64 bin/base64.o lib/libbase64.o lib/config.h lib/exports.build.txt $(OBJS)
|
/third_party/protobuf/src/google/protobuf/util/internal/ |
H A D | json_objectwriter.cc | 148 std::string base64; in RenderBytes() local 151 WebSafeBase64EscapeWithPadding(value.ToString(), &base64); in RenderBytes() 153 Base64Escape(value, &base64); in RenderBytes() 156 // TODO(wpoon): Consider a ByteSink solution that writes the base64 bytes in RenderBytes() 159 stream_->WriteRaw(base64.data(), base64.size()); in RenderBytes()
|
H A D | datapiece.cc | 219 std::string base64; in ToString() local 220 Base64Escape(str_, &base64); in ToString() 221 return base64; in ToString() 249 std::string base64; in ValueAsStringOrDefault() local 250 WebSafeBase64Escape(str_, &base64); in ValueAsStringOrDefault() 251 return StrCat("\"", base64, "\""); in ValueAsStringOrDefault()
|
/third_party/curl/tests/ |
H A D | getpart.pm | 135 my $base64=0; 148 elsif($_ =~ /$part [^>]*base64=/) { 149 # attempt to detect our base64 encoded part 150 $base64=1; 175 if($base64) { 314 # we cannot compare arrays index per index since with the base64 chunks,
|
/third_party/node/lib/internal/modules/esm/ |
H A D | load.js | 30 const DATA_URL_PATTERN = /^[^/]+\/[^,;]+(?:[^,]*?)(;base64)?,([\s\S]*)$/; 49 const { 1: base64, 2: body } = match; 50 source = BufferFrom(decodeURIComponent(body), base64 ? 'base64' : 'utf8'); 162 /^data:([^/]+\/[^;,]+)(?:[^,]*?)(;base64)?,/,
|
/third_party/curl/tests/server/ |
H A D | getpart.c | 75 * function is used by base64 code in libcurl built to support data 192 * whether the source buffer is base64 encoded or not 'src_b64'. 194 * If the source buffer is indicated to be base64 encoded, this appends the 213 int src_b64) /* != 0 if source is base64 encoded */ in appenddata() 259 /* base64 decode the given buffer */ in decodedata() 328 int base64 = 0; in getpart() local 357 base64); in getpart() 390 /* Do we need to base64 decode the data? */ in getpart() 391 if(base64) { in getpart() 409 /* Do we need to base64 decod in getpart() [all...] |
/third_party/protobuf/src/google/protobuf/compiler/csharp/ |
H A D | csharp_reflection_class.cc | 177 std::string base64 = FileDescriptorToBase64(file_); in WriteDescriptor() local 178 while (base64.size() > 60) { in WriteDescriptor() 179 printer->Print("\"$base64$\",\n", "base64", base64.substr(0, 60)); in WriteDescriptor() 180 base64 = base64.substr(60); in WriteDescriptor() 182 printer->Print("\"$base64$\"));\n", "base64", base64); in WriteDescriptor() [all...] |
/third_party/skia/tools/ |
H A D | retrieve_from_googlesource.py | 13 import base64 namespace 30 return base64.b64decode(f.read())
|
/third_party/python/Lib/ |
H A D | secrets.py | 15 import base64 namespace 72 return base64.urlsafe_b64encode(tok).rstrip(b'=').decode('ascii')
|
/third_party/ffmpeg/libavformat/ |
H A D | data_uri.c | 24 #include "libavutil/base64.h" 39 int ret, base64 = 0; in data_open() local 42 /* data:content/type[;base64],payload */ in data_open() 62 if (!av_strncasecmp(opt, "base64", next - opt)) { in data_open() 63 base64 = 1; in data_open() 74 if (base64) { in data_open() 81 av_log(h, AV_LOG_ERROR, "Invalid base64 in URI\n"); in data_open()
|
/third_party/skia/experimental/tools/ |
H A D | generate-unicode-test-txt | 8 import array, zlib, base64, sys namespace 10 # import array, zlib, base64, sys, unicodedata 28 # return base64.b64encode(zlib.compress(a.tostring(), 9)) 65 base64.b64decode(valid_codepoint_data))).tolist():
|
/third_party/node/deps/openssl/openssl/apps/ |
H A D | enc.c | 80 {"base64", OPT_A, '-', "Same as option -a"}, 82 "Used with -[base64|a] to specify base64 buffer as a single line"}, 132 int base64 = 0, informat = FORMAT_BINARY, outformat = FORMAT_BINARY; in enc_main() local 146 if (strcmp(argv[0], "base64") == 0) in enc_main() 147 base64 = 1; in enc_main() 219 base64 = 1; in enc_main() 322 /* It must be large enough for a base64 encoded line */ in enc_main() 323 if (base64 && bsize < 80) in enc_main() 331 if (base64) { in enc_main() [all...] |