Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please, help me to encode and a byte array using Crypto++ TEA algorythm or similar!

I want to have a
unsigned char *lOutputArray;

at output if I have
unsigned char *lInputArray;
unsigned char *lSecretKey;


The problem is that I cannot use std:strings, like in many examples is used.

Thanks!
Posted

Applied Crypto++: Block Ciphers[^] Sample 1 does not use std::string, so you can adapt the sample code to your needs.
cheers,
AR
 
Share this answer
 
v2
CryptoPP::ECB_Mode<CryptoPP::AES>::Encryption lEncryptor;
gives
undefined reference to `CryptoPP::g_nullNameValuePairs'
='(

And I can't get how to use my own secret key. Just instead of memset?
 
Share this answer
 
Comments
Urvin-dt 2-Oct-10 12:48pm    
... cryptopp\cryptlib.h|350|undefined reference to `vtable for CryptoPP::SimpleKeyingInterface'|
and other 44 errors

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900