Top Fields Constructors Methods
org.bouncycastle.crypto.threshold

public Class ShamirSplitSecretShare

extends Object
implements SecretShare
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.threshold.SecretShare, org.bouncycastle.util.Encodable
Imports
java.io.IOException, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
pack-priv final int
r

private final byte[]

Constructor Summary

AccessConstructor and Description
public
ShamirSplitSecretShare(byte[] secretShare, int r)

public
ShamirSplitSecretShare(byte[] secretShare)

Method Summary

Modifier and TypeMethod and Description
public byte[]
getEncoded()

Implements org.bouncycastle.util.Encodable.getEncoded.

Return a byte array representing the implementing object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

rback to summary
pack-priv final int r
secretShareback to summary
private final byte[] secretShare

Constructor Detail

ShamirSplitSecretShareback to summary
public ShamirSplitSecretShare(byte[] secretShare, int r)
ShamirSplitSecretShareback to summary
public ShamirSplitSecretShare(byte[] secretShare)

Method Detail

getEncodedback to summary
public byte[] getEncoded() throws IOException

Implements org.bouncycastle.util.Encodable.getEncoded.

Doc from org.bouncycastle.util.Encodable.getEncoded.

Return a byte array representing the implementing object.

Returns:byte[]

a byte array representing the encoding.

Annotations
@Override
Exceptions
IOException:
if an issue arises generation the encoding.