diff --git a/cryptutil.cpp b/cryptutil.cpp index 176248b..738ecd4 100644 --- a/cryptutil.cpp +++ b/cryptutil.cpp @@ -786,7 +786,7 @@ QByteArray CryptUtil::aesGcmEncrypt(QByteArray message, QByteArray additionalDat crypto_aead_aes256gcm_encrypt( reinterpret_cast(cipherText.data()), - reinterpret_cast(&len), + &len, reinterpret_cast(message.constData()), static_cast(message.length()), reinterpret_cast(additionalData.constData()),