Top Description Methods
org.bouncycastle.crypto.threshold

public Interface SecretSplitter

Known Direct Implementers
org.bouncycastle.crypto.threshold.ShamirSecretSplitter
Imports
java.io.IOException

Secret sharing (also called secret splitting) refers to methods for distributing a secret among a group. In this process, no individual holds any intelligible information about the secret. However, when a sufficient number of individuals combine their 'shares', the secret can be reconstructed.

Method Summary

Modifier and TypeMethod and Description
public SplitSecret

Returns:

An array of byte[][] representing the generated secret shares for m users with l bytes each.
resplit
(byte[] secret, int
A threshold number of shares
m
,
int
Total number of shares
n
)

Creates secret shares from a given secret.

public SplitSecret

Returns:

An array of byte[][] representing the generated secret shares for m users with l bytes each.
split
(int
A threshold number of shares
m
,
int
Total number of shares
n
)

Creates secret shares.

public SplitSecret

Returns:

An array of byte[][] representing the generated secret shares for m users with l bytes each.
splitAround
(SecretShare s, int
A threshold number of shares
m
,
int
Total number of shares
n
)

Creates secret shares from a given secret share.

Method Detail

resplitback to summary
public SplitSecret resplit(byte[] secret, int m, int n)

Creates secret shares from a given secret. The secret will be divided into shares, where the secret has a length of L bytes.

Parameters
m:int

A threshold number of shares

n:int

Total number of shares

Returns:SplitSecret

An array of byte[][] representing the generated secret shares for m users with l bytes each.

splitback to summary
public SplitSecret split(int m, int n)

Creates secret shares. The secret will be divided into shares, where the secret has a length of L bytes.

Parameters
m:int

A threshold number of shares

n:int

Total number of shares

Returns:SplitSecret

An array of byte[][] representing the generated secret shares for m users with l bytes each.

splitAroundback to summary
public SplitSecret splitAround(SecretShare s, int m, int n) throws IOException

Creates secret shares from a given secret share. The secret will be divided into shares, where the secret has a length of L bytes.

Parameters
m:int

A threshold number of shares

n:int

Total number of shares

Returns:SplitSecret

An array of byte[][] representing the generated secret shares for m users with l bytes each.