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
 
Method Summary
 void generateKeys(int k, int l)
          Generate a group public key and l shares for a (k,l)
threshold signatures scheme
 ostore.security.thresh.GroupKey getGroupKey()
          Returns the group key
 ThresholdPublicKey getPublicKey()
           
 KeyShare[] getShares()
          Returns the initialized secret key shares
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dealer

public Dealer(String provider,
              int keysize)
Create a new instance of a key dealer

Parameters:
provider - - the provider to use for RSA KeyPair generator
keysize - - the size of the group key
Method Detail

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 verify
l - - l members of the group will receive shares
Throws:
ThresholdSigException

getGroupKey

public ostore.security.thresh.GroupKey getGroupKey()
                                            throws ThresholdSigException
Returns the group key

ThresholdSigException

getPublicKey

public ThresholdPublicKey getPublicKey()
                                throws ThresholdSigException
ThresholdSigException

getShares

public KeyShare[] getShares()
                     throws ThresholdSigException
Returns the initialized secret key shares

ThresholdSigException

main

public static void main(String[] args)