You need to reinterpret_cast const char* to const byte* :-e.SetKeyWithIV(reinterpret_cast<const
byte*>(fkey.data()), fkey.size(), reinterpret_cast<const
byte*>(fiv.data()));Or you can use the byte arrays from which the string versions were created:- e.SetKeyWithIV(key, sizeof(key), iv);Cheers, Fraser. On 07/12/2012 23:42, Alvaro Leiva
wrote:
its byte data in char data type !? -- 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. |
Title: Snippet
- error: invalid conversion from ‘const char*’ to ‘const by... Alvaro Leiva
- Re: error: invalid conversion from ‘const char*’ to ... Alvaro Leiva
- Re: error: invalid conversion from ‘const char*’... Fraser Hutchison
- Re: error: invalid conversion from ‘const ch... Jeffrey Walton
