/external/google-tv-pairing-protocol/cpp/tests/polo/util/ |
D | poloutiltest.cc | 23 std::string result = PoloUtil::BytesToHexString(bytes, 4); in TEST() 29 std::string result = PoloUtil::BytesToHexString(bytes, 4); in TEST() 35 size_t length = PoloUtil::HexStringToBytes(std::string("AABBCCDD"), bytes); in TEST() 46 PoloUtil::IntToBigEndianBytes(0xAABBCCDD, bytes); in TEST() 56 PoloUtil::IntToBigEndianBytes(0x00AABB00, bytes); in TEST() 66 const uint32_t value = PoloUtil::BigEndianBytesToInt(bytes); in TEST() 72 const uint32_t value = PoloUtil::BigEndianBytesToInt(bytes); in TEST() 77 uint8_t* random1 = PoloUtil::GenerateRandomBytes(16); in TEST() 79 const std::string value1 = PoloUtil::BytesToHexString(random1, 16); in TEST() 82 uint8_t* random2 = PoloUtil::GenerateRandomBytes(16); in TEST() [all …]
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/ |
D | PoloChallengeResponse.java | 87 logDebug("getAlpha, nonce=" + PoloUtil.bytesToHexString(nonce)); in getAlpha() 120 logVerbose(" client modulus: " + PoloUtil.bytesToHexString(clientModulus)); in getAlpha() 121 logVerbose(" client exponent: " + PoloUtil.bytesToHexString(clientExponent)); in getAlpha() 122 logVerbose(" server modulus: " + PoloUtil.bytesToHexString(serverModulus)); in getAlpha() 123 logVerbose(" server exponent: " + PoloUtil.bytesToHexString(serverExponent)); in getAlpha() 124 logVerbose(" nonce: " + PoloUtil.bytesToHexString(nonce)); in getAlpha() 136 logDebug("Generated hash: " + PoloUtil.bytesToHexString(digestBytes)); in getAlpha() 190 logDebug("Nonce is: " + PoloUtil.bytesToHexString(nonce)); in checkGamma() 191 logDebug("User gamma is: " + PoloUtil.bytesToHexString(gamma)); in checkGamma() 192 logDebug("Generated gamma is: " + PoloUtil.bytesToHexString(getGamma(nonce))); in checkGamma()
|
D | PairingContext.java | 88 Certificate localCert = PoloUtil.getLocalCert(socket.getSession()); in fromSslSocket() 89 Certificate peerCert = PoloUtil.getPeerCert(socket.getSession()); in fromSslSocket()
|
D | PairingSession.java | 521 "Expected [" + PoloUtil.bytesToHexString(genAlpha) + in doPairingPhase() 522 "], got [" + PoloUtil.bytesToHexString(inbandAlpha) + "]"); in doPairingPhase() 554 "Expected [" + PoloUtil.bytesToHexString(localAlpha) + in doPairingPhase() 555 "], got [" + PoloUtil.bytesToHexString(inbandAlpha) + "]"); in doPairingPhase()
|
D | PoloUtil.java | 30 public class PoloUtil { class
|
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
D | poloutil.cc | 22 const std::string PoloUtil::BytesToHexString(const uint8_t* bytes, in BytesToHexString() 33 const size_t PoloUtil::HexStringToBytes(const std::string hex_string, in HexStringToBytes() 45 const void PoloUtil::IntToBigEndianBytes(uint32_t value, in IntToBigEndianBytes() 63 const uint32_t PoloUtil::BigEndianBytesToInt( in BigEndianBytesToInt() 72 uint8_t* PoloUtil::GenerateRandomBytes(size_t length) { in GenerateRandomBytes()
|
D | poloutil.h | 27 class PoloUtil {
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/encoding/ |
D | HexadecimalEncoder.java | 19 import com.google.polo.pairing.PoloUtil; 29 return PoloUtil.hexStringToBytes(encodedString); in decodeToBytes() 33 return PoloUtil.bytesToHexString(secretBytes).toLowerCase(); in encodeToString()
|
/external/google-tv-pairing-protocol/cpp/tests/polo/pairing/ |
D | polochallengeresponsetest.cc | 107 util::PoloUtil::BytesToHexString(&(*alpha)[0], alpha->size())); in TEST_F() 116 util::PoloUtil::BytesToHexString(&(*gamma)[0], gamma->size())); in TEST_F() 124 util::PoloUtil::BytesToHexString(&(*gamma)[0], gamma->size())); in TEST_F() 129 util::PoloUtil::BytesToHexString(&(*extracted)[0], in TEST_F()
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/json/ |
D | JsonWireAdapter.java | 23 import com.google.polo.pairing.PoloUtil; 82 long payloadLen = PoloUtil.intBigEndianBytesToLong(payloadLenBytes); in getNextMessage() 138 mOutputStream.write(PoloUtil.intToBigEndianIntBytes(outBytes.length)); in writeJson()
|
/external/google-tv-pairing-protocol/cpp/src/polo/encoding/ |
D | hexadecimalencoder.cc | 29 return polo::util::PoloUtil::BytesToHexString(&secret[0], secret.size()); in EncodeToString() 35 size_t length = polo::util::PoloUtil::HexStringToBytes(secret, bytes); in DecodeToBytes()
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/message/ |
D | SecretAckMessage.java | 19 import com.google.polo.pairing.PoloUtil; 46 ret.append(PoloUtil.bytesToHexString(mSecret)); in toString()
|
D | SecretMessage.java | 19 import com.google.polo.pairing.PoloUtil; 46 ret.append(PoloUtil.bytesToHexString(mSecret)); in toString()
|
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/ |
D | pairingsession.cc | 158 uint8_t* random = util::PoloUtil::GenerateRandomBytes(bytes_needed); in DoOutputPairing() 277 << util::PoloUtil::BytesToHexString(&(*gen_alpha)[0], gen_alpha->size()) in VerifySecret() 279 << util::PoloUtil::BytesToHexString(&secret[0], secret.size()) in VerifySecret()
|
D | polochallengeresponse.cc | 134 << util::PoloUtil::BytesToHexString(&(*expected)[0], expected->size()) in CheckGamma() 136 << util::PoloUtil::BytesToHexString(&gamma[0], gamma.size()); in CheckGamma()
|
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/message/ |
D | secretackmessage.cc | 36 << util::PoloUtil::BytesToHexString(&secret_[0], secret_.size()) in ToString()
|
D | secretmessage.cc | 36 << util::PoloUtil::BytesToHexString(&secret_[0], secret_.size()) in ToString()
|
/external/google-tv-pairing-protocol/cpp/tests/polo/wire/protobuf/ |
D | protobufwireadaptertest.cc | 82 util::PoloUtil::IntToBigEndianBytes(message_size, size_bytes); in ExpectReadPreamble() 94 util::PoloUtil::IntToBigEndianBytes(outer_string.length(), size_bytes); in ExpectSend()
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/protobuf/ |
D | ProtobufWireAdapter.java | 24 import com.google.polo.pairing.PoloUtil; 124 int messageLen = (int) PoloUtil.intBigEndianBytesToLong(preambleBuffer); in readNextOuterMessage() 243 mOutputStream.write(PoloUtil.intToBigEndianIntBytes(messageLength)); in writeMessage()
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/ |
D | XmlMessageBuilder.java | 25 import com.google.polo.pairing.PoloUtil; 353 byte[] secretBytes = PoloUtil.hexStringToBytes(secret); in getSecretMessage() 563 String bytesStr = PoloUtil.bytesToHexString(message.getSecret()); in toXML()
|
/external/google-tv-pairing-protocol/cpp/src/polo/wire/protobuf/ |
D | protobufwireadapter.cc | 163 uint32_t message_length = util::PoloUtil::BigEndianBytesToInt(&data[0]); in OnBytesReceived() 403 util::PoloUtil::IntToBigEndianBytes(outer_string.length(), size_bytes); in SendOuterMessage()
|