MCPcopy Create free account
hub / github.com/pyca/cryptography / cache_value_to_group

Method cache_value_to_group

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

Source from the content-addressed store, hash-verified

911 return flag in self.testcase["flags"]
912
913 def cache_value_to_group(self, cache_key: str, func):
914 cache_val = self.testgroup.get(cache_key)
915 if cache_val is not None:
916 return cache_val
917 self.testgroup[cache_key] = cache_val = func()
918 return cache_val
919
920
921def load_wycheproof_tests(wycheproof, test_file):

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