Skip to content

Commit 53559b2

Browse files
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

35 files changed

+782
-728
lines changed

cdoc2-cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>ee.cyber.cdoc2</groupId>
4444
<artifactId>cdoc2-lib</artifactId>
45-
<version>1.5.0-SNAPSHOT</version>
45+
<version>2.0.0-SNAPSHOT</version>
4646
</dependency>
4747
</dependencies>
4848

cdoc2-cli/src/main/java/ee/cyber/cdoc2/cli/CDocDecryptionHelper.java

Lines changed: 0 additions & 81 deletions
This file was deleted.

cdoc2-cli/src/main/java/ee/cyber/cdoc2/cli/SymmetricKeyUtil.java

Lines changed: 0 additions & 287 deletions
This file was deleted.

0 commit comments

Comments
 (0)