Re: [PATCH 6/9] dm crypt: support diskcipher
From: Herbert Xu
Date: Fri Aug 23 2019 - 00:29:05 EST
On Fri, Aug 23, 2019 at 01:20:37PM +0900, boojin.kim wrote:
>
> If yes, I think the following API needs to be added to skcipher:
> - _set(): BIO submitter (dm-crypt, f2fs, ext4) sets cipher to BIO.
> - _mergeable(): Block layer checks if two BIOs have the same cipher.
> - _get(): Storage driver gets cipher from BIO.
> - _set_crypt(): Storage driver gets crypto information from cipher and
> writes it on the descriptor of Storage controller.
> Is it acceptable to skcipher ?
No. If you're after total offload then the crypto API is not for
you. What we can support is the offloading of encryption/decryption
over many sectors.
Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt