MCPcopy Create free account
hub / github.com/Azure/azure-storage-python / unwrap_key

Method unwrap_key

tests/encryption_test_helper.py:32–36  ·  view source on GitHub ↗
(self, key, algorithm)

Source from the content-addressed store, hash-verified

30 raise ValueError(_ERROR_UNKNOWN_KEY_WRAP_ALGORITHM)
31
32 def unwrap_key(self, key, algorithm):
33 if algorithm == 'A256KW':
34 return aes_key_unwrap(self.kek, key, self.backend)
35 else:
36 raise ValueError(_ERROR_UNKNOWN_KEY_WRAP_ALGORITHM)
37
38 def get_key_wrap_algorithm(self):
39 return 'A256KW'

Callers 2

_validate_and_unwrap_cekFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected