Provides tools for handling the parameters used for the encryption scheme.
More...
List of all members.
Static Public Member Functions |
static BigInteger | getP () |
| Returns secret prime p .
|
static void | setP (BigInteger newp) |
| Sets new secret prime p .
|
static BigInteger | getB () |
| Returns secret b .
|
static void | setB (BigInteger newb) |
| Sets the new value for b .
|
static BigInteger | getQ () |
| Returns prime q .
|
static void | setQ (BigInteger newq) |
| Sets new prime q .
|
static BigInteger | getN () |
| Returns upperbound of the number of records.
|
static int | getS1 () |
| Returns security parameter s1 .
|
static int | getS2 () |
| Returns security parameter s2 .
|
static int | getSizeD (int field) |
| Returns domain size of a field.
|
static int | getMaxSizeD () |
| Returns the maximum domain size over all the countable fields.
|
static int | getNumFields () |
| Returns number of countable fields.
|
static int | getTotalSizeD () |
| Returns the total domain size which is the product of domain size of all fields.
|
static void | writeConfig (String filename) |
| Writes parameters to a configuration file.
|
static void | writeConfig (OutputStream os) |
| Writes parameters to an output stream.
|
static void | readConfig (String filename) |
| Reads parameters from a configuration file.
|
static void | readConfig (InputStream is) |
| Reads parameters from an input stream.
|
static void | main (String[] args) |
Static Package Functions |
static void | tic () |
static void | toc () |
Detailed Description
Provides tools for handling the parameters used for the encryption scheme.
The following parameters are controlled:
- Secret key
- p
- secret prime
p
in the encryption scheme.
- b
- secret random
b
in the encryption scheme.
- Public parameters
- q
- prime
q
in the encryption scheme.
- s1
- security parameter
s1
in the encryption scheme.
- s2
- maximum size in bits of the random
r
in the encryption scheme.
- n
- upperbound of the number of records in the data set.
- numFields
- number of countable fields in each record.
Note: numFields is the actual number of countable fields in a record, while Record#getNumFields() returns the number of fields contained in a record, which includes both encrypted and plain-text fields, so Record#getNumFields() is equal to 2*numFields
(see Record).
- sizeD[]
- Domain size in bits of the countable fields.
- Author:
- vohuudtr
Member Function Documentation
Returns secret b
.
- Returns:
- secret
b
.
Returns the maximum domain size over all the countable fields.
- Returns:
- maximum domain size.
Returns upperbound of the number of records.
- Returns:
- upperbound of the number of records.
Returns number of countable fields.
- Returns:
- number of countable fields.
Returns secret prime p
.
- Returns:
- secret prime
p
.
Returns prime q
.
- Returns:
- prime
q
.
Returns security parameter s1
.
- Returns:
- security parameter
s1
.
Returns security parameter s2
.
- Returns:
- security parameter
s2
.
Returns domain size of a field.
- Parameters:
-
- Returns:
- domain size of the specified field.
Returns the total domain size which is the product of domain size of all fields.
- Returns:
- total domain size.
Reads parameters from a configuration file.
- Parameters:
-
filename | name of the configuration file. |
Reads parameters from an input stream.
- Parameters:
-
Sets the new value for b
.
- Parameters:
-
Sets new secret prime p
.
- Parameters:
-
Sets new prime q
.
- Parameters:
-
Writes parameters to a configuration file.
- Parameters:
-
filename | name of the configuration file. |
Writes parameters to an output stream.
- Parameters:
-
The documentation for this class was generated from the following file:
- /home/vohuudtr/workspace/cloudprivacy/code/src/common/Parameters.java