diff options
Diffstat (limited to 'tests/test3.lua')
-rw-r--r-- | tests/test3.lua | 3 |
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 |