> I tried the following which I thought would work
>
>     salsa.SetKey(key, 32, MakeParameters(Name::IV(),iv)
>             (Name::Rounds(), 12));
>
> my eclipse ide is complaining 
>
> Description    Resource    Path    Location    Type
>   required from ‘CryptoPP::AlgorithmParameters 
> CryptoPP::MakeParameters(const char*, const T&, bool) [with T = unsigned 
> char [8]]’    salsa12        line 388, external location: 
> /usr/include/crypto++/algparam.h    C/C++ Problem
>
> Description    Resource    Path    Location    Type
>   required from ‘CryptoPP::AlgorithmParameters& 
> CryptoPP::AlgorithmParameters::operator()(const char*, const T&, bool) 
> [with T = unsigned char [8]]’    salsa12        line 354, external 
> location: /usr/include/crypto++/algparam.h    C/C++ Problem
>
> any ideas?
>

You might try casting iv to a 'const byte*'. Maybe something like:

    AlgorithmParameters params = MakeParameters(Name::IV(), (const byte*)iv)
                                               (Name::Rounds(),12);
    salsa.SetKey(key, 32, params);

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.
--- 
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.

Reply via email to