Browse Source

fix compile

cl-refactor
subtly 10 years ago
parent
commit
f560cfa78d
  1. 5
      libdevcrypto/AES.cpp
  2. 2
      libdevcrypto/AES.h

5
libdevcrypto/AES.cpp

@ -30,7 +30,10 @@ using namespace CryptoPP;
struct aes::Aes128Ctr
{
Aes128Ctr(h128 _k) { mode.SetKeyWithIV(_k.data(), sizeof(h128), Nonce::get().data()); }
Aes128Ctr(h128 _k)
{
mode.SetKeyWithIV(_k.data(), sizeof(h128), Nonce::get().data());
}
CryptoPP::CTR_Mode<CryptoPP::AES>::Encryption mode;
};

2
libdevcrypto/AES.h

@ -19,10 +19,12 @@
* @date 2014
*
* AES
* todo: use openssl
*/
#pragma once
#include <atomic>
#include "Common.h"
namespace dev

Loading…
Cancel
Save