[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 5/6] luks: Move configuration of ciphers into cryptodisk
From: |
Daniel Kiper |
Subject: |
Re: [PATCH v2 5/6] luks: Move configuration of ciphers into cryptodisk |
Date: |
Wed, 6 Nov 2019 13:22:38 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Tue, Nov 05, 2019 at 07:58:39AM +0100, Patrick Steinhardt wrote:
> The luks module contains quite a lot of logic to parse cipher and
> cipher-mode strings like "aes-xts-plain64" into constants to apply them
> to the `grub_cryptodisk_t` structure. This code will be required by the
> upcoming luks2 module, as well, which is why this commit moves it into
> its own function `grub_cryptodisk_setcipher` in the cryptodisk module.
> While the strings are probably rather specific to the LUKS modules, it
I am not very happy with moving specific LUKS stuff into rather generic
cryptodisk module but probably there is no easier/better/... solution here.
> certainly does make sense that the cryptodisk module houses code to set
> up its own internal ciphers instead of hosting that code in the luks
> module.
> Signed-off-by: Patrick Steinhardt <address@hidden>
AIUI this is move of exact logic from luks.c into cryptodisk.c without
any functional changes in the code. If this is the case please state
that in the commit message. And then you can add my RB.
Daniel
- [PATCH 6/6] disk: Implement support for LUKS2, (continued)
- [PATCH 6/6] disk: Implement support for LUKS2, Patrick Steinhardt, 2019/11/02
- [PATCH v2 0/6] Support for LUKS2 disk encryption, Patrick Steinhardt, 2019/11/05
- [PATCH v2 4/6] afsplitter: Move into its own module, Patrick Steinhardt, 2019/11/05
- [PATCH v2 3/6] bootstrap: Add gnulib's base64 module, Patrick Steinhardt, 2019/11/05
- [PATCH v2 2/6] json: Implement wrapping interface, Patrick Steinhardt, 2019/11/05
- [PATCH v2 1/6] json: Import upstream jsmn-1.1.0, Patrick Steinhardt, 2019/11/05
- [PATCH v2 5/6] luks: Move configuration of ciphers into cryptodisk, Patrick Steinhardt, 2019/11/05
- Re: [PATCH v2 5/6] luks: Move configuration of ciphers into cryptodisk,
Daniel Kiper <=
- [PATCH v2 6/6] disk: Implement support for LUKS2, Patrick Steinhardt, 2019/11/05
- [PATCH v3 0/6] Support for LUKS2 disk encryption, Patrick Steinhardt, 2019/11/13
- [PATCH v3 3/6] bootstrap: Add gnulib's base64 module, Patrick Steinhardt, 2019/11/13
- [PATCH v3 2/6] json: Implement wrapping interface, Patrick Steinhardt, 2019/11/13
- Re: [PATCH v3 2/6] json: Implement wrapping interface, Daniel Kiper, 2019/11/14
- Re: [PATCH v3 2/6] json: Implement wrapping interface, Patrick Steinhardt, 2019/11/14
- Re: [PATCH v3 2/6] json: Implement wrapping interface, Daniel Kiper, 2019/11/15
- Re: [PATCH v3 2/6] json: Implement wrapping interface, Patrick Steinhardt, 2019/11/15
- Re: [PATCH v3 2/6] json: Implement wrapping interface, Daniel Kiper, 2019/11/18
- Re: [PATCH v3 2/6] json: Implement wrapping interface, Patrick Steinhardt, 2019/11/26