Package org.magmacollective.libsss
Class SSS
- java.lang.Object
-
- org.magmacollective.libsss.SSS
-
public class SSS extends java.lang.ObjectShamirs secret sharing
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSSS.LibSSS
-
Field Summary
Fields Modifier and Type Field Description static intCLENstatic intKEYSHARE_LENstatic intMAX_SHARESstatic intMLENstatic intSHARE_LEN
-
Constructor Summary
Constructors Constructor Description SSS()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]combineKeyshares(java.util.List<byte[]> shares)static byte[]combineShares(java.util.List<byte[]> shares)static java.util.List<byte[]>createKeyshares(byte[] data, int n, int k)static java.util.List<byte[]>createShares(byte[] data, int n, int k)
-
-
-
Field Detail
-
KEYSHARE_LEN
public static final int KEYSHARE_LEN
- See Also:
- Constant Field Values
-
MLEN
public static final int MLEN
- See Also:
- Constant Field Values
-
CLEN
public static final int CLEN
- See Also:
- Constant Field Values
-
SHARE_LEN
public static final int SHARE_LEN
- See Also:
- Constant Field Values
-
MAX_SHARES
public static final int MAX_SHARES
- See Also:
- Constant Field Values
-
-
Method Detail
-
createShares
public static java.util.List<byte[]> createShares(byte[] data, int n, int k)
-
combineShares
public static byte[] combineShares(java.util.List<byte[]> shares)
-
createKeyshares
public static java.util.List<byte[]> createKeyshares(byte[] data, int n, int k)
-
combineKeyshares
public static byte[] combineKeyshares(java.util.List<byte[]> shares)
-
-