Top Fields Constructors Methods
org.bouncycastle.crypto.threshold

public Class ShamirSplitSecret

extends Object
implements SplitSecret
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.threshold.SplitSecret
Imports
java.io.IOException

Field Summary

Modifier and TypeField and Description
private final Polynomial
private final ShamirSplitSecretShare[]

Constructor Summary

AccessConstructor and Description
public
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ShamirSplitSecret
divide(int div)

public byte[]
getSecret()

Implements org.bouncycastle.crypto.threshold.SplitSecret.getSecret.

Recombines secret shares to reconstruct the original secret.

public ShamirSplitSecretShare[]
public ShamirSplitSecret
multiple(int mul)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

polyback to summary
private final Polynomial poly
secretSharesback to summary
private final ShamirSplitSecretShare[] secretShares

Constructor Detail

ShamirSplitSecretback to summary
public ShamirSplitSecret(ShamirSecretSplitter.Algorithm algorithm, ShamirSecretSplitter.Mode mode, ShamirSplitSecretShare[] secretShares)
ShamirSplitSecretback to summary
pack-priv ShamirSplitSecret(Polynomial poly, ShamirSplitSecretShare[] secretShares)

Method Detail

divideback to summary
public ShamirSplitSecret divide(int div) throws IOException
getSecretback to summary
public byte[] getSecret() throws IOException

Implements org.bouncycastle.crypto.threshold.SplitSecret.getSecret.

Doc from org.bouncycastle.crypto.threshold.SplitSecret.getSecret.

Recombines secret shares to reconstruct the original secret.

Returns:byte[]

A byte array containing the reconstructed secret.

Annotations
@Override
getSecretSharesback to summary
public ShamirSplitSecretShare[] getSecretShares()

Implements org.bouncycastle.crypto.threshold.SplitSecret.getSecretShares.

multipleback to summary
public ShamirSplitSecret multiple(int mul) throws IOException