Replies: 2 comments
-
Researching about the external mode, I found it may need a "metadata KAD" obtained from the copy source before it will work. Hence my hesitation about these advanced modes; by cutting out external & raw, most of the not recommended states can be avoided. The following table is for IBM drives. A metadata KAD is required in external encrypt mode and prohibited otherwise. In working with a HP drive, the metadata KAD is also needed for RAW read regardless of encrypt mode, so correctly handling external & raw modes looks like it requires vendor-specific code. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Continuing from #61, I think the option names could use some clarifying in 2.0 where we can consider breaking changes. I've mocked up a few possibilities and command option trees, in increasing order of complexity of documenting them and implementing.
As noted in #61 raw mode is an advanced feature made for duplicating blocks from one tape to another without having to enroll the encryption key into both drives. There's a good case for leaving this out of a utility where it won't be used. On the other hand, to actually support advanced functionality, we should also allow the external encryption mode where writes to the drive are assumed to be pre-encrypted.
Option 1 (subcommands and simplified syntax, remove raw mode):
Option 2 (subcommands with clarified option names, keep raw mode):
Option 3 (independent encrypt and decrypt settings):
Constraints:
--encrypt=on
, and--decrypt
not given, use--decrypt=on
(backward compatible with current syntax)--decrypt=on|mixed
, and--encrypt
not given, use--encrypt=on
--encrypt=external
, and--decrypt
not given, use--decrypt=on
when a key file is given and--decrypt=off
when no key file given--key-file
or--key-descriptor
without either--encrypt=on
or--decrypt=on|mixed
--ckod
without either--encrypt=on
or--decrypt=on|mixed
--allow-raw-read
or--disallow-raw-read
with--encrypt=off
2 votes ·
Beta Was this translation helpful? Give feedback.
All reactions