Home
last modified time | relevance | path

Searched refs:PoloUtil (Results 1 – 21 of 21) sorted by relevance

/external/google-tv-pairing-protocol/cpp/tests/polo/util/
Dpoloutiltest.cc23 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/
DPoloChallengeResponse.java87 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()
DPairingContext.java88 Certificate localCert = PoloUtil.getLocalCert(socket.getSession()); in fromSslSocket()
89 Certificate peerCert = PoloUtil.getPeerCert(socket.getSession()); in fromSslSocket()
DPairingSession.java521 "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()
DPoloUtil.java30 public class PoloUtil { class
/external/google-tv-pairing-protocol/cpp/src/polo/util/
Dpoloutil.cc22 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()
Dpoloutil.h27 class PoloUtil {
/external/google-tv-pairing-protocol/java/src/com/google/polo/encoding/
DHexadecimalEncoder.java19 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/
Dpolochallengeresponsetest.cc107 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/
DJsonWireAdapter.java23 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/
Dhexadecimalencoder.cc29 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/
DSecretAckMessage.java19 import com.google.polo.pairing.PoloUtil;
46 ret.append(PoloUtil.bytesToHexString(mSecret)); in toString()
DSecretMessage.java19 import com.google.polo.pairing.PoloUtil;
46 ret.append(PoloUtil.bytesToHexString(mSecret)); in toString()
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/
Dpairingsession.cc158 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()
Dpolochallengeresponse.cc134 << 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/
Dsecretackmessage.cc36 << util::PoloUtil::BytesToHexString(&secret_[0], secret_.size()) in ToString()
Dsecretmessage.cc36 << util::PoloUtil::BytesToHexString(&secret_[0], secret_.size()) in ToString()
/external/google-tv-pairing-protocol/cpp/tests/polo/wire/protobuf/
Dprotobufwireadaptertest.cc82 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/
DProtobufWireAdapter.java24 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/
DXmlMessageBuilder.java25 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/
Dprotobufwireadapter.cc163 uint32_t message_length = util::PoloUtil::BigEndianBytesToInt(&data[0]); in OnBytesReceived()
403 util::PoloUtil::IntToBigEndianBytes(outer_string.length(), size_bytes); in SendOuterMessage()