@@ -57,6 +57,8 @@ This can be called many times with new data as it is streamed.
5757Calculates the digest of all of the passed data to be hashed.
5858The ` encoding ` can be ` 'hex' ` , ` 'binary' ` or ` 'base64' ` .
5959
60+ Note: ` hash ` object can not be used after ` digest() ` method been called.
61+
6062
6163### crypto.createHmac(algorithm, key)
6264
@@ -75,6 +77,8 @@ This can be called many times with new data as it is streamed.
7577Calculates the digest of all of the passed data to the hmac.
7678The ` encoding ` can be ` 'hex' ` , ` 'binary' ` or ` 'base64' ` .
7779
80+ Note: ` hmac ` object can not be used after ` digest() ` method been called.
81+
7882
7983### crypto.createCipher(algorithm, password)
8084
@@ -106,6 +110,9 @@ Returns the enciphered contents, and can be called many times with new data as i
106110
107111Returns any remaining enciphered contents, with ` output_encoding ` being one of: ` 'binary' ` , ` 'base64' ` or ` 'hex' ` .
108112
113+ Note: ` cipher ` object can not be used after ` final() ` method been called.
114+
115+
109116### crypto.createDecipher(algorithm, password)
110117
111118Creates and returns a decipher object, with the given algorithm and key.
@@ -126,6 +133,8 @@ The `output_decoding` specifies in what format to return the deciphered plaintex
126133Returns any remaining plaintext which is deciphered,
127134with ` output_encoding ` being one of: ` 'binary' ` , ` 'ascii' ` or ` 'utf8' ` .
128135
136+ Note: ` decipher ` object can not be used after ` final() ` method been called.
137+
129138
130139### crypto.createSign(algorithm)
131140
@@ -145,6 +154,9 @@ Calculates the signature on all the updated data passed through the signer.
145154
146155Returns the signature in ` output_format ` which can be ` 'binary' ` , ` 'hex' ` or ` 'base64' ` .
147156
157+ Note: ` signer ` object can not be used after ` sign() ` method been called.
158+
159+
148160### crypto.createVerify(algorithm)
149161
150162Creates and returns a verification object, with the given algorithm.
@@ -164,3 +176,6 @@ signature for the data, in the `signature_format` which can be `'binary'`,
164176` 'hex' ` or ` 'base64' ` .
165177
166178Returns true or false depending on the validity of the signature for the data and public key.
179+
180+ Note: ` verifier ` object can not be used after ` verify() ` method been called.
181+
0 commit comments