• Home
  • Raw
  • Download

Lines Matching refs:result

57   EpidStatus result = kEpidErr;  in EpidDecompressPrivKey()  local
76 result = CreateEpid2Params(&epid2_params); in EpidDecompressPrivKey()
77 if (kEpidNoErr != result) { in EpidDecompressPrivKey()
78 return result; in EpidDecompressPrivKey()
102 result = NewEcPoint(G1, &priv_key_.A); in EpidDecompressPrivKey()
103 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
104 result = NewFfElement(Fp, &priv_key_.x); in EpidDecompressPrivKey()
105 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
106 result = NewFfElement(Fp, &priv_key_.f); in EpidDecompressPrivKey()
107 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
109 result = NewFfElement(Fq, &Ax); in EpidDecompressPrivKey()
110 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
111 result = NewEcPoint(G2, &t1); in EpidDecompressPrivKey()
112 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
113 result = NewEcPoint(G1, &t2); in EpidDecompressPrivKey()
114 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
115 result = NewFfElement(GT, &t3); in EpidDecompressPrivKey()
116 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
117 result = NewFfElement(GT, &t4); in EpidDecompressPrivKey()
118 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
119 result = NewBigNum(sizeof(BigNumStr), &bn_pminus1); in EpidDecompressPrivKey()
120 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
121 result = NewBigNum(sizeof(bn_one_str), &bn_one); in EpidDecompressPrivKey()
122 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
124 result = NewEcPoint(G1, &h1); in EpidDecompressPrivKey()
125 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
126 result = ReadEcPoint(G1, &(pub_key->h1), sizeof(pub_key->h1), h1); in EpidDecompressPrivKey()
127 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
128 result = NewEcPoint(G2, &w); in EpidDecompressPrivKey()
129 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
130 result = ReadEcPoint(G2, &(pub_key->w), sizeof(pub_key->w), w); in EpidDecompressPrivKey()
131 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
133 result = WriteBigNum(p, sizeof(p_str), &p_str); in EpidDecompressPrivKey()
134 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
136 result = ReadBigNum(&bn_one_str, sizeof(bn_one_str), bn_one); in EpidDecompressPrivKey()
137 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
143 result = in EpidDecompressPrivKey()
145 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
147 result = ReadFfElement(Fq, &compressed_privkey->ax, in EpidDecompressPrivKey()
149 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
150 result = EcMakePoint(G1, Ax, priv_key_.A); in EpidDecompressPrivKey()
151 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
155 result = EcSscmExp(G2, g2, (BigNumStr const*)&priv_key->x, t1); in EpidDecompressPrivKey()
156 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
158 result = EcMul(G2, t1, w, t1); in EpidDecompressPrivKey()
159 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
161 result = Pairing(ps_ctx, priv_key_.A, t1, t3); in EpidDecompressPrivKey()
162 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
164 result = EcSscmExp(G1, h1, (BigNumStr const*)&priv_key->f, t2); in EpidDecompressPrivKey()
165 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
167 result = EcMul(G1, t2, g1, t2); in EpidDecompressPrivKey()
168 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
170 result = Pairing(ps_ctx, t2, g2, t4); in EpidDecompressPrivKey()
171 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
173 result = FfIsEqual(GT, t3, t4, &is_valid); in EpidDecompressPrivKey()
174 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
177 result = BigNumSub(p, bn_one, bn_pminus1); in EpidDecompressPrivKey()
178 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
179 result = FfExp(GT, t3, bn_pminus1, t3); in EpidDecompressPrivKey()
180 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
183 result = FfIsEqual(GT, t3, t4, &is_valid); in EpidDecompressPrivKey()
184 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
186 result = kEpidBadArgErr; // Invalid Member key in EpidDecompressPrivKey()
190 result = EcInverse(G1, priv_key_.A, priv_key_.A); in EpidDecompressPrivKey()
191 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
197 result = WriteEcPoint(G1, priv_key_.A, &priv_key->A, sizeof(priv_key->A)); in EpidDecompressPrivKey()
198 BREAK_ON_EPID_ERROR(result); in EpidDecompressPrivKey()
200 result = kEpidNoErr; in EpidDecompressPrivKey()
217 return result; in EpidDecompressPrivKey()
228 EpidStatus result = kEpidErr; in DeriveXF() local
248 result = NewBigNum(sizeof(*p), &bn_p); in DeriveXF()
249 BREAK_ON_EPID_ERROR(result); in DeriveXF()
250 result = ReadBigNum(p, sizeof(*p), bn_p); in DeriveXF()
251 BREAK_ON_EPID_ERROR(result); in DeriveXF()
253 result = NewBigNum(sizeof(digest), &bn_x); in DeriveXF()
254 BREAK_ON_EPID_ERROR(result); in DeriveXF()
255 result = NewBigNum(sizeof(digest), &bn_f); in DeriveXF()
256 BREAK_ON_EPID_ERROR(result); in DeriveXF()
262 result = Sha256MessageDigest(&hashbuf, sizeof(hashbuf), &digest[0]); in DeriveXF()
263 BREAK_ON_EPID_ERROR(result); in DeriveXF()
265 result = Sha256MessageDigest(&hashbuf, sizeof(hashbuf), &digest[1]); in DeriveXF()
266 BREAK_ON_EPID_ERROR(result); in DeriveXF()
268 result = ReadBigNum(&digest, sizeof(digest), bn_x); in DeriveXF()
269 BREAK_ON_EPID_ERROR(result); in DeriveXF()
271 result = BigNumMod(bn_x, bn_p, bn_x); in DeriveXF()
272 BREAK_ON_EPID_ERROR(result); in DeriveXF()
274 result = WriteBigNum(bn_x, sizeof(str512), str512); in DeriveXF()
275 BREAK_ON_EPID_ERROR(result); in DeriveXF()
283 result = Sha256MessageDigest(&hashbuf, sizeof(hashbuf), &digest[0]); in DeriveXF()
284 BREAK_ON_EPID_ERROR(result); in DeriveXF()
286 result = Sha256MessageDigest(&hashbuf, sizeof(hashbuf), &digest[1]); in DeriveXF()
287 BREAK_ON_EPID_ERROR(result); in DeriveXF()
289 result = ReadBigNum(&digest, sizeof(digest), bn_f); in DeriveXF()
290 BREAK_ON_EPID_ERROR(result); in DeriveXF()
292 result = BigNumMod(bn_f, bn_p, bn_f); in DeriveXF()
293 BREAK_ON_EPID_ERROR(result); in DeriveXF()
295 result = WriteBigNum(bn_f, sizeof(str512), str512); in DeriveXF()
296 BREAK_ON_EPID_ERROR(result); in DeriveXF()
300 result = kEpidNoErr; in DeriveXF()
307 return result; in DeriveXF()