|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.security.thresh.KeyShare
A Secret Key Share for an RSA (k,l) Threshold Scheme.
Reference: "Practical Threshold Signatures", Victor Shoup (sho@zurich.ibm.com), IBM Research Paper RZ3121, 4/30/99
Constructor Summary | |
KeyShare(byte[] data,
int[] offset)
|
|
KeyShare(int id,
BigInteger secret,
BigInteger n,
BigInteger delta)
Create a new share |
Method Summary | |
void |
add_to_digest(SecureHashBuffer buffer)
Adds this object's state to the specified SecureHashBuffer using the various add
methods. |
int |
getId()
|
BigInteger |
getSecret()
|
BigInteger |
getSignVal()
|
BigInteger |
getVerifier()
|
void |
setVerifiers(BigInteger verifier,
BigInteger groupVerifier)
|
SigShare |
sign(byte[] data)
Create a SigShare and a Verifier for byte[] b Refer to Shoup pg. |
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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public KeyShare(byte[] data, int[] offset) throws QSException
public KeyShare(int id, BigInteger secret, BigInteger n, BigInteger delta)
id
- - the identifier of this sharesecret
- - a secret value generated by a Dealern
- - the modulo of the group public keydelta
- - l! (group size factorial)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 int getId()
public BigInteger getSecret()
public void setVerifiers(BigInteger verifier, BigInteger groupVerifier)
public BigInteger getVerifier()
public BigInteger getSignVal()
public String toString()
toString
in class Object
public SigShare sign(byte[] data)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |