Top Description Fields Constructors Methods
org.bouncycastle.crypto.engines

public Class CramerShoupCiphertext

extends Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.util.Arrays, .Pack

Class, holding Cramer Shoup ciphertexts (u1, u2, e, v)

Field Summary

Modifier and TypeField and Description
pack-priv BigInteger
e

pack-priv BigInteger
pack-priv BigInteger
pack-priv BigInteger
v

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public BigInteger
getE()

public BigInteger
public BigInteger
public BigInteger
getV()

public void
public void
public void
public void
public byte[]

Returns:

a byte array of the cipher text.
toByteArray
()

convert the cipher-text in a byte array, prepending them with 4 Bytes for their length

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

eback to summary
pack-priv BigInteger e
u1back to summary
pack-priv BigInteger u1
u2back to summary
pack-priv BigInteger u2
vback to summary
pack-priv BigInteger v

Constructor Detail

CramerShoupCiphertextback to summary
public CramerShoupCiphertext()
CramerShoupCiphertextback to summary
public CramerShoupCiphertext(BigInteger u1, BigInteger u2, BigInteger e, BigInteger v)
CramerShoupCiphertextback to summary
public CramerShoupCiphertext(byte[] c)

Method Detail

getEback to summary
public BigInteger getE()
getU1back to summary
public BigInteger getU1()
getU2back to summary
public BigInteger getU2()
getVback to summary
public BigInteger getV()
setEback to summary
public void setE(BigInteger e)
setU1back to summary
public void setU1(BigInteger u1)
setU2back to summary
public void setU2(BigInteger u2)
setVback to summary
public void setV(BigInteger v)
toByteArrayback to summary
public byte[] toByteArray()

convert the cipher-text in a byte array, prepending them with 4 Bytes for their length

Returns:byte[]

a byte array of the cipher text.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.