Element gammaToi = pairing.getZr().newOneElement();
for (int i = 1; i < hs.length; i++) {
gammaToi = gammaToi.mulZn(gamma).getImmutable();
hs[i] = hs[0].powZn(gammaToi).getImmutable();
}
<BUG>return new AsymmetricCipherKeyPair(

new IBBEDel07PublicKeySerParameter(parameters, w, v, hs),

new IBBEDel07MasterSecretKeySerParameter(parameters, g, gamma));
</BUG>
}

Element gammaToi = pairing.getZr().newOneElement();
for (int i = 1; i < hs.length; i++) {
gammaToi = gammaToi.mulZn(gamma).getImmutable();
hs[i] = hs[0].powZn(gammaToi).getImmutable();
