Thank you very much, it solved my problem! Jeffrey Walton-3 wrote: > > > > On May 21, 7:37 pm, glauberyt <[email protected]> wrote: >> Hello! >> I have a question: how to set the length of chaining block (CBC, CFB, >> OFB, >> ECB etc.) for AES in Crypto++? I thought it is taken from the length of >> init >> vector, but it isn't. > Some modes require the chaining size to be that of the underlying > block cipher's block size. For example, trying to set the feedback or > chaining size for CBC mode will result in an exception (if I recall > correctly). > > For modes which accept a size, I believe you need to use an external > mode cipher. For example: > AESEncryption aes(...); > CFB_Mode_ExternalCipher cfb(aes, ..., <feedback size>); > > There is also a SetFeedbackSize which can be used on the external mode > cipher objects. You can cruise the class reference to locate objects > of interest (such as CFB_Mode_ExternalCipher) at > http://www.cryptopp.com/docs/ref/annotated.html. > > Jeff > > -- > You received this message because you are subscribed to the "Crypto++ > Users" Google Group. > To unsubscribe, send an email to > [email protected]. > More information about Crypto++ and this group is available at > http://www.cryptopp.com. > >
-- View this message in context: http://old.nabble.com/Crypto%2B%2B-block-length-tp31673079p31675312.html Sent from the Crypto++ Users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com.
