mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
emergency update
This commit is contained in:
parent
5d846e0aaf
commit
9f351fc29f
87 changed files with 2486 additions and 655 deletions
|
@ -14,7 +14,7 @@
|
|||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with TON Blockchain Library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Copyright 2017-2019 Telegram Systems LLP
|
||||
Copyright 2017-2020 Telegram Systems LLP
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
|
@ -65,10 +65,17 @@ class AesCbcState {
|
|||
|
||||
void encrypt(Slice from, MutableSlice to);
|
||||
void decrypt(Slice from, MutableSlice to);
|
||||
struct Raw {
|
||||
SecureString key;
|
||||
SecureString iv;
|
||||
};
|
||||
|
||||
const Raw &raw() const {
|
||||
return raw_;
|
||||
}
|
||||
|
||||
private:
|
||||
SecureString key_;
|
||||
SecureString iv_;
|
||||
Raw raw_;
|
||||
};
|
||||
|
||||
void sha1(Slice data, unsigned char output[20]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue