MCPcopy Create free account
hub / github.com/OpenMined/TenSEAL / test_modulus_bfv_default

Function test_modulus_bfv_default

tests/python/sealapi/test_modulus.py:110–114  ·  view source on GitHub ↗
(sec_level, expected_bfv_default_len)

Source from the content-addressed store, hash-verified

108 ],
109)
110def test_modulus_bfv_default(sec_level, expected_bfv_default_len):
111 coeff_modulus = sealapi.CoeffModulus.BFVDefault(32768, sec_level)
112 assert len(coeff_modulus) == expected_bfv_default_len
113 for coeff in coeff_modulus:
114 assert coeff.is_prime()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected