Add logging.
GitOrigin-RevId: e6f26eaa65300edd4d6e1bd9c3fb34745a979f5f
This commit is contained in:
parent
dcf3db3e98
commit
5d8b9c6c9a
|
@ -9,12 +9,13 @@
|
||||||
#include "td/utils/as.h"
|
#include "td/utils/as.h"
|
||||||
#include "td/utils/common.h"
|
#include "td/utils/common.h"
|
||||||
#include "td/utils/crypto.h"
|
#include "td/utils/crypto.h"
|
||||||
|
#include "td/utils/logging.h"
|
||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
namespace mtproto {
|
namespace mtproto {
|
||||||
|
|
||||||
void KDF(Slice auth_key, const UInt128 &msg_key, int X, UInt256 *aes_key, UInt256 *aes_iv) {
|
void KDF(Slice auth_key, const UInt128 &msg_key, int X, UInt256 *aes_key, UInt256 *aes_iv) {
|
||||||
CHECK(auth_key.size() == 2048 / 8);
|
LOG_CHECK(auth_key.size() == 2048 / 8) << auth_key.size();
|
||||||
const char *auth_key_raw = auth_key.data();
|
const char *auth_key_raw = auth_key.data();
|
||||||
uint8 buf[48];
|
uint8 buf[48];
|
||||||
as<UInt128>(buf) = msg_key;
|
as<UInt128>(buf) = msg_key;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user