File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ function unpad(data, last) {
338
338
}
339
339
} else {
340
340
if ( data [ i ] !== 1 ) {
341
- throw new Error ( 'last record needs to start padding with a 2 ' ) ;
341
+ throw new Error ( 'record needs to start padding with a 1 ' ) ;
342
342
}
343
343
}
344
344
return data . slice ( 0 , i ) ;
@@ -472,7 +472,8 @@ function writeHeader(header) {
472
472
* If |params.key| is specified, that value is used as the key.
473
473
*
474
474
* If |params.keyid| is specified without |params.dh|, the keyid value is used
475
- * to lookup the |params.keymap| for a buffer containing the key.
475
+ * to lookup the |params.keymap| for a buffer containing the key. This feature
476
+ * is deprecated in favour of just including |params.key| or |params.privateKey|.
476
477
*
477
478
* For Diffie-Hellman (WebPush), |params.dh| includes the public key of the
478
479
* receiver. |params.privateKey| is used to establish a shared secret. For
You can’t perform that action at this time.
0 commit comments