Skip to content

3.0.0 API Redesign - #147

Draft
overheadhunter wants to merge 32 commits into
developfrom
feature/api-redesign
Draft

overheadhunter wants to merge 32 commits into
developfrom
feature/api-redesign

Conversation

@overheadhunter

Copy link
Copy Markdown
Member

This pull request introduces significant updates and cleanup to the project, including major new features, removals of deprecated APIs and dependencies, and a breaking redesign of the public API for version 3.0.0. It also updates the build workflow by removing coverage-related steps.

Major feature additions:

  • Added support for recovery keys as words, allowing vaults to be unlocked using a word-encoded recovery key, and introduced the NameShortener API for ciphertext name shortening independently of name encryption.

API and dependency removals:

  • Removed all APIs deprecated in 2.x, object pooling for cryptographic primitives, several key-related classes, and the dependency on Guava.

Breaking API and format changes:

  • Redesigned the public API for version 3.0.0, updated Unified Vault Format (UVF) support, and made changes to recipient handling, validation, and serialization logic.

Dependency and build updates:

  • Switched BouncyCastle to a regular dependency, added new dependencies for JWE and nullness annotations, and updated the multi-release jar structure.
  • Removed coverage reporting and related flags from the GitHub Actions build workflow (build.yml).

overheadhunter and others added 24 commits October 13, 2026 09:54
… + 25 multi-release layers

- version 3.0.0-SNAPSHOT
- bcpkix-jdk18on becomes a regular dependency; maven-shade-plugin removed
- add com.nimbusds:nimbus-jose-jwt 10.10
- multi-release jar now has exactly two layers: Java 8 base and a Java 25
  layer (src/main/java25) for module-info and, later, sealed API roots;
  src/main/java9 and src/main/java22 are removed, enforcer requires JDK 25
- module-info: plain requires for BouncyCastle, requires nimbus

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
- api: LockedVault/UnlockedVault (sealed on Java 25 via src/main/java25)
  with Cvf8LockedVault/Cvf8UnlockedVault and UvfLockedVault/UvfUnlockedVault,
  VaultDirectory, VaultNode, VaultFile, VaultReader/VaultWriter,
  CiphertextReader/CiphertextWriter, CipherCombo, UvfRecipient,
  VaultConfigLoadException/VaultKeyInvalidException; Masterkey renamed to
  CvfMasterkey
- internal: FileLayout arithmetic, VaultFileImpl with positional
  read/write/truncate (no cache), format-independent channels/streams,
  AbstractUnlockedVault
- cvf8: vault config (nimbus JWS), SIV names + .c9s shortening, directory
  layout, CTR-MAC and GCM codecs ported from v1/v2 with unchanged on-disk
  format
- tests incl. the existing golden vectors; v1/v2 and the old api types
  remain until the UVF port is done

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…vf JWE

- uvf: UvfSeeds (decrypted payload model incl. custom fields), UvfNames
  (per-seed AES-SIV keys, unpadded base64url, NFC), UvfContentCodec
  (32740 byte payload, 4 byte big endian chunk index as AAD, EOF chunk),
  UvfMetadataCodec (JWE general JSON serialization via nimbus:
  PBES2-HS512+A256KW, ECDH-ES+A256KW and A256KW recipients sharing one
  CEK), UvfVault/UvfDirectory/UvfNode, LockedVault.parse dispatch
- HKDFHelper ported from the uvf-draft branch
- tests with the spec's example payload and the existing UVF vectors

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
- api: Cryptor, CryptorProvider, FileContentCryptor, FileHeader,
  FileHeaderCryptor, FileNameCryptor removed; package-info rewritten for
  the new entry point
- v1/v2 packages, the public channel classes in common and
  META-INF/services removed (cvf8 + internal replace them)
- module-info: no more uses/provides, Guava no longer transitive
- JMH benchmarks re-pointed at the CVF8 and UVF codecs
- README: usage section is no longer marked as draft

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
for size changes made through another handle
# Conflicts:
#	pom.xml
#	src/main/java/org/cryptomator/cryptolib/common/MasterkeyFileAccess.java

[deploy]
@overheadhunter
overheadhunter marked this pull request as draft November 11, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants