somesocks / lua-lockbox

A collection of cryptographic primitives written in pure Lua
MIT License
362 stars 75 forks source link

Fix lua lint issues #30

Closed evgenykor closed 3 years ago

evgenykor commented 3 years ago

Hi! This PR aims to fix all lua linting problems

so after this code is applied no lint issues would be there

evgeny@ubuntu:~/programing/lua-lockbox$ luacheck .
Checking RunPerf.lua                              OK
Checking RunTests.lua                             OK
Checking lockbox.lua                              OK
Checking lockbox/cipher/aes128.lua                OK
Checking lockbox/cipher/aes192.lua                OK
Checking lockbox/cipher/aes256.lua                OK
Checking lockbox/cipher/des.lua                   OK
Checking lockbox/cipher/des3.lua                  OK
Checking lockbox/cipher/mode/cbc.lua              OK
Checking lockbox/cipher/mode/cfb.lua              OK
Checking lockbox/cipher/mode/ctr.lua              OK
Checking lockbox/cipher/mode/ecb.lua              OK
Checking lockbox/cipher/mode/ige.lua              OK
Checking lockbox/cipher/mode/ofb.lua              OK
Checking lockbox/cipher/mode/pcbc.lua             OK
Checking lockbox/cipher/tea.lua                   OK
Checking lockbox/cipher/xtea.lua                  OK
Checking lockbox/digest/md2.lua                   OK
Checking lockbox/digest/md4.lua                   OK
Checking lockbox/digest/md5.lua                   OK
Checking lockbox/digest/ripemd128.lua             OK
Checking lockbox/digest/ripemd160.lua             OK
Checking lockbox/digest/sha1.lua                  OK
Checking lockbox/digest/sha2_224.lua              OK
Checking lockbox/digest/sha2_256.lua              OK
Checking lockbox/init.lua                         OK
Checking lockbox/kdf/hkdf.lua                     OK
Checking lockbox/kdf/pbkdf2.lua                   OK
Checking lockbox/mac/hmac.lua                     OK
Checking lockbox/padding/ansix923.lua             OK
Checking lockbox/padding/isoiec7816.lua           OK
Checking lockbox/padding/pkcs7.lua                OK
Checking lockbox/padding/zero.lua                 OK
Checking lockbox/util/array.lua                   OK
Checking lockbox/util/base64.lua                  OK
Checking lockbox/util/bit.lua                     OK
Checking lockbox/util/queue.lua                   OK
Checking lockbox/util/stream.lua                  OK
Checking test/AES128CipherTests.lua               OK
Checking test/AES192CipherTests.lua               OK
Checking test/AES256CipherTests.lua               OK
Checking test/Base64Tests.lua                     OK
Checking test/DES3CipherTests.lua                 OK
Checking test/DESCipherTests.lua                  OK
Checking test/HKDFTests.lua                       OK
Checking test/HMACTests.lua                       OK
Checking test/MD2Tests.lua                        OK
Checking test/MD4Tests.lua                        OK
Checking test/MD5Tests.lua                        OK
Checking test/PBKDF2Tests.lua                     OK
Checking test/RIPEMD128Tests.lua                  OK
Checking test/RIPEMD160Tests.lua                  OK
Checking test/SHA1Tests.lua                       OK
Checking test/SHA2_224Tests.lua                   OK
Checking test/SHA2_256Tests.lua                   OK
Checking test/TEACipherTests.lua                  OK
Checking test/XTEACipherTests.lua                 OK

Total: 0 warnings / 0 errors in 57 files