Skip to content

Commit

Permalink
doc: fix verify in crypto.md
Browse files Browse the repository at this point in the history
PR-URL: #14469
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
rus0000 authored and addaleax committed Jul 27, 2017
1 parent 91b6ba1 commit e9088f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ console.log(verify.verify(publicKey, signature));
// Prints: true or false
```

### verifier.update(data[, inputEncoding])
### verify.update(data[, inputEncoding])
<!-- YAML
added: v0.1.92
changes:
Expand All @@ -1093,7 +1093,7 @@ encoding of `'utf8'` is enforced. If `data` is a [`Buffer`][], `TypedArray`, or

This can be called many times with new data as it is streamed.

### verifier.verify(object, signature[, signatureFormat])
### verify.verify(object, signature[, signatureFormat])
<!-- YAML
added: v0.1.92
changes:
Expand All @@ -1110,7 +1110,7 @@ The `object` argument can be either a string containing a PEM encoded object,
which can be an RSA public key, a DSA public key, or an X.509 certificate,
or an object with one or more of the following properties:

* `key`: {string} - PEM encoded private key (required)
* `key`: {string} - PEM encoded public key (required)
* `padding`: {integer} - Optional padding value for RSA, one of the following:
* `crypto.constants.RSA_PKCS1_PADDING` (default)
* `crypto.constants.RSA_PKCS1_PSS_PADDING`
Expand All @@ -1132,7 +1132,7 @@ string; otherwise `signature` is expected to be a [`Buffer`][],
Returns `true` or `false` depending on the validity of the signature for
the data and public key.

The `verifier` object can not be used again after `verify.verify()` has been
The `verify` object can not be used again after `verify.verify()` has been
called. Multiple calls to `verify.verify()` will result in an error being
thrown.

Expand Down

0 comments on commit e9088f9

Please sign in to comment.