]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aead - Document behaviour of AD in destination buffer
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 May 2015 06:37:26 +0000 (14:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 May 2015 03:23:16 +0000 (11:23 +0800)
commit650457cf811ccf49753bac4c3a81fc03ddf3796a
tree565cefc1fb3824e8eecc269e939946385126ef6d
parent93a7d6facc8ebcde98be2ef74fa23e6a1b9b1bab
crypto: aead - Document behaviour of AD in destination buffer

This patch defines the behaviour of AD in the new interface more
clearly.  In particular, it specifies that if the user must copy
the AD to the destination manually when src != dst if they wish
to guarantee that the destination buffer contains a copy of the
AD.

The reason for this is that otherwise every AEAD implementation
would have to perform such a copy when src != dst.  In reality
most users do in-place processing where src == dst so this is
not an issue.

This patch also kills some remaining references to cryptoff.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/aead.h