diff --git a/src/cpp-utils/crypto/symmetric/EncryptionKey.h b/src/cpp-utils/crypto/symmetric/EncryptionKey.h index 48ed8269..ceff107f 100644 --- a/src/cpp-utils/crypto/symmetric/EncryptionKey.h +++ b/src/cpp-utils/crypto/symmetric/EncryptionKey.h @@ -69,6 +69,9 @@ private: std::shared_ptr _key; }; +template constexpr size_t EncryptionKey::BINARY_LENGTH; +template constexpr size_t EncryptionKey::STRING_LENGTH; + template inline EncryptionKey::EncryptionKeyData::EncryptionKeyData(const FixedSizeData& keyData) : key(keyData) diff --git a/src/stats/main.cpp b/src/stats/main.cpp index 575960f7..2f2d9d4b 100644 --- a/src/stats/main.cpp +++ b/src/stats/main.cpp @@ -58,7 +58,7 @@ set _getBlockstoreUnaccountedBlocks(const CryConfig &config) { i = 0; cout << "\nRemove blocks that have a parent" << endl; //Remove root block from unaccountedBlocks - unaccountedBlocks.erase(Key::FrComString(config.RootBlob())); + unaccountedBlocks.erase(Key::FromString(config.RootBlob())); //Remove all blocks that have a parent node from unaccountedBlocks for (auto file = directory_iterator("/home/heinzi/basedir"); file != directory_iterator(); ++file) { cout << "\r" << (++i) << "/" << numBlocks << flush; @@ -148,4 +148,4 @@ int main() { } } cout << "\n" << numLeaves << " leaves and " << numInner << " inner nodes" << endl; -} \ No newline at end of file +}