Home | History | Annotate | Download | only in pairing

Lines Matching refs:nonce

32 Alpha* PoloChallengeResponse::GetAlpha(const Nonce& nonce) const {
54 // modulus and exponent are concatenated along with the random nonce then a
64 + nonce.size();
81 memcpy(pos, &nonce[0], nonce.size());
96 Gamma* PoloChallengeResponse::GetGamma(const Nonce& nonce) const {
97 const Alpha* alpha = GetAlpha(nonce);
102 Gamma* gamma = new Gamma(nonce.size() * 2);
104 if (alpha->size() >= nonce.size()) {
105 memcpy(&(*gamma)[0], &(*alpha)[0], nonce.size());
106 memcpy(&(*gamma)[nonce.size()], &nonce[0], nonce.size());
113 Nonce* PoloChallengeResponse::ExtractNonce(const Gamma& gamma) const {
118 Nonce* nonce = new Nonce(gamma.size() / 2);
119 memcpy(&(*nonce)[0], &gamma[nonce->size()], nonce->size());
121 return nonce;
125 const Nonce* nonce = ExtractNonce(gamma);
127 if (!nonce) {
131 const Gamma* expected = GetGamma(*nonce);
140 delete nonce;