Skip to content

desktop: build seshat with ARMv8 hardware AES#33954

Draft
ara4n wants to merge 1 commit into
developfrom
matthew/desktop-seshat-hw-aes
Draft

desktop: build seshat with ARMv8 hardware AES#33954
ara4n wants to merge 1 commit into
developfrom
matthew/desktop-seshat-hw-aes

Conversation

@ara4n

@ara4n ara4n commented Jun 24, 2026

Copy link
Copy Markdown
Member

Seshat encrypts its index with AES-256 from the RustCrypto aes crate. On aarch64 that crate only uses the ARMv8 hardware AES backend when built with --cfg aes_armv8; without it it falls back to a constant-time software implementation that uses ~10-20x more CPU. Append the flag to RUSTFLAGS for arm64 builds (x86_64 auto-detects AES-NI at runtime).

Requires matrix-org/seshat#185
Fixes bits of #32119

Seshat encrypts its index with AES-256 from the RustCrypto `aes` crate.
On aarch64 that crate only uses the ARMv8 hardware AES backend when built
with `--cfg aes_armv8`; without it it falls back to a constant-time
software implementation that uses ~10-20x more CPU. Append the flag to
RUSTFLAGS for arm64 builds (x86_64 auto-detects AES-NI at runtime).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JP4yoxKeGLRDLkCPTu3DFq
@t3chguy

t3chguy commented Jul 16, 2026

Copy link
Copy Markdown
Member

Drafting due to Seshat PR not being merged

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.

2 participants