@@ -105,7 +105,6 @@ struct HeAPITests {
105
105
try await HeAPITestHelpers . schemeCiphertextNegateTest ( context: context)
106
106
try await HeAPITestHelpers . schemeCiphertextPlaintextInnerProductTest ( context: context)
107
107
try await HeAPITestHelpers . schemeCiphertextCiphertextInnerProductTest ( context: context)
108
- try HeAPITestHelpers . schemeEvaluationKeyTest ( scheme: NoOpScheme . self)
109
108
try await HeAPITestHelpers . schemeRotationTest ( context: context)
110
109
try await HeAPITestHelpers . schemeApplyGaloisTest ( context: context)
111
110
try await HeAPITestHelpers . repeatedAdditionTest ( context: context)
@@ -184,7 +183,6 @@ struct HeAPITests {
184
183
try await HeAPITestHelpers . schemeCiphertextNegateTest ( context: context)
185
184
try await HeAPITestHelpers . schemeCiphertextPlaintextInnerProductTest ( context: context)
186
185
try await HeAPITestHelpers . schemeCiphertextCiphertextInnerProductTest ( context: context)
187
- try HeAPITestHelpers . schemeEvaluationKeyTest ( scheme: Bfv< T> . self )
188
186
try await HeAPITestHelpers . schemeRotationTest ( context: context)
189
187
try await HeAPITestHelpers . schemeApplyGaloisTest ( context: context)
190
188
try bfvTestKeySwitching ( context: context)
@@ -203,6 +201,28 @@ struct HeAPITests {
203
201
func testBfvUInt64( ) async throws {
204
202
try await runBfvTests ( UInt64 . self)
205
203
}
204
+
205
+ @Test
206
+ func schemeEvaluationKeyTest( ) throws {
207
+ do {
208
+ let config = EvaluationKeyConfig ( )
209
+ #expect( !config. hasRelinearizationKey)
210
+ #expect( config. galoisElements. isEmpty)
211
+ #expect( config. keyCount == 0 )
212
+ }
213
+ do {
214
+ let config = EvaluationKeyConfig ( hasRelinearizationKey: true )
215
+ #expect( config. hasRelinearizationKey)
216
+ #expect( config. galoisElements. isEmpty)
217
+ #expect( config. keyCount == 1 )
218
+ }
219
+ do {
220
+ let config = EvaluationKeyConfig ( galoisElements: [ 1 , 3 ] , hasRelinearizationKey: true )
221
+ #expect( config. hasRelinearizationKey)
222
+ #expect( config. galoisElements == [ 1 , 3 ] )
223
+ #expect( config. keyCount == 3 )
224
+ }
225
+ }
206
226
}
207
227
208
228
/// This will compile if `Plaintext/decode` is generic across PolyFormat.
0 commit comments