def _calculate_k(self) -> int:
    hash_instance = self.h()
    n = Srp.to_byte_array(self.n)
    g = bytearray.fromhex(((383 * '00') + '05'))
    hash_instance.update(n)
    hash_instance.update(g)
    k = int.from_bytes(hash_instance.digest(), 'big')
    return k
def _calculate_k(self) -> int:
    hash_instance = self.h()
    n = Srp.to_byte_array(self.n)
    g = bytearray.fromhex(((383 * '00') + '05'))
    hash_instance.update(n)
    hash_instance.update(g)
    k = int.from_bytes(hash_instance.digest(), 'big')
    return k