Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d491d56
feat(vitaminc-aead): the AES-256-GCM cipher, behind an aes feature
coderdan Dec 2, 2026
ca33765
refactor: stack-encrypt and its tests use vitaminc-aead's AES cipher
coderdan Dec 2, 2026
a7c280a
refactor(vitaminc-aead)!: the leaf writer, reader and nonce types are…
coderdan Dec 2, 2026
580d8c5
refactor(vitaminc-aead)!: remove the deprecated Aad and AadPiece names
coderdan Dec 2, 2026
f8355a3
fix(vitaminc-aead): the aws-lc seal no longer frees an unwiped copy o…
coderdan Dec 2, 2026
42c92e1
docs(vitaminc-aead): the README describes the AES cipher
coderdan Dec 2, 2026
9d5c512
style: rustfmt the two files outside the root workspace that changed
coderdan Dec 3, 2026
fde4aa6
fix(vitaminc-aead): a seal that fails wipes the plaintext from its bu…
coderdan Dec 3, 2026
c5a12b7
docs: AGENTS.md says where the AES cipher is now
coderdan Dec 3, 2026
edb10e4
docs(vitaminc-aead): the changelog records the wipe on a failed seal
coderdan Dec 3, 2026
3efd594
Merge branch 'refactor/dynamic-record-readability' into feat/vitaminc…
coderdan Dec 4, 2026
346379f
test(vitaminc-aead): run the AES backend tests as plain tests
coderdan Dec 4, 2026
31fbfff
build(vitaminc-aead): build aes-gcm only on wasm32 and for the test b…
coderdan Dec 4, 2026
028cfbe
ci: test vitaminc-aead's AES cipher with each backend on the host
coderdan Dec 4, 2026
c3bee80
ci: run vitaminc-aead's tests on wasm32-wasip1 under wasmtime
coderdan Dec 4, 2026
72f65af
chore(supply-chain): move pin-project-lite off a yanked version
coderdan Dec 4, 2026
5e88bb4
chore(supply-chain): allow the aws-lc crates' licences and build scripts
coderdan Dec 4, 2026
40641e7
chore(supply-chain): trust the aws-lc-sys publisher for safe-to-deploy
coderdan Dec 4, 2026
2e12aae
chore(supply-chain): remove the exemption for vitaminc-encrypt 0.10.0
coderdan Dec 4, 2026
62c25b2
build(auth-guest): record vitaminc-aead's aes-gcm dependency in the lock
coderdan Dec 4, 2026
76cf740
build(vitaminc-aead): choose the RustCrypto backend with a cfg, not a…
coderdan Dec 4, 2026
d7c39fa
chore(supply-chain): allow generic-array's build script
coderdan Dec 4, 2026
2c0830c
chore(supply-chain): trust the cc-rs trusted publisher for cc
coderdan Dec 4, 2026
7245174
chore(supply-chain): audit aws-lc-rs 1.18.0 and pin-project-lite 0.2.…
coderdan Dec 5, 2026
e0208ea
fix(deps): move aws-lc-rs to 1.18.1 and aws-lc-sys to 0.45.0
coderdan Dec 5, 2026
2489e58
chore(supply-chain): audit aws-lc-rs 1.18.0 to 1.18.1, and correct th…
coderdan Dec 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/auth-aws-lc-rs-1-18-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@cipherstash/auth": patch
---

The native binaries now use aws-lc-rs 1.18.1 and aws-lc-sys 0.45.0. These
versions fix the GitHub security advisory GHSA-xv35-xp83-5wrf. The advisory
affects aws-lc-rs 1.18.0 and aws-lc-sys before 0.45.0. The package does not
call the affected code. The package's API is unchanged.
37 changes: 36 additions & 1 deletion .github/workflows/tests-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ jobs:
run: mise x --env test -- cargo nextest run --locked --workspace --all-features

# The run above turns every feature on at once; this tests the AEAD
# crates' optional features one at a time.
# crates' optional features one at a time. The run above tests the AES
# cipher with aws-lc-rs only. This also tests it with the RustCrypto
# backend, and runs stack-encrypt's heap_hygiene test with it.
- name: vitaminc-aead feature combinations
run: mise run test:vitaminc-aead:features

Expand Down Expand Up @@ -226,6 +228,39 @@ jobs:
rm -rf -- "${target_dir}/package"
done

# vitaminc-aead's tests on wasm32-wasip1, the target the Go guests build
# for, with wasmtime as the test runner. On that target the `aes` feature
# uses RustCrypto's aes-gcm. The task says which tests it skips and why.
vitaminc-aead-wasip1:
name: vitaminc-aead tests on wasm32-wasip1
runs-on: runs-on=${{ github.run_id }}/family=c8a+m8a/cpu=4/image=ubuntu24-full-x64/volume=80gb/extras=s3-cache
timeout-minutes: 30
env:
RUSTFLAGS: "-D warnings"
# wasmtime is pinned in mise.test.toml, which mise loads only in the
# test environment.
MISE_ENV: test
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false

# No install_args, as in `rust`: this installs (and caches) the whole
# test toolset, wasmtime with it.
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4
with:
version: 2026.4.0
install: true
working_directory: .
cache: true
# Must name runs-on's image; see scripts/__tests__/workflow-mise-cache-image.test.mjs
cache_key_prefix: mise-v1-ubuntu-2404

- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2

- name: vitaminc-aead tests on wasm32-wasip1 (wasmtime)
run: mise run test:vitaminc-aead:wasip1

# rustdoc checks intra-doc links but never fetches a URL, so this checks
# the web links in the crates' docs with lychee. It reads every crate under
# packages/ except EQL, which has its own docs checks. lychee.toml holds
Expand Down
9 changes: 5 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -749,10 +749,11 @@ exact pin would stop the suite sharing one `cts-common` with it.

vitaminc's AEAD crates (`vitaminc-aead`, `recipher-frame`,
`vitaminc-aead-derive`) live here, in `packages/`, and are not published from
here yet. The other vitaminc crates come from crates.io at 0.10, and four of
them depend on `vitaminc-aead`: `vitaminc-normalize`, `vitaminc-prf`,
`vitaminc-ore` and `vitaminc-encrypt`, with the `vitaminc` umbrella crate,
`clww-ore` and `ore-rs` above them. So every Cargo workspace that resolves
here yet. The AES-256-GCM cipher is in `vitaminc-aead`, behind its `aes`
feature, so nothing here uses `vitaminc-encrypt` 0.10. The other vitaminc
crates come from crates.io at 0.10, and three of them depend on
`vitaminc-aead`: `vitaminc-normalize`, `vitaminc-prf` and `vitaminc-ore`,
with the `vitaminc` umbrella crate, `clww-ore` and `ore-rs` above them. So every Cargo workspace that resolves
`vitaminc-aead` 0.10 carries a `[patch.crates-io]` table, with relative paths,
that makes those crates build against the copies here. A workspace must have
exactly one `vitaminc-aead` 0.10, and it must be the path crate: check with
Expand Down
51 changes: 10 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,13 @@ web-time = "1.1"
zeroize = { version = "1.8.1", features = ["derive"] }
# This is needed because lock_api 0.4.6 was breaking things and the branch forces the use of 0.4.12
temp-env = { git = "https://github.com/cipherstash/temp-env", branch = "main" }
vitaminc = { version = "0.10.0", features = ["random", "protected", "encrypt"] }
vitaminc = { version = "0.10.0", features = ["random", "protected"] }
# The AEAD crates live in this repository (packages/vitaminc-aead*,
# packages/recipher-frame).
vitaminc-aead = { path = "./packages/vitaminc-aead", version = "0.10.0" }
# The transport frame and ciphertext codec every language binding carries
# across its FFI boundary. Optional in stack-encrypt (the `dynamic` feature).
recipher-frame = { path = "./packages/recipher-frame", version = "0.10.0" }
vitaminc-encrypt = "0.10.0"
vitaminc-hmac = "0.10.0"
# Normalized equality terms (Unicode 16 NFC text, one integer encoding for
# every width), which `vitaminc-prf`'s `normalize` feature derives over.
Expand Down
38 changes: 2 additions & 36 deletions languages/golang/auth/guest/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 8 additions & 41 deletions languages/golang/encrypt/guest/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading