[erlang-patches] crypto man page error

Tim Fletcher <>
Tue Aug 26 15:48:36 CEST 2008


At the bottom of the crypto man page there is a section titled "DES in
CBC mode", which contains some example code which appears to be wrong.
"Key" and "IVec" are defined variables, but then the call to
crypto:des_cbc_encrypt/3 uses "K" and "I", which don't exist.

Also, the parameter list in the call to crypto:des_cbc_decrypt/3
doesn't contain any spaces, which is inconsistent (if not generally,
at least with the previous function call).

More subjectively, I think the surrounding text has a few minor
grammatical errors and is generally a bit unclear, so it might be
worth checking the whole section through.

Hope that helps.

Tim



More information about the erlang-patches mailing list