Closed tannaurus closed 5 months ago
Yes, it should be "resulting plaintext slice".
Thank you for reporting this! Unfortunately, the fix will probably land only in the next breaking release (i.e. cipher v0.5), it will be somewhat inconvenient to to a backport for cipher v0.4.
No worries! Just confirming this is expected behavior is good enough for us 😃 thanks for the quick reply and fix @newpavlov !
BlockCipherDecrypt
'sdecrypt_padded
method's documentation reads:But it is actually returning a slice of plaintext bytes. I suppose it would be fair to say "it's a slice of decrypted bytes that were written into the provided ciphertext buffer" but in it's current state, the documentation feels misleading/inaccurate (depending on how you look at it 😄 )