MCPcopy Create free account
hub / github.com/ProtonMail/proton-python-client / calculate_client_proof

Method calculate_client_proof

tests/testserver.py:35–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 return h.digest()
34
35 def calculate_client_proof(self):
36 h = self.hash_class()
37 h.update(long_to_bytes(self.A, SRP_LEN_BYTES))
38 h.update(long_to_bytes(self.B, SRP_LEN_BYTES))
39 h.update(long_to_bytes(self.secret, SRP_LEN_BYTES))
40 return h.digest()
41
42 def calculate_k(self):
43 h = self.hash_class()

Callers 1

process_challengeMethod · 0.95

Calls 3

long_to_bytesFunction · 0.90
updateMethod · 0.80
digestMethod · 0.80

Tested by

no test coverage detected