Class CramerShoupCiphertext
java.lang.Object
org.bouncycastle.crypto.engines.CramerShoupCiphertext
Class, holding Cramer Shoup ciphertexts (u1, u2, e, v)
-
Constructor Summary
ConstructorsConstructorDescriptionCramerShoupCiphertext(byte[] c) CramerShoupCiphertext(BigInteger u1, BigInteger u2, BigInteger e, BigInteger v) -
Method Summary
Modifier and TypeMethodDescriptiongetE()getU1()getU2()getV()voidsetE(BigInteger e) voidsetU1(BigInteger u1) voidsetU2(BigInteger u2) voidsetV(BigInteger v) byte[]convert the cipher-text in a byte array, prepending them with 4 Bytes for their lengthtoString()
-
Constructor Details
-
CramerShoupCiphertext
public CramerShoupCiphertext() -
CramerShoupCiphertext
-
CramerShoupCiphertext
public CramerShoupCiphertext(byte[] c)
-
-
Method Details
-
getU1
-
setU1
-
getU2
-
setU2
-
getE
-
setE
-
getV
-
setV
-
toString
-
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.
-