diff options
| -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 @@ | |||
| 1 | local pkey = require"openssl.pkey" | ||
| 2 | |||
| 3 | local rsa = pkey.new{ type = "RSA", bits = 512 } | ||
| 4 | |||
| 5 | for k, v in pairs(rsa:getParameters()) do | ||
| 6 | print(k, v) | ||
| 7 | end | ||
| 8 | |||
