Richard MacCutchan wrote:
Well then you should not need anything else. What happens when you run your code?
It did write the external file but when I try to load and read the file. I can't decrypt the crypted file. I used the codings below:
byte key[16],iv[16];
string sosemanukKey;
FileSource("sosemanuk.key", true,
new StringSink (sosemanukKey));
memcpy(key,sosemanukKey.c_str(),sosemanukKey.length());
It seems that the byte array 'key' holds a different value from the external file "sosemanuk.key".
Maybe you can show me another alternative to read the external file and write a new byte array variable. Thank you.