#1144805 cryptsetup: crypttab(5) has incorrect first example "WARNING: The --hash parameter is being ignored"

Package:
cryptsetup
Source:
cryptsetup
Description:
disk encryption support - startup scripts
Submitter:
Russell Coker
Date:
2026-08-19 00:03:01 UTC
Severity:
normal
#1144805#5
Date:
2026-08-19 00:00:14 UTC
From:
To:
EXAMPLES
         # Encrypted swap device
         cswap /dev/sda6 /dev/urandom plain,cipher=aes-xts-plain64,size=256,hash=sha1,swap

The above is from crypttab(5), the below is what I used in my crypttab:
cswap /dev/sda1 /dev/urandom plain,cipher=aes-xts-plain64,size=256,hash=sha1,swap

# cryptdisks_start cswap
Starting crypto disk...cswap (starting)...WARNING: The --hash parameter is being ignored in plain mode with keyfile specified.
cswap (started)...done.

I believe that when I copy something exactly from an example in a man page I
should get no errors and no warnings.