snucrypto/HEAAN

Vector of ciphertexts

JanW92 opened this issue · 0 comments

Hello,
Actually I have two issues. What I want to do is to create a vector like this:
vector cipher_matrix;
cipher_matrix.reserve(n);
for (int i = 0; i < n; i++)
{
//Ciphertext cipher_OneDia;
temp = &plain_diagonals[i][0];
//scheme.encrypt(cipher_OneDia, temp, n, logp, logq);
scheme.encrypt(cipher_matrix[i], temp, n, logp, logq);
//cipher_matrix[i].copy(cipher_OneDia);
}
`
For some reason this doesn't work. And here comes my second issue into play. Whenever HEAAN doesn't like something (wrong parameter, logq or logp doesn't match for an addition) the execution ends in the cpp of a NTL lib called lib.cpp. No exception is thrown, thus any kind of help would be appreciated.
Regards