Skip to content

26.3 Stable backport of 107339: Reuse AES key schedules and compose plain ECB/CBC on a streaming ECB context in encrypt/decrypt - #2232

Open
zvonand wants to merge 2 commits into
stable-26.3from
backport/stable-26.3/107339
Open

26.3 Stable backport of 107339: Reuse AES key schedules and compose plain ECB/CBC on a streaming ECB context in encrypt/decrypt#2232
zvonand wants to merge 2 commits into
stable-26.3from
backport/stable-26.3/107339

Conversation

@zvonand

@zvonand zvonand commented Aug 18, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Performance Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Improve performance of the encrypt, decrypt, and halfMD5 functions by avoiding implicit per-row OpenSSL provider lookups in OpenSSL 3.x. (ClickHouse#99105 by @thevar1able)
Improve performance of the encrypt, decrypt, tryDecrypt, aes_encrypt_mysql, and aes_decrypt_mysql functions by up to an order of magnitude, recovering the performance lost in the BoringSSL to OpenSSL 3.x migration (24.4). (ClickHouse#107339 by @thevar1able)

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

alexey-milovidov and others added 2 commits August 18, 2026 14:47
…pt-performance

Avoid per-row OpenSSL re-fetch in encrypt, decrypt and halfMD5
…-fast-path

Reuse AES key schedules and compose plain ECB/CBC on a streaming ECB context in encrypt/decrypt
@zvonand zvonand changed the title 26.3 Stable backport of 107339: 26.3 Stable backport of 107339: Reuse AES key schedules and compose plain ECB/CBC on a streaming ECB context in encrypt/decrypt Aug 18, 2026
@github-actions

Copy link
Copy Markdown

Workflow [PR], commit [f7011b8]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants