Skip to content

Commit e9088f9

Browse files
rus0000addaleax
authored andcommittedJul 27, 2017
doc: fix verify in crypto.md
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]>
1 parent 91b6ba1 commit e9088f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎doc/api/crypto.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ console.log(verify.verify(publicKey, signature));
10741074
// Prints: true or false
10751075
```
10761076

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

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

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

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

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

0 commit comments

Comments
 (0)