1. 22 5月, 2015 6 次提交
    • H
      crypto: aead - Rename aead_alg to old_aead_alg · 2d0f230f
      Herbert Xu 提交于
      This patch is the first step in the introduction of a new AEAD
      alg type.  Unlike normal conversions this patch only renames the
      existing aead_alg structure because there are external references
      to it.
      
      Those references will be removed after this patch.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      2d0f230f
    • H
      crypto: aead - Add new interface with single SG list · 996d98d8
      Herbert Xu 提交于
      The primary user of AEAD, IPsec includes the IV in the AD in
      most cases, except where it is implicitly authenticated by the
      underlying algorithm.
      
      The way it is currently implemented is a hack because we pass
      the data in piecemeal and the underlying algorithms try to stitch
      them back up into one piece.
      
      This is why this patch is adding a new interface that allows a
      single SG list to be passed in that contains everything so the
      algorithm implementors do not have to stitch.
      
      The new interface accepts a single source SG list and a single
      destination SG list.  Both must be laid out as follows:
      
      	AD, skipped data, plain/cipher text, ICV
      
      The ICV is not present from the source during encryption and from
      the destination during decryption.
      
      For the top-level IPsec AEAD algorithm the plain/cipher text will
      contain the generated (or received) IV.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      996d98d8
    • H
      crypto: scatterwalk - Add scatterwalk_ffwd helper · fc42bcba
      Herbert Xu 提交于
      This patch adds the scatterwalk_ffwd helper which can create an
      SG list that starts in the middle of an existing SG list.  The
      new list may either be part of the existing list or be a chain
      that latches onto part of the existing list.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      fc42bcba
    • H
      crypto: pcrypt - Use crypto_grab_aead · 66d948e7
      Herbert Xu 提交于
      As AEAD has switched over to using frontend types, the function
      crypto_init_spawn must not be used since it does not specify a
      frontend type.  Otherwise it leads to a crash when the spawn is
      used.
      
      This patch fixes it by switching over to crypto_grab_aead instead.
      
      Fixes: 5d1d65f8 ("crypto: aead - Convert top level interface to new style")
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      66d948e7
    • H
      crypto: cryptd - Use crypto_grab_aead · 9b8c456e
      Herbert Xu 提交于
      As AEAD has switched over to using frontend types, the function
      crypto_init_spawn must not be used since it does not specify a
      frontend type.  Otherwise it leads to a crash when the spawn is
      used.
      
      This patch fixes it by switching over to crypto_grab_aead instead.
      
      Fixes: 5d1d65f8 ("crypto: aead - Convert top level interface to new style")
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      9b8c456e
    • S
      crypto: doc - change header file locations · 05767229
      Stephan Mueller 提交于
      Due to the recent update of the kernel crypto API header files,
      locations of function definitions and their documentation have changed.
      Signed-off-by: NStephan Mueller <smueller@chronox.de>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      05767229
  2. 18 5月, 2015 8 次提交
  3. 15 5月, 2015 4 次提交
  4. 13 5月, 2015 22 次提交