2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

ShareBox used to share game score using tg:// link. Scheme updated.

This commit is contained in:
John Preston
2016-09-07 12:04:57 +03:00
parent 34331f558f
commit 82d92d21f6
14 changed files with 493 additions and 154 deletions

View File

@@ -4011,6 +4011,22 @@ namespace Local {
_writeReportSpamStatuses();
}
bool encrypt(const void *src, void *dst, uint32 len, const void *key128) {
if (!_localKey.created()) {
return false;
}
MTP::aesEncryptLocal(src, dst, len, &_localKey, key128);
return true;
}
bool decrypt(const void *src, void *dst, uint32 len, const void *key128) {
if (!_localKey.created()) {
return false;
}
MTP::aesDecryptLocal(src, dst, len, &_localKey, key128);
return true;
}
struct ClearManagerData {
QThread *thread;
StorageMap images, stickers, audios;