diff options
author | William Ahern <william+freebsd@25thandClement.com> | 2015-12-18 09:48:04 +0000 |
---|---|---|
committer | William Ahern <william+freebsd@25thandClement.com> | 2015-12-18 09:48:04 +0000 |
commit | d33874793b2ed9d92640f80e8503376779e0c332 (patch) | |
tree | 62318ae858717e3435b3a0d59ad95afa839c6391 | |
parent | 111d688271d05845a9a8411927d543a110f6f4c4 (diff) | |
download | luaossl-d33874793b2ed9d92640f80e8503376779e0c332.tar.gz luaossl-d33874793b2ed9d92640f80e8503376779e0c332.tar.bz2 luaossl-d33874793b2ed9d92640f80e8503376779e0c332.zip |
add script to test getParameters
-rw-r--r-- | examples/pkey.info | 8 |
1 files changed, 8 insertions, 0 deletions
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 + |