Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/crypter.cpp
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "crypter.h" | #include <wallet/crypter.h> | ||||
#include "crypto/aes.h" | #include <crypto/aes.h> | ||||
#include "crypto/sha512.h" | #include <crypto/sha512.h> | ||||
#include "script/script.h" | #include <script/script.h> | ||||
#include "script/standard.h" | #include <script/standard.h> | ||||
#include "util.h" | #include <util.h> | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
int CCrypter::BytesToKeySHA512AES(const std::vector<uint8_t> &chSalt, | int CCrypter::BytesToKeySHA512AES(const std::vector<uint8_t> &chSalt, | ||||
const SecureString &strKeyData, int count, | const SecureString &strKeyData, int count, | ||||
uint8_t *key, uint8_t *iv) const { | uint8_t *key, uint8_t *iv) const { | ||||
// This mimics the behavior of openssl's EVP_BytesToKey with an aes256cbc | // This mimics the behavior of openssl's EVP_BytesToKey with an aes256cbc | ||||
▲ Show 20 Lines • Show All 346 Lines • Show Last 20 Lines |