@@ -118,7 +118,7 @@ struct ProcessBenchmarkContext<Scheme: HeScheme> {
118118 preferringSmall: false ,
119119 nttDegree: parameterConfig. polyDegree)
120120
121- let encryptionParams = try EncryptionParameters < Scheme > (
121+ let encryptionParameters = try EncryptionParameters < Scheme > (
122122 polyDegree: parameterConfig. polyDegree,
123123 plaintextModulus: plaintextModuli [ 0 ] ,
124124 coefficientModuli: coefficientModuli,
@@ -130,15 +130,15 @@ struct ProcessBenchmarkContext<Scheme: HeScheme> {
130130 plaintextMatrixDimensions: MatrixDimensions (
131131 rowCount: databaseConfig. rowCount,
132132 columnCount: databaseConfig. vectorDimension) ,
133- encryptionParameters: encryptionParams ,
133+ encryptionParameters: encryptionParameters ,
134134 maxQueryCount: batchSize)
135135 let scalingFactor = ClientConfig< Scheme>
136136 . maxScalingFactor(
137137 distanceMetric: . cosineSimilarity,
138138 vectorDimension: databaseConfig. vectorDimension,
139139 plaintextModuli: Array ( plaintextModuli [ 1 ... ] ) )
140140 let clientConfig = try ClientConfig (
141- encryptionParams : encryptionParams ,
141+ encryptionParameters : encryptionParameters ,
142142 scalingFactor: scalingFactor,
143143 queryPacking: . denseRow,
144144 vectorDimension: databaseConfig. vectorDimension,
@@ -151,8 +151,8 @@ struct ProcessBenchmarkContext<Scheme: HeScheme> {
151151 self . serverConfig = serverConfig
152152
153153 self . database = getDatabaseForTesting ( config: databaseConfig)
154- self . contexts = try serverConfig. encryptionParameters. map { encryptionParams in
155- try Context ( encryptionParameters: encryptionParams )
154+ self . contexts = try serverConfig. encryptionParameters. map { encryptionParameters in
155+ try Context ( encryptionParameters: encryptionParameters )
156156 }
157157 }
158158}
@@ -224,7 +224,7 @@ struct PnnsBenchmarkContext<Scheme: HeScheme> {
224224 significantBitCounts: parameterConfig. coefficientModulusBits,
225225 preferringSmall: false ,
226226 nttDegree: parameterConfig. polyDegree)
227- let encryptionParams = try EncryptionParameters < Scheme > (
227+ let encryptionParameters = try EncryptionParameters < Scheme > (
228228 polyDegree: parameterConfig. polyDegree,
229229 plaintextModulus: plaintextModuli [ 0 ] ,
230230 coefficientModuli: coefficientModuli,
@@ -235,15 +235,15 @@ struct PnnsBenchmarkContext<Scheme: HeScheme> {
235235 plaintextMatrixDimensions: MatrixDimensions (
236236 rowCount: databaseConfig. rowCount,
237237 columnCount: databaseConfig. vectorDimension) ,
238- encryptionParameters: encryptionParams ,
238+ encryptionParameters: encryptionParameters ,
239239 maxQueryCount: queryCount)
240240 let scalingFactor = ClientConfig< Scheme>
241241 . maxScalingFactor(
242242 distanceMetric: . cosineSimilarity,
243243 vectorDimension: databaseConfig. vectorDimension,
244244 plaintextModuli: plaintextModuli)
245245 let clientConfig = try ClientConfig (
246- encryptionParams : encryptionParams ,
246+ encryptionParameters : encryptionParameters ,
247247 scalingFactor: scalingFactor,
248248 queryPacking: . denseRow,
249249 vectorDimension: databaseConfig. vectorDimension,
@@ -258,7 +258,7 @@ struct PnnsBenchmarkContext<Scheme: HeScheme> {
258258
259259 let database = getDatabaseForTesting ( config: databaseConfig)
260260 let contexts = try clientConfig. encryptionParameters
261- . map { encryptionParams in try Context ( encryptionParameters: encryptionParams ) }
261+ . map { encryptionParameters in try Context ( encryptionParameters: encryptionParameters ) }
262262 self . processedDatabase = try database. process ( config: serverConfig, contexts: contexts)
263263 self . client = try Client ( config: clientConfig, contexts: contexts)
264264 self . server = try Server ( database: processedDatabase)
0 commit comments