Package pvss

Examples of pvss.PublicInfo


    public void setPVSSinfo(String[] info) {
//        if (info.length < 5) {
//            throw new RuntimeException("PVSS public info requires 5 parameters");
//        }
        this.info = new PublicInfo(Integer.parseInt(info[0]),
                Integer.parseInt(info[1]), new BigInteger(info[2]),
                new BigInteger(info[3]), new BigInteger(info[4]));
    }
View Full Code Here


  private Share[] getKeyShares(
      DepSkySDataUnit reg, byte[] secretkey) throws Exception {


    PVSSEngine engine = PVSSEngine.getInstance(N, T, NUM_BITS);
    PublicInfo info = engine.getPublicInfo();
    reg.setPVSSinfo(info);
    BigInteger[] secretKeys = engine.generateSecretKeys();
    BigInteger[] publicKeys = new BigInteger[N];
    for (int i = 0; i < N; i++) {
      publicKeys[i] = engine.generatePublicKey(secretKeys[i]);
View Full Code Here

TOP

Related Classes of pvss.PublicInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.