Hi,

I need to perform some Known-Answer-Tests with every start-up of my system. For 
this I use the NIST KAT files. However for AES-XTS, one of the files uses the 
tweak value input of "data unit sequence number". Can anybody help me to 
understand howto use that value from the commandline. The other tweak value 
input is a 128 hex value which I simply use as a hex IV on the command line and 
it seems to perform correctly. The test succeeds. The data unit sequence number 
is a decimal value between 0 and 255.

Any suggestions?

Thanks
LJB

Here is my commandline for testing (encrypt and decrypt) the 128 bit hex value:
$ echo -n $CTEXT | xxd -p -r | openssl enc $ACTION $CIPHER -nosalt -K $KEY -iv 
$I -nopad | xxd -p
where:
KEY=1ea661c58d943a0e4801e42f4b0947149e7f9f8e3e68d0c7505210bd311a0e7cd6e13ffdf2418d8d1911c004cda58da3d619b7e2b9141e58318eea392cf41b08
I=adf8d92627464ad2f0428e84a9f87564
PTEXT=2eedea52cd8215e1acc647e810bbc3642e87287f8d2e57e36c0a24fbc12a202e
CTEXT=cbaad0e2f6cea3f50b37f934d46a9b130b9d54f07e34f36af793e86f73c6d7db
CIPHER=-aes-256-xts
ACTION=-e or -d

In the second test file for 256bit, the value of "I" is a DataUnitSeqNumber 
(with matching key and other text).

Reply via email to