paulmillr / noble-ciphers

Audited & minimal JS implementation of Salsa20, ChaCha and AES
https://paulmillr.com/noble
MIT License
214 stars 8 forks source link

fix cipher types #4

Closed mpetrunic closed 1 year ago

mpetrunic commented 1 year ago

Types are not updated to reflect possible reusing of output.

Signed-off-by: Marin Petrunic marin.petrunic@gmail.com

paulmillr commented 1 year ago

Thanks, salsa is complicated and its decrypt does not support output for now, so i've added it manually.

I see you've had Cipher & Omit<CipherWithReusableOutput, 'decrypt'> - nice