aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLibravatarLibravatar william <william@25thandclement.com> 2015-02-25 14:58:33 -0800
committerLibravatarLibravatar william <william@25thandclement.com> 2015-02-25 14:58:33 -0800
commit7dce9c391259f1b72f949f73ac1604d6fcb79fdd (patch)
tree5f60be305aab04077da5fbcd8e3b4ee0e46d9ffd /doc
parent1476267d26c9b0cac8818bf7a74696d48505b79d (diff)
downloadluaossl-7dce9c391259f1b72f949f73ac1604d6fcb79fdd.tar.gz
luaossl-7dce9c391259f1b72f949f73ac1604d6fcb79fdd.tar.bz2
luaossl-7dce9c391259f1b72f949f73ac1604d6fcb79fdd.zip
document des.set_odd_parity and add example
Diffstat (limited to 'doc')
-rw-r--r--doc/luaossl.pdfbin281822 -> 282537 bytes
-rw-r--r--doc/luaossl.tex10
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf
index 8078e4b..4237910 100644
--- a/doc/luaossl.pdf
+++ b/doc/luaossl.pdf
Binary files differ
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,
\begin{Module}{openssl.des}
-Binds 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.
+Binds 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.
\subsubsection[\fn{des.string\_to\_key}]{\fn{des.string\_to\_key($password$)}}
-Converts an arbitrary length string, $password$, to a DES key. Returns an 8-byte string.
+Converts an arbitrary length string, $password$, to a DES key using DES\_string\_to\_key. Returns an 8-byte string.
+
+Note 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.
+
+\subsubsection[\fn{des.set\_odd\_parity}]{\fn{des.set\_odd\_parity($key$)}}
+
+Applies DES\_set\_odd\_parity to the string $key$. Only the first 8 bytes of $key$ are processed. Returns an 8-byte string.
\end{Module}