• Home
  • Raw
  • Download

Lines Matching refs:res

37   EpidStatus res = kEpidNotImpl;  in EpidVerifyBasicSig()  local
86 res = kEpidBadArgErr; in EpidVerifyBasicSig()
87 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
93 res = NewEcPoint(G1, &B); in EpidVerifyBasicSig()
94 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
95 res = NewEcPoint(G1, &K); in EpidVerifyBasicSig()
96 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
97 res = NewEcPoint(G1, &T); in EpidVerifyBasicSig()
98 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
99 res = NewEcPoint(G1, &R1); in EpidVerifyBasicSig()
100 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
101 res = NewEcPoint(G1, &t4); in EpidVerifyBasicSig()
102 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
104 res = NewEcPoint(G2, &t1); in EpidVerifyBasicSig()
105 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
107 res = NewFfElement(GT, &R2); in EpidVerifyBasicSig()
108 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
109 res = NewFfElement(GT, &t2); in EpidVerifyBasicSig()
110 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
112 res = NewFfElement(Fp, &c); in EpidVerifyBasicSig()
113 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
114 res = NewFfElement(Fp, &sx); in EpidVerifyBasicSig()
115 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
116 res = NewFfElement(Fp, &sf); in EpidVerifyBasicSig()
117 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
118 res = NewFfElement(Fp, &sa); in EpidVerifyBasicSig()
119 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
120 res = NewFfElement(Fp, &sb); in EpidVerifyBasicSig()
121 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
122 res = NewFfElement(Fp, &nc); in EpidVerifyBasicSig()
123 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
124 res = NewFfElement(Fp, &nsx); in EpidVerifyBasicSig()
125 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
126 res = NewFfElement(Fp, &c_hash); in EpidVerifyBasicSig()
127 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
135 res = ReadEcPoint(G1, &(sig->B), sizeof(sig->B), B); in EpidVerifyBasicSig()
136 if (kEpidNoErr != res) { in EpidVerifyBasicSig()
137 if (kEpidBadArgErr == res) { in EpidVerifyBasicSig()
138 res = kEpidSigInvalid; in EpidVerifyBasicSig()
143 res = EcIsIdentity(G1, B, &cmp_result); in EpidVerifyBasicSig()
144 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
146 res = kEpidSigInvalid; in EpidVerifyBasicSig()
152 res = EcIsEqual(G1, basename_hash, B, &cmp_result); in EpidVerifyBasicSig()
153 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
155 res = kEpidSigInvalid; in EpidVerifyBasicSig()
160 res = ReadEcPoint(G1, &(sig->K), sizeof(sig->K), K); in EpidVerifyBasicSig()
161 if (kEpidNoErr != res) { in EpidVerifyBasicSig()
162 if (kEpidBadArgErr == res) { in EpidVerifyBasicSig()
163 res = kEpidSigInvalid; in EpidVerifyBasicSig()
168 res = ReadEcPoint(G1, &(sig->T), sizeof(sig->T), T); in EpidVerifyBasicSig()
169 if (kEpidNoErr != res) { in EpidVerifyBasicSig()
170 if (kEpidBadArgErr == res) { in EpidVerifyBasicSig()
171 res = kEpidSigInvalid; in EpidVerifyBasicSig()
176 res = ReadFfElement(Fp, &(sig->c), sizeof(sig->c), c); in EpidVerifyBasicSig()
177 if (kEpidNoErr != res) { in EpidVerifyBasicSig()
178 if (kEpidBadArgErr == res) { in EpidVerifyBasicSig()
179 res = kEpidSigInvalid; in EpidVerifyBasicSig()
183 res = WriteFfElement(Fp, c, &c_str, sizeof(c_str)); in EpidVerifyBasicSig()
184 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
185 res = ReadFfElement(Fp, &(sig->sx), sizeof(sig->sx), sx); in EpidVerifyBasicSig()
186 if (kEpidNoErr != res) { in EpidVerifyBasicSig()
187 if (kEpidBadArgErr == res) { in EpidVerifyBasicSig()
188 res = kEpidSigInvalid; in EpidVerifyBasicSig()
192 res = ReadFfElement(Fp, &(sig->sf), sizeof(sig->sf), sf); in EpidVerifyBasicSig()
193 if (kEpidNoErr != res) { in EpidVerifyBasicSig()
194 if (kEpidBadArgErr == res) { in EpidVerifyBasicSig()
195 res = kEpidSigInvalid; in EpidVerifyBasicSig()
199 res = ReadFfElement(Fp, &(sig->sa), sizeof(sig->sa), sa); in EpidVerifyBasicSig()
200 if (kEpidNoErr != res) { in EpidVerifyBasicSig()
201 if (kEpidBadArgErr == res) { in EpidVerifyBasicSig()
202 res = kEpidSigInvalid; in EpidVerifyBasicSig()
206 res = ReadFfElement(Fp, &(sig->sb), sizeof(sig->sb), sb); in EpidVerifyBasicSig()
207 if (kEpidNoErr != res) { in EpidVerifyBasicSig()
208 if (kEpidBadArgErr == res) { in EpidVerifyBasicSig()
209 res = kEpidSigInvalid; in EpidVerifyBasicSig()
214 res = FfNeg(Fp, c, nc); in EpidVerifyBasicSig()
215 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
217 res = FfNeg(Fp, sx, nsx); in EpidVerifyBasicSig()
218 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
220 res = WriteFfElement(Fp, sf, &sf_str, sizeof(sf_str)); in EpidVerifyBasicSig()
221 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
222 res = WriteFfElement(Fp, nc, &nc_str, sizeof(nc_str)); in EpidVerifyBasicSig()
223 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
231 res = EcMultiExp(G1, points, exponents, COUNT_OF(points), R1); in EpidVerifyBasicSig()
232 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
235 res = WriteFfElement(Fp, nsx, &nsx_str, sizeof(nsx_str)); in EpidVerifyBasicSig()
236 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
244 res = EcMultiExp(G2, points, exponents, COUNT_OF(points), t1); in EpidVerifyBasicSig()
245 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
248 res = Pairing(ctx->epid2_params->pairing_state, T, t1, R2); in EpidVerifyBasicSig()
249 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
252 res = WriteFfElement(Fp, sb, &sb_str, sizeof(sb_str)); in EpidVerifyBasicSig()
253 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
254 res = WriteFfElement(Fp, sa, &sa_str, sizeof(sa_str)); in EpidVerifyBasicSig()
255 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
267 res = FfMultiExp(GT, points, exponents, COUNT_OF(points), t2); in EpidVerifyBasicSig()
268 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
271 res = FfMul(GT, R2, t2, R2); in EpidVerifyBasicSig()
272 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
276 res = SetCalculatedCommitValues(&sig->B, &sig->K, &sig->T, R1, G1, R2, GT, in EpidVerifyBasicSig()
278 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
279 res = CalculateCommitmentHash(&commit_values, Fp, ctx->hash_alg, msg, in EpidVerifyBasicSig()
281 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
283 res = FfIsEqual(Fp, c, c_hash, &cmp_result); in EpidVerifyBasicSig()
284 BREAK_ON_EPID_ERROR(res); in EpidVerifyBasicSig()
288 res = kEpidSigInvalid; in EpidVerifyBasicSig()
292 res = kEpidNoErr; in EpidVerifyBasicSig()
315 return (res); in EpidVerifyBasicSig()