MCPcopy
hub / github.com/pyca/cryptography / cache_value_to_group

Method cache_value_to_group

tests/utils.py:985–990  ·  view source on GitHub ↗
(self, cache_key: str, func)

Source from the content-addressed store, hash-verified

983 return flag in self.testcase["flags"]
984
985 def cache_value_to_group(self, cache_key: str, func):
986 cache_val = self.testgroup.get(cache_key)
987 if cache_val is not None:
988 return cache_val
989 self.testgroup[cache_key] = cache_val = func()
990 return cache_val
991
992
993def load_wycheproof_tests(wycheproof: str, test_file: str, subdir: str):

Callers 8

test_ecdsa_signatureFunction · 0.80
test_ecdhFunction · 0.80
test_ecdh_ecpointFunction · 0.80
test_rsa_pss_signatureFunction · 0.80
test_rsa_oaep_encryptionFunction · 0.80

Calls

no outgoing calls

Tested by 8

test_ecdsa_signatureFunction · 0.64
test_ecdhFunction · 0.64
test_ecdh_ecpointFunction · 0.64
test_rsa_pss_signatureFunction · 0.64
test_rsa_oaep_encryptionFunction · 0.64