summaryrefslogtreecommitdiff
path: root/doc/luaossl.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/luaossl.tex')
-rw-r--r--doc/luaossl.tex10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/luaossl.tex b/doc/luaossl.tex
index 239c98a..2302e3a 100644
--- a/doc/luaossl.tex
+++ b/doc/luaossl.tex
@@ -985,11 +985,17 @@ The routine operates internally on 64-bit unsigned integers.\footnote{Actually,
985 985
986\begin{Module}{openssl.des} 986\begin{Module}{openssl.des}
987 987
988Binds OpenSSL's DES interfaces. These bindings are incomplete. No modern protocol would ever need to use these directly. However, legacy protocols like Windows NTLM authentication require some of these low-level interfaces. 988Binds OpenSSL's DES interfaces. These bindings are incomplete. No modern protocol would ever need to use these directly. However, legacy protocols like Windows LAN Manager authentication require some of these low-level interfaces.
989 989
990\subsubsection[\fn{des.string\_to\_key}]{\fn{des.string\_to\_key($password$)}} 990\subsubsection[\fn{des.string\_to\_key}]{\fn{des.string\_to\_key($password$)}}
991 991
992Converts an arbitrary length string, $password$, to a DES key. Returns an 8-byte string. 992Converts an arbitrary length string, $password$, to a DES key using DES\_string\_to\_key. Returns an 8-byte string.
993
994Note that OpenSSL's DES\_string\_to\_key is not compatible with Windows LAN Manager hashing scheme. Use \fn{des.set\_odd\_parity} instead. See examples/lm.hash.
995
996\subsubsection[\fn{des.set\_odd\_parity}]{\fn{des.set\_odd\_parity($key$)}}
997
998Applies DES\_set\_odd\_parity to the string $key$. Only the first 8 bytes of $key$ are processed. Returns an 8-byte string.
993 999
994\end{Module} 1000\end{Module}
995 1001