"Fossies" - the Fresh Open Source Software Archive

Member "tc-play-3.3/test/features/passphrase_64_api.feature" (2 Mar 2020, 3736 Bytes) of package /linux/misc/tc-play-3.3.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

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