NetBSD guide details sparc64 disk encryption using cgd and Argon2id
A NetBSD walkthrough shows how to encrypt a disklabel partition (wd0d) on sparc64 using the cgdconfig tool with the Argon2id key derivation function and adiantum cipher at 256 bits. It then describes nesting a second disklabel inside the encrypted cgd0 device so the system can verify a correct password by checking for a valid disklabel before mounting a file system.
GoKawiil's interpretation of the reporting above, not reported fact.
The technique illustrates NetBSD's layered, modular approach to disk encryption, where the kernel-level cgd driver treats encrypted volumes as ordinary disks, letting administrators use standard partitioning and file system tools on top. Using a disklabel as a password-verification mechanism avoids storing a separate passphrase hash, which could reduce attack surface while adding setup complexity for users unfamiliar with NetBSD's disklabel system.
- cgdconfig with Argon2id and adiantum cipher is used to encrypt sparc64 disklabel partitions on NetBSD.
- A nested disklabel inside the encrypted cgd0 volume serves as a password-correctness check before data access.
- The method differs for systems using UEFI or GPT disk wedges, which require a separate configuration approach.
Source: netbsd.org, 2026-11-15
Published there as: “Disk encryption on NetBSD – achieving secrecy”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.