|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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(InputBuffer buffer)
|
|
KeyShare(int id,
SafeBigInt secret,
SafeBigInt n,
SafeBigInt delta)
Create a new share |
Method Summary | |
---|---|
int |
getId()
|
SafeBigInt |
getSecret()
|
SafeBigInt |
getSignVal()
|
SafeBigInt |
getVerifier()
|
void |
serialize(OutputBuffer buffer)
Add the object to the buffer . |
void |
setVerifiers(SafeBigInt verifier,
SafeBigInt groupVerifier)
|
SigShare |
sign_using_c(SafeBigInt x,
SafeBigInt n,
SafeBigInt r,
boolean debug)
|
SigShare |
sign(byte[] b)
Create a SigShare and a Verifier for byte[] b Refer to Shoup pg. 8 |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public KeyShare(InputBuffer buffer) throws QSException
public KeyShare(int id, SafeBigInt secret, SafeBigInt n, SafeBigInt 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 serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object topublic int getId()
public SafeBigInt getSecret()
public void setVerifiers(SafeBigInt verifier, SafeBigInt groupVerifier)
public SafeBigInt getVerifier()
public SafeBigInt getSignVal()
public String toString()
toString
in class Object
public SigShare sign(byte[] b)
public SigShare sign_using_c(SafeBigInt x, SafeBigInt n, SafeBigInt r, boolean debug)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |