Lines Matching refs:final
31 ciph += cipher.final('hex');
35 txt += decipher.final('utf8');
67 ciph += cipher.final('base64');
71 txt += decipher.final('utf8');
153 const s = c.update('test', 'utf8', 'base64') + c.final('base64');
157 // Calling Cipher.final() or Decipher.final() twice should error but
161 try { c.final('xxx'); } catch { /* Ignore. */ }
162 try { c.final('xxx'); } catch { /* Ignore. */ }
163 try { c.final('xxx'); } catch { /* Ignore. */ }
165 try { d.final('xxx'); } catch { /* Ignore. */ }
166 try { d.final('xxx'); } catch { /* Ignore. */ }
167 try { d.final('xxx'); } catch { /* Ignore. */ }
175 c.final();
183 c.final('utf-8'); // Should not throw.
187 c.final('utf-8'); // Should not throw.
191 c.final('utf8'); // Should not throw.
200 ciph += c.final('base64');
206 txt += decipher.final('ucs2');
211 txt += decipher.final('ucs-2');
216 txt += decipher.final('utf-16le');
250 const encrypted = Buffer.concat([cipher.update(data), cipher.final()]);
257 decipher.final();