You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
I'm not familiar enough with this library to advise how to make this into a StreamCipher instance, (since it only appears to have a single method, not a decrypt and encrpyt, but a "combine") but would appriciate if someone could do that copy paste.
Upon further inspection, the StreamCipher class doesn't make any sense to me, and probably isn't what is needed here. There's no substantive documentation, and no instances as far as I can tell. I don't know why it exists at all tbh.
The commented out function I linked above looks sketchy at best, and does some really weird stuff compared to my code, which is based directly on the Wikipedia page on block cipher modes (Specifically the part about CFB8, which is essentially shimming CFB to work with block sizes of 8 bits. There is also a bitwise CFB1)
Perhaps that function is more efficient, but I don't think it actually has CFB8 implemented properly because it is padding with 0s and ciphering with CFB instead of ECB which is not how CFB8 or CFB1 work at all. It also appears to throw out the final IV, which is super weird.
Hi,
Here is question about if there is any plan adding CFB mode to stream cipher.
Unlike CBC or ECB, CFB is a self-synchronizing stream cipher, which can work perfect in both block and stream mode.
It would be great if we can have such code
Or just like what AES dose, having some monad encasing everything, IV and IV offset, in the context.
The text was updated successfully, but these errors were encountered: