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
Hello!
For belt-ecb I need ciphertext stealing. And what is the best way to implement it?
Just make encrypt method and do not process block by block, process always all blocks, or implement block-padding CiphertextStealing, which accept 3*BlockSize and pad only last block?
The text was updated successfully, but these errors were encountered:
I think we need to implement a generic CTS crate, then you would define belt-ecb as Cts2<BeltBlock> and belt-cbc as Cts2<cbc::En(De)cryptor<BeltBlock>>. Since we currently do not have traits for ciphertext stealing, we should be fine with using inherent methods on the structs.
Hello!
For
belt-ecb
I need ciphertext stealing. And what is the best way to implement it?Just make encrypt method and do not process block by block, process always all blocks, or implement block-padding CiphertextStealing, which accept 3*BlockSize and pad only last block?
The text was updated successfully, but these errors were encountered: