Lines Matching refs:res
59 EpidStatus res = kEpidErr; in Epid11NrVerify() local
95 res = kEpidBadArgErr; in Epid11NrVerify()
96 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
101 res = kEpidMemAllocErr; in Epid11NrVerify()
106 res = NewEcPoint(G3, &T); in Epid11NrVerify()
107 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
108 res = NewEcPoint(G3, &R1); in Epid11NrVerify()
109 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
110 res = NewEcPoint(G3, &R2); in Epid11NrVerify()
111 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
113 res = NewEcPoint(G3, &K); in Epid11NrVerify()
114 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
115 res = NewEcPoint(G3, &B); in Epid11NrVerify()
116 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
117 res = NewEcPoint(G3, &K_tick); in Epid11NrVerify()
118 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
119 res = NewEcPoint(G3, &B_tick); in Epid11NrVerify()
120 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
122 res = NewBigNum(sizeof(proof->smu), &smu); in Epid11NrVerify()
123 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
124 res = NewBigNum(sizeof(proof->smu), &snu); in Epid11NrVerify()
125 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
127 res = NewBigNum(sizeof(FpElemStr), &nc_tick_bn); in Epid11NrVerify()
128 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
131 res = ReadEcPoint(G3, &(proof->T), sizeof(proof->T), T); in Epid11NrVerify()
132 if (kEpidNoErr != res) { in Epid11NrVerify()
133 res = kEpidBadArgErr; in Epid11NrVerify()
138 res = EcIsIdentity(G3, T, &(cmp_result)); in Epid11NrVerify()
139 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
141 res = kEpidBadArgErr; in Epid11NrVerify()
146 res = WriteBigNum(ctx->epid11_params->p_tick, sizeof(commit_values->p_tick), in Epid11NrVerify()
148 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
151 res = kEpidBadArgErr; in Epid11NrVerify()
155 res = ReadBigNum(&(proof->c), sizeof(proof->c), nc_tick_bn); in Epid11NrVerify()
156 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
157 res = BigNumMod(nc_tick_bn, p_tick_bn, nc_tick_bn); in Epid11NrVerify()
158 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
160 res = BigNumSub(p_tick_bn, nc_tick_bn, nc_tick_bn); in Epid11NrVerify()
161 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
164 res = ReadEcPoint(G3, &(sig->K), sizeof(sig->K), K); in Epid11NrVerify()
165 if (kEpidNoErr != res) { in Epid11NrVerify()
166 res = kEpidBadArgErr; in Epid11NrVerify()
169 res = ReadEcPoint(G3, &(sig->B), sizeof(sig->B), B); in Epid11NrVerify()
170 if (kEpidNoErr != res) { in Epid11NrVerify()
171 res = kEpidBadArgErr; in Epid11NrVerify()
174 res = ReadBigNum(&(proof->smu), sizeof(proof->smu), smu); in Epid11NrVerify()
175 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
176 res = ReadBigNum(&(proof->snu), sizeof(proof->snu), snu); in Epid11NrVerify()
177 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
185 res = EcMultiExpBn(G3, points, exponents, COUNT_OF(points), R1); in Epid11NrVerify()
186 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
189 res = ReadEcPoint(G3, &(sigrl_entry->k), sizeof(sigrl_entry->k), K_tick); in Epid11NrVerify()
190 if (kEpidNoErr != res) { in Epid11NrVerify()
191 res = kEpidBadArgErr; in Epid11NrVerify()
194 res = ReadEcPoint(G3, &(sigrl_entry->b), sizeof(sigrl_entry->b), B_tick); in Epid11NrVerify()
195 if (kEpidNoErr != res) { in Epid11NrVerify()
196 res = kEpidBadArgErr; in Epid11NrVerify()
208 res = EcMultiExpBn(G3, points, exponents, COUNT_OF(points), R2); in Epid11NrVerify()
209 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
216 res = kEpidBadArgErr; in Epid11NrVerify()
227 res = WriteEcPoint(G3, R1, &commit_values->R1, sizeof(commit_values->R1)); in Epid11NrVerify()
228 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
229 res = WriteEcPoint(G3, R2, &commit_values->R2, sizeof(commit_values->R2)); in Epid11NrVerify()
230 BREAK_ON_EPID_ERROR(res); in Epid11NrVerify()
231 res = Sha256MessageDigest(commit_values, commit_len, &commit_hash); in Epid11NrVerify()
233 res = kEpidBadArgErr; in Epid11NrVerify()
252 return res; in Epid11NrVerify()