1. 10 7月, 2008 1 次提交
  2. 08 3月, 2008 1 次提交
  3. 23 2月, 2008 1 次提交
  4. 11 1月, 2008 2 次提交
    • H
      [CRYPTO] chainiv: Avoid lock spinning where possible · e7cd2514
      Herbert Xu 提交于
      This patch makes chainiv avoid spinning by postponing requests on lock
      contention if the user allows the use of asynchronous algorithms.  If
      a synchronous algorithm is requested then we behave as before.
      
      This should improve IPsec performance on SMP when two CPUs attempt to
      transmit over the same SA.  Currently one of them will spin doing nothing
      waiting for the other CPU to finish its encryption.  This patch makes it
      postpone the request and get on with other work.
      
      If only one CPU is transmitting for a given SA, then we will process
      the request synchronously as before.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      e7cd2514
    • H
      [CRYPTO] chainiv: Add chain IV generator · 7f470739
      Herbert Xu 提交于
      The chain IV generator is the one we've been using in the IPsec stack.
      It simply starts out with a random IV, then uses the last block of each
      encrypted packet's cipher text as the IV for the next packet.
      
      It can only be used by synchronous ciphers since we have to make sure
      that we don't start the encryption of the next packet until the last
      one has completed.
      
      It does have the advantage of using very little CPU time since it doesn't
      have to generate anything at all.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      7f470739