Class ShamirSplitSecretShare
java.lang.Object
org.bouncycastle.crypto.threshold.ShamirSplitSecretShare
- All Implemented Interfaces:
SecretShare
,Encodable
-
Constructor Summary
ConstructorsConstructorDescriptionShamirSplitSecretShare
(byte[] secretShare) ShamirSplitSecretShare
(byte[] secretShare, int r) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Return a byte array representing the implementing object.
-
Constructor Details
-
ShamirSplitSecretShare
public ShamirSplitSecretShare(byte[] secretShare, int r) -
ShamirSplitSecretShare
public ShamirSplitSecretShare(byte[] secretShare)
-
-
Method Details
-
getEncoded
Description copied from interface:Encodable
Return a byte array representing the implementing object.- Specified by:
getEncoded
in interfaceEncodable
- Returns:
- a byte array representing the encoding.
- Throws:
IOException
- if an issue arises generation the encoding.
-