Package org.bouncycastle.crypto.engines
Class CramerShoupCiphertext
- java.lang.Object
-
- org.bouncycastle.crypto.engines.CramerShoupCiphertext
-
public class CramerShoupCiphertext extends Object
Class, holding Cramer Shoup ciphertexts (u1, u2, e, v)
-
-
Constructor Summary
Constructors Constructor Description CramerShoupCiphertext()
CramerShoupCiphertext(byte[] c)
CramerShoupCiphertext(BigInteger u1, BigInteger u2, BigInteger e, BigInteger v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigInteger
getE()
BigInteger
getU1()
BigInteger
getU2()
BigInteger
getV()
void
setE(BigInteger e)
void
setU1(BigInteger u1)
void
setU2(BigInteger u2)
void
setV(BigInteger v)
byte[]
toByteArray()
convert the cipher-text in a byte array, prepending them with 4 Bytes for their lengthString
toString()
-
-
-
Constructor Detail
-
CramerShoupCiphertext
public CramerShoupCiphertext()
-
CramerShoupCiphertext
public CramerShoupCiphertext(BigInteger u1, BigInteger u2, BigInteger e, BigInteger v)
-
CramerShoupCiphertext
public CramerShoupCiphertext(byte[] c)
-
-
Method Detail
-
getU1
public BigInteger getU1()
-
setU1
public void setU1(BigInteger u1)
-
getU2
public BigInteger getU2()
-
setU2
public void setU2(BigInteger u2)
-
getE
public BigInteger getE()
-
setE
public void setE(BigInteger e)
-
getV
public BigInteger getV()
-
setV
public void setV(BigInteger v)
-
toByteArray
public byte[] toByteArray()
convert the cipher-text in a byte array, prepending them with 4 Bytes for their length- Returns:
- a byte array of the cipher text.
-
-