public class CmtElGamalHashReceiver extends CmtElGamalReceiverCore implements CmtReceiver, SecureCommit, CmtOnByteArray
The pseudo code of this protocol can be found in Protocol 3.5 of pseudo codes document at http://cryptobiu.github.io/scapi/SDK_Pseudocode.pdf.
|Constructor and Description|
This constructor receives as argument the channel and chosses default values of Dlog Group and Cryptographic Hash such that they keep the condition that the size in bytes of the resulting hash is less than the size in bytes of the order of the DlogGroup.
This constructor receives as arguments an instance of a Dlog Group and an instance of a Cryptographic Hash such that they keep the condition that the size in bytes of the resulting hash is less than the size in bytes of the order of the DlogGroup.
|Modifier and Type||Method and Description|
This function converts the given commit value to a byte array.
Verifies that the commitment was to H(x).
getCommitmentPhaseValues, getPreProcessedValues, receiveCommitment, receiveDecommitment
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public CmtElGamalHashReceiver(Channel channel) throws java.io.IOException, java.lang.ClassNotFoundException, CheatAttemptException
public CmtElGamalHashReceiver(Channel channel, DlogGroup dlog, CryptographicHash hash) throws java.lang.IllegalArgumentException, SecurityLevelException, InvalidDlogGroupException, java.lang.ClassNotFoundException, java.io.IOException, CheatAttemptException
public CmtCommitValue verifyDecommitment(CmtCCommitmentMsg commitmentMsg, CmtCDecommitmentMessage decommitmentMsg)