29 #ifndef COMPARISON_BLINDING_FACTOR_CONTAINER_IMPLEMENTATION_GUARD
30 #define COMPARISON_BLINDING_FACTOR_CONTAINER_IMPLEMENTATION_GUARD
33 namespace PrivateRecommendationsUtils {
43 template <
typename T_CryptoProv
ider,
typename T_Parameters>
46 this->r = RandomProvider::GetInstance().GetRandomInteger(parameters.l + 1 + parameters.kappa);
48 this->rModTwoPowL = this->r % parameters.twoPowL;
49 this->encryptedR = cryptoProvider.EncryptInteger(this->r);
50 this->encryptedRDivTwoPowL = cryptoProvider.EncryptInteger(this->r / parameters.twoPowL);
56 #endif//COMPARISON_BLINDING_FACTOR_CONTAINER_IMPLEMENTATION_GUARD
ComparisonBlindingFactorContainer(const T_CryptoProvider &cryptoProvider, const T_Parameters ¶meters)
Constructor.