Skip to content

fatfs: optional AES-256-XTS full-disk encryption hook#105

Open
kraln wants to merge 1 commit into
ArduPilot:masterfrom
kraln:sdcard-aes256-xts-encryption
Open

fatfs: optional AES-256-XTS full-disk encryption hook#105
kraln wants to merge 1 commit into
ArduPilot:masterfrom
kraln:sdcard-aes256-xts-encryption

Conversation

@kraln

@kraln kraln commented Jun 27, 2026

Copy link
Copy Markdown

Adds an optional encryption hook to the FatFS diskio binding, gated by AP_FATFS_CRYPTO_ENABLED (set in a board hwdef).

When enabled, sectors are decrypted in place after blkRead and encrypted into a bounded scratch buffer before blkWrite, calling the ap_diskcrypto_* shim provided by ArduPilot's AP_DiskCrypto library.

  • Excluded from the bootloader.
  • No functional change when the define is unset.

Gated by AP_FATFS_CRYPTO_ENABLED (set in a board hwdef; reaches this file via
ffconf.h -> hwdef.h). When enabled, sectors are decrypted in place after
blkRead and encrypted into a bounded scratch buffer before blkWrite, calling
the AP_DiskCrypto shim provided by ArduPilot. Excluded from the bootloader.
No functional change when disabled.
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