compile on windows

This commit is contained in:
jed
2012-07-14 08:41:05 -07:00
parent d3e1b98fe8
commit 13a68da567
10 changed files with 16 additions and 10 deletions

View File

@@ -138,7 +138,7 @@ std::vector<unsigned char> CKey::encryptECIES(CKey& otherKey, const std::vector<
secret.zero();
std::vector<unsigned char> out(plaintext.size() + ECIES_HMAC_SIZE + ECIES_ENC_KEY_SIZE + ECIES_ENC_BLK_SIZE, 0);
int len = 0, bytesWritten;
unsigned int len = 0, bytesWritten;
// output IV
memcpy(&(out.front()), iv.begin(), ECIES_ENC_BLK_SIZE);