aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua/unit/rsa.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-23 17:02:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-23 17:02:12 +0100
commite278006a1033db12279b70329af3ee2d2fa67c92 (patch)
treecc07f96b1872e7653b4625ff10fb1703f869207e /test/lua/unit/rsa.lua
parent03792148a1147f1cada5e9d5980c9d09637817ea (diff)
downloadrspamd-e278006a1033db12279b70329af3ee2d2fa67c92.tar.gz
rspamd-e278006a1033db12279b70329af3ee2d2fa67c92.zip
[Minor] Pet luacheck
Diffstat (limited to 'test/lua/unit/rsa.lua')
-rw-r--r--test/lua/unit/rsa.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lua/unit/rsa.lua b/test/lua/unit/rsa.lua
index 962077242..900c8a53f 100644
--- a/test/lua/unit/rsa.lua
+++ b/test/lua/unit/rsa.lua
@@ -12,7 +12,7 @@ context("RSA signature verification test", function()
local signature = 'test.sig'
local test_dir = string.gsub(debug.getinfo(1).source, "^@(.+/)[^/]+$", "%1")
local rsa_key, rsa_sig
-
+
test("RSA sign", function()
-- Signing test
rsa_key = rsa_privkey.load_file(string.format('%s/%s', test_dir, privkey))
@@ -25,7 +25,7 @@ context("RSA signature verification test", function()
assert_not_nil(sig)
sig:save(string.format('%s/%s', test_dir, signature), true)
end)
-
+
test("RSA verify", function()
-- Verifying test
local h = hash.create_specific('sha256')