From d33874793b2ed9d92640f80e8503376779e0c332 Mon Sep 17 00:00:00 2001 From: William Ahern Date: Fri, 18 Dec 2015 09:48:04 +0000 Subject: add script to test getParameters --- examples/pkey.info | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/pkey.info (limited to 'examples') diff --git a/examples/pkey.info b/examples/pkey.info new file mode 100644 index 0000000..7369d2d --- /dev/null +++ b/examples/pkey.info @@ -0,0 +1,8 @@ +local pkey = require"openssl.pkey" + +local rsa = pkey.new{ type = "RSA", bits = 512 } + +for k, v in pairs(rsa:getParameters()) do + print(k, v) +end + -- cgit v1.2.3-59-g8ed1b