From: Ryan Dahl Date: Thu, 10 Feb 2011 03:07:17 +0000 (-0800) Subject: fix verifier.verify() docs X-Git-Tag: v0.4.0~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67e352e4b1ad11c674c3e79a4a6e1d9bb159fcc6;p=platform%2Fupstream%2Fnodejs.git fix verifier.verify() docs Thanks Sitelier. Closes GH-651. --- diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 9e83235..af8bd58 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -118,12 +118,12 @@ This is the mirror of the signing object above. ### verifier.update(data) -Updates the verifyer object with data. +Updates the verifier object with data. This can be called many times with new data as it is streamed. -### verifier.verify(public_key, signature, signature_format='binary') +### verifier.verify(cert, signature, signature_format='binary') -Verifies the signed data by using the `public_key` which is a string containing +Verifies the signed data by using the `cert` which is a string containing the PEM encoded public key, and `signature`, which is the previously calculates signature for the data, in the `signature_format` which can be `'binary'`, `'hex'` or `'base64'`.