Lines Matching refs:update
122 let hex = encrypt.update(test.plain, inputEncoding, 'hex');
152 let msg = decrypt.update(test.ct, 'hex', outputEncoding);
171 let hex = encrypt.update(test.plain, 'ascii', 'hex');
191 let msg = decrypt.update(test.ct, 'hex', 'ascii');
208 encrypt.update('blah', 'ascii');
230 encrypt.update('blah', 'ascii');
287 cipher.update('01234567', 'hex');
313 decipher.update('3a2a3647', 'hex'),
463 // Test that setAAD and update throw if the plaintext is too long.
482 cipher().update(msg);
489 c.update(msg.slice(1));
534 decrypt.update(ct);
547 assert.strictEqual(decrypt.update('807022', 'hex', 'hex'), 'abcdef');
557 encrypt.update('boom'); // Should not throw 'Message exceeds maximum size'.
573 const ciphertext = Buffer.concat([cipher.update(plain), cipher.final()]);
583 const resultUpdate = decipher.update(ciphertext);
604 const ciphertext = Buffer.concat([cipher.update(plain), cipher.final()]);
614 decipher.update(ciphertext),
704 // require the authentication tag before calls to update() during decryption.
712 const ciphertext = Buffer.concat([cipher.update('foo'), cipher.final()]);
724 const plaintext = decipher.update(ciphertext);
772 cipher.setAAD(aad).update(testCase.plain, 'hex'),
782 decipher.setAAD(aad).update(ciphertext),
805 cipher.setAAD(aad).update(testCase.plain, 'hex'),
814 decipher.setAAD(aad).update(ciphertext);