| 47 | } |
| 48 | |
| 49 | td::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 | |
| 55 | td::SecureString MessageEncryption::encrypt_data_with_prefix(td::Slice data, td::Slice secret, td::Slice extra, |
| 56 | td::UInt256 *save_large_msg_id) { |
nothing calls this directly
no outgoing calls
no test coverage detected