Browse Source

doc: fix typo in crypto docs

v0.10.1-release
JeongHoon Byun 12 years ago
committed by Ben Noordhuis
parent
commit
f217b5ed62
  1. 14
      doc/api/crypto.markdown

14
doc/api/crypto.markdown

@ -110,7 +110,7 @@ Calculates the digest of all of the passed data to be hashed. The
`encoding` can be `'hex'`, `'binary'` or `'base64'`. If no encoding `encoding` can be `'hex'`, `'binary'` or `'base64'`. If no encoding
is provided, then a buffer is returned. is provided, then a buffer is returned.
Note: `hash` object can not be used after `digest()` method been Note: `hash` object can not be used after `digest()` method has been
called. called.
@ -144,7 +144,7 @@ Calculates the digest of all of the passed data to the hmac. The
`encoding` can be `'hex'`, `'binary'` or `'base64'`. If no encoding `encoding` can be `'hex'`, `'binary'` or `'base64'`. If no encoding
is provided, then a buffer is returned. is provided, then a buffer is returned.
Note: `hmac` object can not be used after `digest()` method been Note: `hmac` object can not be used after `digest()` method has been
called. called.
@ -194,7 +194,7 @@ encoding is provided, then a buffer is expected.
The `output_encoding` specifies the output format of the enciphered The `output_encoding` specifies the output format of the enciphered
data, and can be `'binary'`, `'base64'` or `'hex'`. If no encoding is data, and can be `'binary'`, `'base64'` or `'hex'`. If no encoding is
provided, then a buffer iis returned. provided, then a buffer is returned.
Returns the enciphered contents, and can be called many times with new Returns the enciphered contents, and can be called many times with new
data as it is streamed. data as it is streamed.
@ -205,7 +205,7 @@ Returns any remaining enciphered contents, with `output_encoding`
being one of: `'binary'`, `'base64'` or `'hex'`. If no encoding is being one of: `'binary'`, `'base64'` or `'hex'`. If no encoding is
provided, then a buffer is returned. provided, then a buffer is returned.
Note: `cipher` object can not be used after `final()` method been Note: `cipher` object can not be used after `final()` method has been
called. called.
### cipher.setAutoPadding(auto_padding=true) ### cipher.setAutoPadding(auto_padding=true)
@ -254,7 +254,7 @@ Returns any remaining plaintext which is deciphered, with
`output_encoding` being one of: `'binary'`, `'ascii'` or `'utf8'`. If `output_encoding` being one of: `'binary'`, `'ascii'` or `'utf8'`. If
no encoding is provided, then a buffer is returned. no encoding is provided, then a buffer is returned.
Note: `decipher` object can not be used after `final()` method been Note: `decipher` object can not be used after `final()` method has been
called. called.
### decipher.setAutoPadding(auto_padding=true) ### decipher.setAutoPadding(auto_padding=true)
@ -297,7 +297,7 @@ Returns the signature in `output_format` which can be `'binary'`,
`'hex'` or `'base64'`. If no encoding is provided, then a buffer is `'hex'` or `'base64'`. If no encoding is provided, then a buffer is
returned. returned.
Note: `sign` object can not be used after `sign()` method been Note: `sign` object can not be used after `sign()` method has been
called. called.
## crypto.createVerify(algorithm) ## crypto.createVerify(algorithm)
@ -334,7 +334,7 @@ If no encoding is specified, then a buffer is expected.
Returns true or false depending on the validity of the signature for Returns true or false depending on the validity of the signature for
the data and public key. the data and public key.
Note: `verifier` object can not be used after `verify()` method been Note: `verifier` object can not be used after `verify()` method has been
called. called.
## crypto.createDiffieHellman(prime_length) ## crypto.createDiffieHellman(prime_length)

Loading…
Cancel
Save