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