public class CramerShoupCiphertext extends Object
Constructor and Description |
---|
CramerShoupCiphertext() |
CramerShoupCiphertext(BigInteger u1,
BigInteger u2,
BigInteger e,
BigInteger v) |
CramerShoupCiphertext(byte[] c) |
Modifier and Type | Method and 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 length
|
String |
toString() |
public CramerShoupCiphertext()
public CramerShoupCiphertext(BigInteger u1, BigInteger u2, BigInteger e, BigInteger v)
public CramerShoupCiphertext(byte[] c)
public BigInteger getU1()
public void setU1(BigInteger u1)
public BigInteger getU2()
public void setU2(BigInteger u2)
public BigInteger getE()
public void setE(BigInteger e)
public BigInteger getV()
public void setV(BigInteger v)
public byte[] toByteArray()
Copyright © 2017 BouncyCastle.org. All rights reserved.