Open nato4r opened 5 years ago
QByteArray decrypted_file_buffer_1 = QAESEncryption::Decrypt(QAESEncryption::AES_256, QAESEncryption::CBC, encrypted_file_buffer_1, hash_key, hash_iv);
QByteArray decrypted_file_buffer_2 = QAESEncryption::Decrypt(QAESEncryption::AES_256, QAESEncryption::CBC, encrypted_file_buffer_2, hash_key, hash_iv);
Calling like this for multiple file buffers results in random heap corruption. It doesn't happen while using openssl.
Could you write a test for it?
QByteArray decrypted_file_buffer_1 = QAESEncryption::Decrypt(QAESEncryption::AES_256, QAESEncryption::CBC, encrypted_file_buffer_1, hash_key, hash_iv);
QByteArray decrypted_file_buffer_2 = QAESEncryption::Decrypt(QAESEncryption::AES_256, QAESEncryption::CBC, encrypted_file_buffer_2, hash_key, hash_iv);
Calling like this for multiple file buffers results in random heap corruption. It doesn't happen while using openssl.