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 Details

    • CramerShoupCiphertext

      public CramerShoupCiphertext()
    • CramerShoupCiphertext

      public CramerShoupCiphertext(BigInteger u1, BigInteger u2, BigInteger e, BigInteger v)
    • CramerShoupCiphertext

      public CramerShoupCiphertext(byte[] c)
  • Method Details

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class 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.