|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
ElGamal encryption of an integer. More...

Public Member Functions | |
| ElGamalBigInteger () | |
| Used for externalization only. | |
| ElGamalBigInteger (final AddableInteger value, final int size) | |
| Constructor. | |
| ElGamalBigInteger | add (final AddableInteger other) |
| ElGamalBigInteger | min (final ElGamalBigInteger other) |
| ElGamalBigInteger | max (ElGamalBigInteger other) |
| void | readExternal (ObjectInput in) throws IOException, ClassNotFoundException |
| void | writeExternal (ObjectOutput out) throws IOException |
| Object | readResolve () |
| final boolean | externalize () |
| String | toString () |
| boolean | equals (Object o) |
| Public Member Functions inherited from frodo2.solutionSpaces.AddableLimited< A extends Addable< A >, M extends AddableLimited< A, M > | |
| M | add (A other) |
| Addition. | |
| M | min (M other) |
| Minimum. | |
| M | max (M other) |
| Maximum. | |
Package Functions | |
| ElGamalBigInteger (BigInteger[][] vector) | |
| Constructor. | |
Package Attributes | |
| BigInteger[][] | vector |
| A vector of pairs that represents this ElGamalBigInteger as [[alpha1, beta1], [alpha2, beta2], ... ]. | |
Static Private Attributes | |
| static BigInteger[] | ONE = new BigInteger[] { BigInteger.ONE, BigInteger.ONE } |
| The (unencrypted) [alpha, beta] representation of 1. | |
| static BigInteger[] | TWO = new BigInteger[] { BigInteger.ONE.add(BigInteger.ONE), BigInteger.ONE } |
| The (unencrypted) [alpha, beta] representation of 2. | |
ElGamal encryption of an integer.
| frodo2.solutionSpaces.crypto.ElGamalBigInteger.ElGamalBigInteger | ( | ) |
| frodo2.solutionSpaces.crypto.ElGamalBigInteger.ElGamalBigInteger | ( | final AddableInteger | value, |
| final int | size ) |
Constructor.
| value | the cleartext value |
| size | the size of the vector of this ElGamal number |
References frodo2.solutionSpaces.AddableInteger.intValue(), ONE, and TWO.

|
package |
Constructor.
| vector | the internal representation of an ElGamalBigInteger |
References vector.
| ElGamalBigInteger frodo2.solutionSpaces.crypto.ElGamalBigInteger.add | ( | final AddableInteger | other | ) |
References ElGamalBigInteger(), frodo2.solutionSpaces.AddableInteger.intValue(), min(), and ONE.
Referenced by frodo2.solutionSpaces.crypto.ElGamalSchemeTest.add().

| boolean frodo2.solutionSpaces.crypto.ElGamalBigInteger.equals | ( | Object | o | ) |
| final boolean frodo2.solutionSpaces.crypto.ElGamalBigInteger.externalize | ( | ) |
| ElGamalBigInteger frodo2.solutionSpaces.crypto.ElGamalBigInteger.max | ( | ElGamalBigInteger | other | ) |
References ElGamalBigInteger().

| ElGamalBigInteger frodo2.solutionSpaces.crypto.ElGamalBigInteger.min | ( | final ElGamalBigInteger | other | ) |
References ElGamalBigInteger(), and vector.
Referenced by add(), and frodo2.solutionSpaces.crypto.ElGamalSchemeTest.min().

| void frodo2.solutionSpaces.crypto.ElGamalBigInteger.readExternal | ( | ObjectInput | in | ) | throws IOException, ClassNotFoundException |
| Object frodo2.solutionSpaces.crypto.ElGamalBigInteger.readResolve | ( | ) |
| String frodo2.solutionSpaces.crypto.ElGamalBigInteger.toString | ( | ) |
| void frodo2.solutionSpaces.crypto.ElGamalBigInteger.writeExternal | ( | ObjectOutput | out | ) | throws IOException |
|
staticprivate |
The (unencrypted) [alpha, beta] representation of 1.
Referenced by add(), and ElGamalBigInteger().
|
staticprivate |
The (unencrypted) [alpha, beta] representation of 2.
Referenced by ElGamalBigInteger().
|
package |
A vector of pairs that represents this ElGamalBigInteger as [[alpha1, beta1], [alpha2, beta2], ... ].
Referenced by frodo2.solutionSpaces.crypto.ElGamalScheme.decrypt(), ElGamalBigInteger(), min(), frodo2.solutionSpaces.crypto.ElGamalScheme.partialDecrypt(), and frodo2.solutionSpaces.crypto.ElGamalScheme.reencrypt().