]> git.ipfire.org Git - thirdparty/grub.git/commit
cryptodisk: Fix cipher IV mode "plain64" always being set as "plain"
authorGlenn Washburn <development@efficientek.com>
Mon, 19 Oct 2020 23:09:53 +0000 (18:09 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 30 Oct 2020 14:37:20 +0000 (15:37 +0100)
commit6355ba91e54d6562dc3c8f1f601b4fdf6b0c01cf
treeb7fdaf72dcc897e7892ae8b0b92dbfbbc1ca4433
parent2df291226638261d50fadcab1f5edb6c12ab6cfd
cryptodisk: Fix cipher IV mode "plain64" always being set as "plain"

When setting cipher IV mode, detection is done by prefix matching the
cipher IV mode part of the cipher mode string. Since "plain" matches
"plain64", we must check for "plain64" first. Otherwise, "plain64" will
be detected as "plain".

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Patrick Steinhardt <ps@pks.im>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/cryptodisk.c