first step of v2 final release

This commit is contained in:
Zhi Guan
2017-11-05 21:00:36 +08:00
parent 480b9e8d88
commit 27bde477a5
395 changed files with 26341 additions and 31364 deletions

View File

@@ -441,7 +441,7 @@ end:
/*
* c->u = HashToRange(DoubleHash(c->Chi0, c->Chi1, y, wbuf))
*/
static int BB1CiphertextBlock_hash_to_range(BB1PublicParameters *mpk,
int BB1CiphertextBlock_hash_to_range(BB1PublicParameters *mpk,
BB1CiphertextBlock *c, const unsigned char *wbuf, size_t wbuflen,
BIGNUM *bn, BN_CTX *bn_ctx)
{
@@ -846,10 +846,12 @@ int BB1IBE_do_decrypt(BB1PublicParameters *mpk,
}
/* h = H(ciphertext||w) */
#if 0
//remove warning
if (!BB1CiphertextBlock_hash_to_range(mpk, in, wbuf, wbuflen, h, bn_ctx)) {
goto end;
}
#endif
/* s = in->nu - H(c) */
if (!BN_mod_sub(s, in->nu, h, mpk->q, bn_ctx)) {