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

Generates prime p and prime q for the encryption scheme. More...

List of all members.

Static Public Member Functions

static int calculateSizeQ ()
 Calculates the required size in bits of prime q.
static int calculateSizeP (int size_q)
 Calculates the required size in bits of prime p.
static void generatePrime ()
 Generates prime p and q.

Detailed Description

Generates prime p and prime q for the encryption scheme.

The primes are generated based on the provided security parameters in Parameters.

Author:
vohuudtr

Member Function Documentation

static int common.GenPrime.calculateSizeP ( int  size_q) [inline, static]

Calculates the required size in bits of prime p.

This calculation requires the calculation of q to be done first.

Parameters:
size_qsize of q.
Returns:
number of bits of prime p.
static int common.GenPrime.calculateSizeQ ( ) [inline, static]

Calculates the required size in bits of prime q.

Returns:
number of bits of prime q.

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