The proper way to do this: CTR_Mode<AES>::Encryption Encryptor; Encryptor.SetKeyWithIV(key,16,iv,16); SecByteBlock KeyBuffer(16); KeyBuffer.CleanNew(16); Encryptor.ProcessData(KeyBuffer,KeyBuffer,16); // check the variable names and types of ProcessData here
This should put you the keystream into KeyBuffer. BR JPM Am 03.08.2015 um 18:58 schrieb becks 07: > Hello, > > > > > I'm using Crypto++ library > > I made the IV and key and passed them to the function > > |CTR_Mode< AES >::Encryption e; e.SetKeyWithIV(key, 16, iv); | > > Then when I encrypt I use the transformation filter on the string > itself to get the encrypted string. > > enter image description here > > I want to get the final cipher key which XORed with the string to > encrypt it ? Is there a way to get it from encryption object ? > > > some one suggested to encrypt 16 bytes of zeros and the o/p will be > the key but the problem is how to to thaat given that the encrypt > function takes string only ? > > -- > -- > 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. > --- > You received this message because you are subscribed to the Google > Groups "Crypto++ Users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- -- 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. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature
