]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport 1.19:
authorRaymond Hettinger <python@rcn.com>
Sat, 5 Oct 2002 15:14:33 +0000 (15:14 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 5 Oct 2002 15:14:33 +0000 (15:14 +0000)
Document that the key should not contain null bytes.

Doc/lib/librotor.tex

index e1db8eff06d356ea3177886e093659d11e54f210..de99b461cb4345040bc7dadbb9c254f1da3b7a3b 100644 (file)
@@ -29,7 +29,8 @@ The available functions in this module are:
 
 \begin{funcdesc}{newrotor}{key\optional{, numrotors}}
 Return a rotor object. \var{key} is a string containing the encryption key
-for the object; it can contain arbitrary binary data. The key will be used
+for the object; it can contain arbitrary binary data but not null bytes.
+The key will be used
 to randomly generate the rotor permutations and their initial positions.
 \var{numrotors} is the number of rotor permutations in the returned object;
 if it is omitted, a default value of 6 will be used.
@@ -38,7 +39,7 @@ if it is omitted, a default value of 6 will be used.
 Rotor objects have the following methods:
 
 \begin{methoddesc}[rotor]{setkey}{key}
-Sets the rotor's key to \var{key}.
+Sets the rotor's key to \var{key}. The key should not contain null bytes.
 \end{methoddesc}
 
 \begin{methoddesc}[rotor]{encrypt}{plaintext}