RSAKey initialization vector support

This commit is contained in:
Alex Fabijanic
2015-03-05 22:02:51 -06:00
parent 7b9c92baf9
commit 57d83f300e
5 changed files with 403 additions and 40 deletions

View File

@@ -145,7 +145,7 @@ namespace
if (!CryptEncrypt(_pKey->publicKey(), NULL, isFinal, 0, NULL, &n, 0))
error("RSACipher cannot obtain length of encrypted data");
poco_assert(n > _pos);
poco_assert_dbg(n <= maxDataSize());
//poco_assert_dbg(n <= maxDataSize());
std::vector<BYTE> data(n);
n = static_cast<DWORD>(_pos + 1);
std::memcpy(&data[0], _pBuf, n);