Skip to content

Commit

Permalink
Renamed files with code with params to generate cryptocontext
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuponitskiy-duality committed Aug 14, 2023
1 parent 469ee05 commit 0b5bd78
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/pke/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Now your code should look like this:
## Description of the CryptoContext parameters
Choosing the CryptoContext parameters is important for obtaining the best performance for your encrypted application, while maintaining the desired level of security. We strongly recommend that you specify the security level and have OpenFHE automatically select the other parameters, unless you are an expert in homomorphic encryption. If you would like to modify the parameters to understand how they affect noise growth and performance, we provide descriptions below.

The default values for all the parameters can be found in [cryptocontextparams-defaults.h](../include/scheme/cryptocontextparams-defaults.h)
The default values for all the parameters can be found in [gen-cryptocontext-params-defaults.h](../include/scheme/gen-cryptocontext-params-defaults.h)

**PlaintextModulus ptModulus** - plaintext modulus(for BGV/BFV), which impacts noise growth

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#ifndef __GEN_CRYPTOCONTEXT_BFVRNS_PARAMS_H__
#define __GEN_CRYPTOCONTEXT_BFVRNS_PARAMS_H__

#include "scheme/cryptocontextparams-base.h"
#include "scheme/gen-cryptocontext-params.h"

#include <string>
#include <vector>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#ifndef __GEN_CRYPTOCONTEXT_BGVRNS_PARAMS_H__
#define __GEN_CRYPTOCONTEXT_BGVRNS_PARAMS_H__

#include "scheme/cryptocontextparams-base.h"
#include "scheme/gen-cryptocontext-params.h"

#include <string>
#include <vector>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#ifndef __GEN_CRYPTOCONTEXT_CKKSRNS_PARAMS_H__
#define __GEN_CRYPTOCONTEXT_CKKSRNS_PARAMS_H__

#include "scheme/cryptocontextparams-base.h"
#include "scheme/gen-cryptocontext-params.h"

#include <string>
#include <vector>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
Collection of parameter default values for different schemes
*/

#ifndef _CRYPTOCONTEXTPARAMS_DEFAULTS_H_
#define _CRYPTOCONTEXTPARAMS_DEFAULTS_H_
#ifndef __GEN_CRYPTOCONTEXT_PARAMS_DEFAULTS_H__
#define __GEN_CRYPTOCONTEXT_PARAMS_DEFAULTS_H__

#include "lattice/stdlatticeparms.h" // SecurityLevel
#include "scheme/scheme-id.h" // SCHEME
Expand Down Expand Up @@ -161,4 +161,4 @@ constexpr COMPRESSION_LEVEL interactiveBootCompressionLevel = SLACK;

} // namespace lbcrypto

#endif // _CRYPTOCONTEXTPARAMS_DEFAULTS_H_
#endif // __GEN_CRYPTOCONTEXT_PARAMS_DEFAULTS_H__
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
Scheme parameter default class
*/

#ifndef _CRYPTOCONTEXTPARAMS_BASE_H_
#define _CRYPTOCONTEXTPARAMS_BASE_H_
#ifndef __GEN_CRYPTOCONTEXT_PARAMS_H__
#define __GEN_CRYPTOCONTEXT_PARAMS_H__

// Had to include cryptocontext.h as the includes below give a compiler error.
// Those headers probably depend on some order/sequence.
Expand Down Expand Up @@ -426,4 +426,4 @@ class Params {

} // namespace lbcrypto

#endif // _CRYPTOCONTEXTPARAMS_BASE_H_
#endif // __GEN_CRYPTOCONTEXT_PARAMS_H__
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
Definitions for scheme parameter default class
*/

#include "scheme/cryptocontextparams-base.h"
#include "scheme/cryptocontextparams-defaults.h"
#include "scheme/gen-cryptocontext-params.h"
#include "scheme/gen-cryptocontext-params-defaults.h"
#include "utils/exception.h"

#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/pke/unittest/utils/BaseTestCase.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "scheme/ckksrns/gen-cryptocontext-ckksrns.h"
#include "scheme/bfvrns/gen-cryptocontext-bfvrns.h"
#include "scheme/bgvrns/gen-cryptocontext-bgvrns.h"
#include "scheme/cryptocontextparams-base.h"
#include "scheme/gen-cryptocontext-params.h"

#include "utils/exception.h"

Expand Down
2 changes: 1 addition & 1 deletion src/pke/unittest/utils/UnitTestReadCSVData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
//==================================================================================
#include "UnitTestReadCSVData.h"

#include "scheme/cryptocontextparams-base.h"
#include "scheme/gen-cryptocontext-params.h"
#include "utils/exception.h"

#include <fstream>
Expand Down

0 comments on commit 0b5bd78

Please sign in to comment.