br.ufsc.das.confidentiality
Class ConfidentialityScheme
java.lang.Object
br.ufsc.das.confidentiality.ConfidentialityScheme
public class ConfidentialityScheme
- extends java.lang.Object
Field Summary |
static java.lang.String |
PRIVATE
|
static java.lang.String |
WILDCARD
|
Constructor Summary |
ConfidentialityScheme(PublicInfo publicInfo,
java.math.BigInteger[] publicKeys)
Creates a new instance of the Confidentiality Scheme. |
ConfidentialityScheme(PublicInfo publicInfo,
java.math.BigInteger[] publicKeys,
int id,
java.math.BigInteger secretKey)
Creates a new instance of the Confidentiality Scheme. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WILDCARD
public static final java.lang.String WILDCARD
- See Also:
- Constant Field Values
PRIVATE
public static final java.lang.String PRIVATE
- See Also:
- Constant Field Values
ConfidentialityScheme
public ConfidentialityScheme(PublicInfo publicInfo,
java.math.BigInteger[] publicKeys)
throws InvalidVSSScheme
- Creates a new instance of the Confidentiality Scheme. This constructor must
be called at client side.
- Throws:
InvalidVSSScheme
ConfidentialityScheme
public ConfidentialityScheme(PublicInfo publicInfo,
java.math.BigInteger[] publicKeys,
int id,
java.math.BigInteger secretKey)
throws InvalidVSSScheme
- Creates a new instance of the Confidentiality Scheme. This constructor must
be called at server side.
- Throws:
InvalidVSSScheme
getPublicInfo
public PublicInfo getPublicInfo()
getPublicKeys
public java.math.BigInteger[] getPublicKeys()
getPublicKey
public java.math.BigInteger getPublicKey(int index)
mask
public DepTuple mask(ProtectionVector protectionVector,
DepTuple tuple)
throws InvalidVSSScheme
- Throws:
InvalidVSSScheme
unmask
public DepTuple unmask(DepTuple tuple)
throws InvalidVSSScheme
- Throws:
InvalidVSSScheme
verifyTuple
public boolean verifyTuple(ProtectionVector protectionVector,
java.lang.Object[] fingerprint,
java.lang.Object[] fields)
throws InvalidVSSScheme
- Throws:
InvalidVSSScheme
extractTuple
public java.lang.Object[] extractTuple(Share[] shares)
throws InvalidVSSScheme
- Throws:
InvalidVSSScheme
fingerprint
public java.lang.Object[] fingerprint(ProtectionVector protectionVector,
java.lang.Object[] fields)
throws InvalidVSSScheme
- Throws:
InvalidVSSScheme