MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / kdf

Method kdf

tdport/td/e2e/MessageEncryption.cpp:49–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49td::SecureString MessageEncryption::kdf(td::Slice secret, td::Slice password, int iterations) {
50 td::SecureString new_secret(64);
51 pbkdf2_sha512(secret, password, iterations, new_secret.as_mutable_slice());
52 return new_secret;
53}
54
55td::SecureString MessageEncryption::encrypt_data_with_prefix(td::Slice data, td::Slice secret, td::Slice extra,
56 td::UInt256 *save_large_msg_id) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected