I can't get the same result when I decrypt the same string.
the result of the first time is right.
the result of the second time is wrong.
who can help me?

the source code is below:

SecByteBlock key = ...
SecByteBlock iv = ...
SecByteBlock block(AES::BLOCKSIZE);
SecByteBlock block2(AES::BLOCKSIZE);
CTR_Mode< AES >::Decryption decryption(key, key.size(), iv);

decryption.ProcessString(block, data, AES::BLOCKSIZE);
decryption.ProcessString(block2, data, AES::BLOCKSIZE);

if (memcmp(block, block2, AES::BLOCKSIZE) != 0)
{
    printf("what is wrong???\n");
}

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

Reply via email to