|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.security.thresh.SigShare
Signature Shares Class. Associates a signature share with an id and wraps a static verifier.
Reference: "Practical Threshold Signatures", Victor Shoup (sho@zurich.ibm.com), IBM Research Paper RZ3121, 4/30/99
Constructor Summary | |
---|---|
SigShare(InputBuffer buffer)
|
|
SigShare(int id,
SafeBigInt sig,
Verifier sigVerifier)
|
Method Summary | |
---|---|
boolean |
equals(Object other)
|
byte[] |
getBytes()
Return a byte array representation of this signature |
int |
getId()
Return this share's id. |
SafeBigInt |
getSig()
Return a SafeBigInt representation of this signature |
Verifier |
getSigVerifier()
Return this signature's verifier |
static byte[] |
package_up(SigShare[] sigs,
ThresholdPublicKey public_key)
|
void |
serialize(OutputBuffer buffer)
Add the object to the buffer . |
String |
toString()
|
static boolean |
verify(byte[] data,
byte[] combined_sig,
ThresholdPublicKey public_key)
|
static boolean |
verify(byte[] data,
SigShare[] sigs,
ThresholdPublicKey public_key)
|
boolean |
verify(byte[] data,
ThresholdPublicKey public_key)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SigShare(int id, SafeBigInt sig, Verifier sigVerifier)
public SigShare(InputBuffer buffer) throws QSException
Method Detail |
public boolean equals(Object other)
equals
in class Object
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object topublic int getId()
public SafeBigInt getSig()
public Verifier getSigVerifier()
public byte[] getBytes()
public String toString()
toString
in class Object
public boolean verify(byte[] data, ThresholdPublicKey public_key)
public static boolean verify(byte[] data, byte[] combined_sig, ThresholdPublicKey public_key) throws ThresholdSigException
ThresholdSigException
public static boolean verify(byte[] data, SigShare[] sigs, ThresholdPublicKey public_key) throws ThresholdSigException
ThresholdSigException
public static byte[] package_up(SigShare[] sigs, ThresholdPublicKey public_key) throws ThresholdSigException
ThresholdSigException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |