diff options
author | daurnimator <quae@daurnimator.com> | 2018-11-01 17:01:52 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2019-02-14 16:08:37 +1100 |
commit | 8eaf1a460901645345e960223f9e1de7f9652376 (patch) | |
tree | 26f87e36c483d3b25928df6405e296af27d5b29d /doc | |
parent | c5bf3d5272e38b312ff1e3334c0dc3cbdd461caa (diff) | |
download | luaossl-8eaf1a460901645345e960223f9e1de7f9652376.tar.gz luaossl-8eaf1a460901645345e960223f9e1de7f9652376.tar.bz2 luaossl-8eaf1a460901645345e960223f9e1de7f9652376.zip |
src/openssl.c: Add kdf.derive
Diffstat (limited to 'doc')
-rw-r--r-- | doc/luaossl.tex | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/luaossl.tex b/doc/luaossl.tex index c63df57..8561957 100644 --- a/doc/luaossl.tex +++ b/doc/luaossl.tex @@ -1457,6 +1457,37 @@ Applies DES\_set\_odd\_parity to the string $key$. Only the first 8 bytes of $ke \end{Module} +\begin{Module}{openssl.kdf} + +Binds OpenSSL's Key Derivation Function interfaces. + +\subsubsection[\fn{kdf.derive}]{\fn{kdf.derive($options$)}} + +Derive a key given the table of $options$, different KDF types require different options. Accepted options are: + +\begin{ctabular}{ c | c | p{5in}} +field & type & description\\\hline +.type & string & key derivation algorithm---``PBKDF2'', ``id-scrypt'', ``hkdf'', ``TLS-PRF1'' or other depending on your version of OpenSSL \\ +.outlen & number & the desired output size \\ +.pass & string & password \\ +.salt & string & salt \\ +.iter & number & iteration count \\ +.md & string & digest to use \\ +.key & string & key \\ +.maxmem\_bytes & number & amount of RAM key derivation may maximally use (in bytes) \\ +.secret & string & TLS1-PRF secret \\ +.seed & string & TLS1-PRF seed \\ +.hkdf\_mode & string & the HKDF mode to use, one of ``extract\_and\_expand'', ``extract\_only'' or ``expand\_only'' \\ +.info & string & HKDF info value \\ +.N & number & scrypt ``N'' parameter to use \\ +.r & number & scrypt ``r'' parameter to use \\ +.p & number & scrypt ``p'' parameter to use +\end{ctabular} + + +\end{Module} + + \chapter{Examples} These examples and others are made available under examples/ in the source tree. |