File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ \section{\module{rotor} ---
2929
3030\begin {funcdesc }{newrotor}{key\optional {, numrotors}}
3131Return a rotor object. \var {key} is a string containing the encryption key
32- for the object; it can contain arbitrary binary data. The key will be used
32+ for the object; it can contain arbitrary binary data but not null bytes.
33+ The key will be used
3334to randomly generate the rotor permutations and their initial positions.
3435\var {numrotors} is the number of rotor permutations in the returned object;
3536if it is omitted, a default value of 6 will be used.
@@ -38,7 +39,7 @@ \section{\module{rotor} ---
3839Rotor objects have the following methods:
3940
4041\begin {methoddesc }[rotor]{setkey}{key}
41- Sets the rotor's key to \var {key}.
42+ Sets the rotor's key to \var {key}. The key should not contain null bytes.
4243\end {methoddesc }
4344
4445\begin {methoddesc }[rotor]{encrypt}{plaintext}
You can’t perform that action at this time.
0 commit comments