Crypto documentation fixes
authorBrian White <mscdex@gmail.com>
Wed, 25 May 2011 04:26:57 +0000 (21:26 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 25 May 2011 06:35:18 +0000 (23:35 -0700)
Fixes #1104.

doc/api/crypto.markdown

index 78284b3..cefbd7b 100644 (file)
@@ -93,7 +93,7 @@ Returns the enciphered contents, and can be called many times with new data as i
 
 ### cipher.final(output_encoding='binary')
 
-Returns any remaining enciphered contents, with `output_encoding` being one of: `'binary'`, `'ascii'` or `'utf8'`.
+Returns any remaining enciphered contents, with `output_encoding` being one of: `'binary'`, `'base64'` or `'hex'`.
 
 ### crypto.createDecipher(algorithm, key)
 
@@ -142,7 +142,7 @@ This can be called many times with new data as it is streamed.
 ### verifier.verify(cert, signature, signature_format='binary')
 
 Verifies the signed data by using the `cert` which is a string containing
-the PEM encoded certificate, and `signature`, which is the previously calculates
+the PEM encoded certificate, and `signature`, which is the previously calculated
 signature for the data, in the `signature_format` which can be `'binary'`, `'hex'` or `'base64'`.
 
 Returns true or false depending on the validity of the signature for the data and public key.