1. 13 5月, 2015 1 次提交
    • H
      crypto: aead - Convert top level interface to new style · 5d1d65f8
      Herbert Xu 提交于
      This patch converts the top-level aead interface to the new style.
      All user-level AEAD interface code have been moved into crypto/aead.h.
      
      The allocation/free functions have switched over to the new way of
      allocating tfms.
      
      This patch also removes the double indrection on setkey so the
      indirection now exists only at the alg level.
      
      Apart from these there are no user-visible changes.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      5d1d65f8
  2. 01 8月, 2014 1 次提交
  3. 11 1月, 2008 2 次提交
    • H
      [CRYPTO] aead: Add top-level givencrypt/givdecrypt calls · 3a282bd2
      Herbert Xu 提交于
      This patch finally makes the givencrypt/givdecrypt operations available
      to users by adding crypto_aead_givencrypt and crypto_aead_givdecrypt.
      A suite of helpers to allocate and fill in the request is also available.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      3a282bd2
    • H
      [CRYPTO] aead: Add givcrypt operations · 743edf57
      Herbert Xu 提交于
      This patch adds the underlying givcrypt operations for aead and associated
      support elements.  The rationale is identical to that of the skcipher
      givcrypt operations, i.e., sometimes only the algorithm knows how the
      IV should be generated.
      
      A new request type aead_givcrypt_request is added which contains an
      embedded aead_request structure with two new elements to support this
      operation.  The new elements are seq and giv.  The seq field should
      contain a strictly increasing 64-bit integer which may be used by
      certain IV generators as an input value.  The giv field will be used
      to store the generated IV.  It does not need to obey the alignment
      requirements of the algorithm because it's not used during the operation.
      
      The existing iv field must still be available as it will be used to store
      intermediate IVs and the output IV if chaining is desired.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      743edf57