Home
last modified time | relevance | path

Searched refs:decodeBase64 (Results 1 – 25 of 56) 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/commonTest/kotlin/okio/
DByteStringTest.kt19 import okio.ByteString.Companion.decodeBase64
296 assertEquals("", "====".decodeBase64()!!.utf8()) in ignoreUnnecessaryPadding()
297 assertEquals("\u0000\u0000\u0000", "AAAA====".decodeBase64()!!.utf8()) in ignoreUnnecessaryPadding()
300 @Test fun decodeBase64() { in decodeBase64() method in okio.AbstractByteStringTest
301 assertEquals("", "".decodeBase64()!!.utf8()) in decodeBase64()
302 assertEquals(null, "/===".decodeBase64()) // Can't do anything with 6 bits! in decodeBase64()
303 assertEquals("ff".decodeHex(), "//==".decodeBase64()) in decodeBase64()
304 assertEquals("ff".decodeHex(), "__==".decodeBase64()) in decodeBase64()
305 assertEquals("ffff".decodeHex(), "///=".decodeBase64()) in decodeBase64()
306 assertEquals("ffff".decodeHex(), "___=".decodeBase64()) in decodeBase64()
[all …]
/external/okio/okio/src/jvmTest/java/okio/
DInflaterSourceTest.java63 decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CD5s="); in inflate()
69 decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CDw=="); in inflateTruncated()
78 decodeBase64("eJztwTEBAAAAwqCs61/CEL5AAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" in inflateWellCompressed()
124 decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CD5s="); in inflateSingleByte()
136 decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tKtYDAF6CD5s="); in inflateByteCount()
146 decodeBase64("eJwAAAD//w=="); in sourceExhaustedPrematurelyOnRead()
169 decodeBase64("eJwAAAD//w=="); in readOrInflateMakesByteByByteProgress()
190 private void decodeBase64(String s) throws IOException { in decodeBase64() method in InflaterSourceTest
191 deflatedSink.write(ByteString.decodeBase64(s)); in decodeBase64()
DByteStringJavaTest.java455 assertEquals("", ByteString.decodeBase64("====").utf8()); in ignoreUnnecessaryPadding()
456 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64("AAAA====").utf8()); in ignoreUnnecessaryPadding()
459 @Test public void decodeBase64() { in decodeBase64() method in ByteStringJavaTest
460 assertEquals("", ByteString.decodeBase64("").utf8()); in decodeBase64()
461 assertEquals(null, ByteString.decodeBase64("/===")); // Can't do anything with 6 bits! in decodeBase64()
462 assertEquals(ByteString.decodeHex("ff"), ByteString.decodeBase64("//==")); in decodeBase64()
463 assertEquals(ByteString.decodeHex("ff"), ByteString.decodeBase64("__==")); in decodeBase64()
464 assertEquals(ByteString.decodeHex("ffff"), ByteString.decodeBase64("///=")); in decodeBase64()
465 assertEquals(ByteString.decodeHex("ffff"), ByteString.decodeBase64("___=")); in decodeBase64()
466 assertEquals(ByteString.decodeHex("ffffff"), ByteString.decodeBase64("////")); in decodeBase64()
[all …]
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/
DAlgorithmParametersTestOAEP.java191 params.init(TestUtils.decodeBase64(ENCODED_DATA_ALL_DEFAULTS)); in testEncoding()
206 params.init(TestUtils.decodeBase64(ENCODED_DATA_EXPLICIT_DEFAULTS)); in testEncoding()
220 params.init(TestUtils.decodeBase64(ENCODED_DATA_NON_DEFAULTS)); in testEncoding()
234 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED)); in testEncoding()
248 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED_EXPLICIT_DEFAULTS)); in testEncoding()
DAlgorithmParametersTestGCM.java91 params.init(TestUtils.decodeBase64(ENCODED_DATA_NO_TLEN)); in testEncoding()
102 params.init(TestUtils.decodeBase64(ENCODED_DATA_TLEN)); in testEncoding()
DAlgorithmParametersTestDES.java63 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
DAlgorithmParametersTestDESede.java74 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
DAlgorithmParametersTestAES.java75 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
/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()
DAlgorithmParametersTestAES.java72 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
DAlgorithmParametersTestDESede.java70 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
DAlgorithmParametersTestDSA.java137 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
/external/okio/samples/src/jvmMain/kotlin/okio/samples/
DGoldenValue.kt20 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.java188 private static final byte[] EC_private = TestUtils.decodeBase64(
192 private static final byte[] EC_public = TestUtils.decodeBase64(
/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()
650 valid = TestUtils.decodeBase64(VALID_CERTIFICATE_DER_BASE64); in test_generateCertificate_PartialInput()
901 valid = TestUtils.decodeBase64(VALID_CRL_DER_BASE64); in test_generateCrl()
909 valid = TestUtils.decodeBase64(VALID_CRL_PKCS7_DER_BASE64); in test_generateCrl()
915 valid = TestUtils.decodeBase64(VALID_CRL_PKCS7_DER_BASE64); in test_generateCrl()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java398 byte[] valid = TestUtils.decodeBase64(VALID_CERTIFICATE_DER_BASE64); in test_generateCertificate()
407 byte[] valid = TestUtils.decodeBase64(VALID_CERTIFICATE_PKCS7_DER_BASE64); in test_generateCertificate()
422 byte[] valid = TestUtils.decodeBase64(VALID_CERTIFICATE_PKCS7_DER_BASE64); in test_generateCertificate()
430 byte[] valid = TestUtils.decodeBase64(SMALL_PKCS7_DER_BASE64); in test_generateCertificate()
656 valid = TestUtils.decodeBase64(VALID_CERTIFICATE_DER_BASE64); in test_generateCertificate_PartialInput()
910 valid = TestUtils.decodeBase64(VALID_CRL_DER_BASE64); in test_generateCrl()
918 valid = TestUtils.decodeBase64(VALID_CRL_PKCS7_DER_BASE64); in test_generateCrl()
924 valid = TestUtils.decodeBase64(VALID_CRL_PKCS7_DER_BASE64); in test_generateCrl()
/external/okio/okio/src/jvmMain/kotlin/okio/
DByteString.kt250 actual fun String.decodeBase64() = commonDecodeBase64() in getByte() method
286 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/okio/samples/src/jvmMain/java/okio/samples/
DGoldenValue.java31 ByteString goldenBytes = ByteString.decodeBase64("rO0ABXNyAB5va2lvLnNhbXBsZ" in run()

123