Commit 53559b2
committed
RM-3668: Fix reading secret from CLI, remove broken FormattedOptionParts.class
* Fix cdoc2-cli encrypting functionality for SymmetricKey (`--secret` parameter)
* Rewrote symmetric key (secret) and password handling in cdoc2-cli
* Introduce `LabeledPassword` and `LabeledSecret` interfaces, with supporting methods (`withPassword` and `withSecrets`) in `EncryptionKeyMaterialCollectionBuilder`
* Removed `FormattedOptionParts` that doesn't really support converting --secret parameter bytes into SecretKey properly.
* Removed `SymmetricKeyUtils`
* Bumped `cdoc2-lib` version into 2.0.0-SNAPSHOT, because of removed classes
* Removed broken _symmetric_.cdoc files from testvectors and replaced them with new ones (or old).1 parent ab8e0dd commit 53559b2
File tree
35 files changed
+782
-728
lines changed- cdoc2-cli
- src
- main/java/ee/cyber/cdoc2/cli
- commands
- util
- test/java
- ee/cyber/cdoc2/cli/util
- cdoc2-lib
- src/main/java/ee/cyber/cdoc2
- crypto
- keymaterial
- encrypt
- test
- bats
- testvectors-v1.2
- testvectors-v1.4
- testvectors
35 files changed
+782
-728
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
Lines changed: 0 additions & 81 deletions
This file was deleted.
Lines changed: 0 additions & 287 deletions
This file was deleted.
0 commit comments