From 11ca3669080f9546a20e0f8e068c6f54d50b90a5 Mon Sep 17 00:00:00 2001 From: SuoDizzy <99581810+SuoDizzy@users.noreply.github.com> Date: Sat, 29 Jul 2023 12:19:46 +0300 Subject: [PATCH] Function Description mismatching actual code The autocomplete description had the parameters mismatching with the actually needed ones, you may choose to edit the parameter order in the functions actual code if you had wanted it another way, this commit just changes the description to match with the code. --- ccryptolib/aead.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccryptolib/aead.lua b/ccryptolib/aead.lua index 7fce3c1..26857cc 100644 --- a/ccryptolib/aead.lua +++ b/ccryptolib/aead.lua @@ -50,9 +50,9 @@ end --- Decrypts a message. --- @param key string The key used on encryption. --- @param nonce string The nonce used on encryption. +--- @param tag string The authentication tag returned on encryption. --- @param ciphertext string The ciphertext to be decrypted. --- @param aad string The arbitrary associated data used on encryption. ---- @param tag string The authentication tag returned on encryption. --- @param rounds number The number of rounds used on encryption. --- @return string? msg The decrypted plaintext. Or nil on auth failure. local function decrypt(key, nonce, tag, ciphertext, aad, rounds)