/external/tink-java/src/main/java/com/google/crypto/tink/testing/ |
D | HpkeTestUtil.java | 60 .setInfo(testObject.get("info").getAsString()) in parseTestVectors() 61 .setSenderEphemeralPublicKey(testObject.get("pkEm").getAsString()) in parseTestVectors() 62 .setSenderEphemeralPrivateKey(testObject.get("skEm").getAsString()) in parseTestVectors() 63 .setRecipientPublicKey(testObject.get("pkRm").getAsString()) in parseTestVectors() 64 .setRecipientPrivateKey(testObject.get("skRm").getAsString()) in parseTestVectors() 65 .setEncapsulatedKey(testObject.get("enc").getAsString()) in parseTestVectors() 66 .setSharedSecret(testObject.get("shared_secret").getAsString()) in parseTestVectors() 67 .setKeyScheduleContext(testObject.get("key_schedule_context").getAsString()) in parseTestVectors() 68 .setSecret(testObject.get("secret").getAsString()) in parseTestVectors() 69 .setKey(testObject.get("key").getAsString()) in parseTestVectors() [all …]
|
/external/tink/java_src/src/main/java/com/google/crypto/tink/testing/ |
D | HpkeTestUtil.java | 60 .setInfo(testObject.get("info").getAsString()) in parseTestVectors() 61 .setSenderEphemeralPublicKey(testObject.get("pkEm").getAsString()) in parseTestVectors() 62 .setSenderEphemeralPrivateKey(testObject.get("skEm").getAsString()) in parseTestVectors() 63 .setRecipientPublicKey(testObject.get("pkRm").getAsString()) in parseTestVectors() 64 .setRecipientPrivateKey(testObject.get("skRm").getAsString()) in parseTestVectors() 65 .setEncapsulatedKey(testObject.get("enc").getAsString()) in parseTestVectors() 66 .setSharedSecret(testObject.get("shared_secret").getAsString()) in parseTestVectors() 67 .setKeyScheduleContext(testObject.get("key_schedule_context").getAsString()) in parseTestVectors() 68 .setSecret(testObject.get("secret").getAsString()) in parseTestVectors() 69 .setKey(testObject.get("key").getAsString()) in parseTestVectors() [all …]
|
/external/gson/gson/src/main/java/com/google/gson/ |
D | JsonPrimitive.java | 110 return Boolean.parseBoolean(getAsString()); in getAsBoolean() 151 public String getAsString() { in getAsString() method in JsonPrimitive 167 return isNumber() ? getAsNumber().doubleValue() : Double.parseDouble(getAsString()); in getAsDouble() 175 return value instanceof BigDecimal ? (BigDecimal) value : new BigDecimal(getAsString()); in getAsBigDecimal() 184 (BigInteger) value : new BigInteger(getAsString()); in getAsBigInteger() 192 return isNumber() ? getAsNumber().floatValue() : Float.parseFloat(getAsString()); in getAsFloat() 203 return isNumber() ? getAsNumber().longValue() : Long.parseLong(getAsString()); in getAsLong() 211 return isNumber() ? getAsNumber().shortValue() : Short.parseShort(getAsString()); in getAsShort() 219 return isNumber() ? getAsNumber().intValue() : Integer.parseInt(getAsString()); in getAsInt() 227 return isNumber() ? getAsNumber().byteValue() : Byte.parseByte(getAsString()); in getAsByte() [all …]
|
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/ |
D | JaegerExporterHandlerIntegrationTest.java | 156 assertThat(trace.get("traceID").getAsString()).matches("[a-z0-9]{1,32}"); in exportToJaeger() 164 assertThat(span.get("traceID").getAsString()).matches("[a-z0-9]{1,32}"); in exportToJaeger() 165 assertThat(span.get("spanID").getAsString()).matches("[a-z0-9]{1,16}"); in exportToJaeger() 167 assertThat(span.get("operationName").getAsString()).isEqualTo(SPAN_NAME); in exportToJaeger() 178 assertThat(tag.get("key").getAsString()).isEqualTo("foo"); in exportToJaeger() 179 assertThat(tag.get("type").getAsString()).isEqualTo("string"); in exportToJaeger() 180 assertThat(tag.get("value").getAsString()).isEqualTo("bar"); in exportToJaeger() 182 assertThat(statusTag.get("key").getAsString()).isEqualTo(JaegerExporterHandler.STATUS_CODE); in exportToJaeger() 183 assertThat(statusTag.get("type").getAsString()).isEqualTo("int64"); in exportToJaeger() 196 assertThat(field1.get("key").getAsString()).isEqualTo("message"); in exportToJaeger() [all …]
|
/external/swiftshader/third_party/llvm-16.0/llvm/lib/TableGen/ |
D | SetTheory.cpp | 51 Expr->getAsString()); in apply() 67 Expr->getAsString()); in apply() 86 Expr->getAsString()); in apply() 92 Expr->getAsString()); in apply() 103 Expr->getAsString()); in apply2() 115 Expr->getAsString()); in apply2() 150 Expr->getAsString()); in apply2() 182 Expr->getAsString()); in apply() 188 Expr->getAsString()); in apply() 195 PrintFatalError(Loc, "Format must be a string: " + Expr->getAsString()); in apply() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/ |
D | SetTheory.cpp | 52 Expr->getAsString()); in apply() 68 Expr->getAsString()); in apply() 87 Expr->getAsString()); in apply() 93 Expr->getAsString()); in apply() 104 Expr->getAsString()); in apply2() 116 Expr->getAsString()); in apply2() 151 Expr->getAsString()); in apply2() 183 Expr->getAsString()); in apply() 189 Expr->getAsString()); in apply() 196 PrintFatalError(Loc, "Format must be a string: " + Expr->getAsString()); in apply() [all …]
|
D | Record.cpp | 94 std::string BitsRecTy::getAsString() const { in getAsString() function in BitsRecTy 121 std::string StringRecTy::getAsString() const { in getAsString() function in StringRecTy 130 std::string ListRecTy::getAsString() const { in getAsString() function in ListRecTy 131 return "list<" + Ty->getAsString() + ">"; in getAsString() 146 std::string DagRecTy::getAsString() const { in getAsString() function in DagRecTy 202 std::string RecordRecTy::getAsString() const { in getAsString() function in RecordRecTy 411 std::string BitsInit::getAsString() const { in getAsString() function in BitsInit 416 Result += Bit->getAsString(); in getAsString() 468 std::string IntInit::getAsString() const { in getAsString() function in IntInit 669 std::string ListInit::getAsString() const { in getAsString() function in ListInit [all …]
|
/external/llvm/lib/TableGen/ |
D | SetTheory.cpp | 42 Expr->getAsString()); in apply() 58 Expr->getAsString()); in apply() 77 Expr->getAsString()); in apply() 83 Expr->getAsString()); in apply() 94 Expr->getAsString()); in apply2() 106 Expr->getAsString()); in apply2() 141 Expr->getAsString()); in apply2() 173 Expr->getAsString()); in apply() 179 Expr->getAsString()); in apply() 186 PrintFatalError(Loc, "Format must be a string: " + Expr->getAsString()); in apply() [all …]
|
/external/gson/gson/src/test/java/com/google/gson/ |
D | JsonStreamParserTest.java | 43 String actualOne = parser.next().getAsString(); in testParseTwoStrings() 45 String actualTwo = parser.next().getAsString(); in testParseTwoStrings() 52 assertEquals("one", parser.next().getAsString()); in testIterator() 54 assertEquals("two", parser.next().getAsString()); in testIterator() 63 assertEquals("one", parser.next().getAsString()); in testNoSideEffectForHasNext() 67 assertEquals("two", parser.next().getAsString()); in testNoSideEffectForHasNext()
|
D | JsonParserTest.java | 50 assertEquals("a", element.getAsJsonArray().get(0).getAsString()); in testParseUnquotedStringArrayFails() 51 assertEquals("b", element.getAsJsonArray().get(1).getAsString()); in testParseUnquotedStringArrayFails() 52 assertEquals("c", element.getAsJsonArray().get(2).getAsString()); in testParseUnquotedStringArrayFails() 62 assertEquals("c", e.getAsJsonObject().get("b").getAsString()); in testParseString() 69 assertEquals(" ", e.getAsString()); in testParseEmptyString() 80 assertEquals("Test", JsonParser.parseString("Test").getAsString()); in testParseUnquotedSingleWordStringFails() 101 assertEquals("stringValue", array.get(2).getAsString()); in testParseMixedArray() 160 assertEquals("c", e.getAsJsonObject().get("b").getAsString()); in testParseReader()
|
/external/tink-java/src/test/java/com/google/crypto/tink/signature/internal/ |
D | RsaSsaPssVerifyConscryptTest.java | 125 BigInteger modulus = new BigInteger(group.get("n").getAsString(), 16); in wycheproofVectors() 126 BigInteger exponent = new BigInteger(group.get("e").getAsString(), 16); in wycheproofVectors() 127 RsaSsaPssParameters.HashType hashType = getHashType(group.get("sha").getAsString()); in wycheproofVectors() 128 RsaSsaPssParameters.HashType mgf1HashType = getHashType(group.get("mgfSha").getAsString()); in wycheproofVectors() 137 testcase.get("tcId").getAsInt(), testcase.get("comment").getAsString()); in wycheproofVectors() 151 byte[] sig = Hex.decode(testcase.get("sig").getAsString()); in wycheproofVectors() 152 String result = testcase.get("result").getAsString(); in wycheproofVectors() 173 return Hex.decode(testcase.get("msg").getAsString()); in getMessage() 175 return Hex.decode(testcase.get("message").getAsString()); in getMessage()
|
D | RsaSsaPkcs1VerifyConscryptTest.java | 99 BigInteger modulus = new BigInteger(group.get("n").getAsString(), 16); in wycheproofVectors() 100 BigInteger exponent = new BigInteger(1, Hex.decode(group.get("e").getAsString())); in wycheproofVectors() 101 RsaSsaPkcs1Parameters.HashType hashType = getHashType(group.get("sha").getAsString()); in wycheproofVectors() 112 testcase.get("tcId").getAsInt(), testcase.get("comment").getAsString()); in wycheproofVectors() 124 byte[] sig = Hex.decode(testcase.get("sig").getAsString()); in wycheproofVectors() 125 String result = testcase.get("result").getAsString(); in wycheproofVectors() 146 return Hex.decode(testcase.get("msg").getAsString()); in getMessage() 148 return Hex.decode(testcase.get("message").getAsString()); in getMessage()
|
/external/tink-java/src/main/java/com/google/crypto/tink/ |
D | JsonKeysetReader.java | 244 encryptedKeyset = Base64.urlSafeDecode(json.get("encryptedKeyset").getAsString()); in encryptedKeysetFromJson() 246 encryptedKeyset = Base64.decode(json.get("encryptedKeyset").getAsString()); in encryptedKeysetFromJson() 272 .setStatus(getStatus(json.get("status").getAsString())) in keyFromJson() 274 .setOutputPrefixType(getOutputPrefixType(json.get("outputPrefixType").getAsString())) in keyFromJson() 295 .setStatus(getStatus(json.get("status").getAsString())) in keyInfoFromJson() 297 .setOutputPrefixType(getOutputPrefixType(json.get("outputPrefixType").getAsString())) in keyInfoFromJson() 298 .setTypeUrl(json.get("typeUrl").getAsString()) in keyInfoFromJson() 308 value = Base64.urlSafeDecode(json.get("value").getAsString()); in keyDataFromJson() 310 value = Base64.decode(json.get("value").getAsString()); in keyDataFromJson() 313 .setTypeUrl(json.get("typeUrl").getAsString()) in keyDataFromJson() [all …]
|
/external/tink/java_src/src/main/java/com/google/crypto/tink/ |
D | JsonKeysetReader.java | 218 encryptedKeyset = Base64.urlSafeDecode(json.get("encryptedKeyset").getAsString()); in encryptedKeysetFromJson() 220 encryptedKeyset = Base64.decode(json.get("encryptedKeyset").getAsString()); in encryptedKeysetFromJson() 237 .setStatus(getStatus(json.get("status").getAsString())) in keyFromJson() 239 .setOutputPrefixType(getOutputPrefixType(json.get("outputPrefixType").getAsString())) in keyFromJson() 260 .setStatus(getStatus(json.get("status").getAsString())) in keyInfoFromJson() 262 .setOutputPrefixType(getOutputPrefixType(json.get("outputPrefixType").getAsString())) in keyInfoFromJson() 263 .setTypeUrl(json.get("typeUrl").getAsString()) in keyInfoFromJson() 271 value = Base64.urlSafeDecode(json.get("value").getAsString()); in keyDataFromJson() 273 value = Base64.decode(json.get("value").getAsString()); in keyDataFromJson() 276 .setTypeUrl(json.get("typeUrl").getAsString()) in keyDataFromJson() [all …]
|
/external/tink/java_src/src/test/java/com/google/crypto/tink/subtle/ |
D | Ed25519VerifyTest.java | 56 return Hex.decode(testcase.get("msg").getAsString()); in getMessage() 58 return Hex.decode(testcase.get("message").getAsString()); in getMessage() 73 byte[] publicKey = Hex.decode(key.get("pk").getAsString()); in testVerificationWithWycheproofVectors() 79 testcase.get("tcId").getAsInt(), testcase.get("comment").getAsString()); in testVerificationWithWycheproofVectors() 81 byte[] sig = Hex.decode(testcase.get("sig").getAsString()); in testVerificationWithWycheproofVectors() 82 String result = testcase.get("result").getAsString(); in testVerificationWithWycheproofVectors()
|
D | RsaSsaPssVerifyJceTest.java | 96 byte[] encodedPubKey = Hex.decode(group.get("keyDer").getAsString()); in testWycheproofVectors() 98 HashType sigHash = WycheproofTestUtil.getHashType(group.get("sha").getAsString()); in testWycheproofVectors() 99 HashType mgf1Hash = WycheproofTestUtil.getHashType(group.get("mgfSha").getAsString()); in testWycheproofVectors() 108 testcase.get("tcId").getAsInt(), testcase.get("comment").getAsString()); in testWycheproofVectors() 111 byte[] msg = Hex.decode(testcase.get("msg").getAsString()); in testWycheproofVectors() 112 byte[] sig = Hex.decode(testcase.get("sig").getAsString()); in testWycheproofVectors() 113 String result = testcase.get("result").getAsString(); in testWycheproofVectors()
|
D | RsaSsaPkcs1VerifyJceTest.java | 91 byte[] encodedPubKey = Hex.decode(group.get("keyDer").getAsString()); in testWycheproofVectors() 93 String sha = group.get("sha").getAsString(); in testWycheproofVectors() 106 testcase.get("tcId").getAsInt(), testcase.get("comment").getAsString()); in testWycheproofVectors() 111 byte[] sig = Hex.decode(testcase.get("sig").getAsString()); in testWycheproofVectors() 112 String result = testcase.get("result").getAsString(); in testWycheproofVectors() 140 return Hex.decode(testcase.get("msg").getAsString()); in getMessage() 142 return Hex.decode(testcase.get("message").getAsString()); in getMessage()
|
D | X25519Test.java | 141 String curve = group.get("curve").getAsString(); in testComputeSharedSecretWithWycheproofVectors() 146 testcase.get("tcId").getAsInt(), testcase.get("comment").getAsString()); in testComputeSharedSecretWithWycheproofVectors() 147 String result = testcase.get("result").getAsString(); in testComputeSharedSecretWithWycheproofVectors() 148 String hexPubKey = testcase.get("public").getAsString(); in testComputeSharedSecretWithWycheproofVectors() 149 String hexPrivKey = testcase.get("private").getAsString(); in testComputeSharedSecretWithWycheproofVectors() 150 String expectedSharedSecret = testcase.get("shared").getAsString(); in testComputeSharedSecretWithWycheproofVectors()
|
D | KwpTest.java | 83 String generatorVersion = json.get("generatorVersion").getAsString(); in testWycheproof() 96 String tc = "tcId: " + tcid + " " + testcase.get("comment").getAsString(); in testWycheproof() 97 byte[] key = Hex.decode(testcase.get("key").getAsString()); in testWycheproof() 98 byte[] data = Hex.decode(testcase.get("msg").getAsString()); in testWycheproof() 99 byte[] expected = Hex.decode(testcase.get("ct").getAsString()); in testWycheproof() 104 String result = testcase.get("result").getAsString(); in testWycheproof()
|
/external/clang/lib/AST/ |
D | InheritViz.cpp | 45 Out << "digraph \"" << llvm::DOT::EscapeString(Type.getAsString()) in WriteGraph() 80 std::string TypeName = Type.getAsString(); in WriteNode() 86 if (TypeName != CanonType.getAsString()) { in WriteNode() 87 Out << "\\n(" << CanonType.getAsString() << ")"; in WriteNode() 143 Self.getAsString(), "dot", FD, Filename)) { in viewInheritance()
|
/external/tink-java/src/test/java/com/google/crypto/tink/subtle/ |
D | RsaSsaPssVerifyJceTest.java | 186 BigInteger modulus = new BigInteger(group.get("n").getAsString(), 16); in wycheproofVectors() 187 BigInteger exponent = new BigInteger(group.get("e").getAsString(), 16); in wycheproofVectors() 188 RsaSsaPssParameters.HashType hashType = getHashType(group.get("sha").getAsString()); in wycheproofVectors() 189 RsaSsaPssParameters.HashType mgf1HashType = getHashType(group.get("mgfSha").getAsString()); in wycheproofVectors() 198 testcase.get("tcId").getAsInt(), testcase.get("comment").getAsString()); in wycheproofVectors() 212 byte[] sig = Hex.decode(testcase.get("sig").getAsString()); in wycheproofVectors() 213 String result = testcase.get("result").getAsString(); in wycheproofVectors() 234 return Hex.decode(testcase.get("msg").getAsString()); in getMessage() 236 return Hex.decode(testcase.get("message").getAsString()); in getMessage()
|
D | X25519Test.java | 241 String curve = group.get("curve").getAsString(); in testComputeSharedSecretWithWycheproofVectors() 246 testcase.get("tcId").getAsInt(), testcase.get("comment").getAsString()); in testComputeSharedSecretWithWycheproofVectors() 247 String result = testcase.get("result").getAsString(); in testComputeSharedSecretWithWycheproofVectors() 248 String hexPubKey = testcase.get("public").getAsString(); in testComputeSharedSecretWithWycheproofVectors() 249 String hexPrivKey = testcase.get("private").getAsString(); in testComputeSharedSecretWithWycheproofVectors() 250 String expectedSharedSecret = testcase.get("shared").getAsString(); in testComputeSharedSecretWithWycheproofVectors()
|
D | KwpTest.java | 83 String generatorVersion = json.get("generatorVersion").getAsString(); in testWycheproof() 96 String tc = "tcId: " + tcid + " " + testcase.get("comment").getAsString(); in testWycheproof() 97 byte[] key = Hex.decode(testcase.get("key").getAsString()); in testWycheproof() 98 byte[] data = Hex.decode(testcase.get("msg").getAsString()); in testWycheproof() 99 byte[] expected = Hex.decode(testcase.get("ct").getAsString()); in testWycheproof() 104 String result = testcase.get("result").getAsString(); in testWycheproof()
|
D | Ed25519VerifyTest.java | 59 return Hex.decode(testcase.get("msg").getAsString()); in getMessage() 61 return Hex.decode(testcase.get("message").getAsString()); in getMessage() 76 byte[] publicKey = Hex.decode(key.get("pk").getAsString()); in testVerificationWithWycheproofVectors() 82 testcase.get("tcId").getAsInt(), testcase.get("comment").getAsString()); in testVerificationWithWycheproofVectors() 84 byte[] sig = Hex.decode(testcase.get("sig").getAsString()); in testVerificationWithWycheproofVectors() 85 String result = testcase.get("result").getAsString(); in testVerificationWithWycheproofVectors()
|
/external/tink-java/src/main/java/com/google/crypto/tink/prf/internal/ |
D | AesCmacPrfWycheproofTestUtil.java | 52 String result = testCase.get("result").getAsString(); in readTestVectors() 56 String keyHex = testCase.get("key").getAsString(); in readTestVectors() 57 String dataHex = testCase.get("msg").getAsString(); in readTestVectors() 58 String outputHex = testCase.get("tag").getAsString(); in readTestVectors()
|