Home
last modified time | relevance | path

Searched refs:Base64 (Results 1 – 25 of 85) sorted by relevance

1234

/external/openssh/openbsd-compat/
Dbase64.c65 static const char Base64[] = variable
154 target[datalength++] = Base64[output[0]]; in b64_ntop()
155 target[datalength++] = Base64[output[1]]; in b64_ntop()
156 target[datalength++] = Base64[output[2]]; in b64_ntop()
157 target[datalength++] = Base64[output[3]]; in b64_ntop()
173 target[datalength++] = Base64[output[0]]; in b64_ntop()
174 target[datalength++] = Base64[output[1]]; in b64_ntop()
178 target[datalength++] = Base64[output[2]]; in b64_ntop()
213 pos = strchr(Base64, ch); in b64_pton()
222 target[tarindex] = (pos - Base64) << 2; in b64_pton()
[all …]
/external/webrtc/webrtc/base/
Dbase64_unittest.cc336 Base64::EncodeFromArray((const char *)src, szsrc, &escaped); in Base64Escape()
344 EXPECT_TRUE(Base64::DecodeFromArray(src, szsrc, Base64::DO_LAX, &unescaped, in Base64Unescape()
351 EXPECT_TRUE(Base64::DecodeFromArray(src, szsrc, Base64::DO_LAX, s, NULL)); in Base64Unescape()
355 TEST(Base64, EncodeDecodeBattery) { in TEST() argument
900 TEST(Base64, LargeSample) { in TEST() argument
916 const char* decoded, Base64::DecodeFlags flags) in DecodeTest()
920 bool success = Base64::DecodeFromArray(encoded, encoded_len, flags, in DecodeTest()
931 Base64::DO_PARSE_##x | Base64::DO_PAD_##y | Base64::DO_TERM_##z
933 TEST(Base64, DecodeParseOptions) { in TEST() argument
955 TEST(Base64, DecodePadOptions) { in TEST() argument
[all …]
Dbase64.cc32 const char Base64::Base64Table[] =
41 const unsigned char Base64::DecodeTable[] = {
71 bool Base64::IsBase64Char(char ch) { in IsBase64Char()
78 bool Base64::GetNextBase64Char(char ch, char* next_ch) { in GetNextBase64Char()
90 bool Base64::IsBase64Encoded(const std::string& str) { in IsBase64Encoded()
98 void Base64::EncodeFromArray(const void* data, size_t len, in EncodeFromArray()
138 size_t Base64::GetNextQuantum(DecodeFlags parse_flags, bool illegal_pads, in GetNextQuantum()
192 bool Base64::DecodeFromArray(const char* data, size_t len, DecodeFlags flags, in DecodeFromArray()
198 bool Base64::DecodeFromArray(const char* data, size_t len, DecodeFlags flags, in DecodeFromArray()
205 bool Base64::DecodeFromArrayTemplate(const char* data, size_t len, in DecodeFromArrayTemplate()
Dsslidentity.cc110 *der = Base64::Decode(inner, Base64::DO_PARSE_WHITE | in PemToDer()
111 Base64::DO_PAD_ANY | in PemToDer()
112 Base64::DO_TERM_BUFFER); in PemToDer()
124 Base64::EncodeFromArray(data, length, &b64_encoded); in DerToPem()
/external/owasp/sanitizer/lib/commons-codec-1.4/
DRELEASE-NOTES.txt10 such as Base64 and Hexadecimal. In addition to these widely used encoders and
25 o [CODEC-69] Streaming Base64 (Base64InputStream and Base64OutputStream added).
26 o [CODEC-59] Add methods to Base64 which work with String instead of byte[]
30 o [CODEC-77] Base64 bug with empty input (new byte[0]).
32 o [CODEC-71] Base64.isArrayByteBase64() method is inefficient for large byte arrays.
36 o [CODEC-61] Base64.encodeBase64() throws NegativeArraySizeException on large files.
37 o [CODEC-58] Character set used by Base64 not documented.
42 o [CODEC-22] Base64.isArrayByteBase64() throws an ArrayIndexOutOfBoundsException for negative octets
43 o [CODEC-78] Base64: Improve Code Coverage
44 o [CODEC-81] Base64's new constructor parameters ignored
[all …]
/external/webrtc/webrtc/libjingle/xmpp/
Dsaslmechanism.cc16 using rtc::Base64;
40 return Base64::Encode(plain); in Base64Encode()
45 return Base64::Decode(encoded, Base64::DO_LAX); in Base64Decode()
51 Base64::EncodeFromArray(plain, length, &result); in Base64EncodeFromArray()
/external/python/cpython2/Doc/library/
Dbase64.rst1 :mod:`base64` --- RFC 3548: Base16, Base32, Base64 Data Encodings
5 :synopsis: RFC 3548: Base16, Base32, Base64 Data Encodings
13 This standard defines the Base16, Base32, and Base64 algorithms for encoding and
22 well as strings, but only using the Base64 standard alphabet.
29 Encode a string using Base64.
34 generate URL or filesystem safe Base64 strings. The default is ``None``, for
35 which the standard Base64 alphabet is used.
42 Decode a Base64 encoded string.
56 Encode string *s* using the standard Base64 alphabet.
61 Decode string *s* using the standard Base64 alphabet.
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiAwareManagerFacade.java47 import android.util.Base64;
125 j.put(NS_KEY_PEER_MAC, Base64.encodeToString(ns.peerMac, Base64.DEFAULT)); in getJsonString()
128 j.put(NS_KEY_PMK, Base64.encodeToString(ns.pmk, Base64.DEFAULT)); in getJsonString()
170 peerMac = Base64.decode(j.getString(NS_KEY_PEER_MAC), Base64.DEFAULT); in getNetworkSpecifier()
173 pmk = Base64.decode(j.getString(NS_KEY_PMK), Base64.DEFAULT); in getNetworkSpecifier()
237 la.add(Base64.decode(ja.getString(i).getBytes(StandardCharsets.UTF_8), Base64.DEFAULT)); in getMatchFilter()
261 byte[] bytes = Base64.decode( in getPublishConfig()
262 j.getString("MatchFilter").getBytes(StandardCharsets.UTF_8), Base64.DEFAULT); in getPublishConfig()
308 byte[] bytes = Base64.decode( in getSubscribeConfig()
309 j.getString("MatchFilter").getBytes(StandardCharsets.UTF_8), Base64.DEFAULT); in getSubscribeConfig()
[all …]
/external/llvm/lib/Fuzzer/test/
DFuzzerUnittest.cpp417 TEST(FuzzerUtil, Base64) { in TEST() argument
418 EXPECT_EQ("", Base64({})); in TEST()
419 EXPECT_EQ("YQ==", Base64({'a'})); in TEST()
420 EXPECT_EQ("eA==", Base64({'x'})); in TEST()
421 EXPECT_EQ("YWI=", Base64({'a', 'b'})); in TEST()
422 EXPECT_EQ("eHk=", Base64({'x', 'y'})); in TEST()
423 EXPECT_EQ("YWJj", Base64({'a', 'b', 'c'})); in TEST()
424 EXPECT_EQ("eHl6", Base64({'x', 'y', 'z'})); in TEST()
425 EXPECT_EQ("YWJjeA==", Base64({'a', 'b', 'c', 'x'})); in TEST()
426 EXPECT_EQ("YWJjeHk=", Base64({'a', 'b', 'c', 'x', 'y'})); in TEST()
[all …]
/external/ImageMagick/MagickCore/
Dutility.c80 Base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; variable
377 q=strchr(Base64,*p); in Base64Decode()
387 decode[i]=(q-Base64) << 2; in Base64Decode()
393 decode[i++]|=(q-Base64) >> 4; in Base64Decode()
394 decode[i]=((q-Base64) & 0x0f) << 4; in Base64Decode()
400 decode[i++]|=(q-Base64) >> 2; in Base64Decode()
401 decode[i]=((q-Base64) & 0x03) << 6; in Base64Decode()
407 decode[i++]|=(q-Base64); in Base64Decode()
527 encode[i++]=Base64[(int) (*p >> 2)]; in Base64Encode()
528 encode[i++]=Base64[(int) (((*p & 0x03) << 4)+(*(p+1) >> 4))]; in Base64Encode()
[all …]
/external/python/cpython3/Doc/library/
Dbase64.rst1 :mod:`base64` --- Base16, Base32, Base64, Base85 Data Encodings
5 :synopsis: RFC 3548: Base16, Base32, Base64 Data Encodings;
19 :rfc:`3548`, which defines the Base16, Base32, and Base64 algorithms,
35 <file object>`. It only supports the Base64 standard alphabet, and it adds
53 Encode the :term:`bytes-like object` *s* using Base64 and return the encoded
59 generate URL or filesystem safe Base64 strings. The default is ``None``, for
60 which the standard Base64 alphabet is used.
65 Decode the Base64 encoded :term:`bytes-like object` or ASCII string
84 Encode :term:`bytes-like object` *s* using the standard Base64 alphabet
91 Base64 alphabet and return the decoded :class:`bytes`.
[all …]
/external/apache-http/src/org/apache/commons/codec/net/
DBCodec.java24 import org.apache.commons.codec.binary.Base64;
85 return Base64.encodeBase64(bytes); in doEncoding()
92 return Base64.decodeBase64(bytes); in doDecoding()
/external/oauth/core/src/main/java/net/oauth/signature/
DOAuthSignatureMethod.java36 import android.util.Base64;
198 return Base64.decode(s, Base64.DEFAULT); in decodeBase64()
202 return Base64.encodeToString(b, Base64.DEFAULT); in base64Encode()
/external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/serialization/
DMarshalBase64.java37 return Base64.decode(parser.nextText()); in readInstance()
41 writer.text(Base64.encode((byte[]) obj)); in writeInstance()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
DXMPUtils.java12 import com.adobe.xmp.impl.Base64;
483 return new String(Base64.encode(buffer)); in encodeBase64()
499 return Base64.decode(base64String.getBytes()); in decodeBase64()
/external/curl/lib/
Dmk-ca-bundle.vbs328 Const Base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
348 pOut = Mid(Base64, CLng("&o" & Mid(nGroup, 1, 2)) + 1, 1) & _
349 Mid(Base64, CLng("&o" & Mid(nGroup, 3, 2)) + 1, 1) & _
350 Mid(Base64, CLng("&o" & Mid(nGroup, 5, 2)) + 1, 1) & _
351 Mid(Base64, CLng("&o" & Mid(nGroup, 7, 2)) + 1, 1)
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_EncodeBase64.pbtxt24 en.wikipedia.org/wiki/Base64. Base64 strings may have padding with '=' at the
/external/python/cpython2/Lib/email/test/data/
Dmsg_10.txt22 Content-Transfer-Encoding: Base64
29 Content-Transfer-Encoding: Base64
/external/python/cpython3/Lib/test/test_email/data/
Dmsg_10.txt22 Content-Transfer-Encoding: Base64
29 Content-Transfer-Encoding: Base64
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DPEMUtil.java9 import org.bouncycastle.util.encoders.Base64;
83 ASN1Primitive o = new ASN1InputStream(Base64.decode(pemBuf.toString())).readObject(); in readPEMObject()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/pem/
DPemReader.java9 import org.bouncycastle.util.encoders.Base64;
90 return new PemObject(type, headers, Base64.decode(buf.toString())); in loadObject()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
DPEMUtil.java7 import org.bouncycastle.util.encoders.Base64;
98 return ASN1Sequence.getInstance(Base64.decode(pemBuf.toString())); in readPEMObject()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DPEMUtil.java10 import com.android.org.bouncycastle.util.encoders.Base64;
87 ASN1Primitive o = new ASN1InputStream(Base64.decode(pemBuf.toString())).readObject(); in readPEMObject()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/io/pem/
DPemReader.java10 import com.android.org.bouncycastle.util.encoders.Base64;
95 return new PemObject(type, headers, Base64.decode(buf.toString())); in loadObject()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/x509/
DPEMUtil.java8 import com.android.org.bouncycastle.util.encoders.Base64;
99 return ASN1Sequence.getInstance(Base64.decode(pemBuf.toString())); in readPEMObject()

1234