2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

First version of IdentityBox with encrypted data.

This commit is contained in:
John Preston
2018-03-21 08:35:32 +04:00
parent 07e8a2bd85
commit f633ead3ab
10 changed files with 742 additions and 16 deletions

View File

@@ -494,6 +494,10 @@ int32 *hashSha256(const void *data, uint32 len, void *dest) {
return (int32*)SHA256((const uchar*)data, (size_t)len, (uchar*)dest);
}
int32 *hashSha512(const void *data, uint32 len, void *dest) {
return (int32*)SHA512((const uchar*)data, (size_t)len, (uchar*)dest);
}
// md5 hash, taken somewhere from the internet
namespace {