From 5d8b9c6c9a1c43faf2eb534252e3278dd77ab13f Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 3 Oct 2019 18:21:22 +0300 Subject: [PATCH] Add logging. GitOrigin-RevId: e6f26eaa65300edd4d6e1bd9c3fb34745a979f5f --- td/mtproto/KDF.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/mtproto/KDF.cpp b/td/mtproto/KDF.cpp index ccbeee595..f247c6a3a 100644 --- a/td/mtproto/KDF.cpp +++ b/td/mtproto/KDF.cpp @@ -9,12 +9,13 @@ #include "td/utils/as.h" #include "td/utils/common.h" #include "td/utils/crypto.h" +#include "td/utils/logging.h" namespace td { namespace mtproto { 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(); uint8 buf[48]; as(buf) = msg_key;