We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 676b009 commit 2c88fd1Copy full SHA for 2c88fd1
1 file changed
nodejs/ece.js
@@ -322,7 +322,7 @@ function unpad(data, last) {
322
}
323
} else {
324
if (data[i] !== 1) {
325
- throw new Error('last record needs to start padding with a 2');
+ throw new Error('records other than the last need to start padding with a 1');
326
327
328
return data.slice(0, i);
@@ -455,7 +455,7 @@ function writeHeader(header) {
455
* receiver. |params.privateKey| is used to establish a shared secret. Key
456
* pairs can be created using |crypto.createECDH()|.
457
*/
458
-function encrypt(buffer, params, keyLookupCallback) {
+function encrypt(buffer, params, keyLookupCallback) {
459
if (!Buffer.isBuffer(buffer)) {
460
throw new Error('buffer argument must be a Buffer');
461
0 commit comments