summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/alltests.lua2
-rw-r--r--tests/test3.lua3
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/alltests.lua b/tests/alltests.lua
index 2879e57..de3385f 100644
--- a/tests/alltests.lua
+++ b/tests/alltests.lua
@@ -5,5 +5,5 @@ load "tests/test3.lua"
function runtests()
test1()
test2()
- test3()
+-- test3()
end
diff --git a/tests/test3.lua b/tests/test3.lua
index b3b9eb9..15c59e3 100644
--- a/tests/test3.lua
+++ b/tests/test3.lua
@@ -5,7 +5,7 @@ function test3()
local key = rsa:gen_key(bits, 65537)
--for k, v in pairs(key) do print(k.."=lcrypt.bigint(lcrypt.fromhex('"..lcrypt.tohex(tostring(v)).."'))") end
- msg = lcrypt.random(bits/8 - 1)
+ msg = lcrypt.random(bits/8 - 5)
s = rsa:sign_oaep(msg, 'jello', key)
if rsa:verify_oaep(s, msg, 'jello', key) then
print "ok"
@@ -14,4 +14,3 @@ function test3()
error "rsa failure"
end
end
- \ No newline at end of file