diff options
author | Guido van Rossum <guido@python.org> | 2002-06-10 19:42:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-06-10 19:42:43 (GMT) |
commit | a861d552c3e8925384fdeb6fdd18e5d839a36ac5 (patch) | |
tree | b642a9d6326fa9abbf73b778bd535de7fe43c17b | |
parent | db9198a8b59377e9407811e571be8baca74d2475 (diff) | |
download | cpython-a861d552c3e8925384fdeb6fdd18e5d839a36ac5.zip cpython-a861d552c3e8925384fdeb6fdd18e5d839a36ac5.tar.gz cpython-a861d552c3e8925384fdeb6fdd18e5d839a36ac5.tar.bz2 |
Document that the key should not contain null bytes.
-rw-r--r-- | Doc/lib/librotor.tex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/lib/librotor.tex b/Doc/lib/librotor.tex index e1db8ef..de99b46 100644 --- a/Doc/lib/librotor.tex +++ b/Doc/lib/librotor.tex @@ -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} |