|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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(byte[] data,
int[] offset)
|
|
SigShare(int id,
BigInteger sig,
ostore.security.thresh.Verifier sigVerifier)
|
|
SigShare(int id,
byte[] sig)
|
Method Summary | |
void |
add_to_digest(SecureHashBuffer buffer)
Adds this object's state to the specified SecureHashBuffer using the various add
methods. |
static byte[] |
createSignature(SigShare[] sigs)
|
byte[] |
getBytes()
Return a byte array representation of this signature |
int |
getId()
Return this share's id. |
BigInteger |
getSig()
Return a BigInteger representation of this signature |
ostore.security.thresh.Verifier |
getSigVerifier()
Return this signature's verifier |
void |
to_bytes(byte[] data,
int[] offset)
Store the object in its "on the wire" form in the byte array data , starting at index offset [0] , and
increment offset [0] by the number of bytes written;
if data == null , increment offset [0] by
the number of bytes that would have been written otherwise. |
String |
toString()
|
int |
type_code()
Returns the unique integer associated with this class in the TypeTable . |
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SigShare(int id, BigInteger sig, ostore.security.thresh.Verifier sigVerifier)
public SigShare(int id, byte[] sig)
public SigShare(byte[] data, int[] offset) throws QSException
Method Detail |
public void to_bytes(byte[] data, int[] offset)
QuickSerializable
data
, starting at index offset [0]
, and
increment offset [0]
by the number of bytes written;
if data == null
, increment offset [0]
by
the number of bytes that would have been written otherwise.to_bytes
in interface QuickSerializable
ostore.util.QuickSerializable
data
- The byte array to store into, or null
.offset
- A single element array whose first
element is the index in data to begin writing at on
function entry, and which on function exit has been
incremented by the number of bytes written.public int type_code()
QuickSerializable
TypeTable
.type_code
in interface QuickSerializable
ostore.util.QuickSerializable
public void add_to_digest(SecureHashBuffer buffer)
Digestible
SecureHashBuffer
using the various add
methods.add_to_digest
in interface Digestible
ostore.util.Digestible
SecureHashBuffer.add( byte )
,
SecureHashBuffer.add( byte[] )
,
SecureHashBuffer.add( byte[], int, int )
,
SecureHashBuffer.add( Digestible )
public static byte[] createSignature(SigShare[] sigs)
public int getId()
public BigInteger getSig()
public ostore.security.thresh.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, SigShare[] sigs, ThresholdPublicKey public_key) throws ThresholdSigException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |