Skip to content

Replace local boring wrappers with upstream APIs - #20

Merged
janrueth merged 1 commit into
mainfrom
wip
Apr 17, 2026
Merged

Replace local boring wrappers with upstream APIs#20
janrueth merged 1 commit into
mainfrom
wip

Conversation

@janrueth

Copy link
Copy Markdown
Owner

Consume the AEAD, PKey::generate, and TLS 1.2 PRF modules now merged upstream in cloudflare/boring (rev b0a4e451) and remove the local boring-additions and boring-sys-additions crates entirely.

AEAD: replace boring_additions::aead::Crypter with boring::aead::AeadCtx. Adapt all seal_in_place/open_in_place call sites to the upstream parameter order (nonce, buffer, tag, aad) and the new slice return type. Cache max_overhead on BoringAeadCrypter since the upstream AeadCtx no longer stores it.

PKey generation: replace manual EVP_PKEY_CTX FFI in ed_from_curve with a single PKey::generate(Id) call.

TLS 1.2 PRF: replace raw CRYPTO_tls1_prf FFI (from boring-sys-additions) with boring::prf::tls1_prf.

HMAC: replace manual HMAC_CTX FFI with boring::hmac::Hmac init/update/finalize API, removing all unsafe blocks from hmac.rs.

Update panic-surface test allowlist for the changed HMAC expect messages and remove the boring-additions source scan root.

Delete boring-additions (aead, evp, hmac wrappers + helper) and boring-sys-additions (CRYPTO_tls1_prf binding) crates and their workspace entries.

@janrueth
janrueth force-pushed the wip branch 2 times, most recently from 59a5b59 to 128a5ed Compare April 17, 2026 15:11
Consume the AEAD, PKey::generate, and TLS 1.2 PRF modules now merged
upstream in cloudflare/boring (rev b0a4e451) and remove the local
boring-additions and boring-sys-additions crates entirely.

AEAD: replace boring_additions::aead::Crypter with boring::aead::AeadCtx.
Adapt all seal_in_place/open_in_place call sites to the upstream parameter
order (nonce, buffer, tag, aad) and the new slice return type. Cache
max_overhead on BoringAeadCrypter since the upstream AeadCtx no longer
stores it.

PKey generation: replace manual EVP_PKEY_CTX FFI in ed_from_curve with
a single PKey::generate(Id) call.

TLS 1.2 PRF: replace raw CRYPTO_tls1_prf FFI (from boring-sys-additions)
with boring::prf::tls1_prf.

HMAC: replace manual HMAC_CTX FFI with boring::hmac::Hmac
init/update/finalize API, removing all unsafe blocks from hmac.rs.

Update panic-surface test allowlist for the changed HMAC expect messages
and remove the boring-additions source scan root.

Delete boring-additions (aead, evp, hmac wrappers + helper) and
boring-sys-additions (CRYPTO_tls1_prf binding) crates and their workspace
entries.
@janrueth
janrueth merged commit 580c613 into main Apr 17, 2026
8 checks passed
@janrueth
janrueth deleted the wip branch April 17, 2026 15:27
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.

1 participant