Skip to content

Commit

Permalink
Remove unnecessary cast in CryptUtil::aesGcmEncrypt()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhauser committed Dec 15, 2019
1 parent 7dc4705 commit 8978793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cryptutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ QByteArray CryptUtil::aesGcmEncrypt(QByteArray message, QByteArray additionalDat

crypto_aead_aes256gcm_encrypt(
reinterpret_cast<unsigned char*>(cipherText.data()),
reinterpret_cast<unsigned long long*>(&len),
&len,
reinterpret_cast<const unsigned char*>(message.constData()),
static_cast<unsigned long long>(message.length()),
reinterpret_cast<const unsigned char*>(additionalData.constData()),
Expand Down

0 comments on commit 8978793

Please sign in to comment.