ostore.security.thresh
Class Dealer
java.lang.Object
|
+--ostore.security.thresh.Dealer
- public class Dealer
- extends Object
A Key Dealer for an RSA based (k,l) Threshold Signature Scheme
Reference: "Practical Threshold Signatures",
Victor Shoup (sho@zurich.ibm.com), IBM Research Paper RZ3121, 4/30/99
- Version:
- $Id: Dealer.java,v 1.7 2002/08/02 19:39:56 geels Exp $
- Author:
- Steve Weis
Constructor Summary |
Dealer(String provider,
int keysize)
Create a new instance of a key dealer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Dealer
public Dealer(String provider,
int keysize)
- Create a new instance of a key dealer
- Parameters:
provider
- - the provider to use for RSA KeyPair generatorkeysize
- - the size of the group key
generateKeys
public void generateKeys(int k,
int l)
throws ThresholdSigException
- Generate a group public key and l shares for a (k,l)
threshold signatures scheme
- Parameters:
k
- - k valid signatures will verifyl
- - l members of the group will receive shares- Throws:
ThresholdSigException
-
getGroupKey
public ostore.security.thresh.GroupKey getGroupKey()
throws ThresholdSigException
- Returns the group key
getPublicKey
public ThresholdPublicKey getPublicKey()
throws ThresholdSigException
getShares
public KeyShare[] getShares()
throws ThresholdSigException
- Returns the initialized secret key shares
main
public static void main(String[] args)