Home
last modified time | relevance | path

Searched refs:decodeBase64 (Results 1 – 25 of 66) sorted by relevance

123

/external/okhttp/okio/okio/src/test/java/okio/
DByteStringTest.java197 assertEquals("", ByteString.decodeBase64("====").utf8()); in ignoreUnnecessaryPadding()
198 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64("AAAA====").utf8()); in ignoreUnnecessaryPadding()
201 @Test public void decodeBase64() { in decodeBase64() method in ByteStringTest
202 assertEquals("", ByteString.decodeBase64("").utf8()); in decodeBase64()
203 assertEquals(null, ByteString.decodeBase64("/===")); // Can't do anything with 6 bits! in decodeBase64()
204 assertEquals(ByteString.decodeHex("ff"), ByteString.decodeBase64("//==")); in decodeBase64()
205 assertEquals(ByteString.decodeHex("ff"), ByteString.decodeBase64("__==")); in decodeBase64()
206 assertEquals(ByteString.decodeHex("ffff"), ByteString.decodeBase64("///=")); in decodeBase64()
207 assertEquals(ByteString.decodeHex("ffff"), ByteString.decodeBase64("___=")); in decodeBase64()
208 assertEquals(ByteString.decodeHex("ffffff"), ByteString.decodeBase64("////")); in decodeBase64()
[all …]
DInflaterSourceTest.java32 Buffer deflated = decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tK" in inflate()
39 Buffer deflated = decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tK" in inflateTruncated()
49 Buffer deflated = decodeBase64("eJztwTEBAAAAwqCs61/CEL5AAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" in inflateWellCompressed()
81 Buffer deflated = decodeBase64( in inflateIntoNonemptySink()
91 private Buffer decodeBase64(String s) { in decodeBase64() method in InflaterSourceTest
92 return new Buffer().write(ByteString.decodeBase64(s)); in decodeBase64()
/external/okio/okio/src/jvmTest/kotlin/okio/
DInflaterSourceTest.kt22 import okio.ByteString.Companion.decodeBase64
51 decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CD5s=") in inflate()
58 decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CDw==") in inflateTruncated()
68 decodeBase64( in inflateWellCompressed()
118 decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CD5s=") in inflateSingleByte()
130 decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CD5s=") in inflateByteCount()
141 decodeBase64("eJwAAAD//w==") in sourceExhaustedPrematurelyOnRead()
164 decodeBase64("eJwAAAD//w==") in readOrInflateMakesByteByByteProgress()
182 private fun decodeBase64(s: String) { in decodeBase64() method
183 deflatedSink.write(s.decodeBase64()!!) in decodeBase64()
/external/okio/okio/src/commonTest/kotlin/okio/
DByteStringTest.kt29 import okio.ByteString.Companion.decodeBase64
294 assertEquals("", "====".decodeBase64()!!.utf8()) in ignoreUnnecessaryPadding()
295 assertEquals("\u0000\u0000\u0000", "AAAA====".decodeBase64()!!.utf8()) in ignoreUnnecessaryPadding()
298 @Test fun decodeBase64() { in decodeBase64() method in okio.ByteStringTest
299 assertEquals("", "".decodeBase64()!!.utf8()) in decodeBase64()
300 assertEquals(null, "/===".decodeBase64()) // Can't do anything with 6 bits! in decodeBase64()
301 assertEquals("ff".decodeHex(), "//==".decodeBase64()) in decodeBase64()
302 assertEquals("ff".decodeHex(), "__==".decodeBase64()) in decodeBase64()
303 assertEquals("ffff".decodeHex(), "///=".decodeBase64()) in decodeBase64()
304 assertEquals("ffff".decodeHex(), "___=".decodeBase64()) in decodeBase64()
[all …]
/external/okio/okio/src/nativeTest/kotlin/okio/
DInflaterTest.kt23 import okio.ByteString.Companion.decodeBase64
34 .decodeBase64()!!.toByteArray() in happyPath()
63 .decodeBase64()!!.toByteArray() in happyPathNoWrap()
95 source = "eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxT".decodeBase64()!!.toByteArray() in inflateInParts()
103 source = "KMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CD5s=".decodeBase64()!!.toByteArray() in inflateInParts()
129 .decodeBase64()!!.toByteArray() in inflateInsufficientSpaceInTarget()
164 source = "eJwDAAAAAAE=".decodeBase64()!!.toByteArray() in inflateEmptyContent()
204 .decodeBase64()!!.toByteArray() in inflateInPartsStartingWithEmptySource()
DDeflaterTest.kt23 import okio.ByteString.Companion.decodeBase64
53 "eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CD5s=".decodeBase64(), in happyPath()
82 "c89PUchIzSlQKC3WUShPVS9KVcjMUyjJSFXISMxLKVbIT1NIzUvPzEtNLSrWAwA=".decodeBase64(), in happyPathNoWrap()
119 "eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CD5s=".decodeBase64(), in deflateInParts()
161 "eJxyz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYD".decodeBase64(), in deflateInsufficientSpaceInTargetWithoutSourceFinished()
199 "eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CD5s=".decodeBase64(), in deflateInsufficientSpaceInTargetWithSourceFinished()
223 "eJwDAAAAAAE=".decodeBase64(), in deflateEmptySource()
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/
DAlgorithmParametersTestOAEP.java187 params.init(TestUtils.decodeBase64(ENCODED_DATA_ALL_DEFAULTS)); in testEncoding()
202 params.init(TestUtils.decodeBase64(ENCODED_DATA_EXPLICIT_DEFAULTS)); in testEncoding()
216 params.init(TestUtils.decodeBase64(ENCODED_DATA_NON_DEFAULTS)); in testEncoding()
230 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED)); in testEncoding()
244 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED_EXPLICIT_DEFAULTS)); in testEncoding()
DAlgorithmParametersTestGCM.java87 params.init(TestUtils.decodeBase64(ENCODED_DATA_NO_TLEN)); in testEncoding()
98 params.init(TestUtils.decodeBase64(ENCODED_DATA_TLEN)); in testEncoding()
DAlgorithmParametersTestDES.java59 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/
DAlgorithmParametersTestOAEP.java196 params.init(TestUtils.decodeBase64(ENCODED_DATA_ALL_DEFAULTS)); in testEncoding()
211 params.init(TestUtils.decodeBase64(ENCODED_DATA_EXPLICIT_DEFAULTS)); in testEncoding()
225 params.init(TestUtils.decodeBase64(ENCODED_DATA_NON_DEFAULTS)); in testEncoding()
239 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED)); in testEncoding()
253 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED_EXPLICIT_DEFAULTS)); in testEncoding()
DAlgorithmParametersTestGCM.java96 params.init(TestUtils.decodeBase64(ENCODED_DATA_NO_TLEN)); in testEncoding()
107 params.init(TestUtils.decodeBase64(ENCODED_DATA_TLEN)); in testEncoding()
DAlgorithmParametersTestDES.java63 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
/external/okio/samples/src/jvmMain/kotlin/okio/samples/
DGoldenValue.kt24 import okio.ByteString.Companion.decodeBase64 in <lambda>()
34 ).decodeBase64()!! in <lambda>()
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/
DDefaultKeys.java184 private static final byte[] EC_private = TestUtils.decodeBase64(
188 private static final byte[] EC_public = TestUtils.decodeBase64(
/external/oauth/core/src/main/java/net/oauth/signature/
DRSA_SHA1.java175 return getPublicKeyFromDer(decodeBase64(publicKeyObject)); in getPublicKeyFromPem()
187 return getPrivateKeyFromDer(decodeBase64(privateKeyObject)); in getPrivateKeyFromPem()
206 return verify(decodeBase64(signature), in isValid()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/
DDefaultKeys.java189 private static final byte[] EC_private = TestUtils.decodeBase64(
193 private static final byte[] EC_public = TestUtils.decodeBase64(
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java403 byte[] valid = TestUtils.decodeBase64(VALID_CERTIFICATE_DER_BASE64); in test_generateCertificate()
412 byte[] valid = TestUtils.decodeBase64(VALID_CERTIFICATE_PKCS7_DER_BASE64); in test_generateCertificate()
427 byte[] valid = TestUtils.decodeBase64(VALID_CERTIFICATE_PKCS7_DER_BASE64); in test_generateCertificate()
435 byte[] valid = TestUtils.decodeBase64(SMALL_PKCS7_DER_BASE64); in test_generateCertificate()
660 valid = TestUtils.decodeBase64(VALID_CERTIFICATE_DER_BASE64); in test_generateCertificate_PartialInput()
914 valid = TestUtils.decodeBase64(VALID_CRL_DER_BASE64); in test_generateCrl()
922 valid = TestUtils.decodeBase64(VALID_CRL_PKCS7_DER_BASE64); in test_generateCrl()
928 valid = TestUtils.decodeBase64(VALID_CRL_PKCS7_DER_BASE64); in test_generateCrl()
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java394 byte[] valid = TestUtils.decodeBase64(VALID_CERTIFICATE_DER_BASE64); in test_generateCertificate()
403 byte[] valid = TestUtils.decodeBase64(VALID_CERTIFICATE_PKCS7_DER_BASE64); in test_generateCertificate()
417 byte[] valid = TestUtils.decodeBase64(VALID_CERTIFICATE_PKCS7_DER_BASE64); in test_generateCertificate()
424 byte[] valid = TestUtils.decodeBase64(SMALL_PKCS7_DER_BASE64); in test_generateCertificate()
649 valid = TestUtils.decodeBase64(VALID_CERTIFICATE_DER_BASE64); in test_generateCertificate_PartialInput()
900 valid = TestUtils.decodeBase64(VALID_CRL_DER_BASE64); in test_generateCrl()
908 valid = TestUtils.decodeBase64(VALID_CRL_PKCS7_DER_BASE64); in test_generateCrl()
914 valid = TestUtils.decodeBase64(VALID_CRL_PKCS7_DER_BASE64); in test_generateCrl()
/external/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/
DTokenVerifier.java398 BigInteger modulus = new BigInteger(1, Base64.decodeBase64(key.n)); in buildRs256PublicKey()
399 BigInteger exponent = new BigInteger(1, Base64.decodeBase64(key.e)); in buildRs256PublicKey()
411 BigInteger x = new BigInteger(1, Base64.decodeBase64(key.x)); in buildEs256PublicKey()
412 BigInteger y = new BigInteger(1, Base64.decodeBase64(key.y)); in buildEs256PublicKey()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DXdhKeyFactoryTest.java18 import static org.conscrypt.TestUtils.decodeBase64;
55 decodeBase64("MCowBQYDK2VuAyEAeNH3ZKS7SCZT495bvIvoyYB9PNIFefUSTfi6eNhFYXA=");
57 decodeBase64("MC4CAQAwBQYDK2VuBCIEIADBSHEZer+X0ZdqReHuMDx61nQwWwNHOnx9HHRNJBJK");
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DXdhKeyFactoryTest.java19 import static com.android.org.conscrypt.TestUtils.decodeBase64;
59 decodeBase64("MCowBQYDK2VuAyEAeNH3ZKS7SCZT495bvIvoyYB9PNIFefUSTfi6eNhFYXA=");
61 decodeBase64("MC4CAQAwBQYDK2VuBCIEIADBSHEZer+X0ZdqReHuMDx61nQwWwNHOnx9HHRNJBJK");
/external/okio/okio/src/jvmMain/kotlin/okio/
DByteString.kt259 actual fun String.decodeBase64() = commonDecodeBase64() in getByte() method
295 fun decodeBase64(string: String) = string.decodeBase64() in getByte() method
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DBase64Codec.java828 public static byte[] decodeBase64(String base64String) { in decodeBase64() method in Base64Codec
839 public static byte[] decodeBase64(byte[] base64Data) { in decodeBase64() method in Base64Codec
991 return new BigInteger(1, decodeBase64(pArray)); in decodeInteger()
/external/moshi/examples/src/main/java/com/squareup/moshi/recipes/
DByteStrings.java44 return ByteString.decodeBase64(base64); in fromJson()
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/Support/
DBase64.h57 llvm::Error decodeBase64(llvm::StringRef Input, std::vector<char> &Output);

123