Home
last modified time | relevance | path

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

123

/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/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/provider/cert/
DCertFactoryTestData.java26 import org.apache.harmony.luni.util.Base64;
298 return Base64.decode(certPathPKCS7Base64.getBytes("UTF-8")); in getCertPathPKCS7Encoding()
302 return Base64.decode(certPathPkiPathBase64.getBytes("UTF-8")); in getCertPathPkiPathEncoding()
306 return Base64.decode(certEncodingBase64.getBytes("UTF-8")); in getCertEncoding()
318 return Base64.decode(crlEncodingBase64.getBytes("UTF-8")); in getCRLEncoding()
/external/chromium/third_party/libjingle/source/talk/xmpp/
Dsaslmechanism.cc33 using talk_base::Base64;
57 return Base64::Encode(plain); in Base64Encode()
62 return Base64::Decode(encoded, Base64::DO_LAX); in Base64Decode()
68 Base64::EncodeFromArray(plain, length, &result); in Base64EncodeFromArray()
/external/chromium/third_party/libjingle/source/talk/base/
Dbase64.cc30 const string Base64::Base64Table(
39 const unsigned char Base64::DecodeTable[] = {
69 bool Base64::IsBase64Char(char ch) { in IsBase64Char()
76 bool Base64::IsBase64Encoded(const std::string& str) { in IsBase64Encoded()
84 void Base64::EncodeFromArray(const void* data, size_t len, string* result) { in EncodeFromArray()
122 size_t Base64::GetNextQuantum(DecodeFlags parse_flags, bool illegal_pads, in GetNextQuantum()
176 bool Base64::DecodeFromArray(const char* data, size_t len, DecodeFlags flags, in DecodeFromArray()
181 bool Base64::DecodeFromArray(const char* data, size_t len, DecodeFlags flags, in DecodeFromArray()
188 bool Base64::DecodeFromArrayTemplate(const char* data, size_t len, in DecodeFromArrayTemplate()
Dbase64.h20 class Base64
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
DCertificateFactory_ImplTest.java36 import org.apache.harmony.luni.util.Base64;
216 Base64.decode(b64PublicKeySpec.getBytes("UTF-8")));
262 Base64.decode(pkcs7so.getBytes("UTF-8"))); in testGenerateCRLs()
286 Base64.decode(pkcs7so.getBytes("UTF-8"))); in testGenerateCRL()
291 bais = new ByteArrayInputStream(Base64.decode(pkcs7so.getBytes("UTF-8"))); in testGenerateCRL()
402 data[asn_x509] = Base64.decode(x509crl.getBytes("UTF-8")); in testGenerateBase64CRLs()
404 data[asn_pkcs] = Base64.decode(pkcs7so.getBytes("UTF-8")); in testGenerateBase64CRLs()
501 data[asn_x509] = Base64.decode(x509cert.getBytes("UTF-8")); in testGenerateBase64Certificates()
503 data[asn_pkcs] = Base64.decode(pkcs7so.getBytes("UTF-8")); in testGenerateBase64Certificates()
734 Base64.decode(pkcs7so.getBytes("UTF-8"))); in testGenerateCertificates()
[all …]
/external/apache-harmony/x-net/src/test/impl/java/org/apache/harmony/xnet/tests/provider/jsse/
DDigitalSignatureTest.java34 import org.apache.harmony.luni.util.Base64;
80 .generatePrivate(new PKCS8EncodedKeySpec(Base64 in test_Sign()
83 .generatePublic(new X509EncodedKeySpec(Base64 in test_Sign()
/external/apache-http/src/org/apache/commons/codec/net/
DBCodec.java24 import org.apache.commons.codec.binary.Base64;
80 return Base64.encodeBase64(bytes); in doEncoding()
87 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/apache-harmony/security/src/test/impl/java.injected/java/security/cert/
DX509CertificateTest.java37 import org.apache.harmony.luni.util.Base64;
265 is = new ByteArrayInputStream(Base64.decode(base64cert.getBytes("UTF-8"))); in testGetExtensionValue()
270 is = new ByteArrayInputStream(Base64.decode(base64crl.getBytes("UTF-8"))); in testGetExtensionValue()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
DPEMUtil.java7 import org.bouncycastle.util.encoders.Base64;
83 return ASN1Sequence.getInstance(Base64.decode(pemBuf.toString())); in readPEMObject()
/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/ganymed-ssh2/src/main/java/ch/ethz/ssh2/
DKnownHosts.java22 import ch.ethz.ssh2.crypto.Base64;
169 String base64_salt = new String(Base64.encode(salt)); in createHashedHostname()
170 String base64_hash = new String(Base64.encode(hash)); in createHashedHostname()
217 salt = Base64.decode(salt_base64.toCharArray()); in checkHashed()
218 hash = Base64.decode(hash_base64.toCharArray()); in checkHashed()
444 byte[] msg = Base64.decode(arr[2].toCharArray()); in initialize()
774 writer.write(Base64.encode(serverHostKey)); in addHostkeyToFile()
/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;
81 return new PemObject(type, headers, Base64.decode(buf.toString())); in loadObject()
DPemWriter.java8 import org.bouncycastle.util.encoders.Base64;
102 bytes = Base64.encode(bytes); in writeEncoded()
/external/apache-http/src/org/apache/http/impl/auth/
DBasicScheme.java33 import org.apache.commons.codec.binary.Base64;
170 byte[] base64password = Base64.encodeBase64( in authenticate()
/external/okhttp/src/main/java/libcore/io/
DBase64.java31 public final class Base64 { class
32 private Base64() { in Base64() method in Base64
/external/dnsmasq/contrib/dynamic-dnsmasq/
Ddynamic-dnsmasq.pl38 use MIME::Base64;
125 my ($user,$pass) = split ":", MIME::Base64::decode($1);
/external/dropbear/libtomcrypt/notes/
Dbase64_tv.txt1 Base64 vectors. These are the base64 encodings of the strings 00,01,02...NN-1
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
DBase64.java7 public class Base64 class
/external/mp4parser/
DNOTICE16 This product includes software (Base64 Encoder extracted from commons-codec) developed by
/external/mp4parser/isoparser/src/main/resources/
DNOTICE.txt16 This product includes software (Base64 Encoder extracted from commons-codec) developed by
/external/mdnsresponder/mDNSCore/
DDNSDigest.c1137 static const char Base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; variable
1174 pos = mDNSstrchr(Base64, ch); in DNSDigest_Base64ToBin()
1183 target[tarindex] = (mDNSu8)((pos - Base64) << 2); in DNSDigest_Base64ToBin()
1191 target[tarindex] |= (pos - Base64) >> 4; in DNSDigest_Base64ToBin()
1192 target[tarindex+1] = (mDNSu8)(((pos - Base64) & 0x0f) << 4); in DNSDigest_Base64ToBin()
1201 target[tarindex] |= (pos - Base64) >> 2; in DNSDigest_Base64ToBin()
1202 target[tarindex+1] = (mDNSu8)(((pos - Base64) & 0x03) << 6); in DNSDigest_Base64ToBin()
1211 target[tarindex] |= (pos - Base64); in DNSDigest_Base64ToBin()
/external/okhttp/src/main/java/libcore/net/http/
DHttpResponseCache.java51 import libcore.io.Base64;
478 byte[] bytes = Base64.decode(line.getBytes("US-ASCII")); in readCertArray()
497 String line = Base64.encode(bytes); in writeCertArray()

123