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

Method calculate_server_proof

tests/testserver.py:28–33  ·  view source on GitHub ↗
(self, client_proof)

Source from the content-addressed store, hash-verified

26 self.key = None
27
28 def calculate_server_proof(self, client_proof):
29 h = self.hash_class()
30 h.update(long_to_bytes(self.A, SRP_LEN_BYTES))
31 h.update(client_proof)
32 h.update(long_to_bytes(self.secret, SRP_LEN_BYTES))
33 return h.digest()
34
35 def calculate_client_proof(self):
36 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