XTS does not get the expected result for non-byte-aligned NIST vectors

yu li <[email protected]>
Newsgroups gmane.comp.encryption.cryptopp
Message-ID <[email protected]>
I intend to use Crypto++  XTS-AES for encrypting data.  I tested XTS-AES 
with the following NIST vector and got an unexpected 
CT= 54a8629d76db46d0c516fca52c9c903baa3a635ddd56f09760f63252c8b46140 .   

I call the following function:
XTS_Mode< AES >::Encryption e;
e.SetKeyWithIV(in_key, KeySize, in_iv, IVSize);
    StringSource(in_plain_txt,svSize(plain_txt, 1),true, 
new StreamTransformationFilter(e,
new StringSink(cipher),
                StreamTransformationFilter::NO_PADDING
) // StreamTransformationFilter
); // StringSource

My questions:

   - Does  Crypto++  XTS-AES  not support non-byte aligned data encryption 
   and decryption?
   

NIST vector :
COUNT = 301
DataUnitLen = 250
Key = 
d6b58f6638f64c3692a5b53671c5d51e0abf5169437aacb363fbcfcb91f9f6b0f536d0e12dd662d3151a77524eae5ad5e1b9cf860199981edd09ccf99f86fcd2
i = f5bf2260198883d03b133810fafec16c
PT = 8b81371f87661e49b904c8272def606717c3050c125905d23a2f0c142132ee00
CT = 84a7f42be588fa36442d33f098ec56e554a8629d76db46d0c516fca52c9c9000

-- 
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].
To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/50a4a1d2-9e11-49c3-b403-ef48b24a09e5n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.