public class ShamirSplitSecret extends java.lang.Object implements SplitSecret
| Constructor and Description |
|---|
ShamirSplitSecret(ShamirSecretSplitter.Algorithm algorithm,
ShamirSecretSplitter.Mode mode,
ShamirSplitSecretShare[] secretShares) |
| Modifier and Type | Method and Description |
|---|---|
ShamirSplitSecret |
divide(int div) |
byte[] |
getSecret()
Recombines secret shares to reconstruct the original secret.
|
ShamirSplitSecretShare[] |
getSecretShares() |
ShamirSplitSecret |
multiple(int mul) |
public ShamirSplitSecret(ShamirSecretSplitter.Algorithm algorithm, ShamirSecretSplitter.Mode mode, ShamirSplitSecretShare[] secretShares)
public ShamirSplitSecretShare[] getSecretShares()
getSecretShares in interface SplitSecretpublic ShamirSplitSecret multiple(int mul) throws java.io.IOException
java.io.IOExceptionpublic ShamirSplitSecret divide(int div) throws java.io.IOException
java.io.IOExceptionpublic byte[] getSecret()
throws java.io.IOException
SplitSecretgetSecret in interface SplitSecretjava.io.IOException