Lines Matching refs:gamma
102 Gamma* gamma = new Gamma(nonce.size() * 2); in GetGamma() local
105 memcpy(&(*gamma)[0], &(*alpha)[0], nonce.size()); in GetGamma()
106 memcpy(&(*gamma)[nonce.size()], &nonce[0], nonce.size()); in GetGamma()
110 return gamma; in GetGamma()
113 Nonce* PoloChallengeResponse::ExtractNonce(const Gamma& gamma) const { in ExtractNonce()
114 if ((gamma.size() < 2) || (gamma.size() % 2 != 0)) { in ExtractNonce()
118 Nonce* nonce = new Nonce(gamma.size() / 2); in ExtractNonce()
119 memcpy(&(*nonce)[0], &gamma[nonce->size()], nonce->size()); in ExtractNonce()
124 bool PoloChallengeResponse::CheckGamma(const Gamma& gamma) const { in CheckGamma()
125 const Nonce* nonce = ExtractNonce(gamma); in CheckGamma()
136 << util::PoloUtil::BytesToHexString(&gamma[0], gamma.size()); in CheckGamma()
138 bool check = (gamma == (*expected)); in CheckGamma()