(self)
| 40 | return h.digest() |
| 41 | |
| 42 | def calculate_k(self): |
| 43 | h = self.hash_class() |
| 44 | h.update(self.generator.to_bytes(SRP_LEN_BYTES, 'little')) |
| 45 | h.update(long_to_bytes(self.modulus, SRP_LEN_BYTES)) |
| 46 | return bytes_to_long(h.digest()) |
| 47 | |
| 48 | def get_challenge(self): |
| 49 | return long_to_bytes(self.B, SRP_LEN_BYTES) |
no test coverage detected