Home
last modified time | relevance | path

Searched refs:base16 (Results 1 – 25 of 28) sorted by relevance

12

/external/guava/android/guava-tests/test/com/google/common/io/
DBaseEncodingTest.java18 import static com.google.common.io.BaseEncoding.base16;
325 testEncodingWithCasing(base16(), "", ""); in testBase16()
326 testEncodingWithCasing(base16(), "f", "66"); in testBase16()
327 testEncodingWithCasing(base16(), "fo", "666F"); in testBase16()
328 testEncodingWithCasing(base16(), "foo", "666F6F"); in testBase16()
329 testEncodingWithCasing(base16(), "foob", "666F6F62"); in testBase16()
330 testEncodingWithCasing(base16(), "fooba", "666F6F6261"); in testBase16()
331 testEncodingWithCasing(base16(), "foobar", "666F6F626172"); in testBase16()
335 assertSame(base16(), base16().upperCase()); in testBase16UpperCaseIsNoOp()
340 assertFailsToDecode(base16(), "\n\n", "Unrecognized character: 0xa"); in testBase16InvalidDecodings()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DBaseEncodingTest.java18 import static com.google.common.io.BaseEncoding.base16;
325 testEncodingWithCasing(base16(), "", ""); in testBase16()
326 testEncodingWithCasing(base16(), "f", "66"); in testBase16()
327 testEncodingWithCasing(base16(), "fo", "666F"); in testBase16()
328 testEncodingWithCasing(base16(), "foo", "666F6F"); in testBase16()
329 testEncodingWithCasing(base16(), "foob", "666F6F62"); in testBase16()
330 testEncodingWithCasing(base16(), "fooba", "666F6F6261"); in testBase16()
331 testEncodingWithCasing(base16(), "foobar", "666F6F626172"); in testBase16()
335 assertSame(base16(), base16().upperCase()); in testBase16UpperCaseIsNoOp()
340 assertFailsToDecode(base16(), "\n\n", "Unrecognized character: 0xa"); in testBase16InvalidDecodings()
[all …]
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DAesGcmHkdfAeadCrypterTest.java81 this.key = BaseEncoding.base16().lowerCase().decode(key); in withKey()
86 this.nonce = BaseEncoding.base16().lowerCase().decode(nonce); in withNonce()
91 this.aad = BaseEncoding.base16().lowerCase().decode(aad); in withAad()
96 this.plaintext = BaseEncoding.base16().lowerCase().decode(plaintext); in withPlaintext()
101 this.ciphertext = BaseEncoding.base16().lowerCase().decode(ciphertext); in withCiphertext()
/external/guava/guava-tests/test/com/google/common/hash/
DHashCodeTest.java19 import static com.google.common.io.BaseEncoding.base16;
172 assertEquals("7f8005ff0e", base16().lowerCase().encode(data)); in testToString()
185 HashCode hash2 = HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(hash1.toString())); in testRoundTripHashCodeUsingBaseEncoding()
227 HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(string)).toString()); in testRoundTrip()
DMacHashFunctionTest.java20 import static com.google.common.io.BaseEncoding.base16;
311 byte[] key = base16().lowerCase().decode("0102030405060708090a0b0c0d0e0f10111213141516171819"); in testRfc2202_hmacSha1_case4()
360 byte[] key = base16().lowerCase().decode("0102030405060708090a0b0c0d0e0f10111213141516171819"); in testRfc2202_hmacMd5_case4()
/external/guava/android/guava-tests/test/com/google/common/hash/
DHashCodeTest.java19 import static com.google.common.io.BaseEncoding.base16;
172 assertEquals("7f8005ff0e", base16().lowerCase().encode(data)); in testToString()
185 HashCode hash2 = HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(hash1.toString())); in testRoundTripHashCodeUsingBaseEncoding()
227 HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(string)).toString()); in testRoundTrip()
DMacHashFunctionTest.java20 import static com.google.common.io.BaseEncoding.base16;
311 byte[] key = base16().lowerCase().decode("0102030405060708090a0b0c0d0e0f10111213141516171819"); in testRfc2202_hmacSha1_case4()
360 byte[] key = base16().lowerCase().decode("0102030405060708090a0b0c0d0e0f10111213141516171819"); in testRfc2202_hmacMd5_case4()
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securegcm/
DUkey2ShellCppWrapper.java145 BaseEncoding.base16().encode(authString), in confirmAuthString()
146 BaseEncoding.base16().encode(shellAuthString))); in confirmAuthString()
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DPathSubject.java320 System.out.println(BaseEncoding.base16().encode(actual)); in containsBytes()
321 System.out.println(BaseEncoding.base16().encode(bytes)); in containsBytes()
322 failWithActual("expected to contain bytes", BaseEncoding.base16().encode(bytes)); in containsBytes()
/external/opencensus-java/exporters/trace/instana/src/main/java/io/opencensus/exporter/trace/instana/
DInstanaExporterHandler.java77 return BaseEncoding.base16().lowerCase().encode(traceId.getBytes(), 0, 8); in encodeTraceId()
81 return BaseEncoding.base16().lowerCase().encode(spanId.getBytes()); in encodeSpanId()
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DTracezZPageHandler.java294 BaseEncoding.base16() in emitSpans()
333 BaseEncoding.base16().lowerCase().encode(spanContext.getTraceId().getBytes()), in emitSingleSpan()
334 BaseEncoding.base16().lowerCase().encode(spanContext.getSpanId().getBytes()), in emitSingleSpan()
335 BaseEncoding.base16() in emitSingleSpan()
/external/guava/android/guava-tests/benchmark/com/google/common/io/
DBaseEncodingBenchmark.java37 BASE16(BaseEncoding.base16());
/external/guava/guava-tests/benchmark/com/google/common/io/
DBaseEncodingBenchmark.java37 BASE16(BaseEncoding.base16());
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/net/
DIpSecManagerFacade.java325 byte[] cryptKey = BaseEncoding.base16().decode(cryptKeyHex.toUpperCase()); in ipSecCreateTransportModeTransform()
326 byte[] authKey = BaseEncoding.base16().decode(authKeyHex.toUpperCase()); in ipSecCreateTransportModeTransform()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/backends/
DBlobUri.java123 return BaseEncoding.base16().lowerCase().decode(SPLITTER.splitToList(path).get(0)); in getChecksum()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/backends/
DBlobUriTest.java138 byte[] expectedBytes = BaseEncoding.base16().lowerCase().decode("1234"); in getChecksum()
DBlobStoreBackendTest.java237 return BaseEncoding.base16().lowerCase().encode(messageDigest.digest(byteContent)); in computeDigest()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsm16bitStorageTests.cpp1242 const char* base16; in addCompute16bitStorageUniform16To32Group() member
1279 specs["base16"] = cTypes[capIdx][tyIdx].base16; in addCompute16bitStorageUniform16To32Group()
1385 const char* base16; in addCompute16bitStorageUniform16To32Group() member
1467 specs["base16"] = cTypes[capIdx][tyIdx].base16; in addCompute16bitStorageUniform16To32Group()
1786 const char* base16; in addCompute16bitStoragePushConstant16To32Group() member
1825 specs["base16"] = cTypes[tyIdx].base16; in addCompute16bitStoragePushConstant16To32Group()
1899 const char* base16; in addCompute16bitStoragePushConstant16To32Group() member
1961 specs["base16"] = cTypes[tyIdx].base16; in addCompute16bitStoragePushConstant16To32Group()
2421 const char* base16; in addCompute16bitStorageUniform32To16Group() member
2456 specs["base16"] = cTypes[capIdx][tyIdx].base16; in addCompute16bitStorageUniform32To16Group()
[all …]
DvktSpvAsm8bitStorageTests.cpp1525 const char* base16; in addCompute8bitStorage16To8Group() member
1556 specs["base16"] = cTypes[tyIdx].base16; in addCompute8bitStorage16To8Group()
1686 const char* base16; in addCompute8bitUniform8To16Group() member
1714 specs["base16"] = cTypes[tyIdx].base16; in addCompute8bitUniform8To16Group()
1843 const char* base16; in addCompute8bitStoragePushConstant8To16Group() member
1883 specs["base16"] = cTypes[tyIdx].base16; in addCompute8bitStoragePushConstant8To16Group()
/external/truth/core/src/main/java/com/google/common/truth/
DSubject.java402 return base16((byte[]) o); in formatActualOrExpected()
416 private static String base16(byte[] bytes) { in base16() method in Subject
/external/catch2/docs/
Dopensource-users.md42 …ry to encode/decode base64, base64url, base32, base32hex and hex (a.k.a. base16) as specified in R…
/external/guava/android/guava/src/com/google/common/io/
DByteSource.java654 + Ascii.truncate(BaseEncoding.base16().encode(bytes, offset, length), 30, "...") in toString()
/external/guava/guava/src/com/google/common/io/
DByteSource.java654 + Ascii.truncate(BaseEncoding.base16().encode(bytes, offset, length), 30, "...") in toString()
/external/rappor/client/javatest/com/google/rappor/
DHmacDrbgTest.java23 return BaseEncoding.base16().decode(s.toUpperCase()); in hexToBytes()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DTelephonyManagerFacade.java1003 … String b64Data = BaseEncoding.base64().encode(BaseEncoding.base16().decode(hexChallenge)); in telephonyGetIccSimChallengeResponseForSubscription()
1006 ? BaseEncoding.base16().encode(BaseEncoding.base64().decode(b64Result)) : null; in telephonyGetIccSimChallengeResponseForSubscription()

12