summaryrefslogtreecommitdiff
path: root/tests/test3.lua
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-09 09:03:04 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-09 09:03:04 +0200
commit8d313455b619168e6a169a6e39cf2fb17f1e1b00 (patch)
tree672650059eb1dc88fe1a66016f0c66d487ddc6a6 /tests/test3.lua
parent13f51c1c93ee31eb9e4f4f192ba6c51cd5945134 (diff)
Update for lcrypt - disabling rsa test for now.
Diffstat (limited to 'tests/test3.lua')
-rw-r--r--tests/test3.lua3
1 files changed, 1 insertions, 2 deletions
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