Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1381363

Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework

From Herbert Xu <herbert@gondor.apana.org.au>
Newsgroups linux.kernel
Subject Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework
Date 2016-04-18 10:30 +0200
Message-ID <rpcJb-2fT-1@gated-at.bofh.it> (permalink)
References (5 earlier) <rpbN7-1wD-7@gated-at.bofh.it> <rpbN7-1wD-5@gated-at.bofh.it> <rpcga-1JC-15@gated-at.bofh.it> <rpcpQ-26F-19@gated-at.bofh.it> <rpczw-2aB-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Apr 18, 2016 at 04:14:48PM +0800, Baolin Wang wrote:
> On 18 April 2016 at 16:04, Herbert Xu <herbert@gondor.apana.org.au> wrote:
> > On Mon, Apr 18, 2016 at 03:58:59PM +0800, Baolin Wang wrote:
> >>
> >> That depends on the hardware engine. Some cipher hardware engines
> >> (like xts(aes) engine) can handle the intermediate values (IV) by
> >> themselves in one bulk block, which means we can increase the size of
> >> the request by merging request rather than always 512 bytes and thus
> >> increase the hardware engine processing speed. But for some other
> >> hardware engines (like cbc(aes) engine), they can not support bulk
> >> block, must sector by sector. So the engine drivers can select the
> >> suitable mode to do encryption/decryption.
> >
> > So what is this supposed to handle, xts or cbc?
> 
> As I know, now cbc engine also need to handle requests sector by
> sector, but for xts/ecb engine can support bulk block, which means can
> merge requests.

If it's just xts then why can't dm-crypt merge it and send a single
request?

Cheers,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Baolin Wang <baolin.wang@linaro.org> - 2016-04-18 07:40 +0200
  Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Herbert Xu <herbert@gondor.apana.org.au> - 2016-04-18 07:50 +0200
    Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Baolin Wang <baolin.wang@linaro.org> - 2016-04-18 08:10 +0200
      Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Herbert Xu <herbert@gondor.apana.org.au> - 2016-04-18 09:10 +0200
        Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Herbert Xu <herbert@gondor.apana.org.au> - 2016-04-18 09:30 +0200
          Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Baolin Wang <baolin.wang@linaro.org> - 2016-04-18 10:00 +0200
            Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Herbert Xu <herbert@gondor.apana.org.au> - 2016-04-18 10:10 +0200
              Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Baolin Wang <baolin.wang@linaro.org> - 2016-04-18 10:20 +0200
                Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Herbert Xu <herbert@gondor.apana.org.au> - 2016-04-18 10:30 +0200
                Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Baolin Wang <baolin.wang@linaro.org> - 2016-04-18 10:30 +0200
                Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Herbert Xu <herbert@gondor.apana.org.au> - 2016-04-18 10:40 +0200
                Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Baolin Wang <baolin.wang@linaro.org> - 2016-04-18 10:50 +0200
                Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Herbert Xu <herbert@gondor.apana.org.au> - 2016-04-18 10:50 +0200
                Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Baolin Wang <baolin.wang@linaro.org> - 2016-04-18 11:00 +0200
        Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Baolin Wang <baolin.wang@linaro.org> - 2016-04-18 09:30 +0200
  Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Mike Snitzer <snitzer@redhat.com> - 2016-04-18 15:40 +0200
    Re: [PATCH v2 0/4] Introduce bulk mode for crypto engine framework Milan Broz <mbroz@redhat.com> - 2016-04-18 23:30 +0200

csiph-web