Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a861d55

Browse files
committed
Document that the key should not contain null bytes.
1 parent db9198a commit a861d55

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/lib/librotor.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ \section{\module{rotor} ---
2929

3030
\begin{funcdesc}{newrotor}{key\optional{, numrotors}}
3131
Return 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
3334
to randomly generate the rotor permutations and their initial positions.
3435
\var{numrotors} is the number of rotor permutations in the returned object;
3536
if it is omitted, a default value of 6 will be used.
@@ -38,7 +39,7 @@ \section{\module{rotor} ---
3839
Rotor 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}

0 commit comments

Comments
 (0)