@@ -83,7 +83,7 @@ extension PrivateInformationRetrieval.Response {
8383
8484struct ProcessBenchmarkContext < Server: IndexPirServer > {
8585 let database : [ [ UInt8 ] ]
86- let context : Context < Server . Scheme . Scalar >
86+ let context : Server . Scheme . Context
8787 let parameter : IndexPirParameter
8888 init ( server _: Server . Type , pirConfig: IndexPirConfig ,
8989 parameterConfig: PirEncryptionParametersConfig ) throws
@@ -93,7 +93,7 @@ struct ProcessBenchmarkContext<Server: IndexPirServer> {
9393 self . database = getDatabaseForTesting (
9494 numberOfEntries: pirConfig. entryCount,
9595 entrySizeInBytes: pirConfig. entrySizeInBytes)
96- self . context = try Context ( encryptionParameters: encryptParameter)
96+ self . context = try Server . Scheme . Context ( encryptionParameters: encryptParameter)
9797 self . parameter = Server . generateParameter ( config: pirConfig, with: context)
9898 }
9999}
@@ -171,7 +171,7 @@ struct IndexPirBenchmarkContext<Server: IndexPirServer, Client: IndexPirClient>
171171 {
172172 let encryptParameter : EncryptionParameters < Server . Scheme . Scalar > =
173173 try EncryptionParameters ( from: parameterConfig)
174- let context = try Context < Server . Scheme . Scalar > ( encryptionParameters: encryptParameter)
174+ let context = try Server . Scheme. Context ( encryptionParameters: encryptParameter)
175175 let indexPirParameters = Server . generateParameter ( config: pirConfig, with: context)
176176 let database = getDatabaseForTesting (
177177 numberOfEntries: pirConfig. entryCount,
@@ -286,7 +286,7 @@ struct KeywordPirBenchmarkContext<IndexServer: IndexPirServer, IndexClient: Inde
286286 {
287287 let encryptParameter : EncryptionParameters < Server . Scheme . Scalar > =
288288 try EncryptionParameters ( from: parameterConfig)
289- let context = try Context < Server . Scheme . Scalar > ( encryptionParameters: encryptParameter)
289+ let context = try Server . Scheme. Context ( encryptionParameters: encryptParameter)
290290 let rows = ( 0 ..< databaseCount) . map { index in KeywordValuePair (
291291 keyword: [ UInt8] ( String ( index) . utf8) ,
292292 value: ( 0 ..< payloadSize) . map { _ in UInt8 . random ( in: 0 ..< UInt8 . max) } )
0 commit comments