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

Function _load_pk

keepercommander/nested_share_folder/common.py:318–326  ·  view source on GitHub ↗
(rsa_bytes, ec_bytes)

Source from the content-addressed store, hash-verified

316 recipient_uid_bytes = None
317
318 def _load_pk(rsa_bytes, ec_bytes):
319 nonlocal use_ecc
320 if rsa_bytes:
321 use_ecc = False
322 return crypto.load_rsa_public_key(rsa_bytes)
323 if ec_bytes:
324 use_ecc = True
325 return crypto.load_ec_public_key(ec_bytes)
326 return None
327
328 cache_key = recipient_email.lower()
329 cached = params.key_cache.get(recipient_email) or params.key_cache.get(cache_key)

Callers 3

get_user_public_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected