On Tuesday, August 26, 2014 6:18:21 AM UTC-4, [email protected] wrote:
>
> 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.
>
It does not appear so.
 
        GCM< AES >::Decryption dec;
        cout << (dec.IsRandomAccess() ? "Yes, is seekable" : "No, is not 
seekable") << endl; 

Results in:

    $ ./cryptopp-test.exe
    No, is not seekable

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