@@ -1074,7 +1074,7 @@ console.log(verify.verify(publicKey, signature));
1074
1074
// Prints: true or false
1075
1075
```
1076
1076
1077
- ### verifier .update(data[ , inputEncoding] )
1077
+ ### verify .update(data[ , inputEncoding] )
1078
1078
<!-- YAML
1079
1079
added: v0.1.92
1080
1080
changes:
@@ -1093,7 +1093,7 @@ encoding of `'utf8'` is enforced. If `data` is a [`Buffer`][], `TypedArray`, or
1093
1093
1094
1094
This can be called many times with new data as it is streamed.
1095
1095
1096
- ### verifier .verify(object, signature[ , signatureFormat] )
1096
+ ### verify .verify(object, signature[ , signatureFormat] )
1097
1097
<!-- YAML
1098
1098
added: v0.1.92
1099
1099
changes:
@@ -1110,7 +1110,7 @@ The `object` argument can be either a string containing a PEM encoded object,
1110
1110
which can be an RSA public key, a DSA public key, or an X.509 certificate,
1111
1111
or an object with one or more of the following properties:
1112
1112
1113
- * ` key ` : {string} - PEM encoded private key (required)
1113
+ * ` key ` : {string} - PEM encoded public key (required)
1114
1114
* ` padding ` : {integer} - Optional padding value for RSA, one of the following:
1115
1115
* ` crypto.constants.RSA_PKCS1_PADDING ` (default)
1116
1116
* ` crypto.constants.RSA_PKCS1_PSS_PADDING `
@@ -1132,7 +1132,7 @@ string; otherwise `signature` is expected to be a [`Buffer`][],
1132
1132
Returns ` true ` or ` false ` depending on the validity of the signature for
1133
1133
the data and public key.
1134
1134
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
1136
1136
called. Multiple calls to ` verify.verify() ` will result in an error being
1137
1137
thrown.
1138
1138
0 commit comments