diff options
Diffstat (limited to 'examples/pkey.info')
-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 + |