nvflare.app_opt.he.homomorphic_encrypt module¶
- count_encrypted_layers(encrypted_layers: dict)[source]¶
Count number of encrypted layers homomorphic encryption (HE) layers/variables.
- load_tenseal_context_from_workspace(ctx_file_name: str, fl_ctx: FLContext)[source]¶
Loads homomorphic encryption (HE) context from TenSEAL (https://github.com/OpenMined/TenSEAL) containing encryption keys and parameters.
- Parameters:
ctx_file_name – filepath of TenSEAL context file
fl_ctx – FL context
- Returns:
TenSEAL context