Lines Matching refs:nonce
32 Alpha* PoloChallengeResponse::GetAlpha(const Nonce& nonce) const { in GetAlpha()
64 + nonce.size(); in GetAlpha()
81 memcpy(pos, &nonce[0], nonce.size()); in GetAlpha()
96 Gamma* PoloChallengeResponse::GetGamma(const Nonce& nonce) const { in GetGamma()
97 const Alpha* alpha = GetAlpha(nonce); in GetGamma()
102 Gamma* gamma = new Gamma(nonce.size() * 2); in GetGamma()
104 if (alpha->size() >= nonce.size()) { in GetGamma()
105 memcpy(&(*gamma)[0], &(*alpha)[0], nonce.size()); in GetGamma()
106 memcpy(&(*gamma)[nonce.size()], &nonce[0], nonce.size()); in GetGamma()
118 Nonce* nonce = new Nonce(gamma.size() / 2); in ExtractNonce() local
119 memcpy(&(*nonce)[0], &gamma[nonce->size()], nonce->size()); in ExtractNonce()
121 return nonce; in ExtractNonce()
125 const Nonce* nonce = ExtractNonce(gamma); in CheckGamma() local
127 if (!nonce) { in CheckGamma()
131 const Gamma* expected = GetGamma(*nonce); in CheckGamma()
140 delete nonce; in CheckGamma()