EPiC
Efficient Privacy-Preserving Counting for MapReduce
 All Classes Namespaces Functions Variables
Static Public Member Functions | Static Package Functions
common.Parameters Class Reference

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

static BigInteger common.Parameters.getB ( ) [inline, static]

Returns secret b.

Returns:
secret b.
static int common.Parameters.getMaxSizeD ( ) [inline, static]

Returns the maximum domain size over all the countable fields.

Returns:
maximum domain size.
static BigInteger common.Parameters.getN ( ) [inline, static]

Returns upperbound of the number of records.

Returns:
upperbound of the number of records.
static int common.Parameters.getNumFields ( ) [inline, static]

Returns number of countable fields.

Returns:
number of countable fields.
static BigInteger common.Parameters.getP ( ) [inline, static]

Returns secret prime p.

Returns:
secret prime p.
static BigInteger common.Parameters.getQ ( ) [inline, static]

Returns prime q.

Returns:
prime q.
static int common.Parameters.getS1 ( ) [inline, static]

Returns security parameter s1.

Returns:
security parameter s1.
static int common.Parameters.getS2 ( ) [inline, static]

Returns security parameter s2.

Returns:
security parameter s2.
static int common.Parameters.getSizeD ( int  field) [inline, static]

Returns domain size of a field.

Parameters:
fieldgiven field.
Returns:
domain size of the specified field.
static int common.Parameters.getTotalSizeD ( ) [inline, static]

Returns the total domain size which is the product of domain size of all fields.

Returns:
total domain size.
static void common.Parameters.main ( String[]  args) [inline, static]
Parameters:
args
static void common.Parameters.readConfig ( String  filename) [inline, static]

Reads parameters from a configuration file.

Parameters:
filenamename of the configuration file.
static void common.Parameters.readConfig ( InputStream  is) [inline, static]

Reads parameters from an input stream.

Parameters:
isinput stream.
static void common.Parameters.setB ( BigInteger  newb) [inline, static]

Sets the new value for b.

Parameters:
newbnew value for b.
static void common.Parameters.setP ( BigInteger  newp) [inline, static]

Sets new secret prime p.

Parameters:
newpnew secret prime p.
static void common.Parameters.setQ ( BigInteger  newq) [inline, static]

Sets new prime q.

Parameters:
newqnew prime q.
static void common.Parameters.writeConfig ( String  filename) [inline, static]

Writes parameters to a configuration file.

Parameters:
filenamename of the configuration file.
static void common.Parameters.writeConfig ( OutputStream  os) [inline, static]

Writes parameters to an output stream.

Parameters:
osoutput stream.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables