@@ -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
10791079added: v0.1.92
10801080changes:
@@ -1093,7 +1093,7 @@ encoding of `'utf8'` is enforced. If `data` is a [`Buffer`][], `TypedArray`, or
10931093
10941094This 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
10981098added: v0.1.92
10991099changes:
@@ -1110,7 +1110,7 @@ The `object` argument can be either a string containing a PEM encoded object,
11101110which can be an RSA public key, a DSA public key, or an X.509 certificate,
11111111or 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`][],
11321132Returns ` true ` or ` false ` depending on the validity of the signature for
11331133the 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
11361136called. Multiple calls to ` verify.verify() ` will result in an error being
11371137thrown.
11381138
0 commit comments