From ae23641ce0531e77b77d660873de1c2e374d21d0 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 10 Mar 2015 13:17:22 +0000 Subject: Use /usr/bin/env to find python in the install script, Python doc updates Both from Uri B to mailing list. --- doc/manual/python.rst | 17 ++++++++++------- src/scripts/install.py | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/doc/manual/python.rst b/doc/manual/python.rst index 295caa3c3..cef9fddd2 100644 --- a/doc/manual/python.rst +++ b/doc/manual/python.rst @@ -109,7 +109,8 @@ Ciphers .. py:method:: update_granularity() - Returns update block size + Returns update block size. Call to update() must provide + input of exactly this many bytes .. py:method:: is_authenticated() @@ -134,15 +135,17 @@ Ciphers .. py:method:: update(txt) - Consumes input text and returns output + Consumes input text and returns output. Input text must be + of update_granularity() length. Alternately, always call + finish with the entire message, avoiding calls to update + entirely .. py:method:: finish(txt = None) - Finish processing (with an optional final input). May throw if - message authentication checks fail, in which case all plaintext - previously processed must be discarded. Alternately, always - call finish with the entire message, avoiding calls to update - entirely. + Finish processing (with an optional final input). May throw + if message authentication checks fail, in which case all + plaintext previously processed must be discarded. You may + call finish() with the entire message Bcrypt ---------------------------------------- diff --git a/src/scripts/install.py b/src/scripts/install.py index b279de768..6f6a9fecc 100755 --- a/src/scripts/install.py +++ b/src/scripts/install.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """ Botan install script -- cgit v1.2.3