Lines Matching refs:sts

52   EpidStatus sts = kEpidErr;  in EpidNrVerify()  local
96 sts = kEpidMemAllocErr; in EpidNrVerify()
101 sts = NewEcPoint(G1, &t_pt); in EpidNrVerify()
102 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
103 sts = NewEcPoint(G1, &k_pt); in EpidNrVerify()
104 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
105 sts = NewEcPoint(G1, &b_pt); in EpidNrVerify()
106 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
107 sts = NewEcPoint(G1, &kp_pt); in EpidNrVerify()
108 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
109 sts = NewEcPoint(G1, &bp_pt); in EpidNrVerify()
110 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
111 sts = NewEcPoint(G1, &r1_pt); in EpidNrVerify()
112 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
113 sts = NewEcPoint(G1, &r2_pt); in EpidNrVerify()
114 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
115 sts = NewFfElement(Fp, &c_el); in EpidNrVerify()
116 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
117 sts = NewFfElement(Fp, &nc_el); in EpidNrVerify()
118 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
119 sts = NewFfElement(Fp, &smu_el); in EpidNrVerify()
120 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
121 sts = NewFfElement(Fp, &snu_el); in EpidNrVerify()
122 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
123 sts = NewFfElement(Fp, &commit_hash); in EpidNrVerify()
124 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
127 sts = ReadEcPoint(G1, &proof->T, sizeof(proof->T), t_pt); in EpidNrVerify()
128 if (kEpidNoErr != sts) { in EpidNrVerify()
129 sts = kEpidBadArgErr; in EpidNrVerify()
134 sts = EcIsIdentity(G1, t_pt, &t_is_identity); in EpidNrVerify()
135 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
137 sts = kEpidBadArgErr; in EpidNrVerify()
142 sts = ReadFfElement(Fp, &proof->c, sizeof(proof->c), c_el); in EpidNrVerify()
143 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
144 sts = ReadFfElement(Fp, &proof->smu, sizeof(proof->smu), smu_el); in EpidNrVerify()
145 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
146 sts = ReadFfElement(Fp, &proof->snu, sizeof(proof->snu), snu_el); in EpidNrVerify()
147 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
150 sts = FfNeg(Fp, c_el, nc_el); in EpidNrVerify()
151 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
153 sts = WriteFfElement(Fp, nc_el, &nc_str, sizeof(nc_str)); in EpidNrVerify()
154 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
157 sts = ReadEcPoint(G1, k, sizeof(*k), k_pt); in EpidNrVerify()
158 if (kEpidNoErr != sts) { in EpidNrVerify()
159 sts = kEpidBadArgErr; in EpidNrVerify()
162 sts = ReadEcPoint(G1, b, sizeof(*b), b_pt); in EpidNrVerify()
163 if (kEpidNoErr != sts) { in EpidNrVerify()
164 sts = kEpidBadArgErr; in EpidNrVerify()
171 sts = EcMultiExp(G1, r1p, (const BigNumStr**)r1b, 2, r1_pt); in EpidNrVerify()
172 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
175 sts = ReadEcPoint(G1, kp, sizeof(*kp), kp_pt); in EpidNrVerify()
176 if (kEpidNoErr != sts) { in EpidNrVerify()
177 sts = kEpidBadArgErr; in EpidNrVerify()
180 sts = ReadEcPoint(G1, bp, sizeof(*bp), bp_pt); in EpidNrVerify()
181 if (kEpidNoErr != sts) { in EpidNrVerify()
182 sts = kEpidBadArgErr; in EpidNrVerify()
191 sts = EcMultiExp(G1, r2p, (const BigNumStr**)r2b, 3, r2_pt); in EpidNrVerify()
192 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
203 sts = kEpidBadArgErr; in EpidNrVerify()
214 sts = in EpidNrVerify()
216 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
217 sts = in EpidNrVerify()
219 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
220 sts = FfHash(Fp, commit_values, commit_len, ctx->hash_alg, commit_hash); in EpidNrVerify()
221 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
222 sts = FfIsEqual(Fp, c_el, commit_hash, &c_is_equal); in EpidNrVerify()
223 BREAK_ON_EPID_ERROR(sts); in EpidNrVerify()
225 sts = kEpidBadArgErr; in EpidNrVerify()
228 sts = kEpidNoErr; in EpidNrVerify()
243 return sts; in EpidNrVerify()