Skip to content
Snippets Groups Projects
Commit 8461f401 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

crypto: avoid using std::to_string

parent c33c2e7e
Branches
Tags
Loading
......@@ -120,7 +120,7 @@ bool aesKeySizeGood(size_t key_size)
Blob aesEncrypt(const Blob& data, const Blob& key)
{
if (not aesKeySizeGood(key.size()))
throw DecryptError("Wrong key size: " + std::to_string(key.size()));
throw DecryptError("Wrong key size");
Blob ret(data.size() + GCM_IV_SIZE + GCM_DIGEST_SIZE);
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment