Skip to content

Commit

Permalink
changed default BINFHE_OUTPUT for secret key encryption to SMALL_DIM
Browse files Browse the repository at this point in the history
  • Loading branch information
pascoec committed Oct 18, 2024
1 parent 49ebe24 commit 9c0f5d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/binfhe/include/binfhecontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ class BinFHEContext : public Serializable {
*
* @param sk the secret key
* @param m the plaintext
* @param output SMALL_DIM to generate fresh ciphertext, LARGE_DIM to
* generate a refreshed ciphertext (default)
* @param output SMALL_DIM to generate fresh ciphertext (default), LARGE_DIM to
* generate a refreshed ciphertext
* @param p plaintext modulus
* @param mod the ciphertext modulus to encrypt with; by default m_q in params
* @return a shared pointer to the ciphertext
*/
LWECiphertext Encrypt(ConstLWEPrivateKey& sk, LWEPlaintext m, BINFHE_OUTPUT output = LARGE_DIM,
LWECiphertext Encrypt(ConstLWEPrivateKey& sk, LWEPlaintext m, BINFHE_OUTPUT output = SMALL_DIM,
LWEPlaintextModulus p = 4, const NativeInteger& mod = 0) const;

/**
Expand Down

0 comments on commit 9c0f5d0

Please sign in to comment.