Skip to content

Commit 8140a6c

Browse files
committed
fix IB_CH_KEF_CZS_2014
Skip Action
1 parent 9a40681 commit 8140a6c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/main/java/scheme/IBCH/IB_CH_KEF_CZS_2014

src/main/java/scheme/IBCH/IB_CH_KEF_CZS_2014/PBC.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,6 @@ public void Adapt(Randomness R_p, Randomness R, PublicParam SP, SecretKey sk, El
7171
Element delta_m = m.sub(m_p);
7272
R_p.r_1 = R.r_1.mul(SP.H_G1(L).powZn(delta_m)).getImmutable();
7373
R_p.r_2 = R.r_2.mul(SP.GP.pairing(SP.H_G1(L), sk.S_ID).powZn(delta_m)).getImmutable();
74+
if(!R_p.r_2.isEqual(SP.GP.pairing(R_p.r_1, sk.S_ID))) throw new RuntimeException("adapt failed");
7475
}
7576
}

0 commit comments

Comments
 (0)