2021-06-28 20:03:17 +02:00
|
|
|
//
|
2022-01-01 01:35:39 +01:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022
|
2021-06-28 20:03:17 +02:00
|
|
|
//
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
//
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "td/telegram/telegram_api.h"
|
|
|
|
|
|
|
|
#include "td/utils/common.h"
|
|
|
|
#include "td/utils/Status.h"
|
|
|
|
|
|
|
|
namespace td {
|
|
|
|
|
|
|
|
struct NewPasswordState {
|
|
|
|
string client_salt;
|
|
|
|
string server_salt;
|
|
|
|
string srp_p;
|
|
|
|
string secure_salt;
|
|
|
|
int32 srp_g = 0;
|
|
|
|
};
|
|
|
|
|
2021-07-03 22:51:36 +02:00
|
|
|
Result<NewPasswordState> get_new_password_state(tl_object_ptr<telegram_api::PasswordKdfAlgo> new_algo,
|
|
|
|
tl_object_ptr<telegram_api::SecurePasswordKdfAlgo> new_secure_algo);
|
2021-06-28 20:03:17 +02:00
|
|
|
|
2021-12-27 12:03:50 +01:00
|
|
|
} // namespace td
|