|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A fake CryptoScheme used to test and debug P2-DPOP. More...

Classes | |
| class | FakePublicKeyShare |
| A share of the (unused) public key. More... | |
| class | FakeEncryptedInteger |
| A wrapper around a BigInteger so that it implements AddableLimited. More... | |
Public Member Functions | |
| FakeCryptoScheme (Element params) | |
| Constructor. | |
| String | toString () |
| AddableInteger | decrypt (FakeEncryptedInteger initialCypherText, FakeEncryptedInteger partialDecryption) |
| FakeEncryptedInteger | encrypt (AddableInteger cleartext) |
| FakeEncryptedInteger | encrypt (AddableInteger cleartext, AddableInteger bound) |
| FakeEncryptedInteger | partialDecrypt (FakeEncryptedInteger cyphertext) |
| Partially decrypts the input cyphertext. | |
| FakeEncryptedInteger | reencrypt (FakeEncryptedInteger cyphertext) |
| FakeEncryptedInteger | partialDecrypt (FakeEncryptedInteger initialCypherText, FakeEncryptedInteger partialDecryption) |
| void | addPublicKeyShare (FakePublicKeyShare share) |
| FakePublicKeyShare | newPublicKeyShare () |
| Public Member Functions inherited from frodo2.solutionSpaces.crypto.CryptoScheme< C extends Serializable, E extends Serializable, K extends CryptoScheme.PublicKeyShare > | |
| void | addPublicKeyShare (K share) |
| Records another share of the public key. | |
| E | encrypt (C cleartext) |
| Encrypts a cleartext. | |
| E | encrypt (C cleartext, C bound) |
| Encrypts a cleartext. | |
| E | reencrypt (E cyphertext) |
| Re-encrypts a cyphertext. | |
| E | partialDecrypt (E initialCypherText, E partialDecryption) |
| Partially decrypts a cyphertext. | |
| C | decrypt (E initialCypherText, E partialDecryption) |
| Decrypts a cyphertext. | |
Static Public Member Functions | |
| static synchronized void | resetCounter () |
| Resets the counter. | |
Private Attributes | |
| final FakeEncryptedInteger | key |
| Key used for FakeCryptoScheme. | |
Static Private Attributes | |
| static final long | serialVersionUID = 5205003208535233191L |
| Used for serialization. | |
| static final FakeEncryptedInteger | TEN = new FakeEncryptedInteger("10") |
| CONSTANT 10. | |
| static FakeEncryptedInteger | cleartextPlusInf = new FakeEncryptedInteger("100000000000000000") |
| +INF is replaced with this very large number, so that we can track its successive encryptions/decryptions | |
| static final Object | lock = new Object () |
| Lock to call before creating new key. | |
| static final String | startCounter = "10000" |
| Initial value of the counter. | |
| static FakeEncryptedInteger | counter = new FakeEncryptedInteger(startCounter) |
| counter | |
A fake CryptoScheme used to test and debug P2-DPOP.
| frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeCryptoScheme | ( | Element | params | ) |
| void frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.addPublicKeyShare | ( | FakePublicKeyShare | share | ) |
| AddableInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.decrypt | ( | FakeEncryptedInteger | initialCypherText, |
| FakeEncryptedInteger | partialDecryption ) |
References frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.bigInt, cleartextPlusInf, frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.compareTo(), frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.mod(), frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF, and startCounter.
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.decrypt().

| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.encrypt | ( | AddableInteger | cleartext | ) |
References frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.add(), cleartextPlusInf, frodo2.solutionSpaces.AddableInteger.equals(), key, frodo2.solutionSpaces.AddableInteger.PlusInfinity.PLUS_INF, and frodo2.solutionSpaces.AddableInteger.toString().
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.decrypt(), and encrypt().

| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.encrypt | ( | AddableInteger | cleartext, |
| AddableInteger | bound ) |
References encrypt().

| FakePublicKeyShare frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.newPublicKeyShare | ( | ) |
| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.partialDecrypt | ( | FakeEncryptedInteger | cyphertext | ) |
Partially decrypts the input cyphertext.
| cyphertext | the cyphertext to be partially decrypted |
References frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.add(), key, frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.mod(), frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.subtract(), and TEN.
Referenced by partialDecrypt().

| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.partialDecrypt | ( | FakeEncryptedInteger | initialCypherText, |
| FakeEncryptedInteger | partialDecryption ) |
References partialDecrypt().

| FakeEncryptedInteger frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.reencrypt | ( | FakeEncryptedInteger | cyphertext | ) |
References frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.add(), and key.
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.decrypt().

|
static |
Resets the counter.
References counter, and startCounter.
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoSchemeTest.init(), and frodo2.algorithms.dpop.privacy.test.SecureRerootingTest.randomTest().
| String frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.toString | ( | ) |
|
staticprivate |
+INF is replaced with this very large number, so that we can track its successive encryptions/decryptions
Referenced by frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.add(), decrypt(), encrypt(), FakeCryptoScheme(), and frodo2.algorithms.dpop.privacy.test.FakeCryptoScheme.FakeEncryptedInteger.FakeEncryptedInteger().
|
staticprivate |
counter
Referenced by FakeCryptoScheme(), and resetCounter().
|
private |
Key used for FakeCryptoScheme.
Referenced by encrypt(), FakeCryptoScheme(), partialDecrypt(), and reencrypt().
|
staticprivate |
Lock to call before creating new key.
Referenced by FakeCryptoScheme().
|
staticprivate |
Used for serialization.
|
staticprivate |
Initial value of the counter.
Referenced by decrypt(), and resetCounter().
|
staticprivate |
CONSTANT 10.
Referenced by FakeCryptoScheme(), and partialDecrypt().