Home
last modified time | relevance | path

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

12

/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/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/
DAlgorithmParametersTestOAEP.java179 params.init(TestUtils.decodeBase64(ENCODED_DATA_ALL_DEFAULTS)); in testEncoding()
192 params.init(TestUtils.decodeBase64(ENCODED_DATA_EXPLICIT_DEFAULTS)); in testEncoding()
205 params.init(TestUtils.decodeBase64(ENCODED_DATA_NON_DEFAULTS)); in testEncoding()
218 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED)); in testEncoding()
231 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED_EXPLICIT_DEFAULTS)); in testEncoding()
DAlgorithmParametersTestGCM.java79 params.init(TestUtils.decodeBase64(ENCODED_DATA_NO_TLEN)); in testEncoding()
91 params.init(TestUtils.decodeBase64(ENCODED_DATA_TLEN)); in testEncoding()
DAlgorithmParametersTestAES.java66 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
DAlgorithmParametersTestDES.java64 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
DAlgorithmParametersTestDESede.java64 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
DAlgorithmParametersTestDSA.java141 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/
DAlgorithmParametersTestOAEP.java183 params.init(TestUtils.decodeBase64(ENCODED_DATA_ALL_DEFAULTS)); in testEncoding()
196 params.init(TestUtils.decodeBase64(ENCODED_DATA_EXPLICIT_DEFAULTS)); in testEncoding()
209 params.init(TestUtils.decodeBase64(ENCODED_DATA_NON_DEFAULTS)); in testEncoding()
222 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED)); in testEncoding()
235 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED_EXPLICIT_DEFAULTS)); in testEncoding()
DAlgorithmParametersTestGCM.java83 params.init(TestUtils.decodeBase64(ENCODED_DATA_NO_TLEN)); in testEncoding()
95 params.init(TestUtils.decodeBase64(ENCODED_DATA_TLEN)); in testEncoding()
DAlgorithmParametersTestDESede.java68 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
DAlgorithmParametersTestDES.java68 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
DAlgorithmParametersTestAES.java70 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
DAlgorithmParametersTestDSA.java145 params.init(TestUtils.decodeBase64(ENCODED_DATA)); in testEncoding()
/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()
DHMAC_SHA1.java53 byte[] actual = decodeBase64(signature); in isValid()
/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/apache-http/src/org/apache/commons/codec/binary/
DBase64.java225 return decodeBase64(pArray); in decode()
377 public static byte[] decodeBase64(byte[] base64Data) { in decodeBase64() method in Base64
/external/apache-http/src/org/apache/commons/codec/net/
DBCodec.java92 return Base64.decodeBase64(bytes); in doDecoding()
/external/sl4a/Common/src/com/googlecode/android_scripting/trigger/
DTriggerRepository.java150 new ByteArrayInputStream(Base64Codec.decodeBase64(triggers.getBytes())); in deserializeTriggersFromString()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
DXMPUtils.java495 public static byte[] decodeBase64(String base64String) throws XMPException in decodeBase64() method in XMPUtils
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiJsonParser.java116 scanIe.bytes = Base64Codec.decodeBase64(jIe.getString("bytes")); in getScanResult()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCertificatePinner.java258 ByteString decodedPin = ByteString.decodeBase64(pin.substring("sha1/".length())); in add()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DCertificatePinner.java261 ByteString decodedPin = ByteString.decodeBase64(pin.substring("sha1/".length())); in add()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java248 byte[] valid = TestUtils.decodeBase64(VALID_CERTIFICATE_DER_BASE64); in test_generateCertificate()
471 valid = TestUtils.decodeBase64(VALID_CERTIFICATE_DER_BASE64); in test_generateCertificate_PartialInput()

12