1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
@api
Feature: Passphrase 64-byte limitation using API
Scenario: Long passphrase TrueCrypt-created volume mapping
Given I map volume test_long.tc as tcplay_test with the API using the following settings:
| passphrase | testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttest |
Then I expect dmsetup to have the following tables:
| name | begin | end | algo | offset | iv_offset |
| tcplay_test | 0 | 1536 | aes-xts-plain64 | 256 | 256 |
Scenario: Long passphrase TrueCrypt-created volume info
Given I request information about volume test_long.tc with the API using the following settings:
| passphrase | testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttest |
Then I expect tcplay to report the following:
| PBKDF2 PRF | RIPEMD160 |
| Cipher | AES-256-XTS |
| Key Length | 512 bits |
| Volume size | 786432 bytes |
| IV offset | 131072 bytes |
| Block offset | 131072 bytes |
Scenario: Long passphrase TrueCrypt-created volume mapping with trimming
Given I map volume test_long.tc as tcplay_test with the API using the following settings:
| passphrase | testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttestexceedslimitation |
Then I expect dmsetup to have the following tables:
| name | begin | end | algo | offset | iv_offset |
| tcplay_test | 0 | 1536 | aes-xts-plain64 | 256 | 256 |
Scenario: Long passphrase TrueCrypt-created volume info with trimming
Given I request information about volume test_long.tc with the API using the following settings:
| passphrase | testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttestexceedslimitation |
Then I expect tcplay to report the following:
| PBKDF2 PRF | RIPEMD160 |
| Cipher | AES-256-XTS |
| Key Length | 512 bits |
| Volume size | 786432 bytes |
| IV offset | 131072 bytes |
| Block offset | 131072 bytes |
Scenario: Long passphrase volume creation
Given I create a volume tmpvol1 of size 10M using the API with the following parameters:
| passphrase | testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttestexceeds64chars |
| pbkdf_prf | SHA512 |
| cipher | AES-256-XTS |
And I map volume tmpvol1 as tcplay_test with the API using the following settings:
| passphrase | testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttest |
And I request information about volume tmpvol1 with the API using the following settings:
| passphrase | testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttest |
Then I expect dmsetup to have the following tables:
| name | begin | end | algo | offset | iv_offset |
| tcplay_test | 0 | 19968 | aes-xts-plain64 | 256 | 256 |
And I expect tcplay to report the following:
| PBKDF2 PRF | SHA512 |
| Cipher | AES-256-XTS |
| Key Length | 512 bits |
| Volume size | 10223616 bytes |
| IV offset | 131072 bytes |
| Block offset | 131072 bytes |
|