We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a40681 commit 8140a6cCopy full SHA for 8140a6c
1 file changed
src/main/java/scheme/IBCH/IB_CH_KEF_CZS_2014/PBC.java
@@ -71,5 +71,6 @@ public void Adapt(Randomness R_p, Randomness R, PublicParam SP, SecretKey sk, El
71
Element delta_m = m.sub(m_p);
72
R_p.r_1 = R.r_1.mul(SP.H_G1(L).powZn(delta_m)).getImmutable();
73
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");
75
}
76
0 commit comments