Package org.bouncycastle.crypto.engines
Class CramerShoupCiphertext
- java.lang.Object
-
- org.bouncycastle.crypto.engines.CramerShoupCiphertext
-
public class CramerShoupCiphertext extends java.lang.ObjectClass, 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.BigIntegergetE()java.math.BigIntegergetU1()java.math.BigIntegergetU2()java.math.BigIntegergetV()voidsetE(java.math.BigInteger e)voidsetU1(java.math.BigInteger u1)voidsetU2(java.math.BigInteger u2)voidsetV(java.math.BigInteger v)byte[]toByteArray()convert the cipher-text in a byte array, prepending them with 4 Bytes for their lengthjava.lang.StringtoString()
-
-
-
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:
toStringin 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.
-
-