MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / share_data_key_with_enterprise

Function share_data_key_with_enterprise

keepercommander/api.py:125–128  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

123
124
125def share_data_key_with_enterprise(params): # type: (KeeperParams) -> None
126 rq = enterprise_pb2.EnterpriseUserDataKey()
127 rq.userEncryptedDataKey = crypto.encrypt_ec(params.data_key, params.enterprise_ec_key)
128 communicate_rest(params, rq, 'enterprise/set_enterprise_user_data_key')
129
130
131def get_record_data_json_bytes(data): # type: (dict) -> bytes

Callers 1

Calls 1

communicate_restFunction · 0.85

Tested by

no test coverage detected