Hello, I have a small crypto question. I noticed that in the "crypto/cipher" package CBC and ECB are BlockMode type while CFB,CTR,OFB are Stream type. At the basics, they are all modes of operation that allow us to encrypt messages with a variable length. What is the technical reason for this split? I am asking since myself I implement a small module that encrypts some data and I want to be able to be generic and choose if I want to encrypt with gcm, cbc or ctr (but for different modes of operation I need to provide different types). So I cannot provide a generic interface for my module. Thank you.
Sonia -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.