Lines Matching refs:plain
109 plaintextLength: Buffer.from(test.plain, inputEncoding).length
122 let hex = encrypt.update(test.plain, inputEncoding, 'hex');
155 assert.strictEqual(msg, test.plain);
171 let hex = encrypt.update(test.plain, 'ascii', 'hex');
194 assert.strictEqual(msg, test.plain);
564 const plain = Buffer.from('Hello world', 'utf8');
573 const ciphertext = Buffer.concat([cipher.update(plain), cipher.final()]);
589 assert(result.equals(plain));
597 const plain = Buffer.from('Hello world', 'utf8');
604 const ciphertext = Buffer.concat([cipher.update(plain), cipher.final()]);
617 assert(plain.equals(plaintext));
631 plain: '4c616469657320616e642047656e746c656d656e206f662074686520636c6173' +
772 cipher.setAAD(aad).update(testCase.plain, 'hex'),
786 assert.strictEqual(plaintext.toString('hex'), testCase.plain);
805 cipher.setAAD(aad).update(testCase.plain, 'hex'),