From 969207b3c5926ac33ce6cb8685ae3b0616d27176 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 4 Jun 2015 12:25:44 -0700 Subject: update x509:getPublicKeyDigest to take optional digest type --- doc/luaossl.pdf | Bin 284248 -> 284785 bytes doc/luaossl.tex | 4 ++++ 2 files changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf index e310cbe..c2b2418 100644 Binary files a/doc/luaossl.pdf and b/doc/luaossl.pdf differ diff --git a/doc/luaossl.tex b/doc/luaossl.tex index c8917d7..b7b8c15 100644 --- a/doc/luaossl.tex +++ b/doc/luaossl.tex @@ -487,6 +487,10 @@ Returns the public key component as an \module{openssl.pkey} object. Sets the public key component referenced by the \module{openssl.pkey} object $key$. +\subsubsection[\fn{x509:getPublicKeyDigest}]{\fn{x509:getPublicKeyDigest([$type$])}} + +Returns the digest of the public key as a binary string. $type$ is an optional string describing the digest type, and defaults to ``sha1''. + \subsubsection[\fn{x509:sign}]{\fn{x509:sign($key$ [, $type$])}} Signs and updates the instance certificate using the \module{openssl.pkey} $key$. $type$ is an optional string describing the digest type. See \module{pkey:sign}, regarding which types of digests are valid. If $type$ is omitted than a default type is used---``sha1'' for RSA keys, ``dss1'' for DSA keys, and ``ecdsa-with-SHA1'' for EC keys. -- cgit v1.2.3-59-g8ed1b