/third_party/python/Lib/test/ |
D | test_base64.py | 3 import base64 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.encodebytes(array('B', b'abc')), b'YWJj\n') [all …]
|
/third_party/nghttp2/src/ |
D | base64_test.cc | 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::decode(std::begin(in), std::end(in)); in test_base64_decode() 81 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | escaping.cc | 74 size_t szdest, const char* base64, in Base64EscapeInternal() argument 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[in << 2]; in Base64EscapeInternal() [all …]
|
/third_party/abseil-cpp/absl/strings/internal/ |
D | escaping.cc | 74 size_t szdest, const char* base64, in Base64EscapeInternal() argument 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[in << 2]; in Base64EscapeInternal() [all …]
|
/third_party/python/Lib/encodings/ |
D | base64_codec.py | 9 import base64 15 return (base64.encodebytes(input), len(input)) 19 return (base64.decodebytes(input), len(input)) 30 return base64.encodebytes(input) 35 return base64.decodebytes(input)
|
/third_party/boost/libs/beast/test/beast/core/ |
D | _detail_base64.cpp | 29 dest.resize(base64::encoded_size(len)); in base64_encode() 30 dest.resize(base64::encode(&dest[0], data, len)); in base64_encode() 45 dest.resize(base64::decoded_size(data.size())); in base64_decode() 46 auto const result = base64::decode( in base64_decode() 86 BEAST_DEFINE_TESTSUITE(beast,core,base64);
|
/third_party/protobuf/js/experimental/runtime/ |
D | bytestring.js | 6 const base64 = goog.require('goog.crypt.base64'); constant 21 constructor(bytes, base64) { argument 25 this.base64_ = base64; 164 return this.bytes_ = base64.decodeStringToUint8Array( 174 this.base64_ = base64.encodeByteArray(this.bytes_);
|
/third_party/openssl/doc/man3/ |
D | BIO_f_base64.pod | 5 BIO_f_base64 - base64 BIO filter 18 BIO_f_base64() returns the base64 BIO method. This is a filter 19 BIO that base64 encodes any data written through it and decodes 24 BIO_flush() on a base64 BIO that is being written through is 34 Because of the format of base64 encoding the end of the encoded 39 BIO_f_base64() returns the base64 BIO method. 76 The ambiguity of EOF in base64 encoded data can cause additional 77 data following the base64 encoded block to be misinterpreted.
|
/third_party/python/Lib/test/test_email/data/ |
D | msg_39.txt | 16 Content-Transfer-Encoding: base64 24 Content-Transfer-Encoding: base64 38 Content-Transfer-Encoding: base64 46 Content-Transfer-Encoding: base64 60 Content-Transfer-Encoding: base64 68 Content-Transfer-Encoding: base64
|
D | msg_38.txt | 42 Content-Transfer-Encoding: base64 56 Content-Transfer-Encoding: base64 64 Content-Transfer-Encoding: base64 78 Content-Transfer-Encoding: base64 86 Content-Transfer-Encoding: base64
|
/third_party/curl/lib/ |
D | http_ntlm.c | 129 char *base64 = NULL; in Curl_output_ntlm() local 212 Curl_bufref_len(&ntlmmsg), &base64, &len); in Curl_output_ntlm() 217 base64); in Curl_output_ntlm() 218 free(base64); in Curl_output_ntlm() 232 Curl_bufref_len(&ntlmmsg), &base64, &len); in Curl_output_ntlm() 237 base64); in Curl_output_ntlm() 238 free(base64); in Curl_output_ntlm()
|
/third_party/boost/boost/beast/core/detail/ |
D | base64.ipp | 11 Portions from http://www.adp-gmbh.ch/cpp/common/base64.html 14 base64.cpp and base64.h 42 #include <boost/beast/core/detail/base64.hpp> 52 namespace base64 { 90 /** Encode a series of octets as a padded, base64 string. 107 auto const tab = base64::get_alphabet(); 141 /** Decode a padded base64 string into a series of octets. 161 auto const inverse = base64::get_inverse(); 196 } // base64
|
/third_party/openssl/crypto/evp/ |
D | bio_b64.c | 41 EVP_ENCODE_CTX *base64; member 80 ctx->base64 = EVP_ENCODE_CTX_new(); in b64_new() 81 if (ctx->base64 == NULL) { in b64_new() 102 EVP_ENCODE_CTX_free(ctx->base64); in b64_free() 132 EVP_DecodeInit(ctx->base64); in b64_read() 211 k = EVP_DecodeUpdate(ctx->base64, in b64_read() 215 EVP_DecodeInit(ctx->base64); in b64_read() 224 EVP_DecodeInit(ctx->base64); in b64_read() 288 i = EVP_DecodeUpdate(ctx->base64, in b64_read() 348 EVP_EncodeInit(ctx->base64); in b64_write() [all …]
|
/third_party/protobuf/src/google/protobuf/util/internal/ |
D | json_objectwriter.cc | 148 std::string base64; in RenderBytes() local 151 WebSafeBase64EscapeWithPadding(value.ToString(), &base64); in RenderBytes() 153 Base64Escape(value, &base64); in RenderBytes() 159 stream_->WriteRaw(base64.data(), base64.size()); in RenderBytes()
|
/third_party/python/Lib/email/ |
D | _encoded_words.py | 43 import base64 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/grpc/examples/python/cancellation/ |
D | search.py | 20 import base64 66 return base64.b64encode(hasher.digest()).decode('ascii') 136 secret=base64.b64encode(secret), 142 secret=base64.b64encode(secret),
|
/third_party/boringssl/src/decrepit/bio/ |
D | base64_bio.c | 86 EVP_ENCODE_CTX base64; member 141 EVP_DecodeInit(&ctx->base64); in b64_read() 217 k = EVP_DecodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, &num, p, in b64_read() 221 EVP_DecodeInit(&ctx->base64); in b64_read() 229 EVP_DecodeInit(&ctx->base64); in b64_read() 288 i = EVP_DecodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, in b64_read() 332 EVP_EncodeInit(&(ctx->base64)); in b64_write() 401 EVP_EncodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, &ctx->buf_len, in b64_write() 457 if ((ret == 0) && (ctx->encode != B64_NONE) && (ctx->base64.data_used != 0)) { in b64_ctrl() 489 } else if (ctx->encode != B64_NONE && ctx->base64.data_used != 0) { in b64_ctrl() [all …]
|
/third_party/node/lib/internal/modules/esm/ |
D | get_source.js | 23 const DATA_URL_PATTERN = /^[^/]+\/[^,;]+(?:[^,]*?)(;base64)?,([\s\S]*)$/; 35 const { 1: base64, 2: body } = match; 36 source = Buffer.from(decodeURIComponent(body), base64 ? 'base64' : 'utf8');
|
/third_party/protobuf/src/google/protobuf/compiler/csharp/ |
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()
|
/third_party/node/deps/npm/node_modules/registry-auth-token/ |
D | base64.js | 3 function decodeBase64 (base64) { argument 4 return safeBuffer.from(base64, 'base64').toString('utf8')
|
/third_party/curl/tests/server/ |
D | getpart.c | 297 int base64 = 0; in getpart() local 324 error = appenddata(outbuf, outlen, &outalloc, buffer, base64); in getpart() 358 if(base64) { in getpart() 375 if(base64) { in getpart() 453 base64 = 1; in getpart() 462 error = appenddata(outbuf, outlen, &outalloc, buffer, base64); in getpart()
|
/third_party/curl/tests/data/ |
D | test1302 | 5 base64 19 base64 encode/decode unit tests
|
/third_party/protobuf/js/experimental/runtime/kernel/conformance/ |
D | conformance_testee.js | 8 const base64 = goog.require('goog.crypt.base64'); constant 95 base64.decodeStringToUint8Array(base64Request).buffer); 97 return base64.encodeByteArray(new Uint8Array(response.serialize()));
|
/third_party/node/deps/npm/docs/src/images/ |
D | terminal-icon.svg | 1 …base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAAQCAYAAAC1MDndAAAACXBIWXMAAAsSAAALEgHS3X78AAACI0lEQVRYR+2XvW4…
|
/third_party/boost/boost/beast/websocket/detail/ |
D | hybi13.hpp | 24 beast::detail::base64::encoded_size(16)>; 27 beast::detail::base64::encoded_size(20)>;
|