On Dec 8, 8:36 am, Fraser Hutchison <[email protected]> wrote: > 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, I generally remove the casts in the sample code to help with code readability.
The sample programs include the casts. Jeff > Fraser.On 07/12/2012 23:42, Alvaro Leiva wrote: > > its byte data in char data type !? > how i transform it to byte data type ? > El viernes, 7 de diciembre de 2012 19:18:31 UTC-3, Alvaro Leiva escribi :I > have been trying to use the HexDecoder as it > shows:http://www.cryptopp.com/wiki/HexDecoderto decode the key and iv in a > usefull manner to be compatible with:.SetKeyWithIV(), so far I have tried a > bounch of things with no luck, here is my failed implementation:#include > "osrng.h" > > [SNIP] -- 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.
