Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: fix Verify in crypto.md
##### Checklist
- [x] documentation is changed or added
- [x] the commit message follows commit guidelines
##### Affected core subsystem(s)
doc
##### Description of change
doc: fix Verify in crypto.md
  • Loading branch information
rus0000 authored Jul 25, 2017
commit dd9c585ecc09e583f446264ed092dd0378f529cd
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