From 89787932cdea982ca95e3d2f3b11b0b992146558 Mon Sep 17 00:00:00 2001 From: Alex Hauser Date: Sun, 15 Dec 2019 22:38:44 +0100 Subject: [PATCH] Remove unnecessary cast in CryptUtil::aesGcmEncrypt() --- cryptutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()),