For example, when using CTR mode, I can use something like the following 
code fragment to randomly seek to a position in a data buffer:

        CryptoPP::CTR_Mode<CryptoPP::AES>::Encryption encryptor;
        encryptor.SetKeyWithIV(key, sizeof(key), iv);
        encryptor.Seek(startPosition);
        encryptor.ProcessData(out, in, length);

This works very nicely but I would like to use GCM instead.

Can I therefore do something like the following?

        CryptoPP::GCM<CryptoPP::AES>::Encryption encryptor;
        encryptor.SetKeyWithIV(key, sizeof(key), iv);
        encryptor.Seek(startPosition);
        encryptor.ProcessData(out, in, length);

As you can probably tell, I'm not a cryptographer.

Many thanks,

Ben.


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